From: Ron Madrid Date: Thu, 16 Oct 2008 14:05:03 -0700 (PDT) Subject: [U-Boot] fsl_elbc_nand.c and nand_boot_fsl_elbc.c for large page devices In-Reply-To: <20081016191740.GA19008@ld0162-tx32.am.freescale.net> Message-ID: <2397.55380.qm@web83503.mail.sp1.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de So is there a particular convention for which bytes should be used within the OOB area for an ECC? I've looked for information on this but haven't been able to come up with anything. --- On Thu, 10/16/08, Scott Wood wrote: > From: Scott Wood > Subject: Re: [U-Boot] fsl_elbc_nand.c and nand_boot_fsl_elbc.c for large page devices > To: "Ron Madrid" > Cc: u-boot at lists.denx.de > Date: Thursday, October 16, 2008, 12:17 PM > On Tue, Oct 14, 2008 at 01:24:09PM -0700, Ron Madrid wrote: > > 1. I don't see anywhere that the AL (address > length, or number of > > address cycles) can be set to anything other than 2. > It appears to be > > hard coded in both files. > > Correct. AFAICT, setting AL to anything less than 2 is > just an > optimization for small flashes. Linux will make that > optimization, but > the way NAND devices are currently probed in u-boot makes > that awkward > (no opportunity to run code after size is known, but before > nand_scan_tail). > > > 2. nand_boot_fsl_elbc.c uses ECCM = 1 for large page > devices, but I > > don't see a place where fsl_elbc_nand.c sets ECCM > to 1 for similar > > devices. > > That looks like a bug. > > -Scott