From patchwork Fri Oct 30 09:12:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1390882 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::63a; helo=mail-ej1-x63a.google.com; envelope-from=swupdate+bncbcxploxj6ikrbd5s576akgqecrlgi2q@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=T6vdVL/d; dkim-atps=neutral Received: from mail-ej1-x63a.google.com (mail-ej1-x63a.google.com [IPv6:2a00:1450:4864:20::63a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CMxRR0qzBz9sTD for ; Fri, 30 Oct 2020 20:12:50 +1100 (AEDT) Received: by mail-ej1-x63a.google.com with SMTP id b17sf2197026ejb.20 for ; Fri, 30 Oct 2020 02:12:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1604049168; cv=pass; d=google.com; s=arc-20160816; b=BMnzIAoyrepjqtehPkh0ZOzpp9CXsRmiVjRsN1KNtTQ+yVPEfCgRyh2+emFCQMJJbE ELv8ufYMNsDMWVT8sByw5lLSqk+t3xaOlrMQGk3rm6UEiB4WbCs5HH8K0Xfa8giX9Vt3 dKubguBRM41Sk5QYH0sb74xhKxwFud4iYI3jhQMZHfQvuYCBbhCxF130VXoMndQU4+sF OZUkmmetvix/Qqw1AlDleKhGN1ZMs1RjmQs6nMs2ChwRXKL5Dft2Gmfo8usOozipAtjj fMUaXrISwCplvv8L6VNcXd0+eRGowY8U5S/aFDUJO4+D+Pih2zDMd5dUlFaWQza3kCg7 l6nA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=60Ky0DVrjtFr324bLgeFFe7ryRz1sqcQ3whbTvGjSMQ=; b=IWCg1bZLnmIq2qjmrH1ksjYqMETzOMzwS9zkuMyXBGSE4GZWrbdGkIg0cGjNfbHPG1 PYcn/ehzVd3/rSzs8V1JGKXx9/yHjv1pmEclSVKNuYDcPUVwA3ozTSFNGcdD3YBdYiyJ MnJLLgK3Du+QRp0oxZ0wegHRNHWeP4UH2B5ZokiOtaVEmB7spmoX9jg2TitstbbIZeb7 1tTwycTcmB1/C5z0pQiMYrIEf/LqShDBFTnKVdcgLGsySJPlmdHSog9BETgvu0dRzsq8 OWK8Lqx/NrvW2KIvSpQKpaOhfhZWKuiKzRfnQS/c7lf5O9rJ2Ja75Ky5yyuiDtMPI6uI YuNQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=60Ky0DVrjtFr324bLgeFFe7ryRz1sqcQ3whbTvGjSMQ=; b=T6vdVL/d0USuHmZB9Hyf/HRhFyiRRPe9/oS+JNLVm9SYlvqaobEBZOpr/WlkPzEtMD tt036/Bdcnak7SgjdpwZRep7B/TJJOK+LxjkpAko/mmwSXCyWczjGR3yD+5TO6+ydzLP n3ExdiY0GlmlSeR9Msfu5+YgERYmtRBzDcnwzewLdZOXNs0Sd4wkosmJ4wvCr0XgF9S5 zrhFNpS+Uzvo2KJDe9DJshAPtaPNioVOYjgcgn1iiULti01s22xvJcJp90nnEQLnmTZr sJyosp3ePTETg1ZshNBXE6hu7gX1RUJyaj5sfrRkZ5TmB99B3mCf2EzAt2i4h2bAeyBk nXkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=60Ky0DVrjtFr324bLgeFFe7ryRz1sqcQ3whbTvGjSMQ=; b=SE5yo3lDLQh/MPS4/5dgLP/cZdJaOY+vy+bfwLlgtNq2ufMqbG+3d+n3jFcjmkIQ1s 6/Bdmj1SJPQaPRBV9aJlDZwDmZEmud4xXxzr54d0rStHhoX5CYsWT26eOKIS4kSCy6TK 7spUqCgx1JHzY68ldjTTvwvW2JQPLdmxcwOjC+3MWGNLJSApK8ndkR+KotK9DvFmqkhe AjZYcwomF+h25gIZhjEExXFFLctuXtfpCcvWhzhPiPnKPQVDo829cvSih2JsSxrfMbPk FVryQTT5jv3WaOq/8mnbfmaWiFdwJZXu/HLW6MtP+zYTWhkSNJQwRHZoFUWgaMDDFCRb HP9g== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531shkonr04PQxrEyRy1/JBw9z0W3FOeQdtXJahcP0Dfbue0OGpt y/qaRYVRKNGr9yUdOtkkUuU= X-Google-Smtp-Source: ABdhPJz+AEIhaoIBsLC4VHzQd5GJWFBAulyE85kTIcPflxQE+ZYoNdgdMKaQHaXdXETZGBr5V2QovA== X-Received: by 2002:a17:906:3b93:: with SMTP id u19mr1510944ejf.290.1604049167939; Fri, 30 Oct 2020 02:12:47 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a17:906:5591:: with SMTP id y17ls2934080ejp.5.gmail; Fri, 30 Oct 2020 02:12:46 -0700 (PDT) X-Received: by 2002:a17:907:42a1:: with SMTP id nf1mr1493115ejb.135.1604049166657; Fri, 30 Oct 2020 02:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604049166; cv=none; d=google.com; s=arc-20160816; b=lyiNsde6fYPpFo3qXEwBB+nK88OdlWNThI5CorZCwAqMJ2tX0oPAsrbjMyDCGXvkNn 8fXWdT3ukUbH7tDCRMI4MCnK9LvagEkAUNXObvUMoGXzooWZK/CT8LRCvN6gm4H3m1X2 o7IxKrOspdkiySL599cQnAhtH8SSZKYRBD4fig5+4NHl0Gcegg1rOI6aX5jgjDtNF2us qtru4SmKi/7li5lCGTvD3mw7tqEL3tPSJo/139J22L8+vl+AUZDX8BRdtcrEYQ9sRKBX qLIRT9safMHJUdv7yXJb7YqJbg3Nr+TozkUPivqD4IPDDUaVDDhW1kWL9InuKBdoYbZL K4Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=FGSNwji8V7zeyIMr66U84CZNOD0DTvoGa+b+0R+bZLo=; b=lsBGgRBXh2mftgF7rkbjhUbx/n8MHxEeVy/WHRNOg1mi9PYapf6Ei/Zwel90Afc8c+ QytRFz0GYk8rnUEGo5Zlr5fueaO1e+jMcESUNaIm8TaWj7VjPb3WxCJknSdM8nIexvb8 uTQvvtNYNZuzM0V/DSJyLLx6aUH/7lVYJlIHeUvhNkJE3qKPRxakoX4RBdrbQLcmaVno l/2gjrs+APDL2OjPNJa/M6uJ4yPTsmQWuNWJsiFZZObS3G/c5y5dkunDB1uHFixoCau9 e1Cg8/pW2Dl4FgKTDzMhcsf6f/KZnooj2TyJiKshGM1GBQA6reM/3fEAKrBK76Ckm0Aw ESqg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id 8si23603ejm.1.2020.10.30.02.12.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Oct 2020 02:12:46 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CMxRL2xx3z1rxY9; Fri, 30 Oct 2020 10:12:46 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CMxRL2kp1z1qsWm; Fri, 30 Oct 2020 10:12:46 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id kFvsizGWdr4M; Fri, 30 Oct 2020 10:12:45 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Fri, 30 Oct 2020 10:12:45 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 647584540700; Fri, 30 Oct 2020 10:12:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id M472s5pLHtJd; Fri, 30 Oct 2020 10:12:41 +0100 (CET) Received: from paperino.arri.de (paperino.fritz.box [192.168.178.64]) by babic.homelinux.org (Postfix) with ESMTP id 3A27D45402B2; Fri, 30 Oct 2020 10:12:41 +0100 (CET) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH 0/4] Support for resume after power-cut Date: Fri, 30 Oct 2020 10:12:35 +0100 Message-Id: <20201030091239.2802869-1-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , 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(-)