public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Nand dump and nand bad block disagree
@ 2012-02-28 14:34 jean-philippe francois
  2012-02-28 23:40 ` Scott Wood
  0 siblings, 1 reply; 10+ messages in thread
From: jean-philippe francois @ 2012-02-28 14:34 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-02-29 23:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-28 14:34 [U-Boot] Nand dump and nand bad block disagree jean-philippe francois
2012-02-28 23:40 ` Scott Wood
2012-02-29  9:02   ` jean-philippe francois
2012-02-29 19:06     ` Mike Frysinger
2012-02-29 19:09       ` Scott Wood
2012-02-29 22:34         ` Mike Frysinger
2012-02-29 22:37           ` Scott Wood
2012-02-29 22:54             ` Mike Frysinger
2012-02-29 23:14               ` Scott Wood
2012-02-29 19:11     ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox