2023年了,家里还是百兆路由器,就想着升级一下主路由,挑来挑去看到一个性价比很高的zn-m2(ax18和目 4灯),海鲜市场55收了一个
到手第一件事就是刷机
刷机教程
https://www.right.com.cn/forum/thread-7827262-1-1.html
第一次刷机,用的是uboot-cmiot-ax18.bin
固件为
闭源固件(无wifi) openwrt-ipq60xx-generic-cmiot_ax18-squashfs-nand-factory.bin
dd if=/dev/mtd0 of=/tmp/mtd0
dd if=/dev/mtd1 of=/tmp/mtd1
dd if=/dev/mtd2 of=/tmp/mtd2
dd if=/dev/mtd3 of=/tmp/mtd3
dd if=/dev/mtd4 of=/tmp/mtd4
dd if=/dev/mtd5 of=/tmp/mtd5
dd if=/dev/mtd6 of=/tmp/mtd6
dd if=/dev/mtd7 of=/tmp/mtd7
dd if=/dev/mtd8 of=/tmp/mtd8
dd if=/dev/mtd9 of=/tmp/mtd9
dd if=/dev/mtd10 of=/tmp/mtd10
dd if=/dev/mtd11 of=/tmp/mtd11
dd if=/dev/mtd12 of=/tmp/mtd12
dd if=/dev/mtd13 of=/tmp/mtd13
dd if=/dev/mtd14 of=/tmp/mtd14
dd if=/dev/mtd15 of=/tmp/mtd15
dd if=/dev/mtd16 of=/tmp/mtd16
dd if=/dev/mtd17 of=/tmp/mtd17
dd if=/dev/mtd18 of=/tmp/mtd18
dd if=/dev/mtd19 of=/tmp/mtd19
mtd write /tmp/uboot-cmiot-ax18.bin /dev/mtd13
root@OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00180000 00020000 "0:SBL1"
mtd1: 00100000 00020000 "0:MIBIB"
mtd2: 00080000 00020000 "0:BOOTCONFIG"
mtd3: 00080000 00020000 "0:BOOTCONFIG1"
mtd4: 00380000 00020000 "0:QSEE"
mtd5: 00380000 00020000 "0:QSEE_1"
mtd6: 00080000 00020000 "0:DEVCFG"
mtd7: 00080000 00020000 "0:DEVCFG_1"
mtd8: 00080000 00020000 "0:RPM"
mtd9: 00080000 00020000 "0:RPM_1"
mtd10: 00080000 00020000 "0:CDT"
mtd11: 00080000 00020000 "0:CDT_1"
mtd12: 00080000 00020000 "0:APPSBLENV"
mtd13: 00180000 00020000 "0:APPSBL"
mtd14: 00180000 00020000 "0:APPSBL_1"
mtd15: 00080000 00020000 "0:ART"
mtd16: 03040000 00020000 "rootfs_1"
mtd17: 03040000 00020000 "rootfs"
mtd18: 00080000 00020000 "0:ETHPHYFW"
mtd19: 00a40000 00020000 "0:CTCCFW"
大分区
mtd write /tmp/ax18-mibib.bin /dev/mtd1
mtd write /tmp/uboot-cmiot-ax18-mod.bin /dev/mtd13
和目 ax18 刷入不死教程:
mtd write /tmp/uboot-cmiot-ax18.bin /dev/mtd13
(可选)合并分区版本:rootfs 分区达 96m
mtd write /tmp/ax18-mibib.bin /dev/mtd1
mtd write /tmp/uboot-cmiot-ax18-mod.bin /dev/mtd13
下载地址:https://mbd.pub/o/bread/YpaZlp5u
进去后,看着还行,总感觉和别人发出来的图片不是一样的,心里痒痒,直接就通过uboot刷入了下面帖子里的固件
https://www.right.com.cn/forum/thread-8263498-1-1.html
这时候就出事了,只能进入uboot,进不去系统了
uboot对比breed只有一个上传固件,功能不多
之前玩过k2,所以买过编程器和ttl转usb
网上百度 一下zn-m2(和目ax18)救砖,没搜到几个,继续搜 ttl救砖 看到一个大佬发出来的教程
https://r0yanx.com/2023/05/03/%E5%85%86%E8%83%BDZN-M2%E6%95%91%E7%A0%96%E8%AE%B0/
原文
前言
大概是自己做固件的时候忘了配置屏蔽 WiFi,在更新 ZN-M2 的时候刷入了一个带 WiFi 的 openwrt 固件,好家伙,直接开机进不了后台,勉强能 SSH 登录但几乎无法操作,查看内存剩余 4MB,想 scp 复制新的固件进去都会中断。然后进入不死 uboot 想重新刷,但是刷入任何固件均失败了,包括 AX18 和 ZN-M2 的,最终无奈进行 TTL 大法刷回原版固件。
正文
首先拆机、TTL 接线,这些基操在之前的文章都说过了,可以参考:小米 CR8806 免拆 TTL 刷机
TTL 接线,老规矩:
RXD -> TXD
GND -> GND
TXD -> RXD
插电后 TTL 开始滚屏,瞬间狂按 esc 进入命令行。
一开始刷入 mtd17 没有恢复成功,然后刷入 mtd16 恢复了。
可以用 smeminfo 看下分区表,mtd16 是 rootfs 分区。
刷入和普通 TTL 刷机一样,直接把 mtd16 文件通过 tftp 传入路由器内存,然后写入闪存:
setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.10 # tftp服务器地址
tftpboot mtd16
flash rootfs
saveenv
完了重启之后就能进入原版固件后台了。
这里将自己的步骤详细记录
使用ch340
驱动地址
https://blog.csdn.net/qq_52102933/article/details/126839474
RXD -> TXD
GND -> GND
TXD -> RXD
插入usb,找到串口,我这里使用的4,忘记截图了
波特率 115200
设置本机ip地址
打开 tftp服务器
备份里就是上面的mtd文件
setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.100 # tftp服务器地址
tftpboot mtd16
flash rootfs
saveenv
断电,开机,将网口设置为自动获取
熟悉的界面回来了,继续重复上面的步骤
刷入底包,正常进入
接下来的uboot文件就不一样了
地址:https://www.right.com.cn/forum/thread-5717090-1-1.html
通过scp上传到路由tmp
mtd write /tmp/ax18-mibib.bin /dev/mtd1
mtd write /tmp/uboot-cmiot-ax18-mod.bin /dev/mtd13
再次刷入uboot
用牙签捅着菊花,然后再插电
进去uboot继续上传上面链接的小内存固件
等待自动重启,这次就成功了
感谢各位大佬的分享
上传不了附件,上传到网盘吧
https://shaonl.lanzoul.com/b0192nwoh
密码:6wlw
网口顺序对应
wan -lan-lan-lan
eth0-eth3-eth2-eth1
目前在用固件
https://www.right.com.cn/forum/thread-8262012-1-1.html
https://github.com/sdf8057/cloudbuild
放上两个软件IPK下载地址,要什么插件自己装
https://op.supes.top/packages/aarch64_cortex-a53/
https://op.dllkids.xyz/packages/aarch64_cortex-a53/
接下来试试这几个固件
https://www.right.com.cn/forum/thread-8237546-1-1.html (多播)
https://www.right.com.cn/FORUM/forum.php?mod=viewthread&tid=8248120&highlight=ax18(云编译)