[ANOUNCEMENT] bmaptool


Artem Bityutskiy <dedekind1@...>
 

Hi Yocto people,

I would like to announce the bmap-tools project here, because I think it
may be very useful for Yocto and some of the people who are using Yocto.

The bmap-tools project is about disk images, like direct HDD images, or
Virtual-machine images like vdmk or qcow2, etc. The project uses simple
ideas in a clever way to copy/flash these kind of images quickly.

Please, read all the details in the project wiki page:
https://source.tizen.org/documentation/reference/bmaptool

The project was created for Tizen IVI, but it is generic and is not
bounded to Tizen in any way.

I do not want to duplicate the bmap-tools documentation here, but
instead, let me just describe how we use it in Tizen IVI.

1. We produce raw images of 4GB in size.
2. Images have 3 partitions inside.
3. Images are rather sparse, we have only 1.2GB of data inside (total)
4. We publish compressed images, they take 300MiB
5. We also publish bmap file for the image, e.g., see the ".bmap" file
here:
http://download.tizen.org/snapshots/2.0alpha/ivi/tizen-2.0_20130111.3/images/ivi-2.0-alpha/

Now the key point: when users flash the 4GiB images using bmaptool, they
actually copy only 1.1GiB of data. E.g, when flashing to slow USB
sticks, it reducing writing time from 20Min to 4Min.

The other key point here: if we or others decide to produce 64GiB or
1TiB images instead, with the same amount of data (1.2GiB), the flashing
time will be almost the same.

The third key point here: images are compressed, and rather small, which
saves space and network traffic. When/if we make images 64GiB or 1TiB,
their .bz2 files will still be almost as small, because zeroes compress
very well.

If you think about a production factory case, you may see a lot of
benefits of using bmap.

Anyway, for the Yocto project, it would probably be nice if in the
window where you select the type of image to generate and its size,
there was a "generate bmap" check-box (on by default :-)).

Comments, questions?

Thanks,
Artem.

--
Best Regards,
Artem Bityutskiy


Wolfgang Denk <wd@...>
 

Dear Artem,

In message <1358167593.2731.66.camel@...> you wrote:

Please, read all the details in the project wiki page:
https://source.tizen.org/documentation/reference/bmaptool

The project was created for Tizen IVI, but it is generic and is not
bounded to Tizen in any way.

I do not want to duplicate the bmap-tools documentation here, but
instead, let me just describe how we use it in Tizen IVI.
Thanks for doing this, as the links on the page referenced above are
broken: both [1] "Introduction" and [2] "Usage" give just a 404 to
me...

[1] https://source.tizen.org/documentation/reference/bmap-tool/bmap-introduction
[2] https://source.tizen.org/documentation/reference/bmap-tool/usage


Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@...
If the odds are a million to one against something occuring, chances
are 50-50 it will.


Artem Bityutskiy <dedekind1@...>
 

On Mon, 2013-01-14 at 18:56 +0100, Wolfgang Denk wrote:
Thanks for doing this, as the links on the page referenced above are
broken: both [1] "Introduction" and [2] "Usage" give just a 404 to
me...

[1] https://source.tizen.org/documentation/reference/bmap-tool/bmap-introduction
[2] https://source.tizen.org/documentation/reference/bmap-tool/usage
Very embarrassing, sorry. The links are broken, I'll try to fix them
tomorrow. Please, so far use the links at the left-side frame of the web
page. You should see them there like this:

The bmaptool
* Introduction
* Usage
- bmaptool copy
- bmaptool create
* Bmap-tools project

Sorry for inconvenience. The direct links are:

https://source.tizen.org/documentation/reference/bmaptool/bmap-introduction
https://source.tizen.org/documentation/reference/bmaptool/bmaptool-usage
https://source.tizen.org/documentation/reference/bmaptool/usage/bmaptool-copy
https://source.tizen.org/documentation/reference/bmaptool/usage/bmaptool-create
https://source.tizen.org/documentation/reference/bmaptool/bmap-tools-project

--
Best Regards,
Artem Bityutskiy