[2015-01-26 16:29] │ entry #4366

小米路由器Mini 备份SN方法

2015 年 1 月 26 日 │ 网络与NAS │ 1 评论 │ 阅读 14

 

比较一下与PandoraBox固件下分区情况:
dev: size erasesize name
mtd0: 00030000 00010000 “u-boot”
mtd1: 00010000 00010000 “u-boot-env”
mtd2: 00010000 00010000 “Factory”
mtd3: 01000000 00010000 “fullflash”
mtd4: 00f80000 00010000 “firmware”
mtd5: 00110000 00010000 “kernel”
mtd6: 00e50000 00010000 “rootfs”
mtd7: 008c0000 00010000 “rootfs_data”
mtd8: 00020000 00010000 “panic_oops”
mtd9: 00010000 00010000 “culiang-crash”
mtd10: 00010000 00010000 “culiang-reserved”
mtd11: 00010000 00010000 “culiang-Bdata”

备份(u盘挂载点是/mnt/sda1)
dd if=/dev/mtd0 of=/tmp/Bootloader.bin
dd if=/dev/mtd1 of=/tmp/Config.bin
dd if=/dev/mtd11 of=/tmp/Bdata.bin

还原
mtd -r write /tmp/Config.bin u-boot-env
mtd -r write /tmp/Bdata.bin culiang-Bdata

1 条回声 // ls ~/inboxes/

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。