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/zynq-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/zynq-generic.conf')
-rw-r--r-- | meta-xilinx-core/conf/machine/zynq-generic.conf | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/meta-xilinx-core/conf/machine/zynq-generic.conf b/meta-xilinx-core/conf/machine/zynq-generic.conf index 673dad68..3dea2012 100644 --- a/meta-xilinx-core/conf/machine/zynq-generic.conf +++ b/meta-xilinx-core/conf/machine/zynq-generic.conf | |||
@@ -75,9 +75,17 @@ QB_NETWORK_DEVICE = "-net nic,netdev=net0,macaddr=@MAC@" | |||
75 | 75 | ||
76 | QB_KERNEL_ROOT = "/dev/mmcblk0p2" | 76 | QB_KERNEL_ROOT = "/dev/mmcblk0p2" |
77 | 77 | ||
78 | # Side effect of not-enabled serial port is we have to lock | ||
79 | # the second (console) to mon:stdio. | ||
80 | # | ||
81 | # Two total serial ports defined in this model (according to the generated dts) | ||
82 | # | ||
83 | # hw uart0 xuartps (e0000000) - | ||
84 | # hw uart1 xuartps (e0001000) - linux serial0 (ttyPS0) | ||
85 | QB_XILINX_SERIAL = "-serial null -serial mon:stdio" | ||
86 | |||
78 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) | 87 | # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW) |
79 | QB_OPT_APPEND = " \ | 88 | QB_OPT_APPEND += " \ |
80 | -serial null \ | ||
81 | -device loader,addr=0xf8000008,data=0xDF0D,data-len=4 \ | 89 | -device loader,addr=0xf8000008,data=0xDF0D,data-len=4 \ |
82 | -device loader,addr=0xf8000140,data=0x00500801,data-len=4 \ | 90 | -device loader,addr=0xf8000140,data=0x00500801,data-len=4 \ |
83 | -device loader,addr=0xf800012c,data=0x1ed044d,data-len=4 \ | 91 | -device loader,addr=0xf800012c,data=0x1ed044d,data-len=4 \ |