diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-ledge/0000-ti-am572x-enable-boot_distrocmd.patch')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ledge/0000-ti-am572x-enable-boot_distrocmd.patch | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ledge/0000-ti-am572x-enable-boot_distrocmd.patch b/recipes-bsp/u-boot/u-boot-ledge/0000-ti-am572x-enable-boot_distrocmd.patch new file mode 100644 index 0000000..a79164b --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-ledge/0000-ti-am572x-enable-boot_distrocmd.patch @@ -0,0 +1,73 @@ +From e4eeb6f219b54b5fab87eb61384154b5afb5034e Mon Sep 17 00:00:00 2001 +From: Christophe Priouzeau <christophe.priouzeau@st.com> +Date: Tue, 26 May 2020 14:42:17 +0200 +Subject: [PATCH 5/5] ti: am572x enable boot_distrocmd + +Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> +--- + include/configs/am57xx_evm.h | 9 +++++++++ + include/configs/ti_omap5_common.h | 1 + + include/environment/ti/boot.h | 8 ++++++++ + 3 files changed, 18 insertions(+) + +diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h +index c47ffccff1..26a4438db7 100644 +--- a/include/configs/am57xx_evm.h ++++ b/include/configs/am57xx_evm.h +@@ -43,6 +43,15 @@ + #endif + #endif + ++#ifdef CONFIG_DISTRO_DEFAULTS ++#define BOOT_TARGET_DEVICES(func) \ ++ func(MMC, mmc, 0) \ ++ func(MMC, mmc, 1) \ ++ func(USB, usb, 0) ++ ++#include <config_distro_bootcmd.h> ++#endif ++ + #include <configs/ti_omap5_common.h> + + /* Enhance our eMMC support / experience. */ +diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h +index de0a6af2fd..d44690fb3a 100644 +--- a/include/configs/ti_omap5_common.h ++++ b/include/configs/ti_omap5_common.h +@@ -67,6 +67,7 @@ + DFUARGS \ + NETARGS \ + NANDARGS \ ++ BOOTENV \ + + /* + * SPL related defines. The Public RAM memory map the ROM defines the +diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h +index a9d8f28d46..0b9588e1dd 100644 +--- a/include/environment/ti/boot.h ++++ b/include/environment/ti/boot.h +@@ -222,6 +222,7 @@ + "if test $fdtfile = undefined; then " \ + "echo WARNING: Could not determine device tree to use; fi; \0" + ++#ifndef CONFIG_BOOTCOMMAND + #define CONFIG_BOOTCOMMAND \ + "if test ${dofastboot} -eq 1; then " \ + "echo Boot fastboot requested, resetting dofastboot ...;" \ +@@ -237,6 +238,13 @@ + "run emmc_linux_boot; " \ + "run emmc_android_boot; " \ + "" ++#else ++#undef CONFIG_BOOTCOMMAND ++/* hack, ideally we should configure the CONFIG_BOOTCOMMAND from .config */ ++#define CONFIG_BOOTCOMMAND \ ++ "run findfdt; " \ ++ "run distro_bootcmd" ++#endif + + #endif /* CONFIG_OMAP54XX */ + +-- +2.17.1 + |