Programming partition from AM3505 on my Nand flash (using BCH4_SW) and got the following error message twice on the same unit, everything seems fine when retrying,
====
Writing data to block 135 at offset 0x10e0000
Writing data to block 136 at offset 0x1100000
Writing data to block 137 at offset 0x1120000
libmtd: error!: cannot write 2048 bytes to mtd6 (eraseblock 137, offset 124928)
error 5 (Input/output error)
Erasing failed write from 0x1120000 to 0x113ffff
libmtd: error!: bad eraseblock number 131072, mtd6 has 1600 eraseblocks
nandwrite: error!: /dev/mtd6: MTD Erase failure
error 22 (Invalid argument)
Data was only partially written due to error
====
Doesn't seem the nand is faulty, the commands are:
flash_erase /dev/mtd6 0 0
nandwrite -p /dev/mtd6 $PathToRootfs
Regards,
Yakir