4-bits ECC correction

Richard Weinberger richard at nod.at
Mon Jun 19 08:36:05 PDT 2017


Danesh,


Am 19.06.2017 um 16:55 schrieb Danesh Daroui:
> Thanks a lot for your answer.
> 
> Is there any document about how can we use software ECC with at least level 4 (4-bit ECC) or how it can be activated in the kernel? Also, is there any possible way to know what level of ECC is currently used by UBI/UBIFS or the NAND flash hardware itself?

UBI/UBIFS does not not ECC. The NFC or the Linux NAND core does.
See Documentation/devicetree/bindings/mtd/nand.txt on setting the ECC mode.

> What kind of incompatibility might occur? We are using quite old kernel (2.6.39.4) so would it be possible to use software ECC on this kernel as well or we need to update the kernel first 

Well, your bootloader has to implement Software ECC exactly the same way as Linux does.
Sorry, I don't remember when we merged software BCH.

Thanks,
//richard



More information about the linux-mtd mailing list