summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2025-02-07 16:30:21 -0700
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:15 -0600
commitfdf8c93946a2eed4e964ec58717cc403ab621cca (patch)
tree8aaa442b91a6ffe87308d2a84aadd40636d43040
parent7c00b04b3a33e0a3b44d3d489f54280a768b487b (diff)
downloadmeta-xilinx-fdf8c93946a2eed4e964ec58717cc403ab621cca.tar.gz
meta-xilinx-core: Move APU qemu hw-dtb to QB_DTB
This will allow the caller of runqemu to override the APU's qemu dtb using the standard DEVICE_TREE environment option to runqemu. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc7
-rw-r--r--meta-xilinx-core/conf/machine/versal-generic.conf3
-rw-r--r--meta-xilinx-core/conf/machine/versal-net-generic.conf3
-rw-r--r--meta-xilinx-core/conf/machine/zynqmp-generic.conf3
4 files changed, 13 insertions, 3 deletions
diff --git a/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc b/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc
index 84856ef6..ff3faf8d 100644
--- a/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc
+++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc
@@ -23,3 +23,10 @@ IMAGE_CLASSES += "qemuboot-xilinx"
23# 23#
24QEMU_HW_SERIAL ??= "" 24QEMU_HW_SERIAL ??= ""
25QB_OPT_APPEND += "${QEMU_HW_SERIAL} -nodefaults" 25QB_OPT_APPEND += "${QEMU_HW_SERIAL} -nodefaults"
26
27# Workaround to trigger runqemu to use -dtb to send the APU DTB
28# This is done to ensure that we can easily change APU DTB at runtime via
29# standard runqemu options. (only used on multiarch systems)
30# The file is not actually used, but it does have to exist.
31QB_DEFAULT_KERNEL:aarch64 = "BOOT-${MACHINE}.bin"
32QB_KERNEL_CMDLINE:aarch64 = "none"
diff --git a/meta-xilinx-core/conf/machine/versal-generic.conf b/meta-xilinx-core/conf/machine/versal-generic.conf
index baf0d8c5..d99f3d09 100644
--- a/meta-xilinx-core/conf/machine/versal-generic.conf
+++ b/meta-xilinx-core/conf/machine/versal-generic.conf
@@ -70,8 +70,9 @@ QEMU_HW_SERIAL ?= "-serial null -serial null -serial mon:stdio -serial null"
70 70
71QEMU_HW_OSPI_FILE ??= "" 71QEMU_HW_OSPI_FILE ??= ""
72 72
73QB_DTB = "${QEMU_HW_DTB_PS}"
74
73QB_OPT_APPEND += " \ 75QB_OPT_APPEND += " \
74 -hw-dtb ${QEMU_HW_DTB_PS} \
75 ${@qemu_add_extra_args(d)} \ 76 ${@qemu_add_extra_args(d)} \
76 ${@'-bootbin ${QEMU_HW_OSPI_FILE}' if d.getVar('QEMU_HW_OSPI_FILE') != '' else ''} \ 77 ${@'-bootbin ${QEMU_HW_OSPI_FILE}' if d.getVar('QEMU_HW_OSPI_FILE') != '' else ''} \
77 " 78 "
diff --git a/meta-xilinx-core/conf/machine/versal-net-generic.conf b/meta-xilinx-core/conf/machine/versal-net-generic.conf
index a0fa8014..60d7fe1a 100644
--- a/meta-xilinx-core/conf/machine/versal-net-generic.conf
+++ b/meta-xilinx-core/conf/machine/versal-net-generic.conf
@@ -69,8 +69,9 @@ QEMU_HW_SERIAL ?= "-serial null -serial null -serial mon:stdio -serial null"
69 69
70QEMU_HW_OSPI_FILE ??= "" 70QEMU_HW_OSPI_FILE ??= ""
71 71
72QB_DTB = "${QEMU_HW_DTB_PS}"
73
72QB_OPT_APPEND += " \ 74QB_OPT_APPEND += " \
73 -hw-dtb ${QEMU_HW_DTB_PS} \
74 ${@qemu_add_extra_args(d)} \ 75 ${@qemu_add_extra_args(d)} \
75 ${@'-bootbin ${QEMU_HW_OSPI_FILE}' if d.getVar('QEMU_HW_OSPI_FILE') != '' else ''} \ 76 ${@'-bootbin ${QEMU_HW_OSPI_FILE}' if d.getVar('QEMU_HW_OSPI_FILE') != '' else ''} \
76 " 77 "
diff --git a/meta-xilinx-core/conf/machine/zynqmp-generic.conf b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
index ea7b78ad..71e24d3c 100644
--- a/meta-xilinx-core/conf/machine/zynqmp-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
@@ -102,8 +102,9 @@ QEMU_HW_DTB_PMU ?= "${QEMU_HW_DTB_PATH}/zynqmp-pmu.dtb"
102# 00000000fffc0000: 0x584e4c58 0x00000001 0x08000000 0x00000000 102# 00000000fffc0000: 0x584e4c58 0x00000001 0x08000000 0x00000000
103# 00000000fffc0010: 0x00000010 0x00000000 103# 00000000fffc0010: 0x00000010 0x00000000
104# 104#
105QB_DTB = "${QEMU_HW_DTB_PS}"
106
105QB_OPT_APPEND += " \ 107QB_OPT_APPEND += " \
106 -hw-dtb ${QEMU_HW_DTB_PS} \
107 ${@qemu_zynqmp_unhalt(d, True)} \ 108 ${@qemu_zynqmp_unhalt(d, True)} \
108 -device loader,addr=0xfffc0000,data=0x584c4e5801000000,data-be=true,data-len=8 \ 109 -device loader,addr=0xfffc0000,data=0x584c4e5801000000,data-be=true,data-len=8 \
109 -device loader,addr=0xfffc0008,data=0x0000000800000000,data-be=true,data-len=8 \ 110 -device loader,addr=0xfffc0008,data=0x0000000800000000,data-be=true,data-len=8 \