From c38486bcf2512f3f5f56c735b4fdd65324480059 Mon Sep 17 00:00:00 2001 From: Sandeep Gundlupet Raju Date: Thu, 10 Aug 2023 16:35:22 -0600 Subject: u-boot-xlnx-scr: Add variables for xen boot Add variables for xen u-boot script and define in meta-virtualization dynamic layer bbapends. Variables are set wtih weak default assignment. Signed-off-by: Sandeep Gundlupet Raju Signed-off-by: Mark Hatle --- meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb index 76e074b4..5fe663d2 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb @@ -169,6 +169,15 @@ NAND_FIT_IMAGE_OFFSET ??= "0x4180000" NAND_FIT_IMAGE_OFFSET:zynq ??= "0x1080000" NAND_FIT_IMAGE_SIZE ??= "0x6400000" +# Xen boot script variables. Define here and set it from meta-virtualization +XEN_OFFSET ??= "0xBA00000" +XEN_LOAD_ADDRESS ?= "${@append_baseaddr(d,d.getVar('XEN_OFFSET'))}" +XEN_IMAGE_NAME ??= "xen" +DOM0_MEM ??= "1500M" +XEN_SERIAL_CONSOLES ??= "serial0" +XEN_CMDLINE_APPEND ??= "" +DOM0_MAX_VCPUS ??= "1" + # Default to booting with the rootfs device being partition 2 for SD/eMMC PARTNUM ?= "2" @@ -245,6 +254,13 @@ do_compile() { -e 's:@@KERNEL_ROOT_SD@@:${KERNEL_ROOT_SD}:' \ -e 's:@@KERNEL_ROOT_RAMDISK@@:${KERNEL_ROOT_RAMDISK}:' \ -e 's:@@KERNEL_COMMAND_APPEND@@:${KERNEL_COMMAND_APPEND}:' \ + -e 's/@@XEN_IMAGE_NAME@@/${XEN_IMAGE_NAME}/' \ + -e 's/@@XEN_OFFSET@@/${XEN_OFFSET}/' \ + -e 's/@@XEN_LOAD_ADDRESS@@/${XEN_LOAD_ADDRESS}/' \ + -e 's/@@DOM0_MEM@@/${DOM0_MEM}/' \ + -e 's/@@DOM0_MAX_VCPUS@@/${DOM0_MAX_VCPUS}/' \ + -e 's:@@XEN_SERIAL_CONSOLES@@:${XEN_SERIAL_CONSOLES}:' \ + -e 's:@@XEN_CMDLINE_APPEND@@:${XEN_CMDLINE_APPEND}:' \ "${WORKDIR}/boot.cmd.${BOOTMODE}${BOOTFILE_EXT}" > "${WORKDIR}/boot.cmd" mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr -- cgit v1.2.3-54-g00ecf