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

Marc Kleine-Budde mkl at pengutronix.de
Thu Sep 24 06:56:45 EDT 2020


On 9/24/20 12:28 PM, Richard Weinberger wrote:
>>> 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.

\o/

> 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 for the explanation!

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20200924/33d6b531/attachment.sig>


More information about the linux-mtd mailing list