problem booting with Micron MT29F8G08ABABAWP ...

Eric Bénard eric at eukrea.com
Fri Mar 14 16:18:58 EDT 2014


Hello,

Le Fri, 14 Mar 2014 14:45:05 -0400,
raespi <raespi at icid.cu> a écrit :

> Hello again ... diving through the drivers/mtd/nand/nand_base.c code I 
> managed to boot with this little modification in the 
> nand_flash_detect_onfi() function just before exiting from it:
> 
>      if ( mtd->oobsize > 128 )
>        mtd->oobsize = 128;
> 
then you tell your flash has an OOB of 128 when it has more ...

> Apparently the only allowed oobsizes are 8, 16, 64 and 128 according to 
> the nand_scan_ident() function.  I followed Eric's advice in seeing how 
> the i.Mx manages it and it's something like this:
> 
> NFC_V3_CONFIG2_SPAS(((mtd->oobsize > 218) ?
>              218 : mtd->oobsize) >> 1)
> 
that's specific to the i.MX NAND controller : you need to adapt the
code of _your_ CPU's NAND controller to get it to properly support 4k
page flashes.

Eric



More information about the barebox mailing list