UBI/ubifs problem

Ricard Wanderlof ricard.wanderlof at axis.com
Thu Mar 8 00:09:56 EST 2012


On Wed, 7 Mar 2012, Artem Bityutskiy wrote:

> On Wed, 2012-03-07 at 17:26 +0100, Ricard Wanderlof wrote:
>> Is it possible to get mkfs.ubifs to create an image without specifying the
>> max-leb-count ? I.e. just to create an image that is as big as it has to
>> be.
>
> Has to be? :-) Not sure how to find this out. Basically the idea was
> that you know how big is has to be and translate that to
> --max-leb-count.

I think what I'm thinking about is that in the specialized case of ubifs 
used for a read-only file system, such as a root file system (without 
/etc, /var, and so on), it would be possible for mkfs.ubifs to create a 
file system, and use as many LEBs as it needs for the actual data. On a 
read-only file system there doesn't even have to be a journal, although I 
don't know if that is possible.

In that case one could simply feed the required directory structure to 
mkfs.ubifs, and it would create the file system image, and report how many 
LEBs are required in the flash.

> It broke compilation, the working one is attached.

Ok, I'll have a look at the new one instead.

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list