
17 Jul
2009
17 Jul
'09
8:06 a.m.
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