[U-Boot] ECC/OOB question for kwbimage/openrd

Thomas Herrmann THerrmann at ADwin.de
Mon Feb 17 13:22:54 CET 2014


I am using a kirkwood-based CPU and u-boot 2013.07 (problem is probably
not specific to the u-boot version).

When I program u-boot using jtag, I use the "oob_softecc_kw" option to
write the image. U-boot boots fine and the bootROM register of the CPU
shows no ECC errors.

When I flash the bootloader in u-boot (standard "nand write"), the wrong
ECC algorithm is used, and the bootROM shows ECC errors (but u-boot
boots fine as long as no bits flip in the flash).

I have already tried NAND_ECC_MODE default, rs and hamming in mkimage,
with no success.

I guess I could read out the oob data with the correct ecc checksums
from the image written by jtag and then use u-boots write.oob to flash
the bootloader, but that seems to be an ugly workaround.

Any ideas?

Regards
Thomas



More information about the U-Boot mailing list