summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSanchayan Maity <maitysanchayan@gmail.com>2016-11-25 15:58:52 +0530
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-01-11 21:25:10 +0100
commit014b20f293b046157a6128ee6b939e83df8b8cd3 (patch)
treeaf122eda271bf7710dcf525440cf1f20f5ec4f9b /include
parentfaad0d904fa457ed228e9dd239278f2fb8047b5d (diff)
colibri_vf: introduce automatic ethernet update capability
Introduce Ethernet update capability via setethupdate which is automatically tried by setupdate as well should SD and USB update fail (e.g. neither an SD card nor an USB memory stick with our flash_blk.img script and accompanying artefacts is inserted. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/colibri_vf.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h
index a53e471fbe6..2abf5d95fff 100644
--- a/include/configs/colibri_vf.h
+++ b/include/configs/colibri_vf.h
@@ -143,7 +143,10 @@
"setusbupdate=usb start && set interface usb && " \
"fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \
"source ${loadaddr}\0" \
- "setupdate=run setsdupdate || run setusbupdate\0" \
+ "setethupdate=if env exists ethaddr; then; else setenv ethaddr " \
+ "00:14:2d:00:00:00; fi; tftpboot ${loadaddr} " \
+ "flash_eth.img && source ${loadaddr}\0" \
+ "setupdate=run setsdupdate || run setusbupdate || run setethupdate\0" \
"mtdparts=" MTDPARTS_DEFAULT "\0" \
"dfu_alt_info=" DFU_ALT_NAND_INFO "\0" \
SD_BOOTCMD \