omap5_distro_bootcmd
authorVagrant Cascadian <vagrant@debian.org>
Mon, 24 Oct 2016 02:36:36 +0000 (02:36 +0000)
committerVagrant Cascadian <vagrant@debian.org>
Mon, 24 Oct 2016 02:36:36 +0000 (02:36 +0000)
===================================================================

Gbp-Pq: Topic am57xx
Gbp-Pq: Name omap5_distro_bootcmd

include/configs/ti_omap5_common.h

index cbdf0bc0dbbe94ac56c9f754237c0c7e9dbf4367..1f5fb9a78c31c7aef45822a49e594d45c8ff8938 100644 (file)
 #define DFUARGS
 #endif
 
+#define BOOT_TARGET_DEVICES(func) \
+       func(MMC, mmc, 0) \
+       func(MMC, mmc, 1) \
+       func(PXE, pxe, na) \
+       func(DHCP, dhcp, na)
+
+#define CONFIG_BOOTCOMMAND \
+       "run findfdt; " \
+       "run distro_bootcmd"
+
+#include <config_distro_bootcmd.h>
+
 #ifndef CONFIG_SPL_BUILD
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile};\0" \
        DFUARGS \
        NETARGS \
+       BOOTENV
 
-#define CONFIG_BOOTCOMMAND \
-       "if test ${dofastboot} -eq 1; then " \
-               "echo Boot fastboot requested, resetting dofastboot ...;" \
-               "setenv dofastboot 0; saveenv;" \
-               "echo Booting into fastboot ...; fastboot 0;" \
-       "fi;" \
-       "run findfdt; " \
-       "run envboot; " \
-       "run mmcboot;" \
-       "setenv mmcdev 1; " \
-       "setenv bootpart 1:2; " \
-       "setenv mmcroot /dev/mmcblk0p2 rw; " \
-       "run mmcboot;" \
-       ""
 #endif
 
 /*