开启telnet/ssh后登入查看mtd分区信息:
cat /proc/mtd
dev: size erasesize name
mtd0: 08000000 00020000 "spi0.1"
mtd1: 00100000 00020000 "BL2"
mtd2: 00040000 00020000 "Nvram"
mtd3: 00040000 00020000 "Bdata"
mtd4: 00200000 00020000 "Factory"
mtd5: 00200000 00020000 "FIP"
mtd6: 00040000 00020000 "crash"
mtd7: 00040000 00020000 "crash_log"
mtd8: 01e00000 00020000 "ubi"
mtd9: 01e00000 00020000 "ubi1"
mtd10: 03200000 00020000 "overlay"
备份固件并使用scp或sftp下载:
dd if=/dev/mtd0 of=/tmp/mtd0_spi0.bin
dd if=/dev/mtd1 of=/tmp/mtd1_BL2.bin
dd if=/dev/mtd2 of=/tmp/mtd2_Nvram.bin
dd if=/dev/mtd3 of=/tmp/mtd3_Bdata.bin
dd if=/dev/mtd4 of=/tmp/mtd4_Factory.bin
dd if=/dev/mtd5 of=/tmp/mtd5_FIP.bin
刷入uboot:
#验证md5
md5sum mt7986_redmi_ax6000-fip-fixed-parts-multi-layout.bin
#写入uboot
mtd write mt7986_redmi_ax6000-fip-fixed-parts-multi-layout.bin FIP
#再校验下是否完整
mtd verify mt7986_redmi_ax6000-fip-fixed-parts-multi-layout.bin FIP
断电按reset按钮启动设置固定ip段192.168.31.x,通过web刷入编译的immortalwrt固件。
后续相同固件在immortalwrt系统内通过sysupgrade升级:
标签:none