On 5/5/2022 8:05 AM, Mark Hatle wrote:
My configuration

git clone https://git.yoctoproject.org/poky -b master
git clone https://github.com/meta-xilinx -b master-next
git clone https://github.com/meta-xilinx-tools -b master-next

. ./poky/oe-init-build-env
bitbake-layers add-layer ../meta-xilinx/meta-xilinx-core
bitbake-layers add-layer ../meta-xilinx/meta-xilinx-standalone
bitbake-layers add-layer ../meta-xilinx-tools

MACHINE=zynq-generic bitbake core-image-minimal
MACHINE=zynq-generic runqemu nographic

The behavior I get here is that the qemu session stalls.

I do the same for zynqmp-generic and it's fine, but versal-generic stalls as well.

If I had to guess it's device tree related, but I really don't know at this point.  If this is working for you, let me know your config.  Based on the below I suspect you are NOT using meta-xilinx-tools and are instead passing a static device tree?
Yeah, the one living in the bsp:
meta-xilinx-bsp/recipes-bsp/device-tree/files/qemu-zynq7.dts

And no, I am not enabling tools here at this point.



--Mark

On 5/4/22 11:48 PM, Jeremy Puhlman wrote:


On 5/4/2022 8:13 PM, Mark Hatle wrote:
Checkout the 'master-next' branches (on github.com/Xilinx) for
meta-xilinx and meta-xilinx-tools.  It _compiles_ for langdale
(master), but I was only able to get runqemu working for zynqmp-generic.

In the meta-xilinx repositority only meta-xilinx-core and
meta-xilinx-standalone have been updated at this point.

Open for additional patches.  This might also prove to be a foundation
for Kirkstone work as well.  I've not attempted kirkstone yet.

Currently I am building qemu-zynq7, on top of everything kirkstone and
master-next of meta-xilinx-core/meta-xilinux-bsp.

Seems to be working okay.
root@qemu-zynq7:~# uname -a
Linux qemu-zynq7 5.10.0-xilinx-v2022.1 #1 SMP PREEMPT Tue Oct 12
09:30:57 UTC 2021 armv7l GNU/Linux

Basically I have the changes I already sent. Then I removed the
mon:stdio define in QB_OPT_APPEND
   # Replicate BootROM like behaviour, having loaded SPL and PMU(ROM+FW)
   QB_OPT_APPEND = " \
-       -nographic -serial null -serial mon:stdio \
+       -nographic -serial null \
          -gdb tcp::9000 \


There is some weirdness with the device-tree package, but I set some
variables in local.conf and it seemed to be content, but felt like they
should be unnecessary since it was using the dts from the bsp, but otherwise
it started up and seems to be running fine.

Yeah I am looking through some of the other machines, if I run into
other stuff ill send it up.


--Mark

On 5/4/22 7:02 PM, Mark Hatle wrote:


On 5/4/22 5:41 PM, Jeremy Puhlman wrote:


On 5/4/2022 12:56 PM, Jeremy Puhlman via lists.yoctoproject.org wrote:


On 5/4/2022 12:37 PM, Mark Hatle wrote:
What is your configuration for these?  I'm using the default config
and not getting any of these errors.  I want to try to match what
I can.

(Assume DISTRO_FEATURES?)

(I don't doubt the selinux one is wrong, since I know I don't have
that one.  At one point the selinux config was a YP specific patch.)

Again this is off of master, not honister. The oe-core alsa config is
--audio-drv-list=default, which leads to the specific error for
alsa, and
the pulsedio is --enable/disable, but the config doesn't know what
etiher of them are.

As an aside it appears the master/kirkstone version of runqemu sets

"-nographic -serial null -serial mon:stdio"

based on if you specify nographic(it sets it to mon:vc otherwise) on
the
command line or not.

This ends up duplicating -serial mon:* on the qemu command line.
Removing the mon setting in  QB_OPT_APPEND in zynq-generic.conf
allows it to run, but leaving it in it exits complaining about the
conflict(even if the setting is identical).

    > runqemu - ERROR - Failed to run qemu: qemu-system-aarch64: -serial
mon:stdio: cannot use stdio by multiple character devices
    > qemu-system-aarch64: -serial mon:stdio: could not connect serial
device to character backend 'mon:stdio'

Thanks, I'll attempt to get this resolved as well.

Thanks!
--Mark


--Mark

On 5/4/22 1:29 PM, Jeremy Puhlman wrote:
+PACKAGECONFIG[alsa] = "--audio-drv-list=alsa,,alsa-lib"
| ERROR: Unknown driver 'default' selected
|        Possible drivers are: oss alsa sdl pa

+PACKAGECONFIG[pulsedio] = "--audio-drv-list=pa,,pulseaudio"
| ERROR: unknown option --disable-pa

+#PACKAGECONFIG[selinux] = ""
| ERROR: unknown option --disable-selinux

Signed-off-by: Jeremy A. Puhlman <[email protected]>
---
meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx.inc | 8 ++++++++
     1 file changed, 8 insertions(+)

diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx.inc
b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx.inc
index 9f402a2b..225dce3a 100644
--- a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx.inc
+++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx.inc
@@ -30,10 +30,18 @@ S = "${WORKDIR}/git"
     PACKAGECONFIG:remove = "kvm"
     PACKAGECONFIG:append = " fdt sdl gcrypt pie"
     +
     PACKAGECONFIG[gcrypt] =
"--enable-gcrypt,--disable-gcrypt,libgcrypt,"
     PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2"
     PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,,"
     +# Remove when version is in sync with core oe-core
+PACKAGECONFIG:remove:class-nativesdk= "pulsedio"
+PACKAGECONFIG:remove:class-native = "pulsedio"
+PACKAGECONFIG[alsa] = "--audio-drv-list=alsa,,alsa-lib"
+PACKAGECONFIG[pulsedio] = "--audio-drv-list=pa,,pulseaudio"
+PACKAGECONFIG[selinux] = ""
+
     DISABLE_STATIC:pn-${PN} = ""
     EXTRA_OECONF:remove = " --with-git=/bin/false
--with-git-submodules=ignore"




























-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5013): 
https://lists.yoctoproject.org/g/meta-xilinx/message/5013
Mute This Topic: https://lists.yoctoproject.org/mt/90894568/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to