1. 下载breed,
地址 http://breed.hackpascal.net/
2. 下载小米Mini的开发板rom,
地址 http://www1.miwifi.com/miwifi_download.html
3. 通过web登录小米Mini的后台, 路由器设置->升级检测->手动升级, 提交刚才下载的rom
4. 下载小米无线的手机app, 连上小米Mini, 根据提示, 绑定路由器
5. 用同样的小米账号, 登录 https://d.miwifi.com/rom/ssh , 下载刷机工具包 miwifi_ssh.bin
6. 安装工具包
将下载的工具包bin文件复制到U盘(FAT/FAT32格式)的根目录下,保证文件名为miwifi_ssh.bin;
断开小米路由器的电源,将U盘插入USB接口;
按住reset按钮之后重新接入电源,指示灯变为黄色闪烁状态即可松开reset键;
等待3-5秒后安装完成之后,小米路由器会自动重启
7. 要等好一会儿, 一分钟左右, 就能通过22端口登录ssh了, 需要用之前给的root密码
8. 备份
root@XiaoQiang:~# dd if=/dev/mtd0 of=/extdisks/sda1/xiaomi_rom_backup/all.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd1 of=/extdisks/sda1/xiaomi_rom_backup/bootloader.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd2 of=/extdisks/sda1/xiaomi_rom_backup/config.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd3 of=/extdisks/sda1/xiaomi_rom_backup/factory.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd4 of=/extdisks/sda1/xiaomi_rom_backup/os1.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd5 of=/extdisks/sda1/xiaomi_rom_backup/rootfs.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd6 of=/extdisks/sda1/xiaomi_rom_backup/os2.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd7 of=/extdisks/sda1/xiaomi_rom_backup/overlay.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd8 of=/extdisks/sda1/xiaomi_rom_backup/crash.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd9 of=/extdisks/sda1/xiaomi_rom_backup/reserved.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd10 of=/extdisks/sda1/xiaomi_rom_backup/bdata.bin
+ records in
+ records out
root@XiaoQiang:~# dd if=/dev/mtd11 of=/extdisks/sda1/xiaomi_rom_backup/firmware.bin
dd: can't open '/dev/mtd11': No such file or directory
9. 用winscp上载刚才下载的 breed-mt7620-xiaomi-mini.bin 到 /tmp 目录
10. 执行 mtd -r write /tmp/breed-mt7620-xiaomi-mini.bin Bootloader, 等待设备自动重启
11. 掉电, 按住reset, 加电
各种ROM的测试
PandoraBox-ralink-mt7620-xiaomi-mini-squashfs-sysupgrade-r1597-20151107.bin
工作正常, 默认口令是admin, 2.4G和5G wlan都正常工作
lede-17.01.3-ramips-mt7620-miwifi-mini-squashfs-sysupgrade.bin
工作正常, 2.4G和5G wlan都正常工作, 但是灯只有红色