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 <scottw...@freescale.com> 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. If it's an 8-bit NAND, I don't see why it would be looking for anything but the first byte by default. Overriding should not be necessary. -Scott _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot