[PATCH 0/2] mtd: ubiformat: Add support for image confirmation

Joe Balough jbb5044 at gmail.com
Wed Dec 31 06:58:43 PST 2014


Working with ubi images being flashed to NAND using ubiformat, I
found it desirable to ensure that the data that has been flashed is 
properly written to the device using a readback mechanism.

These patches add a -c, --confirm argument to ubiformat that will
cause the program to read back the eraseblock written in the
flash_image function, then use a memcmp to verify it was written
correctly. 

This is my first patch and I am happy to make any requested changes.

Joe Balough (2):
  mtd: ubiformat: Add --confirm argument
  mtd: ubiformat: Add confirmation fail exit

 ubi-utils/ubiformat.c | 40 +++++++++++++++++++++++++++++++++++-----
 1 file changed, 35 insertions(+), 5 deletions(-)

-- 
2.1.3




More information about the linux-mtd mailing list