diff options
-rw-r--r-- | README.md | 5 | ||||
-rwxr-xr-x | scripts/uboot-script-gen | 11 |
2 files changed, 13 insertions, 3 deletions
@@ -81,7 +81,10 @@ Where: - 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 '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. - DEVICE_TREE specifies the DTB file to load. diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen index a4ddd1e..995798d 100755 --- a/scripts/uboot-script-gen +++ b/scripts/uboot-script-gen @@ -888,7 +888,7 @@ function check_depends() function check_boot_cmd() { - if ! [[ " bootm booti bootefi " =~ " ${BOOT_CMD}" ]] + if ! [[ " bootm booti bootefi none " =~ " ${BOOT_CMD}" ]] then echo "\"BOOT_CMD=$BOOT_CMD\" is not valid" exit 1 @@ -1167,7 +1167,14 @@ then cat $APPEND_EXTRA_CMDS >> $UBOOT_SOURCE fi -echo "$BOOT_CMD $kernel_addr - $device_tree_addr" >> $UBOOT_SOURCE +if [ "$BOOT_CMD" != "none" ] +then + echo "$BOOT_CMD $kernel_addr - $device_tree_addr" >> $UBOOT_SOURCE +else + # skip boot command but store load addresses to be used later + echo "setenv host_kernel_addr $kernel_addr" >> $UBOOT_SOURCE + echo "setenv host_fdt_addr $device_tree_addr" >> $UBOOT_SOURCE +fi if test "$FIT" then |