* UBI and volume checksum
@ 2012-06-07 12:21 Giovanni Malfara'
2012-06-07 12:51 ` Artem Bityutskiy
0 siblings, 1 reply; 5+ messages in thread
From: Giovanni Malfara' @ 2012-06-07 12:21 UTC (permalink / raw)
To: linux-mtd
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?
Is this the best way to achieve this?
Thansk in advance.
--
Giovanni Malfarà
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: UBI and volume checksum
2012-06-07 12:21 UBI and volume checksum Giovanni Malfara'
@ 2012-06-07 12:51 ` Artem Bityutskiy
2012-06-07 13:13 ` Giovanni Malfara'
2012-06-18 20:22 ` Giovanni Malfara'
0 siblings, 2 replies; 5+ messages in thread
From: Artem Bityutskiy @ 2012-06-07 12:51 UTC (permalink / raw)
To: Giovanni Malfara'; +Cc: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 747 bytes --]
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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: UBI and volume checksum
2012-06-07 12:51 ` Artem Bityutskiy
@ 2012-06-07 13:13 ` Giovanni Malfara'
2012-06-18 20:22 ` Giovanni Malfara'
1 sibling, 0 replies; 5+ messages in thread
From: Giovanni Malfara' @ 2012-06-07 13:13 UTC (permalink / raw)
To: dedekind1; +Cc: linux-mtd
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à
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: UBI and volume checksum
2012-06-07 12:51 ` Artem Bityutskiy
2012-06-07 13:13 ` Giovanni Malfara'
@ 2012-06-18 20:22 ` Giovanni Malfara'
2012-06-27 10:58 ` Artem Bityutskiy
1 sibling, 1 reply; 5+ messages in thread
From: Giovanni Malfara' @ 2012-06-18 20:22 UTC (permalink / raw)
To: dedekind1; +Cc: linux-mtd
-----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-----
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-06-27 10:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-07 12:21 UBI and volume checksum Giovanni Malfara'
2012-06-07 12:51 ` Artem Bityutskiy
2012-06-07 13:13 ` Giovanni Malfara'
2012-06-18 20:22 ` Giovanni Malfara'
2012-06-27 10:58 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox