xiaomi4A百兆刷openwrt简介
网上教程乱七八糟的, 这里整理一下, 最新的这个能用
注意4a百兆 和千兆的刷的包是不一样的
总结一下官网的介绍:
官方提供有2个包:
4A百兆用这个
注意我们用squashfs-sysupgrade.bin这个包刷, 不同包刷的方式不一样, 这里不对initramfs-kernel.bin包的刷入方法做介绍
4A千兆有千兆的包不要用百兆的包
刷机流程:
注意看路由的固件版本号, 此教程仅适用于3.xx
Use OpenWRTInvasion 获取root权限的shell
cat /proc/mtd检查是否有一个分区叫 mtd6: 00200000 00010000 “overlay”, 只有有该分区才能刷
openwrt-sysupgrade.bin 下载到路由器的
/tmp目录刷刚刚下载的包 with
mtd -r write <image> OS1
注意事项
- 看路由器的版本, 推荐更新到最新版本再刷, 因为R4AC with v3.0.10 bricked when downgrading to v3.0.5
- 无需安装Breed, 否则会造成bootloop
对路由器进行root
安装python
下载代码
运行代码
怎么跑github地址这里已经写的很详细了, 还有动图:
- 登录路由器获得stock
- 安装python依赖
- 运行脚本
- 在脚本中输入路由器的Ip和stock3
- 使用telnet进行测试
下载openwrt
xiaomi_mi-router-4a-100m-intl-squashfs-sysupgrade.bin
在上一步 OpenWRTInvasion已经开启了FTP服务器
The script also starts an ftp server at port 21, so you can get access to the filesystem using a GUI (for example cyberduck).
然后用任意ftp的客户端, 把openwrt传到服务器的 tmp 目录下面
刷入openwrt
# <image> 指的是完整的路径 如 /tmp/openwrt-21.02.3-ramips-mt76x8-xiaomi_mi-router-4a-100m-squashfs-sysupgrade.bin
mtd -r write <image> OS1参考网址给的是 -e 猜测是erser擦除的意思 我相信官网 用 -r 应该是recover的意思