]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
board/BuR/common: rename "usbupdate" environment to "usbscript"
authorHannes Petermaier <oe5hpm@oevsv.at>
Fri, 24 Apr 2015 12:49:39 +0000 (14:49 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:38:41 +0000 (22:38 +0200)
usbupdate in real does allways load some script from usb-storage and execute
it, on all B&R targets.

So we do following 2 things:
- rename it to what it really does
- move it from boards to common environment

Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
board/BuR/kwb/board.c
include/configs/bur_am335x_common.h
include/configs/kwb.h
include/configs/tseries.h

index 6eed7e0d7f689b9808124af8fc5a4e31bce4b626..01dd1d9915bd54a5c82a13503272e9176db63e4f 100644 (file)
@@ -214,8 +214,8 @@ int board_late_init(void)
                            gpio_get_value(PUSH_KEY) && 1 == cnt) {
                                lcd_position_cursor(1, 8);
                                lcd_puts(
-                               "updating U-BOOT from USB ...           ");
-                               setenv("bootcmd", "run usbupdate");
+                               "starting u-boot script from USB ...    ");
+                               setenv("bootcmd", "run usbscript");
                                cnt = 4;
                                break;
                        } else if ((!gpio_get_value(ESC_KEY) &&
index c74140b240d63dcf6a14dc34f8464e93b0dc33b6..b441fa038d3ad078646561e7564cda06d14d0614 100644 (file)
@@ -13,6 +13,7 @@
 #define __BUR_AM335X_COMMON_H__
 /* ------------------------------------------------------------------------- */
 #define BUR_COMMON_ENV \
+"usbscript=usb start && fatload usb 0 0x80000000 usbscript.img && source\0" \
 "defaultip=192.168.60.253\0" \
 "defaultsip=192.168.60.254\0" \
 "netconsole=echo switching to network console ...; " \
index 7798b8001deb966baf00a1287e033adc857f54f7..d1c745e6ab605c68afd857a47d072f33921b3e17 100644 (file)
@@ -80,10 +80,6 @@ BUR_COMMON_ENV \
        "run loadromfs; " \
        "tftp ${loadaddr} arimg && go ${loadaddr}; " \
        "puts 'networkboot failed!';\0" \
-"usbupdate=echo updating u-boot from usb ...; " \
-       "usb start; " \
-       "fatload usb 0 0x80000000 updateubootusb.img && source; " \
-       "puts 'usbupdate failed!'\0" \
 "netscript=echo running script from network (tftp) ...; " \
        "tftp 0x80000000 netscript.img && source; " \
        "puts 'netscript load failed!'\0" \
@@ -101,7 +97,7 @@ BUR_COMMON_ENV \
 #endif /* !CONFIG_SPL_BUILD*/
 
 #define CONFIG_BOOTCOMMAND \
-       "run usbupdate;"
+       "run usbscript;"
 #define CONFIG_BOOTDELAY               0
 
 /* undefine command which we not need here */
index 115fd5b2d2e13687fc374e1de3c6674fa78ec085..92185333884706e138d04aaf58947567b1be856e 100644 (file)
        "run mmcroot1; bootz ${loadaddr} - ${dtbaddr};\0" \
 "defboot=ext4load mmc 0:2 ${loadaddr} /boot/PPTImage.md5 && run mmcboot1; " \
        "ext4load mmc 0:1 ${dtbaddr} /$dtb && run mmcboot0; " \
-       "run ramboot; run usbupdate;\0" \
+       "run ramboot; run usbscript;\0" \
 "bootlimit=1\0" \
 "altbootcmd=run mmcboot0;\0" \
 "upduboot=dhcp; " \
@@ -185,8 +185,6 @@ BUR_COMMON_ENV \
        "then; else tftp ${dtbaddr} ${dtb}; fi;" \
        "run mmcroot0; " \
        "bootz ${loadaddr} ${ramaddr} ${dtbaddr}; fi;\0" \
-"usbupdate=echo Updating UBOOT from USB-Stick ...; " \
-       "usb start && fatload usb 0 0x80000000 updateubootusb.img && source\0" \
 "netupdate=echo Updating UBOOT from Network (TFTP) ...; " \
        "setenv autoload 0; " \
        "dhcp && tftp 0x80000000 updateUBOOT.img && source;\0" \