From 014b20f293b046157a6128ee6b939e83df8b8cd3 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 25 Nov 2016 15:58:52 +0530 Subject: 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 Signed-off-by: Stefan Agner --- include/configs/colibri_vf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/configs') 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 \ -- cgit v1.2.3