[U-Boot] 4-bit ECC (BCH) support for NAND

Scott Wood scottwood at freescale.com
Tue Aug 9 20:33:47 CEST 2011


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



More information about the U-Boot mailing list