[PATCH] UBI: Do not try to autoresize in readonly mode

Pali Rohár pali.rohar at gmail.com
Fri Jun 2 08:39:59 PDT 2017


On Friday 24 August 2012 18:09:16 Artem Bityutskiy wrote:
> On Fri, 2012-08-24 at 17:59 +0200, Pali Rohár wrote:
> > > Why do you need to use block2mtd? If you have an image for NOR
> > > flash, use mtdram, if it is for NAND - use nandsim. What
> > > prevents you from using mtdram or nandsim?
> > 
> > I do not know why, but copying 256 MB image to nandsim takes more
> > time than losetup & block2mtd & mount...
> 
> May be, how much more? Is that a show-stopper for you? If you copy
> with 'dd', try 'bs=2048' if you are simulating a device with a 2048
> bytes NAND page size.
> 
> But I guess you can patch block2mtd, I do not have objections
> (although it'll report about itself as NOR flash?), but I never used
> it and I am not sure how many bugs there are.

Hi! Years ago I wrote patches for block2mtd to allow specify write size 
and nand subpage shift. But I forgot to send them. I think they could be 
useful for other people, so rebased them on mainline kernel I will send 
them in few minutes.

-- 
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20170602/8d485467/attachment.sig>


More information about the linux-mtd mailing list