From patchwork Tue Jun 5 21:13:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 925636 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=debian.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 410l3y13GQz9s0W for ; Wed, 6 Jun 2018 07:16:46 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id CF41DC21FE0; Tue, 5 Jun 2018 21:15:24 +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=none 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 DD0CAC21F98; Tue, 5 Jun 2018 21:14:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 199E1C21F99; Tue, 5 Jun 2018 21:14:30 +0000 (UTC) Received: from cascadia.aikidev.net (cascadia.aikidev.net [173.255.214.101]) by lists.denx.de (Postfix) with ESMTP id BCFF9C21FBC for ; Tue, 5 Jun 2018 21:14:29 +0000 (UTC) Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@aikidev.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id C62C31AA3B; Tue, 5 Jun 2018 14:14:28 -0700 (PDT) From: Vagrant Cascadian To: u-boot@lists.denx.de Date: Tue, 5 Jun 2018 14:13:54 -0700 Message-Id: <20180605211355.6433-4-vagrant@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180605211355.6433-1-vagrant@debian.org> References: <20180605211355.6433-1-vagrant@debian.org> Cc: Marek Vasut , Tom Rini , Vagrant Cascadian Subject: [U-Boot] [PATCH 3/4] arm: odroid: Enable distro_bootcmd support. 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" Enable distro_bootcmd for a standardized boot process across multiple platforms. Signed-off-by: Vagrant Cascadian --- include/configs/odroid.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/configs/odroid.h b/include/configs/odroid.h index c795ee8c74..e6224ba2f1 100644 --- a/include/configs/odroid.h +++ b/include/configs/odroid.h @@ -41,7 +41,7 @@ /* Console configuration */ -#define CONFIG_BOOTCOMMAND "run autoboot" +#define CONFIG_BOOTCOMMAND "run distro_bootcmd ; run autoboot" #define CONFIG_DEFAULT_CONSOLE "ttySAC1,115200n8" #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR \ @@ -83,6 +83,12 @@ "bl2 raw 0x1f 0x1d;" \ "tzsw raw 0x83f 0x138\0" +#define BOOT_TARGET_DEVICES(func) \ + func(MMC, mmc, 1) \ + func(MMC, mmc, 0) + +#include + /* * Bootable media layout: * dev: SD eMMC(part boot) @@ -167,7 +173,8 @@ "ramdisk_addr_r=0x42000000\0" \ "scriptaddr=0x42000000\0" \ "fdt_addr_r=0x40800000\0" \ - "kernel_addr_r=0x41000000\0" + "kernel_addr_r=0x41000000\0" \ + BOOTENV /* GPT */