From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Herrmann Date: Mon, 17 Feb 2014 13:22:54 +0100 Subject: [U-Boot] ECC/OOB question for kwbimage/openrd Message-ID: <5301FF1E.5000502@ADwin.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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