]> git.ipfire.org Git - people/ms/u-boot.git/commit
sparse: Implement several chunks flashing
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 15 Oct 2015 12:34:16 +0000 (14:34 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 12 Nov 2015 18:17:32 +0000 (13:17 -0500)
commit1f8690aa950ad1f42a64d07c4a31e47dcf1090b7
tree5d17c172af7c17a08bb0e4e58c80f75434c77250
parent6c9e00eebfd7244d74068832a1bb7f8679d1861a
sparse: Implement several chunks flashing

The fastboot client will split the sparse images into several chunks if the
image that it tries to flash is bigger than what the device can handle.

In such a case, the bootloader is supposed to retain the last offset to
which it wrote to, so that it can resume the writes at the right offset
when flashing the next chunk.

Retain the last offset we used, and use the session ID to know if we need
it or not.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/aboot.c