mbox series

[0/4] Support for resume after power-cut

Message ID 20201030091239.2802869-1-sbabic@denx.de
Headers show
Series Support for resume after power-cut | expand

Message

Stefano Babic Oct. 30, 2020, 9:12 a.m. UTC
This series add a way to restore an update from a partial downloaded
SWU and it can help on devices with slow and weak connections to avoid
that the whole SWU is loaded again.
The incoming SWU should be stored on the device via --output parameter.
A new --cache-file is added to the suricatta parameters. This file, even if
truncated, can be used as cache by SWUpdate, and the downloader will just
fetch the remaining bytes.

Stefano Babic (4):
  Sort entry points in suricatta structure
  Add support for cached file to curl
  Backend: add support for cached file
  doc: describe cache-file parameter

 corelib/channel_curl.c     | 65 ++++++++++++++++++++++++++++++++++++++
 doc/source/swupdate.rst    |  5 +++
 include/channel_curl.h     |  1 +
 include/suricatta/server.h |  7 ++--
 suricatta/server_general.c | 18 ++++++++++-
 suricatta/server_general.h |  1 +
 suricatta/server_hawkbit.c | 21 ++++++++++--
 suricatta/server_hawkbit.h |  1 +
 8 files changed, 113 insertions(+), 6 deletions(-)