From bf09d5a0f92c6b5852536296b7f2e6c04f2b32bf Mon Sep 17 00:00:00 2001 From: Robie Basak Date: Thu, 16 Feb 2012 09:02:17 -0700 Subject: 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 --- include/configs/omap4_common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/configs/omap4_common.h b/include/configs/omap4_common.h index cf3dbf220..2e2af1a4a 100644 --- a/include/configs/omap4_common.h +++ b/include/configs/omap4_common.h @@ -173,6 +173,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 \ "if mmc rescan ${mmcdev}; then " \ "if run loadbootscript; then " \ @@ -189,6 +198,7 @@ "pxe get;" \ "pxe boot;" \ "fi" +#endif #define CONFIG_AUTO_COMPLETE 1 -- cgit v1.2.3