[U-Boot] [PATCH v2 2/3] Fix 2k page size NAND for iMX27

Eric Bénard eric at eukrea.com
Fri Jul 17 08:06:18 CEST 2009


Scott Wood a écrit :
> On Wed, Jul 15, 2009 at 05:18:40PM +0200, Eric Benard wrote:
>> +	if (pdata->is2k) {
>> +		host->pagesize_2k = 1;
>> +		NFMS |= (1 << NFMS_BIT);
>> +		this->badblock_pattern = &smallpage_memorybased;
> 
> Why are you using the small-page badblock pattern with large pages?
> 
that's what Freescale is doing in its Linux BSP and it doesn't work 
without, at least on my board (8 bits width NAND):

	if (!this->badblock_pattern) {
		if (mtd->writesize == NAND_PAGESIZE_2KB)
			this->badblock_pattern = &smallpage_memorybased;
		else
			this->badblock_pattern = (mtd->writesize > 512) ?
			    &largepage_memorybased : &smallpage_memorybased;
	}

Eric


More information about the U-Boot mailing list