uboot: update fw install scripts to remove source fs from commands

The 'source file system' was removed as an argument from the
'update' command in U-Boot v2020.04.
For platforms using such version, remove it from the update fw
scripts.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DUB-983
This commit is contained in:
Hector Palacios 2021-01-07 12:33:30 +01:00
parent c124a019a4
commit 1e5cafeb79
10 changed files with 80 additions and 40 deletions

View File

@ -82,7 +82,11 @@ echo ""
echo ">> Installing U-Boot boot loader (target will reset)" echo ">> Installing U-Boot boot loader (target will reset)"
echo "" echo ""
echo "" echo ""
update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME} update uboot mmc ${INSTALL_MMCDEV} ${INSTALL_UBOOT_FILENAME}
if test $? -eq 1; then
# Use old-style update with source file system argument
update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME}
fi
if test $? -eq 1; then if test $? -eq 1; then
echo "[ERROR] Failed to update U-Boot boot loader!"; echo "[ERROR] Failed to update U-Boot boot loader!";
echo ""; echo "";
@ -107,7 +111,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part linux; nand erase.part linux;
update linux mmc ${INSTALL_MMCDEV} fat ${INSTALL_LINUX_FILENAME}; update linux mmc ${INSTALL_MMCDEV} ${INSTALL_LINUX_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update linux partition!\"; echo \"[ERROR] Failed to update linux partition!\";
echo \"\"; echo \"\";
@ -120,7 +124,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part recovery; nand erase.part recovery;
update recovery mmc ${INSTALL_MMCDEV} fat ${INSTALL_RECOVERY_FILENAME}; update recovery mmc ${INSTALL_MMCDEV} ${INSTALL_RECOVERY_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update recovery partition!\"; echo \"[ERROR] Failed to update recovery partition!\";
echo \"\"; echo \"\";
@ -133,7 +137,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part rootfs; nand erase.part rootfs;
update rootfs mmc ${INSTALL_MMCDEV} fat ${INSTALL_ROOTFS_FILENAME}; update rootfs mmc ${INSTALL_MMCDEV} ${INSTALL_ROOTFS_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update rootfs partition!\"; echo \"[ERROR] Failed to update rootfs partition!\";
echo \"\"; echo \"\";

View File

@ -82,7 +82,11 @@ echo ""
echo ">> Installing U-Boot boot loader (target will reset)" echo ">> Installing U-Boot boot loader (target will reset)"
echo "" echo ""
echo "" echo ""
update uboot usb ${INSTALL_USBDEV} fat ${INSTALL_UBOOT_FILENAME} update uboot usb ${INSTALL_USBDEV} ${INSTALL_UBOOT_FILENAME}
if test $? -eq 1; then
# Use old-style update with source file system argument
update uboot mmc ${INSTALL_USBDEV} fat ${INSTALL_UBOOT_FILENAME}
fi
if test $? -eq 1; then if test $? -eq 1; then
echo "[ERROR] Failed to update U-Boot boot loader!"; echo "[ERROR] Failed to update U-Boot boot loader!";
echo ""; echo "";
@ -108,7 +112,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part linux; nand erase.part linux;
update linux usb ${INSTALL_USBDEV} fat ${INSTALL_LINUX_FILENAME}; update linux usb ${INSTALL_USBDEV} ${INSTALL_LINUX_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update linux partition!\"; echo \"[ERROR] Failed to update linux partition!\";
echo \"\"; echo \"\";
@ -121,7 +125,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part recovery; nand erase.part recovery;
update recovery usb ${INSTALL_USBDEV} fat ${INSTALL_RECOVERY_FILENAME}; update recovery usb ${INSTALL_USBDEV} ${INSTALL_RECOVERY_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update recovery partition!\"; echo \"[ERROR] Failed to update recovery partition!\";
echo \"\"; echo \"\";
@ -134,7 +138,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part rootfs; nand erase.part rootfs;
update rootfs usb ${INSTALL_USBDEV} fat ${INSTALL_ROOTFS_FILENAME}; update rootfs usb ${INSTALL_USBDEV} ${INSTALL_ROOTFS_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update rootfs partition!\"; echo \"[ERROR] Failed to update rootfs partition!\";
echo \"\"; echo \"\";

View File

@ -82,7 +82,11 @@ echo ""
echo ">> Installing U-Boot boot loader (target will reset)" echo ">> Installing U-Boot boot loader (target will reset)"
echo "" echo ""
echo "" echo ""
update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME} update uboot mmc ${INSTALL_MMCDEV} ${INSTALL_UBOOT_FILENAME}
if test $? -eq 1; then
# Use old-style update with source file system argument
update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME}
fi
if test $? -eq 1; then if test $? -eq 1; then
echo "[ERROR] Failed to update U-Boot boot loader!"; echo "[ERROR] Failed to update U-Boot boot loader!";
echo ""; echo "";
@ -107,7 +111,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part linux; nand erase.part linux;
update linux mmc ${INSTALL_MMCDEV} fat ${INSTALL_LINUX_FILENAME}; update linux mmc ${INSTALL_MMCDEV} ${INSTALL_LINUX_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update linux partition!\"; echo \"[ERROR] Failed to update linux partition!\";
echo \"\"; echo \"\";
@ -120,7 +124,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part recovery; nand erase.part recovery;
update recovery mmc ${INSTALL_MMCDEV} fat ${INSTALL_RECOVERY_FILENAME}; update recovery mmc ${INSTALL_MMCDEV} ${INSTALL_RECOVERY_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update recovery partition!\"; echo \"[ERROR] Failed to update recovery partition!\";
echo \"\"; echo \"\";
@ -133,7 +137,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part rootfs; nand erase.part rootfs;
update rootfs mmc ${INSTALL_MMCDEV} fat ${INSTALL_ROOTFS_FILENAME}; update rootfs mmc ${INSTALL_MMCDEV} ${INSTALL_ROOTFS_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update rootfs partition!\"; echo \"[ERROR] Failed to update rootfs partition!\";
echo \"\"; echo \"\";

View File

@ -82,7 +82,11 @@ echo ""
echo ">> Installing U-Boot boot loader (target will reset)" echo ">> Installing U-Boot boot loader (target will reset)"
echo "" echo ""
echo "" echo ""
update uboot usb ${INSTALL_USBDEV} fat ${INSTALL_UBOOT_FILENAME} update uboot usb ${INSTALL_USBDEV} ${INSTALL_UBOOT_FILENAME}
if test $? -eq 1; then
# Use old-style update with source file system argument
update uboot mmc ${INSTALL_USBDEV} fat ${INSTALL_UBOOT_FILENAME}
fi
if test $? -eq 1; then if test $? -eq 1; then
echo "[ERROR] Failed to update U-Boot boot loader!"; echo "[ERROR] Failed to update U-Boot boot loader!";
echo ""; echo "";
@ -108,7 +112,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part linux; nand erase.part linux;
update linux usb ${INSTALL_USBDEV} fat ${INSTALL_LINUX_FILENAME}; update linux usb ${INSTALL_USBDEV} ${INSTALL_LINUX_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update linux partition!\"; echo \"[ERROR] Failed to update linux partition!\";
echo \"\"; echo \"\";
@ -121,7 +125,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part recovery; nand erase.part recovery;
update recovery usb ${INSTALL_USBDEV} fat ${INSTALL_RECOVERY_FILENAME}; update recovery usb ${INSTALL_USBDEV} ${INSTALL_RECOVERY_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update recovery partition!\"; echo \"[ERROR] Failed to update recovery partition!\";
echo \"\"; echo \"\";
@ -134,7 +138,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
nand erase.part rootfs; nand erase.part rootfs;
update rootfs usb ${INSTALL_USBDEV} fat ${INSTALL_ROOTFS_FILENAME}; update rootfs usb ${INSTALL_USBDEV} ${INSTALL_ROOTFS_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update rootfs partition!\"; echo \"[ERROR] Failed to update rootfs partition!\";
echo \"\"; echo \"\";

View File

@ -53,7 +53,11 @@ echo ""
echo ">> Installing U-Boot boot loader (target will reset)" echo ">> Installing U-Boot boot loader (target will reset)"
echo "" echo ""
echo "" echo ""
update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME} update uboot mmc ${INSTALL_MMCDEV} ${INSTALL_UBOOT_FILENAME}
if test $? -eq 1; then
# Use old-style update with source file system argument
update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME}
fi
if test $? -eq 1; then if test $? -eq 1; then
echo "[ERROR] Failed to update U-Boot boot loader!"; echo "[ERROR] Failed to update U-Boot boot loader!";
echo ""; echo "";
@ -93,7 +97,7 @@ setenv bootcmd "
echo \">> Installing Linux kernel and device tree files\"; echo \">> Installing Linux kernel and device tree files\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update linux mmc ${INSTALL_MMCDEV} fat ${INSTALL_LINUX_FILENAME}; update linux mmc ${INSTALL_MMCDEV} ${INSTALL_LINUX_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update linux partition!\"; echo \"[ERROR] Failed to update linux partition!\";
echo \"\"; echo \"\";
@ -105,7 +109,7 @@ setenv bootcmd "
echo \">> Installing recovery\"; echo \">> Installing recovery\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update recovery mmc ${INSTALL_MMCDEV} fat ${INSTALL_RECOVERY_FILENAME}; update recovery mmc ${INSTALL_MMCDEV} ${INSTALL_RECOVERY_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update recovery partition!\"; echo \"[ERROR] Failed to update recovery partition!\";
echo \"\"; echo \"\";
@ -117,7 +121,7 @@ setenv bootcmd "
echo \">> Installing Linux root file system\"; echo \">> Installing Linux root file system\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update rootfs mmc ${INSTALL_MMCDEV} fat ${INSTALL_ROOTFS_FILENAME}; update rootfs mmc ${INSTALL_MMCDEV} ${INSTALL_ROOTFS_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update rootfs partition!\"; echo \"[ERROR] Failed to update rootfs partition!\";
echo \"\"; echo \"\";

View File

@ -53,7 +53,11 @@ echo ""
echo ">> Installing U-Boot boot loader (target will reset)" echo ">> Installing U-Boot boot loader (target will reset)"
echo "" echo ""
echo "" echo ""
update uboot usb ${INSTALL_USBDEV} fat ${INSTALL_UBOOT_FILENAME} update uboot usb ${INSTALL_USBDEV} ${INSTALL_UBOOT_FILENAME}
if test $? -eq 1; then
# Use old-style update with source file system argument
update uboot mmc ${INSTALL_USBDEV} fat ${INSTALL_UBOOT_FILENAME}
fi
if test $? -eq 1; then if test $? -eq 1; then
echo "[ERROR] Failed to update U-Boot boot loader!"; echo "[ERROR] Failed to update U-Boot boot loader!";
echo ""; echo "";
@ -94,7 +98,7 @@ setenv bootcmd "
echo \">> Installing Linux kernel and device tree files\"; echo \">> Installing Linux kernel and device tree files\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update linux usb ${INSTALL_USBDEV} fat ${INSTALL_LINUX_FILENAME}; update linux usb ${INSTALL_USBDEV} ${INSTALL_LINUX_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update linux partition!\"; echo \"[ERROR] Failed to update linux partition!\";
echo \"\"; echo \"\";
@ -106,7 +110,7 @@ setenv bootcmd "
echo \">> Installing recovery\"; echo \">> Installing recovery\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update recovery usb ${INSTALL_USBDEV} fat ${INSTALL_RECOVERY_FILENAME}; update recovery usb ${INSTALL_USBDEV} ${INSTALL_RECOVERY_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update recovery partition!\"; echo \"[ERROR] Failed to update recovery partition!\";
echo \"\"; echo \"\";
@ -118,7 +122,7 @@ setenv bootcmd "
echo \">> Installing Linux root file system\"; echo \">> Installing Linux root file system\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update rootfs usb ${INSTALL_USBDEV} fat ${INSTALL_ROOTFS_FILENAME}; update rootfs usb ${INSTALL_USBDEV} ${INSTALL_ROOTFS_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update rootfs partition!\"; echo \"[ERROR] Failed to update rootfs partition!\";
echo \"\"; echo \"\";

View File

@ -124,7 +124,11 @@ echo ""
echo ">> Installing U-Boot boot loader (target will reset)" echo ">> Installing U-Boot boot loader (target will reset)"
echo "" echo ""
echo "" echo ""
update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME} update uboot mmc ${INSTALL_MMCDEV} ${INSTALL_UBOOT_FILENAME}
if test $? -eq 1; then
# Use old-style update with source file system argument
update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME}
fi
if test $? -eq 1; then if test $? -eq 1; then
echo "[ERROR] Failed to update U-Boot boot loader!"; echo "[ERROR] Failed to update U-Boot boot loader!";
echo ""; echo "";
@ -164,7 +168,7 @@ setenv bootcmd "
echo \">> Installing Linux kernel and device tree files\"; echo \">> Installing Linux kernel and device tree files\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update linux mmc ${INSTALL_MMCDEV} fat ${INSTALL_LINUX_FILENAME}; update linux mmc ${INSTALL_MMCDEV} ${INSTALL_LINUX_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update linux partition!\"; echo \"[ERROR] Failed to update linux partition!\";
echo \"\"; echo \"\";
@ -176,7 +180,7 @@ setenv bootcmd "
echo \">> Installing recovery\"; echo \">> Installing recovery\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update recovery mmc ${INSTALL_MMCDEV} fat ${INSTALL_RECOVERY_FILENAME}; update recovery mmc ${INSTALL_MMCDEV} ${INSTALL_RECOVERY_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update recovery partition!\"; echo \"[ERROR] Failed to update recovery partition!\";
echo \"\"; echo \"\";
@ -188,7 +192,7 @@ setenv bootcmd "
echo \">> Installing Linux root file system\"; echo \">> Installing Linux root file system\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update rootfs mmc ${INSTALL_MMCDEV} fat ${INSTALL_ROOTFS_FILENAME}; update rootfs mmc ${INSTALL_MMCDEV} ${INSTALL_ROOTFS_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update rootfs partition!\"; echo \"[ERROR] Failed to update rootfs partition!\";
echo \"\"; echo \"\";

View File

@ -122,7 +122,11 @@ echo ""
echo ">> Installing U-Boot boot loader (target will reset)" echo ">> Installing U-Boot boot loader (target will reset)"
echo "" echo ""
echo "" echo ""
update uboot usb ${INSTALL_USBDEV} fat ${INSTALL_UBOOT_FILENAME} update uboot usb ${INSTALL_USBDEV} ${INSTALL_UBOOT_FILENAME}
if test $? -eq 1; then
# Use old-style update with source file system argument
update uboot mmc ${INSTALL_USBDEV} fat ${INSTALL_UBOOT_FILENAME}
fi
if test $? -eq 1; then if test $? -eq 1; then
echo "[ERROR] Failed to update U-Boot boot loader!"; echo "[ERROR] Failed to update U-Boot boot loader!";
echo ""; echo "";
@ -163,7 +167,7 @@ setenv bootcmd "
echo \">> Installing Linux kernel and device tree files\"; echo \">> Installing Linux kernel and device tree files\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update linux usb ${INSTALL_USBDEV} fat ${INSTALL_LINUX_FILENAME}; update linux usb ${INSTALL_USBDEV} ${INSTALL_LINUX_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update linux partition!\"; echo \"[ERROR] Failed to update linux partition!\";
echo \"\"; echo \"\";
@ -175,7 +179,7 @@ setenv bootcmd "
echo \">> Installing recovery\"; echo \">> Installing recovery\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update recovery usb ${INSTALL_USBDEV} fat ${INSTALL_RECOVERY_FILENAME}; update recovery usb ${INSTALL_USBDEV} ${INSTALL_RECOVERY_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update recovery partition!\"; echo \"[ERROR] Failed to update recovery partition!\";
echo \"\"; echo \"\";
@ -187,7 +191,7 @@ setenv bootcmd "
echo \">> Installing Linux root file system\"; echo \">> Installing Linux root file system\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update rootfs usb ${INSTALL_USBDEV} fat ${INSTALL_ROOTFS_FILENAME}; update rootfs usb ${INSTALL_USBDEV} ${INSTALL_ROOTFS_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update rootfs partition!\"; echo \"[ERROR] Failed to update rootfs partition!\";
echo \"\"; echo \"\";

View File

@ -124,7 +124,11 @@ echo ""
echo ">> Installing U-Boot boot loader (target will reset)" echo ">> Installing U-Boot boot loader (target will reset)"
echo "" echo ""
echo "" echo ""
update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME} update uboot mmc ${INSTALL_MMCDEV} ${INSTALL_UBOOT_FILENAME}
if test $? -eq 1; then
# Use old-style update with source file system argument
update uboot mmc ${INSTALL_MMCDEV} fat ${INSTALL_UBOOT_FILENAME}
fi
if test $? -eq 1; then if test $? -eq 1; then
echo "[ERROR] Failed to update U-Boot boot loader!"; echo "[ERROR] Failed to update U-Boot boot loader!";
echo ""; echo "";
@ -164,7 +168,7 @@ setenv bootcmd "
echo \">> Installing Linux kernel and device tree files\"; echo \">> Installing Linux kernel and device tree files\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update linux mmc ${INSTALL_MMCDEV} fat ${INSTALL_LINUX_FILENAME}; update linux mmc ${INSTALL_MMCDEV} ${INSTALL_LINUX_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update linux partition!\"; echo \"[ERROR] Failed to update linux partition!\";
echo \"\"; echo \"\";
@ -176,7 +180,7 @@ setenv bootcmd "
echo \">> Installing recovery\"; echo \">> Installing recovery\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update recovery mmc ${INSTALL_MMCDEV} fat ${INSTALL_RECOVERY_FILENAME}; update recovery mmc ${INSTALL_MMCDEV} ${INSTALL_RECOVERY_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update recovery partition!\"; echo \"[ERROR] Failed to update recovery partition!\";
echo \"\"; echo \"\";
@ -188,7 +192,7 @@ setenv bootcmd "
echo \">> Installing Linux root file system\"; echo \">> Installing Linux root file system\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update rootfs mmc ${INSTALL_MMCDEV} fat ${INSTALL_ROOTFS_FILENAME}; update rootfs mmc ${INSTALL_MMCDEV} ${INSTALL_ROOTFS_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update rootfs partition!\"; echo \"[ERROR] Failed to update rootfs partition!\";
echo \"\"; echo \"\";

View File

@ -124,7 +124,11 @@ echo ""
echo ">> Installing U-Boot boot loader (target will reset)" echo ">> Installing U-Boot boot loader (target will reset)"
echo "" echo ""
echo "" echo ""
update uboot usb ${INSTALL_USBDEV} fat ${INSTALL_UBOOT_FILENAME} update uboot usb ${INSTALL_USBDEV} ${INSTALL_UBOOT_FILENAME}
if test $? -eq 1; then
# Use old-style update with source file system argument
update uboot mmc ${INSTALL_USBDEV} fat ${INSTALL_UBOOT_FILENAME}
fi
if test $? -eq 1; then if test $? -eq 1; then
echo "[ERROR] Failed to update U-Boot boot loader!"; echo "[ERROR] Failed to update U-Boot boot loader!";
echo ""; echo "";
@ -165,7 +169,7 @@ setenv bootcmd "
echo \">> Installing Linux kernel and device tree files\"; echo \">> Installing Linux kernel and device tree files\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update linux usb ${INSTALL_USBDEV} fat ${INSTALL_LINUX_FILENAME}; update linux usb ${INSTALL_USBDEV} ${INSTALL_LINUX_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update linux partition!\"; echo \"[ERROR] Failed to update linux partition!\";
echo \"\"; echo \"\";
@ -177,7 +181,7 @@ setenv bootcmd "
echo \">> Installing recovery\"; echo \">> Installing recovery\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update recovery usb ${INSTALL_USBDEV} fat ${INSTALL_RECOVERY_FILENAME}; update recovery usb ${INSTALL_USBDEV} ${INSTALL_RECOVERY_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update recovery partition!\"; echo \"[ERROR] Failed to update recovery partition!\";
echo \"\"; echo \"\";
@ -189,7 +193,7 @@ setenv bootcmd "
echo \">> Installing Linux root file system\"; echo \">> Installing Linux root file system\";
echo \"\"; echo \"\";
echo \"\"; echo \"\";
update rootfs usb ${INSTALL_USBDEV} fat ${INSTALL_ROOTFS_FILENAME}; update rootfs usb ${INSTALL_USBDEV} ${INSTALL_ROOTFS_FILENAME};
if test \$? -eq 1; then if test \$? -eq 1; then
echo \"[ERROR] Failed to update rootfs partition!\"; echo \"[ERROR] Failed to update rootfs partition!\";
echo \"\"; echo \"\";