[U-Boot] [PATCH] OneNAND: Runtime badblock support
Kyungmin Park
kmpark at infradead.org
Tue Jul 21 13:03:40 CEST 2009
Hi,
On Tue, Jul 21, 2009 at 7:50 PM, Wolfgang Denk<wd at denx.de> wrote:
> Dear Kyungmin Park,
>
> In message <20090721095528.GA23408 at july> you wrote:
>> At bootloader, we don't need to read full page. It takes too long time.
>> Instead it only read pages required for boot.
>> Of course, this patch reduces the boot time
>
> What does "don't need to read full page" mean?
It means all blocks at scanning time.
> when we read pages, we always read fullpages, don't we?
>
>> @@ -155,6 +192,11 @@ static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt)
>> block = (int)(offs >> (bbm->bbt_erase_shift - 1));
>> res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03;
>>
>> + if (this->options & ONENAND_RUNTIME_BADBLOCK_CHECK) {
>> + if (res == 0x02)
>> + res = read_page_oob(mtd, offs, this->oob_buf);
>> + }
>> +
>
> ONENAND_RUNTIME_BADBLOCK_CHECK is a new #define, right? It should be
> documented (for example in the README, or even better in
> doc/README.OneNand or so).
It's OneNAND specific option. Umm I'll try to describe it
Thank you,
Kyungmin Park
More information about the U-Boot
mailing list