From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Tue, 9 Aug 2011 13:33:47 -0500 Subject: [U-Boot] 4-bit ECC (BCH) support for NAND In-Reply-To: References: Message-ID: <4E417D8B.9090106@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 On 08/09/2011 04:41 AM, Hitz, Christian wrote: > Hi, > > we are looking to change the NAND flash part on our custom board > (AT91SAM9G20-EK based). The new part requires at least a 4-bit ECC > algorithm (e.g. BCH). As our processor has no hardware ECC > capabilities the ECC has to be calculated in software. > > The Linux kernel has support for BCH ECC since 2.6.39. Has U-Boot > support for this kind of ECC algorithm? E.g. Could we use U-Boot to > write a kernel and rootfs with matching ECC into the flash? It has not been aded to U-Boot yet, but U-Boot's NAND code is derived from Linux's, so it shouldn't be too hard to bring the Linux BCH code over. -Scott