From beaad9ac9b471c5e1e6fe9f0aa720d998378a5f9 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 27 Nov 2020 13:47:46 +0100 Subject: [PATCH] Fix boot script issues (#1024) (#1026) The change "Avoid trying to boot non-existing kernel image in failover case" introduced a broken boot script on Raspberry Pi (when booting from partition B) and ODROID-XU4. --- buildroot-external/board/hardkernel/odroid-xu4/uboot-boot.ush | 2 +- buildroot-external/board/raspberrypi/uboot-boot.ush | 2 +- buildroot-external/board/raspberrypi/uboot-boot64.ush | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/buildroot-external/board/hardkernel/odroid-xu4/uboot-boot.ush b/buildroot-external/board/hardkernel/odroid-xu4/uboot-boot.ush index d2bb75c1a..f50a2d761 100644 --- a/buildroot-external/board/hardkernel/odroid-xu4/uboot-boot.ush +++ b/buildroot-external/board/hardkernel/odroid-xu4/uboot-boot.ush @@ -78,7 +78,7 @@ fi printenv bootargs echo "Starting kernel" -booti ${kernel_addr_r} - ${fdt_addr_r} +bootz ${kernel_addr_r} - ${fdt_addr_r} echo "Boot failed, resetting..." reset diff --git a/buildroot-external/board/raspberrypi/uboot-boot.ush b/buildroot-external/board/raspberrypi/uboot-boot.ush index 1c92c9a00..fd636e6ad 100644 --- a/buildroot-external/board/raspberrypi/uboot-boot.ush +++ b/buildroot-external/board/raspberrypi/uboot-boot.ush @@ -46,7 +46,7 @@ for BOOT_SLOT in "${BOOT_ORDER}"; do if test ${BOOT_B_LEFT} -gt 0; then setexpr BOOT_B_LEFT ${BOOT_B_LEFT} - 1 echo "Trying to boot slot B, ${BOOT_B_LEFT} attempts remaining. Loading kernel ..." - if ext4load ${devtype} ${devnum}:4 ${kernel_addr_r} zImage"; then + if ext4load ${devtype} ${devnum}:4 ${kernel_addr_r} zImage; then setenv bootargs "${bootargs_hassos} ${bootargs_rpi} ${bootargs_b} rauc.slot=B" fi fi diff --git a/buildroot-external/board/raspberrypi/uboot-boot64.ush b/buildroot-external/board/raspberrypi/uboot-boot64.ush index 34740a02c..4feec7e51 100644 --- a/buildroot-external/board/raspberrypi/uboot-boot64.ush +++ b/buildroot-external/board/raspberrypi/uboot-boot64.ush @@ -46,7 +46,7 @@ for BOOT_SLOT in "${BOOT_ORDER}"; do if test ${BOOT_B_LEFT} -gt 0; then setexpr BOOT_B_LEFT ${BOOT_B_LEFT} - 1 echo "Trying to boot slot B, ${BOOT_B_LEFT} attempts remaining. Loading kernel ..." - if ext4load ${devtype} ${devnum}:4 ${kernel_addr_r} Image"; then + if ext4load ${devtype} ${devnum}:4 ${kernel_addr_r} Image; then setenv bootargs "${bootargs_hassos} ${bootargs_rpi} ${bootargs_b} rauc.slot=B" fi fi