> > tags 573362 confirmed moreinfo
> > thanks
> >
> > Nikita V. Youshchenko wrote...
> >
> > (...)
> >
> > > ...# ubinize -o ubi.img -m 2048 -p 64KiB -s 512 ubinize.cfg
> > > ...# file ubi.img
> > > ubi.img: HIT archive data
> >
> > Could reproduce that, thanks.
> >
> > Problem is, "HIT archive data" has a really weak magic. The only sound
> > solution was to provide strong magic for ubi.img. I didn't find proper
> > documentation, so please help. Same applies for ubifs.img which
> > deserves a better recognition than "data".
>
> Hi.
>
> Well this is a bit not my topic but still, in kernel source in
> drivers/mtd/ubi/ubi-media.h we have
>
> /* Erase counter header magic number (ASCII "UBI#") */
> #define UBI_EC_HDR_MAGIC  0x55424923
> /* Volume identifier header magic number (ASCII "UBI!") */
> #define UBI_VID_HDR_MAGIC 0x55424921

Same file contains definition of struct ubi_ec_hdr that is located in ubi 
image at beginning of each physical erase block, including offset 0. It 
contains some comments on what data is where.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to