From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vagrant Cascadian Date: Tue, 5 Jun 2018 14:13:54 -0700 Subject: [U-Boot] [PATCH 3/4] arm: odroid: Enable distro_bootcmd support. In-Reply-To: <20180605211355.6433-1-vagrant@debian.org> References: <20180605211355.6433-1-vagrant@debian.org> Message-ID: <20180605211355.6433-4-vagrant@debian.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 */ -- 2.11.0