[ 1.893657] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.898898] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.909914] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 1.916401] nand: Micron MT29F4G08ABAFAH4
[ 1.920488] nand: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 256
[ 1.928405] Using OMAP_ECC_BCH16_CODE_HW ECC scheme
[ 1.933673] 10 fixed-partitions partitions found on MTD device omap2-nand.0
[ 1.940713] Creating 10 MTD partitions on "omap2-nand.0":
[ 1.946201] 0x000000000000-0x000000040000 : "NAND.SPL"
[ 1.955018] 0x000000040000-0x000000080000 : "NAND.SPL.backup1"
[ 1.964302] 0x000000080000-0x0000000c0000 : "NAND.SPL.backup2"
[ 1.973563] 0x0000000c0000-0x000000100000 : "NAND.SPL.backup3"
[ 1.982705] 0x000000100000-0x000000180000 : "NAND.u-boot-spl-os"
[ 1.992117] 0x000000180000-0x000000280000 : "NAND.u-boot"
[ 2.001076] 0x000000280000-0x0000002c0000 : "NAND.u-boot-env"
[ 2.010105] 0x0000002c0000-0x000000300000 : "NAND.u-boot-env.backup1"
[ 2.019813] 0x000000300000-0x000000a00000 : "NAND.kernel"
[ 2.031123] 0x000000a00000-0x000020000000 : "NAND.file-system"
root@am335x-evm:~/am335x/boot# flash_erase /dev/mtd0 0 0
Erasing 256 Kibyte @ 0 — 100 % completeroot@am335x-evm:~/am335x/boot#
root@am335x-evm:~/am335x/boot# nandwrite -p /dev/mtd0 MLOWriting data to block 0 at offset 0x0
libmtd: error!: cannot write 4096 bytes to mtd0 (eraseblock 0, offset 4096)
error 5 (Input/output error)
Erasing failed write from 00000000 to 0x03ffff
libmtd: error!: MEMERASE64 ioctl failed for eraseblock 0 (mtd0)
error 5 (Input/output error)
nandwrite: error!: /dev/mtd0: MTD Erase failure
error 5 (Input/output error)
nandwrite: error!: Data was only partially written due to error
error 5 (Input/output error)
root@am335x-evm:~/am335x/boot#
yongqing wang:
参考这个帖子:e2e.ti.com/…/342189
yongqing wang:
回复 yongqing wang:
及这个帖子:e2e.ti.com/…/304943