Re: [U-Boot] [U-boot] question about nand_scan_bbt()

2014-07-18 Thread Scott Wood
On Wed, 2014-07-09 at 18:27 +0800, tiger...@via-alliance.com wrote: > Hi, Scott: > > I have a question about nand_scan_bbt() function in > drivers/mtd/nand/nand_bbt.c . > > …… > > len = (1 << this->bbt_erase_shift); // bbt_erase_shift = 18 > (256KB) > > len += (len >>

[U-Boot] [U-boot] question about nand_scan_bbt()

2014-07-09 Thread TigerLiu
Hi, Scott: I have a question about nand_scan_bbt() function in drivers/mtd/nand/nand_bbt.c . .. len = (1 << this->bbt_erase_shift); // bbt_erase_shift = 18 (256KB) len += (len >> this->page_shift) * mtd->oobsize; buf = vmalloc(len); ..