[PATCH v2] mtd: rawnand: nandsim: Add support to disable subpage writes.

Richard Weinberger richard at nod.at
Thu Sep 24 06:28:12 EDT 2020


----- Ursprüngliche Mail -----
> Doh! Thanks for the input, this is the option I needed to properly attach the
> UBI! \o/

:-)

>> This is the way I deal with subpage "issues" when inspecting ubi/ubifs
>> images on nandsim.
> 
> One question (rather academic, I don't want to do that): Does the UBI/UBIFS do
> sub-page writes on the nandsim? Is the resulting NAND image still compatible if
> I write it to the original device, that doesn't do subpage writes?

Since nandsim announces subpages, UBI will use them. Except you define your own
VID header offset.
UBIFS does not use subpages at all and UBI only for VID headers to be more storage
efficient.

So, ubiattach -O should completely fulfill your needs.

If all other parameters of the NAND match, and I guess so, otherwise ubiattach
would notice, the UBI image should also work on the target.
Modulo fastmap, if you have bad blocks.

Thanks,
//richard



More information about the linux-mtd mailing list