From patchwork Tue Dec 12 18:07:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 121619 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4448716qgn; Tue, 12 Dec 2017 10:07:49 -0800 (PST) X-Google-Smtp-Source: ACJfBosbdCFVYHJ0yIR+/D0I1448BCgaRcwj+IjeXP+Z1JscYIurXraD6he/fY6x9/2tfXvPUr+R X-Received: by 10.80.242.138 with SMTP id f10mr4078701edm.6.1513102069045; Tue, 12 Dec 2017 10:07:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513102069; cv=none; d=google.com; s=arc-20160816; b=uJ1sIIg31tBXKwg9avyB/TtyeGMD5eRR53ah79eklAIONBatnOAn9afvT2LKDyphWL IeXuDVzjAsJ8upp8PDCX31zK5D+F9K9gTG9k3s++vpTBT0zIq+Xlt+C+waEdjWgNXl97 TUES9CWmmB6hjm8lfe175gdPm8kbg1fpHQIByJPwBcnFDCgpz9nYR7Ct9cNmtx7O/9Gq Gha3YmpOpMr8hSHyVswnSORHlPFM4Fi6OZkIBHuOBUXLw0gFoGBgKQtnX2APcvsHoMwN nz2HjDyShhSipdI5ivOtzuUPqrD3PxgJ2nxhlkW5iT/ExeQ2XCGYnl0pxIWC8ZtkZO7t LXow== 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:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=P77F9YNi3MHnXmgYgB6Wb3jc4TPkyZSa3k55q4mGs0g=; b=hnRQ5IiovlUieTJ895o8qtoB7IZg5HdKD40xRt/PU1iqcUFIXJnb/CFEb4OOv0lrwf Jnz3UshPmBBHLwIG5u4wT9VrgFXWnHEOxiCg5ZZ+RRuu1ve1VUW2B3OGV7+7LpaGn4sa yANBslvgY1cI2N8eFq2Seal2iHuaJXlskpLFIZZeflw1v7tKAgZp0nOVFQO2DYdnpxMa BaOlhGZCYMqp9+zBosnslix1XsrUtUqBZsLxwzqw5VndKKFky1cLfJORx9EQvgrLZ+Ss y4m8b7aIR+HyWfu5TLo1/0Vy4jP1yocnIEpHRf3//VIlA5vGyb8HdF4zxyl8Cn5aF5Jy 1+LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=X2a/IYva; 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 h58si105116eda.257.2017.12.12.10.07.48; Tue, 12 Dec 2017 10:07:49 -0800 (PST) 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=X2a/IYva; 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 9A24AC21DB1; Tue, 12 Dec 2017 18:07:47 +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_H3, RCVD_IN_MSPIKE_WL, 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 0AF94C21CB1; Tue, 12 Dec 2017 18:07:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 800C9C21C40; Tue, 12 Dec 2017 18:07:45 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by lists.denx.de (Postfix) with ESMTPS id 095DDC21CB1 for ; Tue, 12 Dec 2017 18:07:45 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id y82so18432792wmg.1 for ; Tue, 12 Dec 2017 10:07:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Zh56xKqfoT0hyh4h2bfy1lGV7IF591kfsC9vAEMdzWs=; b=X2a/IYva8+F3gw/thNed0/3BUHksP6ypeXlcW2NqaBNGnz3HDsf7T+euclPoOclD7G vqLb6rSd8QCBUvFIvoYlMTPEG9Fi6pjoG2HqP8zFuGspk6Q0jSfKnM0PWcnQUgoU8en7 gT8IkFcYFGbHfGMg3FpoO+hl56Lmh9RNG8RZU= 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; bh=Zh56xKqfoT0hyh4h2bfy1lGV7IF591kfsC9vAEMdzWs=; b=Bbnik3bQzjzfIABuEGTAbkp5nN1gCAX4Im6MWouzcTgJxRUJpSDMfLcKvzPfDDZL0M VMfNwmmFvYGIRSsPQfLhzvF04IiYCKRPRqNz81sKWlfx6RkN0isHqizng4K88LJahMgI uYR3i2RpQgSEAi+AA8t05GrqZeoy907L9S3K5UKpU2YVgOSdzfb32RREuXyVO1nd1aUU 5jtGtcLqk/bhQJzB8zsFzOHeA6j//cre+hIfNnSSRTyzJA18g5PgXKUHmh0TQjJowuw0 tBpfs0dhzsTeJaFMjeBibmKxzIDqQnBnKou+KJ1iHOFU76uOhp5ySb50/2DRhME8yHx3 tS5A== X-Gm-Message-State: AKGB3mJb5KUpNBRIn++OMl3r0dHEYy5AE80zx7sAI49u848NcQdAYjPg 6GFf8G4Owf0QLsusqfesw/YDmVlS9Aw= X-Received: by 10.28.227.132 with SMTP id a126mr2624636wmh.41.1513102063787; Tue, 12 Dec 2017 10:07:43 -0800 (PST) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id l142sm184002wmb.43.2017.12.12.10.07.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2017 10:07:43 -0800 (PST) From: Sam Protsenko To: u-boot@lists.denx.de Date: Tue, 12 Dec 2017 20:07:41 +0200 Message-Id: <20171212180741.4896-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.15.0 Cc: Pantelis Antoniou , Tom Rini Subject: [U-Boot] [PATCH] am335x_evm: Fix DFU for eMMC 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" Use dfu_alt_info_emmc variable from include/environment/ti/dfu.h file. It was probably overlooked when extracting DFU variables to mentioned file. This patch fixes DFU on BeagleBone Black, so that we can use commands like ones below to upgrade various images on eMMC: => setenv dfu_alt_info $dfu_alt_info_emmc => dfu 0 mmc 1 $ dfu-util -D MLO -a MLO.raw $ dfu-util -D u-boot.img -a u-boot.img.raw Without this patch, the user is forced to assign the value to dfu_alt_info_emmc manually, which contradicts with instructions [1]. [1] http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User%27s_Guide Signed-off-by: Sam Protsenko Reviewed-by: Lukasz Majewski --- include/configs/am335x_evm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 5ad0366730..856c546fc1 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -255,7 +255,7 @@ /* USB Device Firmware Update support */ #ifndef CONFIG_SPL_BUILD #define DFUARGS \ - "dfu_alt_info_emmc=rawemmc raw 0 3751936\0" \ + DFU_ALT_INFO_EMMC \ DFU_ALT_INFO_MMC \ DFU_ALT_INFO_RAM \ DFU_ALT_INFO_NAND