From patchwork Sat Oct 5 20:18:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1172279 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::53f; helo=mail-ed1-x53f.google.com; envelope-from=swupdate+bncbcxploxj6ikrbepv4pwakgqechiifry@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.b="YgWjkVvy"; dkim-atps=neutral Received: from mail-ed1-x53f.google.com (mail-ed1-x53f.google.com [IPv6:2a00:1450:4864:20::53f]) (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 46lyjw65DXz9sPZ for ; Sun, 6 Oct 2019 07:18:28 +1100 (AEDT) Received: by mail-ed1-x53f.google.com with SMTP id s15sf6371990edj.1 for ; Sat, 05 Oct 2019 13:18:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1570306705; cv=pass; d=google.com; s=arc-20160816; b=BUkztW0K8751xvKYTrJoiue1d/pcuFG44J3edlDJy0rdT5TYI/kgAs3zhSe5AKRH4i VcuF1p2woscZzNYKYeF97YrU70vGsdEa+/dpIOHFxOdpxzDKCRSV3tBC2ftfpFFFsRj8 onYUgpbWZSf67lTw0UHPdzeOf9SfPfy7Uem+MspZjz1DzY8VOw55A3dYXVotauijXdP0 y9BuxlnMIl6WatwuJywA4LEfWvkD6NJTD6YML4EfC3F851ZRisoDFq7J6O6ZXUAw9wKu UeApSEw1xOv3hCrPYvaH6+ZuX637fHVoaDLvO3SAq3sNFfR8fWDfaJqHSaet4F6TND92 cMig== 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:message-id:date:subject:cc:to:from :mime-version:sender:dkim-signature; bh=g8LL+kRMFoXntTv4L3qUldp5gGC9Xw/QOkr538ZemoE=; b=zen5FmOQhf+HzoG0WDCM+qZ/WnGf1W3NF4pmaDsPczIReb2ui88gNlT3i35vKrvCu9 Xnx2nLTgagebXWtVDV99OYQOkQX/jKTTXJ7oowOe6ZbgDJMpVq0TjTIIhkVS4TQceRHc TN5Ajg7NOK+TJtJ79V+KgpNhBz0+wz+hPK+MU1xLv5ws2QMCMcfcNDGu17hRQAdI4KB6 JfeBHaQaSe79drWvdCGwrcl9Cy3e6qZDbHhbxljeLGWzJYiftgkCJRFT6FetAwJ7NimP BcJSiWfSb4pAebH55TsXGaZF4QBrgoLcLpTFwNf/0JRntdQjR2Y91Xg9uMMru6LuxRL9 ozjA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 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:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=g8LL+kRMFoXntTv4L3qUldp5gGC9Xw/QOkr538ZemoE=; b=YgWjkVvy4PHHIqJfGH8cM2I0ZMAcDXy63Q4Rh8G6c+Y/dZCeolabtUEEFe+h801NTV W7FtVqZq2ELvIYrAIRZIrPRZvfZoN1qGfOqsJvQCwVYokKmJY8/rOAiT1WFBgdCIkJMU X69PcJW0/qk6wniwAm0gc3jHSkdJmca6kV5GYe15IPDAUjWMOYwzuQMhzSn6/F6LgHKf EZHj6iJvPIVnzFBo/UQD2zKwxpDalaV/81Lfxki1t41lddIF0JR0VvxukAPwi1axAAvv PSrrQWCVAyoj0PbQhUkJ6zXTp/JyTbwC2zO7ZZtBtlGGDVGya0TloTeRKB+jo+kjtVmC P0Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id: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=g8LL+kRMFoXntTv4L3qUldp5gGC9Xw/QOkr538ZemoE=; b=I4Un39lQOTtgqnJpAT11OPhNre6BlaYdZ5SsGRHsWOlujE4xFJRySuBqp6LEj9c1ez JcdIr/6JabGPMdLGLZ6nDb2w15tUs8u6iPBL06WYfKKv4VeN+xhbPyKhinexHadGyDZm Z/lzu+EVQ5mRbDGLsT0GvL8g/l+u8fjWbbZLNCzUvbwBfyxb1/ahD8qW7aDjAl6903VX taHkBRrhdzw6lYRMLQAn0FuWPvKR0tDTLRHWINqOUp6L9xhBepQ2uNhnU+hcvoutI1Jw zwalgXobmzQCMoOD7/Lmse4jWbbvauJs7E3WtNtb9HNdVTz2eR4TQAEgNmT4oNrrGgXo Mumw== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAWY98p/vATpwB5invSA+v+UPRtNuWtYiYz8Vm170AKpOcX+HIe7 SfLnuaZtMxjAOaZAaQNtZjc= X-Google-Smtp-Source: APXvYqx192JgtcXyUbfZHCMVBENLniNsb9/8vtjBr8kcy6QkPpCetTLhY2lLbqmvBKKjvA8mAUVEqQ== X-Received: by 2002:a50:e79b:: with SMTP id b27mr22041668edn.186.1570306705871; Sat, 05 Oct 2019 13:18:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:aa7:d98d:: with SMTP id u13ls3297222eds.12.gmail; Sat, 05 Oct 2019 13:18:25 -0700 (PDT) X-Received: by 2002:a50:98c6:: with SMTP id j64mr22166909edb.34.1570306705401; Sat, 05 Oct 2019 13:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570306705; cv=none; d=google.com; s=arc-20160816; b=B+c3XmE4yVRXUxgmQJy4nqrRoRoa8Ibc4AhO+0CBNOcfb9mYswvo5n/f9jz8379Por JVzEg8sjHkDb93eFDJb78niy5DGpdVRefpGz6VzVVYK1xT/eksYW4Aua1EMb3mKTyWX2 AW5ATSJQBPUhfyksZof8mY3w9ShnxCo1ZltBOXvuA6e834LyCkuVAj1BdXpN490eCLQ/ d+UEDmthL+3NxxiNO28EQTlxZ3iT7PqZ/PO97CKr7Kk4Vjb+Pm1WHnlHYJSCiHmNbGVn kZciKuFkVzx/quaijhqKHC4gRA/LNjOdBve312ADo7YGGke2UwC2nkSjxfu5c+6Qfp06 1TFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=H6RpMLOcSUc+/8vnRfqhFGYTc3SkxjORIePAp899K0I=; b=qsjTLXo7jiBvtyYOKs1gu70+w2MLhfzzgZoL7OjCZI2V5DKc/OUYsq4qP4iqk82yEy XYL2qvSWzLu3P6+bHzVq01z65sIpm3VzSJkcXPUKkpPtpGOiDOSS2ECOqwhMc10UsyPS uzkQhumr+C+kfBKG//zb2WxVvAQ00GBER24EjgXP5gqEVIz3J9Xrw1a1lvJTheHCTO8e DziJy1msHlhmg6/LRJzqdjsLPJbNJg1DvMNOe32KAAys0TWSHxFFXXfVdhCPIg6emCro BKmP9i15K3fExtaDJmvf1IzvDeJZlM81IOXp3PNw2slfu9I4W+hNrcNQuQGGNsi18FCG 89HA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 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. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id r3si702168eds.2.2019.10.05.13.18.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Oct 2019 13:18:25 -0700 (PDT) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46lyjs10CJz1rfcw; Sat, 5 Oct 2019 22:18:25 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46lyjs0lsNz1qql9; Sat, 5 Oct 2019 22:18:25 +0200 (CEST) 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 TVm5CQXSarlH; Sat, 5 Oct 2019 22:18:24 +0200 (CEST) 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; Sat, 5 Oct 2019 22:18:24 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 9DB5445406DC; Sat, 5 Oct 2019 22:18:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w9E9zHOva7c2; Sat, 5 Oct 2019 22:18:21 +0200 (CEST) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id D3BC4454041E; Sat, 5 Oct 2019 22:18:20 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH] handler: push progress status from bootloader handler Date: Sat, 5 Oct 2019 22:18:19 +0200 Message-Id: <20191005201819.11702-1-sbabic@denx.de> X-Mailer: git-send-email 2.17.1 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 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: , The handler just parses bootloader variable. There is no update of status and it sems that the handler stucks. Send a update progress to signal that it has finished. Signed-off-by: Stefano Babic --- handlers/boot_handler.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/handlers/boot_handler.c b/handlers/boot_handler.c index 12a3d42..58a60e1 100644 --- a/handlers/boot_handler.c +++ b/handlers/boot_handler.c @@ -19,6 +19,7 @@ #include "handler.h" #include "util.h" #include "bootloader.h" +#include "progress.h" static void uboot_handler(void); static void boot_handler(void); @@ -112,6 +113,12 @@ static int install_boot_environment(struct img_type *img, } free(pair); } + /* + * this handler does not use copyfile() + * and must update itself the progress bar + */ + swupdate_progress_update(100); + fclose(fp); free(buf);