* ubiformat image verification
@ 2010-01-29 19:18 twebb
2010-01-29 20:21 ` Artem Bityutskiy
0 siblings, 1 reply; 5+ messages in thread
From: twebb @ 2010-01-29 19:18 UTC (permalink / raw)
To: linux-mtd
Can the image that is written to NAND using ubiformat be read back
(using nanddump) and compared identically to the original image file?
I want to somehow verify that the image was written error-free to NAND
flash.
Thanks,
twebb
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ubiformat image verification
2010-01-29 19:18 ubiformat image verification twebb
@ 2010-01-29 20:21 ` Artem Bityutskiy
2010-01-31 23:17 ` twebb
0 siblings, 1 reply; 5+ messages in thread
From: Artem Bityutskiy @ 2010-01-29 20:21 UTC (permalink / raw)
To: twebb; +Cc: linux-mtd
On Fri, 2010-01-29 at 14:18 -0500, twebb wrote:
> Can the image that is written to NAND using ubiformat be read back
> (using nanddump) and compared identically to the original image file?
> I want to somehow verify that the image was written error-free to NAND
> flash.
It can. But it is simpler to add a --check option to ubiformat and teach
it to read stuff back and verify.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ubiformat image verification
2010-01-29 20:21 ` Artem Bityutskiy
@ 2010-01-31 23:17 ` twebb
2010-02-01 0:50 ` twebb
0 siblings, 1 reply; 5+ messages in thread
From: twebb @ 2010-01-31 23:17 UTC (permalink / raw)
To: dedekind1; +Cc: linux-mtd
>> Can the image that is written to NAND using ubiformat be read back
>> (using nanddump) and compared identically to the original image file?
>> I want to somehow verify that the image was written error-free to NAND
>> flash.
>
> It can. But it is simpler to add a --check option to ubiformat and teach
> it to read stuff back and verify.
>
Yes, a --check or --verify option would be nice. Does it matter
whether the underlying NAND flash is erased or not prior to the
ubiformat?
Thanks,
twebb
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ubiformat image verification
2010-01-31 23:17 ` twebb
@ 2010-02-01 0:50 ` twebb
2010-02-01 4:33 ` Artem Bityutskiy
0 siblings, 1 reply; 5+ messages in thread
From: twebb @ 2010-02-01 0:50 UTC (permalink / raw)
To: dedekind1; +Cc: linux-mtd
>>> Can the image that is written to NAND using ubiformat be read back
>>> (using nanddump) and compared identically to the original image file?
>>> I want to somehow verify that the image was written error-free to NAND
>>> flash.
>>
>> It can. But it is simpler to add a --check option to ubiformat and teach
>> it to read stuff back and verify.
>>
>
> Yes, a --check or --verify option would be nice. Does it matter
> whether the underlying NAND flash is erased or not prior to the
> ubiformat?
>
I'm finding that it does matter whether the NAND is erased or not
first. If erased, the comparison after read back is successful. If
not erased in advance, the comparison fails. Can you confirm that
this is accurate?
Thanks,
twebb
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ubiformat image verification
2010-02-01 0:50 ` twebb
@ 2010-02-01 4:33 ` Artem Bityutskiy
0 siblings, 0 replies; 5+ messages in thread
From: Artem Bityutskiy @ 2010-02-01 4:33 UTC (permalink / raw)
To: twebb; +Cc: linux-mtd
On Sun, 2010-01-31 at 19:50 -0500, twebb wrote:
> >>> Can the image that is written to NAND using ubiformat be read back
> >>> (using nanddump) and compared identically to the original image file?
> >>> I want to somehow verify that the image was written error-free to NAND
> >>> flash.
> >>
> >> It can. But it is simpler to add a --check option to ubiformat and teach
> >> it to read stuff back and verify.
> >>
> >
> > Yes, a --check or --verify option would be nice. Does it matter
> > whether the underlying NAND flash is erased or not prior to the
> > ubiformat?
> >
>
> I'm finding that it does matter whether the NAND is erased or not
> first. If erased, the comparison after read back is successful. If
> not erased in advance, the comparison fails. Can you confirm that
> this is accurate?
ubiformat works correctly without any prior erase. It erases everything
itself, you do not need to do this. Erasing is bad because you loose
erase counters.
You cannot verify things by reading back, because ubiformat changes
erase counters, so they are not the same as in input UBI the image.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-02-01 4:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-29 19:18 ubiformat image verification twebb
2010-01-29 20:21 ` Artem Bityutskiy
2010-01-31 23:17 ` twebb
2010-02-01 0:50 ` twebb
2010-02-01 4:33 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox