Skip to contentSkip to conversation

ECC/OOB question for kwbimage/openrd

U-Boot Thomas Herrmann 1 participant 1 message Feb 17, 2014

lore
Share & tools
lore
#0 lore raw

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