[U-Boot] Nand dump and nand bad block disagree
jean-philippe francois
jp.francois at cynove.com
Tue Feb 28 15:34:10 CET 2012
Hi,
I have an omap3 based board with a micron 4Gbit large page nand attached.
when using software ecc, everything is fine.
When using hardware ecc, ecc is ok (ie u-boot and ROM bootloader agree),
but bad block detection is broken.
Here is an OOB dump
OOB:
ff 44 bb 1e ba 45 87 f7
f7 88 38 c7 d2 ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff
According to the code in drivers/mtd/nand_base.c, bad block checking
is done by reading OOB data at a particular position. For large page,
this is at NAND_LARGE_BADBLOCK_POS which is zero.
In the above OOB data, oob[0] is 0xff, so there is no reason
for this block to be considered as bad. How can I sort this ?
Jean-Philippe François
More information about the U-Boot
mailing list