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

Artem Bityutskiy dedekind1 at gmail.com
Fri Aug 24 11:57:01 EDT 2012


On Fri, 2012-08-24 at 17:48 +0200, Pali Rohár wrote:
> > > BTW, is there userspace tool for unpacking data from ubifs
> > > image without need to simulate nand device in kernel?
> > 
> > Unfortunately no.
> 
> Ok. I have patch for block2mtd.ko which allows me to mount ubifs 
> image in way: losetup --> block2mtd --> ubiattach --> mount 
> without nandsim. I needed to patch block2mtd, because ubi code 
> needs correct erase size, write size nand subpage shift and full 
> image size. So I added params for these properties in block2mtd 
> code - and it working. But I do not know if this is correct way, 
> but I can send my patch.

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?


-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120824/fbd21f91/attachment-0001.sig>


More information about the linux-mtd mailing list