summaryrefslogtreecommitdiff
path: root/include/configs/mx53cx9020.h
diff options
context:
space:
mode:
authorPatrick Bruenn <p.bruenn@beckhoff.com>2017-07-11 09:23:21 (GMT)
committerStefano Babic <sbabic@denx.de>2017-07-12 08:29:57 (GMT)
commitbc104a706601b576f01c1029e2adbb188a9acf43 (patch)
treec2360a01ac9f3380df104b9299323db7abd27361 /include/configs/mx53cx9020.h
parentf8e63850c219967ea4be0267353b099e6ecd385c (diff)
downloadu-boot-bc104a706601b576f01c1029e2adbb188a9acf43.tar.xz
imx: cx9020: try pxe boot, if no vmlinuz on mmc
If no vmlinuz is found on mmc, try to boot from pxe. Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
Diffstat (limited to 'include/configs/mx53cx9020.h')
-rw-r--r--include/configs/mx53cx9020.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/mx53cx9020.h b/include/configs/mx53cx9020.h
index b056298..cff1462 100644
--- a/include/configs/mx53cx9020.h
+++ b/include/configs/mx53cx9020.h
@@ -67,6 +67,7 @@
#define CONFIG_EXTRA_ENV_SETTINGS \
"fdt_addr_r=0x71ff0000\0" \
+ "pxefile_addr_r=0x73000000\0" \
"ramdisk_addr_r=0x72000000\0" \
"console=ttymxc1,115200\0" \
"uenv=/boot/uEnv.txt\0" \
@@ -81,6 +82,7 @@
"rootfstype=${mmcrootfstype} " \
"${cmdline}\0" \
"loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
+ "loadpxe=dhcp;setenv kernel_addr_r ${loadaddr};pxe get;pxe boot;\0" \
"loadrd=load mmc ${bootpart} ${ramdisk_addr_r} ${bootdir}/${rdfile};" \
"setenv rdsize ${filesize}\0" \
"loadfdt=echo loading ${fdt_path} ...;" \
@@ -130,6 +132,9 @@
"echo debug: [${bootargs}] ... ;" \
"echo debug: [bootz ${loadaddr} - ${fdt_addr_r}];" \
"bootz ${loadaddr} - ${fdt_addr_r}; " \
+ "else " \
+ "echo loading from dhcp ...; " \
+ "run loadpxe; " \
"fi;\0"
#define CONFIG_BOOTCOMMAND \