mtdchar : writing image with oob and NOP=1

Artem Bityutskiy dedekind1 at gmail.com
Tue Aug 24 04:02:31 EDT 2010


On Mon, 2010-08-02 at 10:21 +0200, Matthieu CASTET wrote:
> Hi,
> 
> 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 ?

Certainly not ioctl. MEMWRITEOOB should handle this and hide from users,
I think.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list