Fix upgrade scripts in u-boot/include/env_scripts.h
authorPiotr Dymacz <pepe2k@gmail.com>
Tue, 13 Jun 2017 20:36:55 +0000 (22:36 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Tue, 13 Jun 2017 20:36:55 +0000 (22:36 +0200)
As we have now 'tftpboot' and 'tftpput' commands, 'tftp' shortcut
doesn't work (isn't recognized as tftpboot). Use 'tftpb' instead.

u-boot/include/env_scripts.h

index 0888b63fb153e7dc176d134d0136d9b276a3a085..513b3ea913e941e0d43a3fb840bf6798adc487c1 100644 (file)
@@ -48,7 +48,7 @@
                "uboot_size=" MK_STR(CONFIG_UPG_SCRIPTS_UBOOT_SIZE_HEX) "\0" \
                "uboot_upg=" \
                        "if ping $serverip; then " \
-                               "tftp $loadaddr $uboot_name && " \
+                               "tftpb $loadaddr $uboot_name && " \
                                "if itest.l $filesize <= $uboot_size; then " \
                                        "erase $uboot_addr +$uboot_size && " \
                                        "cp.b $loadaddr $uboot_addr $uboot_size && " \
@@ -69,7 +69,7 @@
                        "if ping $serverip; then " \
                                "mw.b $loadaddr 0xFF $uboot_bckp && " \
                                "cp.b $uboot_addr $loadaddr $uboot_bckp && " \
-                               "tftp $loadaddr $uboot_name && " \
+                               "tftpb $loadaddr $uboot_name && " \
                                "if itest.l $filesize <= $uboot_size; then " \
                                        "erase $uboot_addr +$uboot_bckp && " \
                                        "cp.b $loadaddr $uboot_addr $uboot_bckp && " \
@@ -99,7 +99,7 @@
                "fw_addr=" MK_STR(CONFIG_UPG_SCRIPTS_FW_ADDR_HEX) "\0" \
                "fw_upg=" \
                        "if ping $serverip; then " \
-                               "tftp $loadaddr $bootfile && " \
+                               "tftpb $loadaddr $bootfile && " \
                                "erase $fw_addr +$filesize && " \
                                "cp.b $loadaddr $fw_addr $filesize && " \
                                "echo DONE! Firmware upgraded!; " \