ECC configuration of NAND from Linux (MEMSETOOBSEL)
Gudjon I. Gudjonsson
gudjon at gudjon.org
Fri Jan 12 10:50:00 PST 2018
Hi Boris
Thanks for the answer.
> > I read your FAQ and found the reference to ioctl (MEMSETOOBSEL) [1]
> > but it seems to be removed from the kernel.
> > /*
> > * Note, the following ioctl existed in the past and was removed:
> > * #define MEMSETOOBSEL _IOW('M', 9, struct nand_oobinfo)
> > * Try to avoid adding a new ioctl with the same ioctl number.
> > */
> > I assume this is an error in the documentation but I wonder if you
> > know any solution to my problem?
>
> It's not something you can change dynamically. When you change the ECC
> config, it makes existing content unreadable. In order to change this
> setting you'll have to erase the whole flash and then change the ECC
> config in your DT or board file (note that not all drivers support
> adjusting the ECC strength/step-size).
I will have to accept that but can you please tell me how to change the
ECC strength if my driver supports it? My plan is to use swupdate and
update the system using an SD-card that is already installed but I could
not find any reference to changing the ECC strength.
I am using the Atmel SAMA5d36 CPU and Micron mt29F2G08abaeawp
NAND flash.
Regards
Gudjon
More information about the linux-mtd
mailing list