]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: odroid: Enable distro_bootcmd support.
authorVagrant Cascadian <vagrant@debian.org>
Wed, 25 Jul 2018 03:18:34 +0000 (11:18 +0800)
committerMinkyu Kang <mk7.kang@samsung.com>
Fri, 27 Jul 2018 02:19:55 +0000 (11:19 +0900)
Enable distro_bootcmd for a standardized boot process across multiple
platforms.

Acked-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
include/configs/odroid.h

index 07882aca9af3ce926d5450523a93084fc77e14bd..a4d1a76c36e44054916f5acaea324eb498862d84 100644 (file)
@@ -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 \
        "bl2 raw 0x1f 0x1d;" \
        "tzsw raw 0x83f 0x138\0"
 
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 1) \
+       func(MMC, mmc, 0)
+
+#include <config_distro_bootcmd.h>
+
 /*
  * Bootable media layout:
  * dev:    SD   eMMC(part boot)
        "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 */