From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 10 Nov 2008 12:33:25 -0600 Subject: [U-Boot] OMAP3 broken NAND hardware ECC generation In-Reply-To: <4917314A.50700@googlemail.com> References: <4917314A.50700@googlemail.com> Message-ID: <49187E75.7020701@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dirk Behme wrote: > I'm not sure, but it seems to me, that omap_enable_hwecc() is never > called. An printf() in this function is not shown. > > Maybe call of nand_scan_tail(mtd); in omap_nand_switch_ecc() resets > anything? Or any other idea? You never cleared out nand->ecc.write_page (and others), so nand_scan_tail() saw that they were non-NULL and assumed you were overriding them, and you got the soft-ECC versions of those, but the hard-ECC calculate method. -Scott