aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobie Basak <robie.basak@ubuntu.com>2012-02-16 09:02:17 -0700
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 12:16:42 -0700
commit9d4e941e86bcf70e176b1abdf8f918822570f531 (patch)
tree395351bb1443b51fe8c5ce91b0773f44be855d51
parent5461313e54cce1bc85c0599d6dc7ba3c49094b62 (diff)
OMAP4: Force PXE booting when booting via spl-usb
So we don't use boot script on MMC/SD card. Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--include/configs/omap4_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/omap4_common.h b/include/configs/omap4_common.h
index 61a29707c..7bf1c1bd4 100644
--- a/include/configs/omap4_common.h
+++ b/include/configs/omap4_common.h
@@ -169,6 +169,15 @@
"ramdisk_addr_r=0x81600000\0" \
"pxefile_addr_r=0x86000000\0"
+#ifdef CONFIG_SPL_USB
+#define CONFIG_BOOTCOMMAND \
+ "if usb start; then " \
+ "set autoload no; "\
+ "bootp; "\
+ "pxe get;" \
+ "pxe boot;" \
+ "fi"
+#else
#define CONFIG_BOOTCOMMAND \
"mmc dev ${mmcdev}; if mmc rescan; then " \
"if run loadbootscript; then " \
@@ -185,6 +194,7 @@
"pxe get;" \
"pxe boot;" \
"fi"
+#endif
#define CONFIG_AUTO_COMPLETE 1