From: Steve Finney Date: Mon, 1 May 2006 09:25:19 -0700 (GMT-07:00) Subject: [U-Boot-Users] NAND ECC: S3C2410 Message-ID: <13367763.1146500720178.JavaMail.root@elwamui-ovcar.atl.sa.earthlink.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >From: Markus Klotzb???cher >I can't see any ecc specific code in cmd_nand.c. Most likely you should >not have to change anything in this file. In 1.1.4 there's a bunch of code in cmd_nand.c under #ifdef MTD_NAND_ECC (e.g., the nand_correct_data() routine) which assumes 3 ECC bytes for each 256 byte block, and 6 bytes of ECC stored overall per 512 byte block. The Samsung uses a scheme with 3 bytes per 512 byte block, leading me to believe the current code is specific to some other chip. sf