From: Piotr Dymacz Date: Tue, 13 Jun 2017 20:36:55 +0000 (+0200) Subject: Fix upgrade scripts in u-boot/include/env_scripts.h X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c50eca74400eba819d99107379dd9e9414f4fcf3;p=oweals%2Fu-boot_mod.git Fix upgrade scripts in u-boot/include/env_scripts.h As we have now 'tftpboot' and 'tftpput' commands, 'tftp' shortcut doesn't work (isn't recognized as tftpboot). Use 'tftpb' instead. --- diff --git a/u-boot/include/env_scripts.h b/u-boot/include/env_scripts.h index 0888b63..513b3ea 100644 --- a/u-boot/include/env_scripts.h +++ b/u-boot/include/env_scripts.h @@ -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!; " \