From: Tom Rini Date: Sun, 10 May 2015 10:09:20 -0400 Subject: [U-Boot] [U-Boot, 4/6] omap3: overo: Use software BCH8 ECC for NAND In-Reply-To: <1430263075-27682-5-git-send-email-ashcharles@gmail.com> References: <1430263075-27682-5-git-send-email-ashcharles@gmail.com> Message-ID: <20150510140920.GW5267@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Apr 28, 2015 at 04:17:53PM -0700, Ash Charles wrote: > Overo COMs have NAND flash that requires 4-bit ECC or better except for > the first sector which can use 1-bit ECC. The boot ROM expects to load > a payload from NAND written using 1-bit hardware-based ECC. In short, > write SPL to NAND something like this (4 times for redundancy): > #> nandecc hw > #> nand write ${loadaddr} 0x0 ${filesize} > #> nand write ${loadaddr} 0x20000 ${filesize} > #> nand write ${loadaddr} 0x40000 ${filesize} > #> nand write ${loadaddr} 0x60000 ${filesize} > > Then, switch back to software-based BCH8 for everything else: > #> nandecc sw bch8 > > After [1], enlarge the max size of the SPL so the BCH code can fit. > > [1] https://www.mail-archive.com/u-boot at lists.denx.de/msg163912.html > > Signed-off-by: Ash Charles Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: