From patchwork Fri Jul 13 13:35:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 141889 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp815931ljj; Fri, 13 Jul 2018 06:36:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeIHLL2qENVaD1CGeywC3tV3zQs888RFrruYmGMCsB4qWl7S+SSABn/6W1Y0HyvyPL40ash X-Received: by 2002:a50:a542:: with SMTP id z2-v6mr6905501edb.77.1531489019458; Fri, 13 Jul 2018 06:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531489019; cv=none; d=google.com; s=arc-20160816; b=t14jSE2Ujx61tkfINr6w/TUKQfn0QlbjY6+so3CREG0QcNHZnzfZOn57i/T2da7YTX dFunFjGPcKzcfHFJSQy45Fd0f3AHmJp3j/Vpv9nScDcsLaQgvruTT9R201DjGzIcV1xJ zCFMsHN6hkuM8zg8rXt+Ag49D3yO/Eob20siMo5BvM80N8ITcLfbc0ZcoRuIqJ5SrlY2 c2zfECRTuA7f+LvEvEJybq7cBx2blr6C0741pDnx47hoSE+qa1RCwg85doZ/mqKTUIu9 uE2aScJJanRWjyGhziVetQcp7updvjmKDCSTXBWyW64oc6nxR5npX3geVuJnMxE1v+B1 W/bQ== 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=D46np50gjDFrZBs6EDArHsM3tAAoY/Je3DVo6Z5g9hQ=; b=RuEIXPohMaJ2VcNv0HOEX0BZBTOU8i+mnohRJoyifvAMQcS39rfQRVme96IcZBwxmU v9M1PyXOMoeDX4ydyVymXsHfM8yeqcwrDOBlNyvKaUb6E/t19OCFk+yBX7wByDYXlpuh hOMIYFSFjfCDGpMh0LxY+ZhspuMK3YPH1olp2YFnN53J6iG2MAnsQNApFRV0HBzlkYjS ahPNGVn8jtCU5dPtk5ucDo7za8M+2Q0lRmRz9aBRnm63RVcsprV9/+FC/58MQ+jQ+oJs zVd8+d83GSbt5tSOhe/j4otxCKXa1IU9u3oOo2uxoTanN/ootQjaeMMyGNDVFOGngToq A/AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KtsEoyrg; 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 i31-v6si142983edd.265.2018.07.13.06.36.59; Fri, 13 Jul 2018 06:36:59 -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=KtsEoyrg; 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 0F30FC22065; Fri, 13 Jul 2018 13:36:28 +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 083C8C22045; Fri, 13 Jul 2018 13:36:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D08E8C21DB3; Fri, 13 Jul 2018 13:35:56 +0000 (UTC) Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by lists.denx.de (Postfix) with ESMTPS id 73A6FC22035 for ; Fri, 13 Jul 2018 13:35:53 +0000 (UTC) Received: by mail-lj1-f194.google.com with SMTP id q127-v6so23956934ljq.11 for ; Fri, 13 Jul 2018 06:35:53 -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=7R2oWp/eXfkMYmwTVLLRQ2UJz9ZmFcTelQygGRvV01M=; b=KtsEoyrgZrFkLxdBWL30t/d636Cz9ionKPUmCJKnkoHCL+q7duc4L7repNCDOEZS2F ukv+XGaTxRtQZsc3+SDFZnnzKLVXlnllsoVAMJgW7B7iywZ2ol7bw9TAGNLIh4lLXJUD GQvhrgvM5Draww2jlWaYqG1IUg1MGCFMiPxOE= 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=7R2oWp/eXfkMYmwTVLLRQ2UJz9ZmFcTelQygGRvV01M=; b=qyjob9eHls75Qi4MZgWc79lH/Tbopmu65gy6pMMNmrIeGDnChgxLZlHAsp/hQlB8PG dH88FFMqQSt8dgnJT7mHs2pjF7jZWMAjc9zlhe1E2YDvTQFzYxkkZvj7po7jiHcv+m5/ kdY1S/CJMI+oBWyVTGD0bikfIjEGPkrSpmxwA2WHoXlRa5j1xTlfS6SyduoupalhbfdY 4MDqdcjefV5tpTJ50RMq3qIeW6Qb9v5QLwCkY5FTCPFMuDKeClV1uJmgsIsttIJ4SWmh SBYW/f8ZluRMEj4xNUZjjw8jFbnsJ7VsnQh5daLcnkGf84HeW2kcqi+FS0Qj3OmCkBVw P5lw== X-Gm-Message-State: AOUpUlHj+G+NBTUrrFsY1vb4utmGP9WTbyqD2LbGbQI+jU3PAriN1mXC +zL5StOLdxewrbl9LP6UoRJj415qk4U= X-Received: by 2002:a2e:6c07:: with SMTP id h7-v6mr3436322ljc.81.1531488952616; Fri, 13 Jul 2018 06:35:52 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id j26-v6sm2674639ljc.54.2018.07.13.06.35.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Jul 2018 06:35:51 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Fri, 13 Jul 2018 16:35:47 +0300 Message-Id: <20180713133547.21094-3-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180713133547.21094-1-semen.protsenko@linaro.org> References: <20180713133547.21094-1-semen.protsenko@linaro.org> Cc: Tom Rini Subject: [U-Boot] [PATCH v2 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 --- Changes in v2: - None 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; }