ubiformat image verification
Artem Bityutskiy
dedekind1 at gmail.com
Sun Jan 31 23:33:29 EST 2010
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 (Артём Битюцкий)
More information about the linux-mtd
mailing list