ubifs image file confusion!

Nancy nancydreaming at gmail.com
Wed May 14 23:18:40 EDT 2008


On 5/14/08, Artem Bityutskiy <dedekind at infradead.org> wrote:
> If you want me to understand you and properly answer, you should try to
> formulate things better. I understand language difficulties and this is
> all right. I just ask you to try better, may be re-reading what you have
> composed and trying imagine me reading your mail and imagine which part
> could be not very clear for me.
     OK, I admit I was in a hurry and have tried to use my bad English
to explain the issue, but failed. Then I think about to plase the
"ubidumpvol"  source code and tell you a way to reproduce the problem
I met. Thank God we still have a common language C. 90% of
"ubidumpvol" code are direct copy-plase from your tool "ubiupdatevol".
It should be no problem for you to quickly grasp its idea. But you
still push me hard to explain everything in English which makes me
disappointed and a little angry.

> >    As I fool understand which I have plase after that mail:
> Cannot parse this sentence, sorry.
        I mean I do not know the UBIFS implent detail. I just guess,
maybe it designed that way.  If you still can't parse, or still have
questions about that, please just ignore the whole. I already run out
of my brain to think about a suitable way to express.

> > pls:
> >       1. ubinize tool do not check whether vol_id or vol_name's
> > uniqueness which may cause unexpected error.
>
> OK, will be fixed but a bit later.
   Thanks!

> >       2. ubinize tool's volume size check do not aligned to LEB size.
> Cannot parse this.
>
> > I can't use an image file which taken up of its all volume space.
> > eg. LEB size =258048  , .cfg defined vol size = 100MiB ,
> > vfat.img(407LEBs)     fail
> > it say something like the image file size exceed the volume size. I'm
> > home now, can't plase the original error message here. sorry.
> Sorry, do not understand this.

$ cat ubinize.cfg
[ubifs]
mode=ubi
image=vfat.dump
vol_id=0
vol_size=100MiB
vol_type=dynamic
vol_name=vfat
vol_alignment=1

$ ./ubinize -o ubi.img ubinize.cfg -p 262144 -m 2048
ubinize: error!: error in section "vfat": size of the image file
"vfat.dump" is 105025536, which is larger then the volume size
104857600

LEB size = 258048,  volume 0 should contains 407 available lebs.
The volume size should be 407*258048 = 105025535  not 104857600.
The error message should not be triggered.

pls:
    You seems miss one issue
    # ubiupdatevol /dev/ubi0_0 rootfs.img (generated by mkfs.ubifs)
    # mount -t ubifs ubi0:rootfs /mnt/1
    # rm /mnt/1/* -rf
    # df
    The Use% of ubi0:rootfs is not 0%, but 2% which is unusual!


-- 
Best wishes,
Nancy



More information about the linux-mtd mailing list