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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot