UBI and volume checksum

Artem Bityutskiy dedekind1 at gmail.com
Thu Jun 7 08:51:41 EDT 2012


On Thu, 2012-06-07 at 14:21 +0200, Giovanni Malfara' wrote:
> Hi all,
> 
> I need to verify that the UBI image once it has been written on the UBI
> volume.
> So I try to extract the content with the "dd" tool from the UBI bolume
> and I calculate the checksum to be compared with the one of the original
> UBI image.
> 
> My question is: is it always true? If I extract the content of the UBI
> volume at any time (the fileystem is mounted read-only) , will the
> checksum always the same? Will the data move from a PEB that has
> bit-flips to a new one cause a difference in checksum?

Yes, if you read the UBI volume (/dev/ubiX_Y), and it is R/O, the CRC
should be the same all the time.

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120607/f5d80327/attachment.sig>


More information about the linux-mtd mailing list