UBI and volume checksum

Giovanni Malfara' Giovanni.Malfara.ext at altran.it
Thu Jun 7 09:13:31 EDT 2012


On 06/07/2012 02:51 PM, Artem Bityutskiy wrote:
> 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.
>
Thank you very much Artem!
Best Regards,

-- 
Giovanni Malfarà


More information about the linux-mtd mailing list