]> www.infradead.org Git - mtd-utils.git/commit
flashcp: Add write last option.
authorPiotr Esden-Tempski <piotr@esden.net>
Fri, 1 Sep 2023 00:55:03 +0000 (17:55 -0700)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Fri, 8 Sep 2023 11:48:52 +0000 (13:48 +0200)
commitaaa77f94ce6e03d9730f62004347ec2bbf11cfb1
treeab7b8375428db467b0004b0ce36e855f827907d3
parente5c876a486ff4f0e0adac05f1db29941f86ec5ba
flashcp: Add write last option.

This option is useful for power fail resilient bootloader updates, for
systems that check only the partition header for validity before
attempting to load the bootloader. For example zynq.

Postponing the write of a specified amount of bytes at the beginning of
a bootloader makes sure a written bootloader slot is not considered
valid until all the data is written.

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