summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-core')
-rw-r--r--meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb16
1 files changed, 16 insertions, 0 deletions
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"
169NAND_FIT_IMAGE_OFFSET:zynq ??= "0x1080000" 169NAND_FIT_IMAGE_OFFSET:zynq ??= "0x1080000"
170NAND_FIT_IMAGE_SIZE ??= "0x6400000" 170NAND_FIT_IMAGE_SIZE ??= "0x6400000"
171 171
172# Xen boot script variables. Define here and set it from meta-virtualization
173XEN_OFFSET ??= "0xBA00000"
174XEN_LOAD_ADDRESS ?= "${@append_baseaddr(d,d.getVar('XEN_OFFSET'))}"
175XEN_IMAGE_NAME ??= "xen"
176DOM0_MEM ??= "1500M"
177XEN_SERIAL_CONSOLES ??= "serial0"
178XEN_CMDLINE_APPEND ??= ""
179DOM0_MAX_VCPUS ??= "1"
180
172# Default to booting with the rootfs device being partition 2 for SD/eMMC 181# Default to booting with the rootfs device being partition 2 for SD/eMMC
173PARTNUM ?= "2" 182PARTNUM ?= "2"
174 183
@@ -245,6 +254,13 @@ do_compile() {
245 -e 's:@@KERNEL_ROOT_SD@@:${KERNEL_ROOT_SD}:' \ 254 -e 's:@@KERNEL_ROOT_SD@@:${KERNEL_ROOT_SD}:' \
246 -e 's:@@KERNEL_ROOT_RAMDISK@@:${KERNEL_ROOT_RAMDISK}:' \ 255 -e 's:@@KERNEL_ROOT_RAMDISK@@:${KERNEL_ROOT_RAMDISK}:' \
247 -e 's:@@KERNEL_COMMAND_APPEND@@:${KERNEL_COMMAND_APPEND}:' \ 256 -e 's:@@KERNEL_COMMAND_APPEND@@:${KERNEL_COMMAND_APPEND}:' \
257 -e 's/@@XEN_IMAGE_NAME@@/${XEN_IMAGE_NAME}/' \
258 -e 's/@@XEN_OFFSET@@/${XEN_OFFSET}/' \
259 -e 's/@@XEN_LOAD_ADDRESS@@/${XEN_LOAD_ADDRESS}/' \
260 -e 's/@@DOM0_MEM@@/${DOM0_MEM}/' \
261 -e 's/@@DOM0_MAX_VCPUS@@/${DOM0_MAX_VCPUS}/' \
262 -e 's:@@XEN_SERIAL_CONSOLES@@:${XEN_SERIAL_CONSOLES}:' \
263 -e 's:@@XEN_CMDLINE_APPEND@@:${XEN_CMDLINE_APPEND}:' \
248 "${WORKDIR}/boot.cmd.${BOOTMODE}${BOOTFILE_EXT}" > "${WORKDIR}/boot.cmd" 264 "${WORKDIR}/boot.cmd.${BOOTMODE}${BOOTFILE_EXT}" > "${WORKDIR}/boot.cmd"
249 265
250 mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr 266 mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr