UBI: about ubinize tool

Artem Bityutskiy dedekind at infradead.org
Thu Mar 27 02:58:27 EDT 2008


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 (Битюцкий Артём)




More information about the linux-mtd mailing list