|
本帖最后由 hzjnet@163.com 于 2018-12-25 09:49 编辑
1 这是我的未刷写时的分区情况备份:
dev: size erasesize name
mtd0: 00080000 00020000 "boot"
mtd1: 00100000 00020000 "nvram"
mtd2: 00100000 00020000 "nvram_back"
mtd3: 00040000 00020000 "res_info"
mtd4: 00020000 00020000 "pro_info"
mtd5: 00020000 00020000 "dev_info"
mtd6: 02c00000 00020000 "linux"
mtd7: 029e1d94 00020000 "rootfs"
mtd8: 05000000 00020000 "brcmnand"
写了SPI后启动:
Device eth0: hwaddr FD-8C-0X-67-CA-0A, ipaddr 192.168.2.1, mask 255.255.255.0
gateway not set, nameserver not set
open 'nflash1.pro_info' error
Invalid boot block on disk
!! Could not open boot device
flash0.0: Device not found
Loader:raw Filesys:raw Dev:flash0.os File: Optionsnull)
Loading: Image compressed with unsupported method
Failed.
Could not load flash0.os:: Unsupported function
这里常见的写入cfe的命令是:
flash -noheader 192.168.2.10:mtd0.img nflash0.brcmnand
结果是:
Reading 192.168.2.10:mtd0.img: Done. 524288 bytes read
Programming...Failed.: I/O error
我认为明显不对:写入分区应该是nflash0.boot
结果是:
flash -noheader 192.168.2.10:mtd0.bin nflash0.boot
Reading 192.168.2.10:mtd0.bin: Done. 524288 bytes read
Programming...done. 524288 bytes written
但是继续写固件还是上面的错误提示
而flash -noheader 192.168.2.10:mtd0.img nflash1.boot
Reading 192.168.2.10:mtd0.img: Done. 524288 bytes read
Programming...done. 524288 bytes written
这个正常
CFE> flash -noheader 192.168.2.10:mtd0.img nflash2.boot
Reading 192.168.2.10:mtd0.img: Done. 524288 bytes read
Programming...done. 524288 bytes written
CFE> flash -noheader 192.168.2.10:mtd0.img nflash3.boot
Reading 192.168.2.10:mtd0.img: Done. 524288 bytes read
Programming...done. 524288 bytes written
这是啥情况喃?
2 请教如何看机器有几个可写固件的硬件喃? 哪个是SPI 哪个又是NAND? 空间大小又如何查看 ?其分区又如何查看喃?
3 再请教如何重写整个分区表? 而不是完整的分区
|
|