[U-Boot] Enabling nand createbbt command

Scott Wood scottwood at freescale.com
Thu Mar 8 21:02:04 CET 2012


On 03/08/2012 01:38 PM, Bud Miljkovic wrote:
>> -----Original Message-----
>> From: Scott Wood [mailto:scottwood at freescale.com]
>> Sent: Friday, 9 March 2012 5:54 a.m.
>> To: Bud Miljkovic
>> Cc: u-boot at lists.denx.de
>> Subject: Re: [U-Boot] Enabling nand createbbt command
>>
>> The BBT gets created automatically if it does not exist, provided the
>> NAND controller driver asks for it.  Why do you need an explicit
>> command?
> 
> I do not necessarily need an explicit command.  I wanted to rebuild NAND
> BBT after scrubbing it.  Is there another way to do that?

It should happen automatically when nand_erase_opts() calls
chip->scan_bbt(), provided the driver set the NAND_USE_FLASH_BBT flag,
and that NAND_BBT_CREATE/NAND_BBT_WRITE are set in the nand_bbt_descr
(this is the case if the driver doesn't override the default
nand_bbt_descr).

Are you not seeing it happen?  What version of U-Boot are you using,
with which NAND controller driver?

-Scott



More information about the U-Boot mailing list