[U-Boot] [PATCH] add explicit bbt creation to commandline

Scott Wood scottwood at freescale.com
Fri Feb 12 19:53:46 CET 2010


Steven Zedeck wrote:
> First of all, I inherited much of this code, especially the NAND-related
> stuff. I've never needed to go into this portion of the code.
> 
> It seems we are using the mtd driver as all our files dealing with nand are
> in drivers/mtd/nand. The only place I see NAND_USE_FLASH_BBT being used is
> in nand_bbt.c in nand_default_bbt. I see this:
> 
> this->options |= NAND_USE_FLASH_BBT;
> return nand_scan_bbt (mtd, &agand_flashbased);
> 
> Is this what you are referring to?

No, I mean in the NAND driver for your specific hardware 
(fsl_elbc_nand.c, mxc_nand.c, ndfc_nand.c, etc).

> Also, once we get the BBT created, does the code that loads Linux use that
> info ?

The BBT is created on the flash.  Linux runs pretty much the same code 
as u-boot and will use the on-flash BBT if its NAND driver specifies 
NAND_USE_FLASH_BBT.  This isn't about in-memory BBTs.

-Scott


More information about the U-Boot mailing list