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

Pali Rohár pali.rohar at gmail.com
Fri Aug 24 11:48:18 EDT 2012


On Friday 24 August 2012 18:29:31 Artem Bityutskiy wrote:
> On Sat, 2012-08-18 at 14:11 +0200, Pali Rohár wrote:
> > I'm sending small patch which skip autoresizing ubi in
> > readonly mode. I think it is really not good idea to try
> > resize in ro mode.
> 
> Hi, I've just pushed a similar patch to linux-ubi.git, is this
> fine with you? I've also CCed -stable.
> 

Hi, patch is OK. I tested it and working for me fine.

> > 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.

-- 
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/20120824/63fc928a/attachment.sig>


More information about the linux-mtd mailing list