[U-Boot] NAND ECC mixup?

Gary Thomas
2010-04-16T17:39:59Z

On 04/16/2010 09:55 AM, Gary Thomas wrote:
> I'm having trouble with NAND ECC on my OMAP/3530 platform. It
> seems that U-Boot and Linux don't agree on the ECC patterns for
> a given set of data.
>
> In particular, if I create the U-Boot environment in NAND, then
> update it via fw_setconfig in Linux, U-Boot is no longer happy
> with the ECC bits.
>
> I noticed that the file drivers/mtd/nand/nand_ecc.c has changed
> dramatically in the Linux sources. Could this be the problem?
>
> My code is based on git://git.denx.de/u-boot.git
> 15fba3279b56333bdb65ead366f82c945ed320d1 ppc/85xx: Disable all async interrupt sources when we boot
> My Linux kernel is 2.6.31 or newer
>
> I looked in the latest tree and didn't see anything relevant.
> Am I missing something?

This turns out to a misconfiguration of 'CONFIG_MTD_NAND_ECC_SMC'
My Linux configuration had it, U-Boot did not.

That said, CONFIG_MTD_NAND_ECC_SMC is incompatible with the version
of X-Loader I'm running, so it's just a matter of disabling this in
Linux.

Thanks

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------