* UBI: about ubinize tool
@ 2008-03-26 4:02 Nancy
2008-03-26 4:11 ` Nancy
2008-03-27 6:53 ` Artem Bityutskiy
0 siblings, 2 replies; 4+ messages in thread
From: Nancy @ 2008-03-26 4:02 UTC (permalink / raw)
To: linux-mtd
Hi,
As I know, ubinize can generate UBI images. I don't understand why
its .cfg file need parameter "image=ubifs.img", why can't it collect
the content
from the defined vol_id automatically and output to file "ubi.img"?
How to make the input image file? mkfs.ubifs can only generate
ubifs image. If it was another filesystem eg. vfat, there's no tool.
That's why I need a tool like ubinize. Its job should be collect all
the PEBs( not include ech) that the volume used and put them to output
files
.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: UBI: about ubinize tool
2008-03-26 4:02 UBI: about ubinize tool Nancy
@ 2008-03-26 4:11 ` Nancy
2008-03-27 6:58 ` Artem Bityutskiy
2008-03-27 6:53 ` Artem Bityutskiy
1 sibling, 1 reply; 4+ messages in thread
From: Nancy @ 2008-03-26 4:11 UTC (permalink / raw)
To: linux-mtd
Sorry, wrong key make the unfinished mail sent.
If the input file which needed by ubinize can be the image file
created by mkfs.ubifs(eg: ubifs.img), then how to use the output ubi
image file (eg: ubi.img)?
Use the same tool "ubiupdatevol "? ubifs.img works fine with
ubiupdatevol, but ubi.img can't. Sure it can't, how can one tool treat
different format image file the same? Would you please tell me a way
to use ubi.img?
--
Best wishes,
Nancy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: UBI: about ubinize tool
2008-03-26 4:02 UBI: about ubinize tool Nancy
2008-03-26 4:11 ` Nancy
@ 2008-03-27 6:53 ` Artem Bityutskiy
1 sibling, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2008-03-27 6:53 UTC (permalink / raw)
To: Nancy; +Cc: linux-mtd
On Wed, 2008-03-26 at 12:02 +0800, Nancy wrote:
> Hi,
> As I know, ubinize can generate UBI images. I don't understand why
> its .cfg file need parameter "image=ubifs.img", why can't it collect
> the content
> from the defined vol_id automatically and output to file "ubi.img"?
You may want to create an UBI image with 3 UBI volumes. In this case you
may want to specify 3 different images as the contents of the UBI
volumes.
For example, you may want to have "/home" UBIFS volume, "/" UBIFS
volume, and "/boot" JFFS2 volume. In this case you prepare
"home.ubifs.img", "rootfs.ubifs.img" with mkfs.ubifs, and
"boot.jffs2.img" with mkfs.jffs2. Then you create a config file where
you ask ubinize to create an UBI image, add 3 volumes to it, the first
volume should have ID 5 (you specify vol_id=5), the second volume should
have ID 10, and the third volume ID 0, and so on.
This is the idea.
> How to make the input image file? mkfs.ubifs can only generate
> ubifs image. If it was another filesystem eg. vfat, there's no tool.
ubinize does not care about the contents of the image you ask it to put
to the volume. It may be anything. I do not know how one can prepare
vfat image, there should be a tool or a way to do this.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: UBI: about ubinize tool
2008-03-26 4:11 ` Nancy
@ 2008-03-27 6:58 ` Artem Bityutskiy
0 siblings, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2008-03-27 6:58 UTC (permalink / raw)
To: Nancy; +Cc: linux-mtd
On Wed, 2008-03-26 at 12:11 +0800, Nancy wrote:
> If the input file which needed by ubinize can be the image file
> created by mkfs.ubifs(eg: ubifs.img), then how to use the output ubi
> image file (eg: ubi.img)?
You have to put that image to the _raw_ flash. If you use nandsim,
something like "dd if=ubi.img of=/dev/mtdX" is OK. If you use a real
NAND flash, you have to use the nandwrite utility, becaus dd cannot skip
bad blocks: nandwrite /dev/mtdX ubi.img
For example, if you were a vendor of some devices and you had a factory,
you would prepare you final ubi.img and you would flash it to the newly
produced devices in the factory. Straight to the raw flash.
> Use the same tool "ubiupdatevol "?
You may put ubifs.img with ubiupdatevol.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-27 11:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-26 4:02 UBI: about ubinize tool Nancy
2008-03-26 4:11 ` Nancy
2008-03-27 6:58 ` Artem Bityutskiy
2008-03-27 6:53 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox