Skip to contentSkip to conversation

ubiformat image verification

DISCUSSION twebb 2 participants 5 messages Jan 29, 2010 – Feb 1, 2010 Memory technology devices (MTD)

lore
Share & tools
lore

twebb

author
#0 lore raw

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

#1 lore raw
Quoted 4 lines · twebb

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.

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
author
#2 lore raw
Quoted 8 lines
Quoted 4 lines

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

author
#3 lore raw
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

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.

Quoted 8 lines
Quoted 3 lines

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

#4 lore raw
Quoted 14 lines · twebb
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

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.

Quoted 8 lines
Quoted 3 lines

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?

Quoted 4 lines

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.

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)