]> www.infradead.org Git - mtd-utils.git/commit
misc-utils: flashcp: Add new function that copy only different blocks
authorHarvey Wu <harveywu95@gmail.com>
Tue, 1 Jun 2021 07:34:53 +0000 (15:34 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Sat, 12 Jun 2021 15:17:15 +0000 (17:17 +0200)
commita456ebc21bc64b5ef273e186fcff191563799a83
tree175e249212f6a9d634cfc8e8a7b11eb666221b86
parent51d6820f49ca4a203cf30dd99bc83f25d569eb4b
misc-utils: flashcp: Add new function that copy only different blocks

- The original flashcp process is erase, write and verify all blocks
  in one time from file to device.
  This patch will add a function that only copy different block data
  from file to device. The function will compare blocks by block
  between file and device, then erase and write block data from file
  to device if found different block.

Signed-off-by: Harvey Wu <harveywu95@gmail.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
misc-utils/flashcp.c