[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [OE-Core][RFC 2/2] qemuarm64: Add graphics support
From: Jon Mason <jdmason () kudzu ! us>
Date: 2019-02-28 4:15:41
Message-ID: 20190228041541.14628-3-jdmason () kudzu ! us
[Download RAW message or body]
Add the necessary parts to qemuarm64.conf for graphics to be shown in
the SDL window, and USB so that it is possible to interact with it.
Signed-off-by: Jon Mason <jdmason@kudzu.us>
---
meta/conf/machine/qemuarm64.conf | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf
index 8d4a482fec..e8362260b9 100644
--- a/meta/conf/machine/qemuarm64.conf
+++ b/meta/conf/machine/qemuarm64.conf
@@ -16,7 +16,9 @@ QB_MACHINE = "-machine virt"
QB_CPU = "-cpu cortex-a57"
# We need both ttyAMA0 and tty1 to allow for this to work in the stdio mode or the \
normal mode QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0 console=tty1"
-QB_OPT_APPEND = "-show-cursor -monitor null"
+# For graphics to work we need to define the VGA device as well as the necessary USB \
devices +QB_OPT_APPEND = "-show-cursor -device VGA"
+QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd"
# Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device \
virtio-rng-pci,rng=rng0" # Virtio Networking support
@@ -27,3 +29,5 @@ QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw \
-device virtio # Virtio serial console
QB_SERIAL_OPT = "-device virtio-serial-device -chardev vc,id=virtcon -device \
virtconsole,chardev=virtcon" QB_TCPSERIAL_OPT = "-device virtio-serial-device \
-chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device \
virtconsole,chardev=virtcon" +
+PREFERRED_VERSION_linux-yocto ?= "4.19%"
--
2.17.2
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic