【2022.05.21】红米AC2100刷OPENWRT
前言
因为我使用docker来部署软路由系统,有点儿不稳定,所以改实体路由器刷软路由
降级
先进入红米的后台看看系统的版本号,如果过高就要降级回2.0.7
下载链接:http://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/rm2100/miwifi_rm2100_firmware_d6234_2.0.7.bin
选择手动升级刷入
输入成功后就会重启,重启后要重新配置网络
刷入不死固件
刷前检查
重新登陆后就可以在网址看到自己的stok,记录下来,替换掉下面的替换
http://192.168.31.1/cgi-bin/luci/;stok=3b3c647f75b92ffccfa8d1025a7cd2fd/web/home#router
我的就是
3b3c647f75b92ffccfa8d1025a7cd2fd
http://192.168.31.1/cgi-bin/luci/;stok=替换/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=%0A%5B%20-z%20%22%24(dmesg%20%7C%20grep%20ESMT)%22%20%5D%20%26%26%20B%3D%22Toshiba%22%20%7C%7C%20B%3D%22ESMT%22%0Auci%20set%20wireless.%24(uci%20show%20wireless%20%7C%20awk%20-F%20'.'%20'%2Fwl1%2F%20%7Bprint%20%242%7D').ssid%3D%22%24B%20%24(dmesg%20%7C%20awk%20'%2FBad%2F%20%7Bprint%20%245%7D')%22%0A%2Fetc%2Finit.d%2Fnetwork%20restart%0A
替换后了就是
http://192.168.31.1/cgi-bin/luci/;stok=3b3c647f75b92ffccfa8d1025a7cd2fd/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=%0A%5B%20-z%20%22%24(dmesg%20%7C%20grep%20ESMT)%22%20%5D%20%26%26%20B%3D%22Toshiba%22%20%7C%7C%20B%3D%22ESMT%22%0Auci%20set%20wireless.%24(uci%20show%20wireless%20%7C%20awk%20-F%20%27.%27%20%27%2Fwl1%2F%20%7Bprint%20%242%7D%27).ssid%3D%22%24B%20%24(dmesg%20%7C%20awk%20%27%2FBad%2F%20%7Bprint%20%245%7D%27)%22%0A%2Fetc%2Finit.d%2Fnetwork%20restart%0A
出现{"code":0}说明没什么问题
此时你的WiFi会被改名,记得重连
输入breed
breed可以理解为一个BIOS?
在路由器有网络的情况下,输入以下网址,那个替换依旧要替换
http://192.168.31.1/cgi-bin/luci/;stok=替换/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=%0Acd%20%2Ftmp%0Acurl%20-o%20B%20-O%20https%3A%2F%2Fbreed.hackpascal.net%2Fr1286%2520%255b2020-10-09%255d%2Fbreed-mt7621-xiaomi-r3g.bin%20-k%20-g%0A%5B%20-z%20%22%24(sha256sum%20B%20%7C%20grep%20242d42eb5f5aaa67ddc9c1baf1acdf58d289e3f792adfdd77b589b9dc71eff85)%22%20%5D%20%7C%7C%20mtd%20-r%20write%20B%20Bootloader%0A
路由器的电源灯从蓝色到橘色,再到蓝色,说明成功
成功后拔掉电源,按住reset同时接上电源等10秒即可进入breed,开始的时候蓝灯会闪烁。
用一根网线接入,就可以进入breed web后台,新的后台地址是192.168.1.1
增加环境变量 xiaomi.r3g.bootfw,值为2 ,记得点击保存
选好固件上传,这里我选的是git上的开源项目
1orz/My-action: 自动编译-无人值守Auto release base on Github actions
使用说明在这里
自编译多平台-OpenWRT ipk下载-有55Rplus/passwa11/trojan/实时更新-Lean-恩山无线论坛 (right.com.cn)
先将临时固件上传(只是最基础的固件,临时固件的地址是initramfs-kernel.bin
点击更新
重启后就进入Openwrt了
在系统备份升级那里,刷入squashfs-sysupgrade.bin
点击执行,之后就进入openwrt了
剩下就是上传ipk安装了
参考链接
小米 红米【AC2100】一键刷BREED【30秒刷完】小白帅小伙专用 检查坏块 | 无需Telnet-恩山无线论坛 (right.com.cn)