problem booting with Micron MT29F8G08ABABAWP ...
raespi
raespi at icid.cu
Fri Mar 14 14:45:05 EDT 2014
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;
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)
Basically setting it to a value of 218. I first tried a value of 218
and it didn't work, with a value of 128 I arrive at the prompt but not
very cleanly I presume:
nand: ONFI param page 0 valid
OOBSIZE4: 128
nand: ONFI flash detected
nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron
MT29F8G08ABABAWP), 1028
Bad block table found at page 262016, version 0x01
Bad block table found at page 261888, version 0x01
I'm currently having trouble booting the kernel from the
/dev/nand0.kernel partition, it boots fine from an SD partition meaning
the boot mechanism in barebox is fine. Still moving forward ...
On 03/13/2014 04:28 PM, Eric Bénard wrote:
> Hi,
>
> Le Thu, 13 Mar 2014 15:32:23 -0400,
> raespi <raespi at icid.cu> a écrit :
>> Hi ... I'm using barebox 2014.02.0 to boot with a clone of the mini2440
>> board using the MT29F8G08ABABAWP NAND.
>>
>> I'm getting the following error:
>>
>> barebox 2014.02.0 #1 Thu Mar 13 15:28:57 CDT 2014
>>
>> Board: <NULL>
>> nand: ONFI param page 0 valid
>> nand: ONFI flash detected
>> nand: NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron
>> MT29F8G08ABABAWP), 1024
>> nand: No oob scheme defined for oobsize 224
>> BUG: failure at drivers/mtd/nand/nand_base.c:3357/nand_scan_tail()!
>> BUG!
>> no stack data available
>> DIVN_UPLL0
>> MPLLVal [M:61h,P:1h,S:2h]
>> CLKDIVN:7h
>>
>> After this poing the board gets resetted back to the original point. I
>> can never get to the barebox prompt.
>>
>> Any ideas on how to fix this ??
>>
> you may need to add support for 4k+224 page size to your nand
> controller.
> For example this was done for i.MX in comit
> 632c45795065e6a7471ab82be38e808eb6204341
>
> Eric
>
>
More information about the barebox
mailing list