diff options
author | Mark Hatle <mark.hatle@amd.com> | 2023-10-26 18:59:10 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-10-26 19:34:01 -0600 |
commit | 32a7e9eab3fd3f31e5fb9c603ba3cdff6cb36965 (patch) | |
tree | c3a7c9acb228b5d32a92b7a466bcadbf78e2c483 /meta-xilinx-core/conf/machine/versal-generic.conf | |
parent | 6133471e563c242f7ce8f80a9601f4382ed84d37 (diff) | |
download | meta-xilinx-32a7e9eab3fd3f31e5fb9c603ba3cdff6cb36965.tar.gz |
various machines: Change qemu serial port configuration for nanbield
As of Yocto Project nanbield, if a -serial is pass in QB_OPT_APPEND the
runqemu may add additional null entries (padding) or simply skip further
setup.
Due to this, emulated platforms where the first hardware serial port
is not used in Linux need specific "-serial null" settings, but with
the new rules also need the real serial port defined (this can no
longer be assumed.)
The downside of this new approach is all consoles must be defined, so
we can not rely on runqemu adding "-serial mon:<device>", as now
assume the primary usage is stdio (nographic/serial port) settings.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/conf/machine/versal-generic.conf')
-rw-r--r-- | meta-xilinx-core/conf/machine/versal-generic.conf | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/meta-xilinx-core/conf/machine/versal-generic.conf b/meta-xilinx-core/conf/machine/versal-generic.conf index 9fab8875..5ee09599 100644 --- a/meta-xilinx-core/conf/machine/versal-generic.conf +++ b/meta-xilinx-core/conf/machine/versal-generic.conf | |||
@@ -89,9 +89,17 @@ QEMU_HW_DTB_PMC = "${QEMU_HW_DTB_PATH}/board-versal-pmc-vc-p-a2197-00.dtb" | |||
89 | QEMU_HW_DTB_PS_vp1202-versal = "${QEMU_HW_DTB_PATH}/board-versal-vp1202-ps-virt.dtb" | 89 | QEMU_HW_DTB_PS_vp1202-versal = "${QEMU_HW_DTB_PATH}/board-versal-vp1202-ps-virt.dtb" |
90 | QEMU_HW_DTB_PMC_vp1202-versal = "${QEMU_HW_DTB_PATH}/board-versal-vp1202-pmc-virt.dtb" | 90 | QEMU_HW_DTB_PMC_vp1202-versal = "${QEMU_HW_DTB_PATH}/board-versal-vp1202-pmc-virt.dtb" |
91 | 91 | ||
92 | QB_OPT_APPEND = " \ | 92 | # Four total serial ports defined in this model (according to the dts) |
93 | # | ||
94 | # hw serial0 xps-uartlite (f0110000) - | ||
95 | # hw serial1 ddrmc/xps-uartlite (f0310000) - | ||
96 | # hw serial2 pl011 (ff000000) - linux serial0 (ttyAMA0) | ||
97 | # hw serial3 pl011 (ff010000) - linux serial1 (ttyAMA1) (disabled) | ||
98 | # ? dcc ? - linux serial2 (????) | ||
99 | QB_XILINX_SERIAL = "-serial null -serial null -serial mon:stdio -serial null" | ||
100 | |||
101 | QB_OPT_APPEND += " \ | ||
93 | -hw-dtb ${QEMU_HW_DTB_PS} \ | 102 | -hw-dtb ${QEMU_HW_DTB_PS} \ |
94 | -serial null -serial null \ | ||
95 | ${@qemu_add_extra_args(d)} \ | 103 | ${@qemu_add_extra_args(d)} \ |
96 | " | 104 | " |
97 | 105 | ||