UBI and volume checksum

Giovanni Malfara' Giovanni.Malfara.ext at altran.it
Mon Jun 18 16:22:52 EDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.
>
HI,

If I try to read back from the volume (using "dd") after I write the
NAND Flash (using "ubipudatevol") I get a different value compared to
the CRC of the image file for the CRC of the volume content if there are
some bad blocks.
Do I have to use another tool (e.g. nanddump)?

Thanks in advance,
Giovanni

- -- 
Giovanni Malfarà
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJP344cAAoJEG4TcRjsvW/KQhoIANEUXgEZvWd3X1eB908lqkNN
cjmaL8ASI69CynG1I40G60gcaYY7ceVyYsjLs6UQv12ckJIFoK3Wi9DJ/qetwLbv
tC4YQu5I0Jxf7IOpSTX6FCqX66bAeRZYTkvvxamt3GOV4+fyf0T6S6itcTjBWEDs
Z3U82qvxDTWnwB+EO/SPmjBGKsPfP7DNGWfv6h7oP08VvgkKaGZssVZtZtF9CwyJ
CIft76dD8vIaxZ2N/L2WYVRhkilVR5O6w+DWFY7HuSx8aeV40HClizFmBfA4CYaE
Zx/saQ2QLDOOE0f9RvFJqbYxbO6H2VzEtuhsBafp5iQaItZ3OlUKU+EMb+9XzPk=
=SOiJ
-----END PGP SIGNATURE-----


More information about the linux-mtd mailing list