mtdchar : writing image with oob and NOP=1

Matthieu CASTET matthieu.castet at
Mon Aug 2 04:21:49 EDT 2010


We need to write our bootloader with a special ecc (use by cpu rom).

For that we use MTD_MODE_RAW, write and MEMWRITEOOB. This work fine, but 
from my understanding this will do a first page program with oob set to 
0xff and then program again oob.

But some recent nand support only 1 program per page (NOP=1).
How can we program nand with NOP=1 with a custom ecc ?

 From what I see in mtdchar either datbuf is set (and oobbuf is null) or 
oobbuf is set (and datbuf is null).

So this mean we need to add an ioctl to do that ?


More information about the linux-mtd mailing list