[U-Boot] [MX51EVK] u-boot ECC errors flashing NAND

Tiago Maluta tiago.maluta at gmail.com
Mon Jan 10 19:00:29 CET 2011


On Mon, Jan 10, 2011 at 1:21 PM, Jason Liu <liu.h.jason at gmail.com> wrote:
> Hi, Tiago Maluta,
>
> 2011/1/10 Tiago Maluta <tiago.maluta at gmail.com>:
>> Hi,
>>
>> I'm facing ECC errors when flashing u-boot on NAND on MX51EVK-based
>> board. U-Boot "nand write" command doesn't fill out-of-band (OOB)
>> bytes correctly. I noted this behavior after compare the same
>> u-boot.bin image flashed via ATK (proprietary software from
>> Freescale). I guess is something related to ECC timing.
>>
>> my logs:
>> http://farm6.static.flickr.com/5130/5320148028_7da19d3cf2_o.png
>> http://www.coding.com.br/wp-content/uploads/2011/01/nand-dump-fail.txt
>> http://www.coding.com.br/wp-content/uploads/2011/01/nand-dump-ok.txt
>
> I have looked at your log and it turns out that the issued is caused that BI
> SWAP unbalance when you do NAND read and write. BI SWAP is used to
> keep the NAND bad block indicator out of factory, otherwise, the bad block
> indicator will be overwritten with user data.
>

What's your suggestion(s) to fix that?

By now I'm comparing with $KERNEL/drivers/mtd/nand/mxc_nand.c [1] to
see how to add NFC v3 support on u-boot code.

[1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=drivers/mtd/nand/mxc_nand.c;h=214b03afdd482920adda308e51088092d884a2d1;hb=0c21e3aaf6ae85bee804a325aa29c325209180fd

--tm


More information about the U-Boot mailing list