public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Giovanni Malfara' <Giovanni.Malfara.ext@altran.it>
Cc: linux-mtd@lists.infradead.org
Subject: Re: UBI and volume checksum
Date: Thu, 07 Jun 2012 15:51:41 +0300	[thread overview]
Message-ID: <1339073501.6875.104.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <0D6614B1791E3B4C86DD3784FCD9B20617B90131@XMB-TODC-23.altranit.corp.altran.com>

[-- 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 --]

  reply	other threads:[~2012-06-07 12:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-07 12:21 UBI and volume checksum Giovanni Malfara'
2012-06-07 12:51 ` Artem Bityutskiy [this message]
2012-06-07 13:13   ` Giovanni Malfara'
2012-06-18 20:22   ` Giovanni Malfara'
2012-06-27 10:58     ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1339073501.6875.104.camel@sauron.fi.intel.com \
    --to=dedekind1@gmail.com \
    --cc=Giovanni.Malfara.ext@altran.it \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox