From 9c7f4d9adf6de5133c11a38e251c573200ebe130 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 2 Feb 2015 12:23:52 +0530 Subject: colibri_vf: Enable update procedure using USB mass storage Add default environment variable allowing update of the on-board flash using USB mass storage in addition to SD card. Signed-off-by: Sanchayan Maity [merged with SD-card update script] Signed-off-by: Stefan Agner --- include/configs/colibri_vf.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h index 98ff456d71..6cb1c9a1fa 100644 --- a/include/configs/colibri_vf.h +++ b/include/configs/colibri_vf.h @@ -172,11 +172,15 @@ "fdt_board=eval-v3\0" \ "defargs=\0" \ "console=ttyLP0\0" \ - "setup=setenv setupargs " \ - "fec_mac=${ethaddr} console=tty1 console=${console}" \ - ",${baudrate}n8 ${memargs}\0" \ - "setupdate=fatload mmc 0:1 ${loadaddr} flash_mmc.img && " \ + "setup=setenv setupargs fec_mac=${ethaddr} " \ + "console=tty1 console=${console},${baudrate}n8 ${memargs}\0" \ + "setsdupdate=mmc rescan && set interface mmc && " \ + "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \ "source ${loadaddr}\0" \ + "setusbupdate=usb start && set interface usb && " \ + "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \ + "source ${loadaddr}\0" \ + "setupdate=run setsdupdate || run setusbupdate\0" \ "mtdparts=" MTDPARTS_DEFAULT "\0" \ "dfu_alt_info=" DFU_ALT_NAND_INFO "\0" \ SD_BOOTCMD \ -- cgit v1.2.3