From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas Date: Fri, 16 Apr 2010 11:39:59 -0600 Subject: [U-Boot] NAND ECC mixup? In-Reply-To: <4BC88867.1090004@mlbassoc.com> References: <4BC88867.1090004@mlbassoc.com> Message-ID: <4BC8A0EF.3060601@mlbassoc.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 ------------------------------------------------------------