Skip to content

mtd: ubiformat: Add support for image confirmation

Joe Balough linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mtd: ubiformat: Add --confirm argumentubi-utils/ubiformat.c+24 -32 replies
2/2mtd: ubiformat: Add confirmation fail exitubi-utils/ubiformat.c+12 -32 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.1.3