我正在尝试创建一个可以在工厂使用闪存编程器进行闪存的生产映像。我正在使用美光 51MB 的 nand 闪存。
我发现我迄今为止所采取的方法存在问题。
1)启动具有所有分区的开发板
IE
/dev/mtd0--> xloader
/dev/mtd1 -> uboot
/dev->mtd2 -> kernel
/dev/mtd3> root file system
/dev/mtd4 -> user application
now, I used nanddump -nof xloader.bin /dev/mtd0
nanddump -nof uboot.bin /dev/mtd1
nanddump -nof kernel.bin /dev/mtd2
nanddump -nof rootfs.bin /dev/mtd3
nanddump -nof apps.bin /dev/mtd4
cat /dev/mtd0 /dev/mtd1 /dev/mtd2 /dev/mtd3 /dev/mtd4 > golden_flash
当我在一个空闪存上刷新这个 Golden_flash 时,我首先从 RAM 运行 u-boot,然后
tftp golden_flash
nand erase all
nand write 0x82000000 golden_flash
它行不通。
启动后,我得到
mtd->read(0x1fc38 bytes from 0x60a03c8) returned ECC error
mtd->read(0xa7b0 bytes from 0x60b5850) returned ECC error
Empty flash at 0x060b584c ends at 0x060b6000
jffs2_scan_eraseblock(): Node at 0x060b618c {0x1985, 0xe022, 0x000000a7) has invalid CRC 0x5c3d15cb (calculated 0x5b9110fd)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x060b6190: 0x00a7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x060b6194: 0x15cb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x060b6198: 0x2e5b instead
mtd->read(0x59c bytes from 0x13eba64) returned ECC error
mtd->read(0x44 bytes from 0x13ec800) returned ECC error
mtd->read(0x7bc bytes from 0x13ec844) returned ECC error
mtd->read(0x558 bytes from 0x13ebaa8) returned ECC error
mtd->read(0x44 bytes from 0x13ec844) returned ECC error
mtd->read(0x514 bytes from 0x13ebaec) returned ECC error
mtd->read(0x44 bytes from 0x13ec888) returned ECC error
我从 u-boot 刷了镜像
有没有更好的方法来创建生产映像或为 NAND 闪存创建生产映像的正确方法?