summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-vendor/conf
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-10-26 18:59:10 -0600
committerMark Hatle <mark.hatle@amd.com>2023-10-26 19:34:01 -0600
commit32a7e9eab3fd3f31e5fb9c603ba3cdff6cb36965 (patch)
treec3a7c9acb228b5d32a92b7a466bcadbf78e2c483 /meta-xilinx-vendor/conf
parent6133471e563c242f7ce8f80a9601f4382ed84d37 (diff)
downloadmeta-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-vendor/conf')
-rw-r--r--meta-xilinx-vendor/conf/machine/ultra96-zynqmp.conf11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta-xilinx-vendor/conf/machine/ultra96-zynqmp.conf b/meta-xilinx-vendor/conf/machine/ultra96-zynqmp.conf
index daa73f2a..d0b95cac 100644
--- a/meta-xilinx-vendor/conf/machine/ultra96-zynqmp.conf
+++ b/meta-xilinx-vendor/conf/machine/ultra96-zynqmp.conf
@@ -34,7 +34,7 @@ UBOOT_LOADADDRESS ?= "0x200000"
34# ultra96-zynqmp Serial Console 34# ultra96-zynqmp Serial Console
35# In Ultra96 uart1 is the primary uart device but DTG set the serial0 alias 35# In Ultra96 uart1 is the primary uart device but DTG set the serial0 alias
36# to uart1, hence we are using ttyPS0 for Ultra96. 36# to uart1, hence we are using ttyPS0 for Ultra96.
37SERIAL_CONSOLES ?= "115200;ttyPS0" 37SERIAL_CONSOLES ?= "115200;ttyPS1 115200;ttyPS0"
38YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200" 38YAML_SERIAL_CONSOLE_BAUDRATE ?= "115200"
39 39
40# Required generic machine inclusion 40# Required generic machine inclusion
@@ -58,9 +58,12 @@ QB_MEM = "-m 2G"
58# Ultra96 board uses ultra96-arm.dtb as QEMU HW PS DTB. 58# Ultra96 board uses ultra96-arm.dtb as QEMU HW PS DTB.
59QEMU_HW_DTB_PS = "${QEMU_HW_DTB_PATH}/ultra96-arm.dtb" 59QEMU_HW_DTB_PS = "${QEMU_HW_DTB_PATH}/ultra96-arm.dtb"
60 60
61# runqemu assumes psu_uart_0 is used but in Ultra96 psu_uart_1 is the primary 61# Both psu_uart_0 and psu_uart_1 are defined, but 1 is the primary uart.
62# uart device, So set psu_uart_0 as null. 62#
63QB_OPT_APPEND += " -serial null" 63# hw ps7_uart_0 (0xFF000000) - linux serial1 (ttyPS1)
64# hw ps7_uart_1 (0xFF010000) - linux serial0 (ttyPS0)
65# ? dcc / axi_uart16550_0 ? - linux serial2
66QB_XILINX_SERIAL = "-serial null -serial mon:stdio"
64 67
65# KERNEL_DEVICETREE is disabled as we use board device tree from DTG to match 68# KERNEL_DEVICETREE is disabled as we use board device tree from DTG to match
66# the xsa. User can enable explicitly if required from local.conf. 69# the xsa. User can enable explicitly if required from local.conf.