[U-Boot] Errors on NAND chip
chris warth
cswarth at gmail.com
Wed Mar 8 16:51:07 UTC 2017
I am running into errors after creating a UBI filesystems on our NAND
device. Can anyone suggest where I might look for the error?
A summary is included below and complete debug logs can be seen at
https://gist.github.com/263e422eefa1401db68565fa3e4149bd
After reset, the low-level `nand` commands work well. However if I
format the partition for UBI with `ubi part`, the low-level `nand`
calls start to fail. Calling `ubi part` again results in tons of ECC
errors. I've confirmed that this
sequence of commands works without error on a similar board with a
different nand chip.
The Cypress S34MS04G2 nand chip and is identified as a
"AMD/Spansion S34MS04G2" under Linux. The SOC is an LS1046A which has
an embedded freescale flash controller.
Thank you in advance for any advice.
=> na nd erase.part nand_uboot
Erasing at 0xfe0000 -- 100% complete.
OK
=> nand read 82000000 nand_uboot 40000
262144 bytes read: OK
=> ubi part nand_uboot
ubi0: attached mtd1 (name "mtd=0", size 16 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 128, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 0
ubi0: available PEBs: 44, total reserved PEBs: 84, PEBs reserved for
bad PEB handling: 80
=> nand read 82000000 nand_uboot 40000
NAND read from offset 0 failed -74
0 bytes read: ERROR
Command failed, result=1
=> ubi part nand_uboot
[...]
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 2048
bytes from PEB 0:2048, read only 2048 bytes, retry
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 2048
bytes from PEB 0:2048, read only 2048 bytes, retry
ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 2048
bytes from PEB 0:2048, read only 2048 bytes, retry
ubi0 error: ubi_io_read: error -74 (ECC error) while reading 2048
bytes from PEB 0:2048, read 2048 bytes
[...]
ubi0 error: ubi_read_volume_table: the layout volume was not found
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -22
UBI error: cannot attach mtd1UBI error: cannot initialize UBI, error
-22UBI init error 22
Command failed, result=22
More information about the U-Boot
mailing list