From patchwork Thu Jul 12 21:52:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 141840 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp70016ljj; Thu, 12 Jul 2018 14:54:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeYzMzgBXQPWZvy6mQMaJjlb1Ap8bbxUDRzI7kJD47ytHD8bSv1pGuKnJXaR/3ZXqTNo96A X-Received: by 2002:aa7:c742:: with SMTP id c2-v6mr4228799eds.231.1531432473909; Thu, 12 Jul 2018 14:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531432473; cv=none; d=google.com; s=arc-20160816; b=GowTc6Tnw8GjlffF7cAsv5h7ZSri0lLXnCjiK45ADNuiIlIUc9t1CDeNnaqgFyn5bi km5U3JH6aRmRN6aQv29ROlERNEicSmeZYQF/Wdv+x26iaX+lqqpr1F348ScdTqgca3Zn RTo1+/2dUGlb2fzIifuzc+MVuWLe00mIZR1MopsoSimvsUknCYjGxUgMSKjSsmmm3r+B Qio+A8d8qvtj/RUJd17XHS+lM5LuAvmgX9ruEqYmooZoGTe4hfKUMzmZSZk11ofdReVa VUnB+Wq2ShtfMYbgmW8NxZot+DskaJppyxwSvP2zML82vrON/IH5xVD7dVd6Izc8eRCT 4BSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=YUVH6CdhaWAAG52qnHEWgKqAa74u/1W6FWWTGzwqP/o=; b=rF7Q+5SL57acGmk/vzf4QQ6Yv4Yk8jrdy1pXSvzhvP4Vl/+TM7IIWORzIn0s+450dE eMFN1X0BOFGf8alR43n+ko6Wx0Qdra+ktdo4h3+c5m2pmnYLG1egoC3YC7eokb/ex5Pp MJgdgg0t02DbnH8+9G2xTcwGOc7JeTY2Z7cpV7v/4jzoqRt/xPCxbNiE9JLsLcyQXY21 FR6uyd3J7N2fqEkOAZ/Uu+x3eF3wfsvN798mjlweYa1ED1H8bYKb2RHjfNQJM/xq3KUf Qf1/MnrlUFDar7ERxVxXiHjlp7QdU1UGZqIFq/8kSLow7ak8rtmFeuSTqN4KGUxd1ZGt 9nsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WUokB4sR; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id e18-v6si483764edb.332.2018.07.12.14.54.33; Thu, 12 Jul 2018 14:54:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WUokB4sR; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 7F5A5C21E7E; Thu, 12 Jul 2018 21:53:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E68A8C21FC1; Thu, 12 Jul 2018 21:53:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 297CDC21F69; Thu, 12 Jul 2018 21:53:04 +0000 (UTC) Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by lists.denx.de (Postfix) with ESMTPS id 33C3CC21FA0 for ; Thu, 12 Jul 2018 21:52:59 +0000 (UTC) Received: by mail-lj1-f196.google.com with SMTP id u7-v6so20453869lji.3 for ; Thu, 12 Jul 2018 14:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CncAm6Mq9V9tX6/19+coi07ISJDQjk0kgyWPG7YPTP4=; b=WUokB4sRIqI/Hn3ZIzc6sVkt2xxOieJq3Seu8pm/Kr1fwuY5HTe4cPKTvkq2dYx/p0 n+Np+lmObOWbq/zy/NjK3zZ7ZQW5oxVlrrXmaczNNc70D8zPYHqhrp2M1h60Vb0TGV/R axDMnjE8yLQ1qttmaPEOZd5RTyQlmB8TINZRA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CncAm6Mq9V9tX6/19+coi07ISJDQjk0kgyWPG7YPTP4=; b=d+6eG6c4wbfSoO9Azao8g3b3C4DCPKwrqjxnZoIRqu7TmzKvU+c8WeAJ2//+HXWwzR i7F79uY7nzhpYKWp/XXOZLbFDuZgWNjMSuA2zJ75lN9WtVDGZZ0Uh5Fnut190KQpDUZ9 C0xnucLi1TtHb7+0Ad5/Bon7xQ4XW5YKWgFfwzynoBtlEogRFPNNgVyy2UZJIyUC4+m0 xCOxMg+rtvNuI27yGMr6fVp0dkjtETRIWEU1yKPsJpkoTXQCSw+7qrKRZ/6GhfWZDY14 NK359GYEzc59I60/4xxFbvMkmLCBPATc7u03iJjCKybKMu65O/iSxScSvoyxxmuEdG8P X8qw== X-Gm-Message-State: AOUpUlEWn5XCuYatkxxmHMe6BgW0XZeutF1O/1bswI1A82HSGN93m+z5 xJTfdvIZlzBHiND7F6EYA/e/Vtx6wqs= X-Received: by 2002:a2e:144f:: with SMTP id 15-v6mr1555030lju.122.1531432378370; Thu, 12 Jul 2018 14:52:58 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id b3-v6sm6267021lfg.43.2018.07.12.14.52.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jul 2018 14:52:57 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Fri, 13 Jul 2018 00:52:53 +0300 Message-Id: <20180712215253.4290-3-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180712215253.4290-1-semen.protsenko@linaro.org> References: <20180712215253.4290-1-semen.protsenko@linaro.org> Cc: Tom Rini Subject: [U-Boot] [PATCH 3/3] dfu: Provide more verbose error message X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" It might be useful for user to see some human-readable root cause message in addition to "configuration failed" message, so that the issue can be fixed quickly. Signed-off-by: Sam Protsenko Acked-by: Lukasz Majewski --- drivers/dfu/dfu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 5b9abd685d..318949529b 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -71,6 +71,7 @@ int dfu_init_env_entities(char *interface, char *devstr) ret = dfu_config_entities(env_bkp, interface, devstr); if (ret) { pr_err("DFU entities configuration failed!\n"); + pr_err("(partition table does not match dfu_alt_info?)\n"); goto done; }