Skip to contentSkip to conversation

Add 'bootz' to a list of supported boot commands

ImageBuilder Michal Orzel 2 participants 2 messages Nov 14, 2023

lore
Share & tools
lore
#0 lore raw

At the moment, in order to boot 32-bit images, we need to set BOOT_CMD to 'bootm' which results in adding a u-boot header on top of an image. Add 'bootz' to a list of supported boot commands, so that we can skip this extra step. In most cases, specifying 'bootm' should only be needed for images without Linux kernel Image/zImage header. Otherwise, we can use 'booti'/'bootz'.

---
 README.md                | 4 ++--
 scripts/uboot-script-gen | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
README.md +2 -2
index fe5d2052cc69..3b4b16f1f7e4 100644
@@ -80,8 +80,8 @@ Where:
   though.
 
 - BOOT_CMD specifies the u-boot command used to boot the binaries.
-  By default, it is 'booti'. The acceptable values are 'booti', 'bootm'
-  and 'bootefi' and 'none'. If the value is 'none', the BOOT_CMD is not
+  By default, it is 'booti'. The acceptable values are 'booti', 'bootm',
+  'bootz' and 'bootefi' and 'none'. If the value is 'none', the BOOT_CMD is not
   added to the boot script, and the addresses for the Xen binary and the
   DTB are stored in 'host_kernel_addr' and 'host_fdt_addr' u-boot
   env variables respectively, to be used manually when booting.
scripts/uboot-script-gen +1 -1
index 6e52da5e2aca..9e3d86e4743a 100755
@@ -1041,7 +1041,7 @@ function check_depends()
 
 function check_boot_cmd()
 {
-    if ! [[ " bootm booti bootefi none " =~ " ${BOOT_CMD}" ]]
+    if ! [[ " bootm booti bootz bootefi none " =~ " ${BOOT_CMD}" ]]
     then
         echo "\"BOOT_CMD=$BOOT_CMD\" is not valid"
         exit 1
Signature · 1 line
2.25.1
Reviewed-by
#1 lore raw
Quoted 8 lines · Michal Orzel

At the moment, in order to boot 32-bit images, we need to set BOOT_CMD to 'bootm' which results in adding a u-boot header on top of an image. Add 'bootz' to a list of supported boot commands, so that we can skip this extra step. In most cases, specifying 'bootm' should only be needed for images without Linux kernel Image/zImage header. Otherwise, we can use 'booti'/'bootz'.

Quoted 36 lines
---
 README.md                | 4 ++--
 scripts/uboot-script-gen | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
README.md +2 -2
index fe5d2052cc69..3b4b16f1f7e4 100644
@@ -80,8 +80,8 @@ Where:
   though.
 
 - BOOT_CMD specifies the u-boot command used to boot the binaries.
-  By default, it is 'booti'. The acceptable values are 'booti', 'bootm'
-  and 'bootefi' and 'none'. If the value is 'none', the BOOT_CMD is not
+  By default, it is 'booti'. The acceptable values are 'booti', 'bootm',
+  'bootz' and 'bootefi' and 'none'. If the value is 'none', the BOOT_CMD is not
   added to the boot script, and the addresses for the Xen binary and the
   DTB are stored in 'host_kernel_addr' and 'host_fdt_addr' u-boot
   env variables respectively, to be used manually when booting.
scripts/uboot-script-gen +1 -1
index 6e52da5e2aca..9e3d86e4743a 100755
@@ -1041,7 +1041,7 @@ function check_depends()
 
 function check_boot_cmd()
 {
-    if ! [[ " bootm booti bootefi none " =~ " ${BOOT_CMD}" ]]
+    if ! [[ " bootm booti bootz bootefi none " =~ " ${BOOT_CMD}" ]]
     then
         echo "\"BOOT_CMD=$BOOT_CMD\" is not valid"
         exit 1
Signature · 1 line
2.25.1