aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-10-24 00:27:07 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-04-25 07:54:02 -0600
commitf4560ca92c95ee9ae00b66643b8f0bc41ae4f83f (patch)
tree18ef4a996a93db6d6eb756241b6bb82a5fd949fa
parent71189b6b7008f14c7033377ef187e2e82650e0e3 (diff)
downloadu-boot-linaro-stable-f4560ca92c95ee9ae00b66643b8f0bc41ae4f83f.tar.gz
MX53LOCO: Enable PXE boot
Signed-off-by: John Rigby <john.rigby@linaro.org>
-rw-r--r--include/configs/mx53loco.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h
index 34a4edd41..f009579e3 100644
--- a/include/configs/mx53loco.h
+++ b/include/configs/mx53loco.h
@@ -63,6 +63,19 @@
#define CONFIG_MII
#define CONFIG_DISCOVER_PHY
+/* BOOTP options */
+#define CONFIG_BOOTP_BOOTFILESIZE
+#define CONFIG_BOOTP_BOOTPATH
+#define CONFIG_BOOTP_GATEWAY
+#define CONFIG_BOOTP_HOSTNAME
+
+/* PXE */
+#define CONFIG_CMD_PXE
+#define CONFIG_MENU
+#define CONFIG_BOOTP_PXE
+#define CONFIG_BOOTP_PXE_CLIENTARCH 0x100
+#define CONFIG_BOOTP_VCI_STRING "U-boot.armv7.mx53_loco"
+
#define CONFIG_FEC_MXC
#define IMX_FEC_BASE FEC_BASE_ADDR
#define CONFIG_FEC_MXC_PHYADDR 0x1F
@@ -121,12 +134,21 @@
"mmcboot=echo Booting from mmc ...; " \
"run mmcargs; " \
"bootm\0" \
+ "pxeboot=echo Booting from net via PXE ...; " \
+ "setenv autoload no; " \
+ " bootp; " \
+ "if pxe get; then " \
+ "pxe boot;" \
+ "fi;\0" \
"netargs=setenv bootargs console=ttymxc0,${baudrate} " \
"root=/dev/nfs " \
"ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
"netboot=echo Booting from net ...; " \
"run netargs; " \
"dhcp ${uimage}; bootm\0" \
+ "kernel_addr_r=0x88000000\0" \
+ "ramdisk_addr_r=0x81600000\0" \
+ "pxefile_addr_r=0x86000000\0"
#define CONFIG_BOOTCOMMAND \
"if mmc rescan ${mmcdev}; then " \
@@ -138,7 +160,9 @@
"else run netboot; " \
"fi; " \
"fi; " \
- "else run netboot; fi"
+ "fi; " \
+ "run pxeboot; " \
+ "run netboot; "
#define CONFIG_ARP_TIMEOUT 200UL