diff options
author | Mark Hatle <mark.hatle@amd.com> | 2025-02-07 16:30:21 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:15 -0600 |
commit | fdf8c93946a2eed4e964ec58717cc403ab621cca (patch) | |
tree | 8aaa442b91a6ffe87308d2a84aadd40636d43040 | |
parent | 7c00b04b3a33e0a3b44d3d489f54280a768b487b (diff) | |
download | meta-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>
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 | # |
24 | QEMU_HW_SERIAL ??= "" | 24 | QEMU_HW_SERIAL ??= "" |
25 | QB_OPT_APPEND += "${QEMU_HW_SERIAL} -nodefaults" | 25 | QB_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. | ||
31 | QB_DEFAULT_KERNEL:aarch64 = "BOOT-${MACHINE}.bin" | ||
32 | QB_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 | ||
71 | QEMU_HW_OSPI_FILE ??= "" | 71 | QEMU_HW_OSPI_FILE ??= "" |
72 | 72 | ||
73 | QB_DTB = "${QEMU_HW_DTB_PS}" | ||
74 | |||
73 | QB_OPT_APPEND += " \ | 75 | QB_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 | ||
70 | QEMU_HW_OSPI_FILE ??= "" | 70 | QEMU_HW_OSPI_FILE ??= "" |
71 | 71 | ||
72 | QB_DTB = "${QEMU_HW_DTB_PS}" | ||
73 | |||
72 | QB_OPT_APPEND += " \ | 74 | QB_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 | # |
105 | QB_DTB = "${QEMU_HW_DTB_PS}" | ||
106 | |||
105 | QB_OPT_APPEND += " \ | 107 | QB_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 \ |