From c50eca74400eba819d99107379dd9e9414f4fcf3 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Tue, 13 Jun 2017 22:36:55 +0200 Subject: [PATCH] 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. --- u-boot/include/env_scripts.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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!; " \ -- 2.25.1