共计 1340 个字符,预计需要花费 4 分钟才能阅读完成。
提醒:刷机有风险,请做好变砖的心理准备,不要使用主力机尝试。
1、首先下载工具包:点击下载(下载密码:5799)
2. 解压“刷机工具 01”,运行“0.start_main.bat”批处理文件,弹出如下界面,输入“路由器管理密码”按回车。

3. 打开“刷机工具 02”,运行“MobaXterm_Personal”,弹出如下界面:

4. 单击左上角“Session”,新建一个“Telnet 协议”,主机地址写“路由器管理地址(一般默认为 192.168.31.1)”,用户名写“root”,端口号保持默认为“23”,最后单击“ok”按钮按下图 1 - 6 步骤进行操作:

5. 在打开的界面中输入用户名:“root”,密码为空,然后回车进入到如下界面:

6. 输入“cat /proc/mtd”查看分区情况。如下图:
cat /proc/mtd

7. 输入“dd if=/dev/mtd0 of=/tmp/all.bin“将整个磁盘分区命名为”all.bin“备份到”/tmp“路径下。如下图:
dd if=/dev/mtd0 of=/tmp/all.bin

8. 输入“dd if=/dev/mtd2 of=/tmp/bootloader.bin“将“Bootloader”分区命名为“bootloader.bin”备份到“/tmp”路径下。如下图:
dd if=/dev/mtd2 of=/tmp/bootloader.bin

9、输入“dd if=/dev/mtd3 of=/tmp/eeprom.bin”将“Eeprom”分区命名为“eeprom.bin”备份到“/tmp”路径下。如下图:
dd if=/dev/mtd3 of=/tmp/eeprom.bin

10. 备份完成后在“浏览器或系统资源管理器中”访问 ftp://192.168.31.1,打开 tmp 文件夹,并将刚刚备份的三个 bin(all.bin、bootloader .bin、eeprom.bin) 文件 复制到自己的电脑磁盘中。


11. 再将下载好的 Breed 固件命名为 breed.bin,然后复制到 /tmp 目录内。

12. 回到 MobaXterm 中输入 mtd write /tmp/breed.bin Bootloader 刷入 Breed。
mtd write /tmp/breed.bin Bootloader

13. 刷入完成后将小米路由器 4C 断电,按住复位键的同时通电,可以看到电源灯与网络灯闪烁几下后即可松开复位键,此时就进入了 Breed 模式。

14. 选择”固件更新”,先将刚刚备份好的“eeprom.bin”刷入。

15. 再选择”固件更新”,将“OpenWrt 文件夹中的“固件刷入。然后单击“上传”按钮,如下图:

16. 接着弹出“更新确认”界面,单击“更新,然后等待路由器重启即可。


- 重启时间比较长,电源灯会一直闪黄色,等到电源灯变成蓝色灯并常亮时即刷机重启完成。
- 接着进行网络配置,进入路由器管理后台,管理界面地址为“192.168.5.1”用户名为:“root”,密码为:“password”(注意有些可能会变,这时候使用 192.168.1.1 时会无法打开页面。具体还需要查看电脑 DHCP 获取到的 ip 情况)

转载
作者:稀泡泡
链接:https://www.jianshu.com/p/20c83426cd9e
来源:简书
