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

Marc Kleine-Budde mkl at pengutronix.de
Wed Sep 23 10:58:38 EDT 2020


On 1/4/19 9:53 AM, Boris Brezillon wrote:
> Hi Richard,
> 
> On Thu, 03 Jan 2019 21:43:13 +0100
> Richard Weinberger <richard at nod.at> wrote:
> 
>>> It's true that you could change the vid offset with ubiattach but that 
>>> require you know that the LEB missmatch error you get is fixed by a 
>>> different vid offset and you need to understand what that value should be.
>>> This way you only need to match the basic mtd parameters and the rest 
>>> will just work automatically.  
>>
>> I agree that adding a parameter to nandsim to control subpage behavior
>> is nice.
>> But please keep in mind that nandsim will never perfectly match your hardware.
>>
>> Boris, unless you have objections I'm fine to control NAND_NO_SUBPAGE_WRITE
>> in nandsim using a module parameter.
> 
> Hm, I'd really like to have nandsim replaced by something more generic
> at some point (mtdsim or MTD/NAND emulation in qemu using a virtio
> iface), so adding new features/option to this driver is something I'd
> like to avoid. This being said, this new MTD/NAND emulation
> infrastructure is not there yet, and I don't think I'll have time to
> work on it (I started working on mtdsim a while back, and someone took
> over this work, but it stopped at some point).
> 
> To sum-up, if you think this is absolutely necessary (given the
> discussion I'm not convinced it is) I'm okay to add this module param,
> but I'd prefer if people were working on a solution to replace all
> those emulation layers we have right now (mtdram, nandsim, ...).

Sorry for picking up this old thread, but is there a change to get this patch
upstream? It works and solved my problem of mounting a NAND dump of an UBI/UBIFS
from an imx6 (2k page size/no sub pages).

I think it doesn't apply clearly to current linus/master, but rebasing is
trivial. I can send a v3.

regards,
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/20200923/abaf58dd/attachment.sig>


More information about the linux-mtd mailing list