[U-Boot] Nand dump and nand bad block disagree

Mike Frysinger vapier at gentoo.org
Wed Feb 29 23:54:36 CET 2012


On Wednesday 29 February 2012 17:37:32 Scott Wood wrote:
> On 02/29/2012 04:34 PM, Mike Frysinger wrote:
> > On Wednesday 29 February 2012 14:09:44 Scott Wood wrote:
> >> On 02/29/2012 01:06 PM, Mike Frysinger wrote:
> >>> On Wednesday 29 February 2012 04:02:39 jean-philippe francois wrote:
> >>>> Le 29 février 2012 00:40, Scott Wood a écrit :
> >>>>> Is this a 16-bit NAND?  If so, the first two bytes have to be 0xffff,
> >>>>> unless the controller driver defines the bad block pattern
> >>>>> differently.
> >>>> 
> >>>> It is an 8 bit nand. The badblock patern can be redefined by the
> >>>> controller driver to be different from the one in nand_base.c ? Do you
> >>>> have an example of this ?
> >>> 
> >>> look at the Blackfin nand driver (in u-boot and linux).  we have to
> >>> override the badblock layout because our on-chip boot rom expects
> >>> something other than what linux uses.
> >> 
> >> But be careful when doing this -- it really should match what
> >> manufacturers will write.
> > 
> > yep
> > 
> > on the Blackfin side, nothing to be done now.  the rom team didn't
> > consult with the linux team before implementing things, and these roms
> > are fixed in the processor, and they can't change now without breaking
> > backwards compat.
> 
> Do you migrate the bad block markers to the new location prior to using
> a chip?

we leave that as an "exercise for the user" ;)

this OOB layout is only used when the processor is booting directly from NAND, 
so the layout already has to be adjusted in order for it to boot at all.  if 
you aren't booting from NAND, we recommend to customers to stick with the 
standard OOB layout.  so there isn't really a point in time where we could add 
code to automatically migrate layouts.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120229/950cd5a4/attachment.pgp>


More information about the U-Boot mailing list