|
楼主 |
发表于 2022-4-7 08:29
|
显示全部楼层
进一步研究发现可通过自带的
nanddump -p -f mtd0.bin /dev/mtd0 //dump出nand flash /dev/mtd0数据并保存到 mtd0.bin
/usr/data # nanddump
Usage: nanddump [OPTIONS] MTD-device
Dumps the contents of a nand mtd partition.
--help Display this help and exit
--version Output version information and exit
--bb=METHOD Choose bad block handling method (see below).
-a --forcebinary Force printing of binary data to tty
-c --canonicalprint Print canonical Hex+ASCII dump
-f file --file=file Dump to file
-l length --length=length Length
-n --noecc Read without error correction
--omitoob Omit OOB data (default)
-o --oob Dump OOB data
-p --prettyprint Print nice (hexdump)
-q --quiet Don't display progress and status messages
-s addr --startaddress=addr Start address
--bb=METHOD, where METHOD can be `padbad', `dumpbad', or `skipbad':
padbad: dump flash data, substituting 0xFF for any bad blocks
dumpbad: dump flash data, including any bad blocks
skipbad: dump good data, completely skipping any bad blocks (default)
工具备份固件
使用
flash_eraseall -j /dev/mtd0 //jff2格式化mtd0分区
擦除分区
猜测写入应该需要用U盘拷贝nandwrite或者进入uboot烧录。
从分区信息看,应该有两份固件,弄坏一个会进入另一个。
|
|