diff options
author | Jon Mason <jdmason@kudzu.us> | 2019-03-05 17:32:18 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-06 16:26:47 +0000 |
commit | b181bf92e2bc51a808478c12fe62177d966f2a85 (patch) | |
tree | 1f575910486c87b409355179d5b1febc67a5062a /meta/conf | |
parent | bc87fbb0a53e4953605e378e14cfe47f9a944a3d (diff) | |
download | poky-b181bf92e2bc51a808478c12fe62177d966f2a85.tar.gz |
qemuarm64: Add graphics support
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.
(From OE-Core rev: 7098a0e9115416b2cc1234e86893f8b9337e7849)
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/machine/qemuarm64.conf | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf index 43078588a8..e17245a0f7 100644 --- a/meta/conf/machine/qemuarm64.conf +++ b/meta/conf/machine/qemuarm64.conf | |||
@@ -14,9 +14,11 @@ QB_SYSTEM_NAME = "qemu-system-aarch64" | |||
14 | QB_MEM = "-m 512" | 14 | QB_MEM = "-m 512" |
15 | QB_MACHINE = "-machine virt" | 15 | QB_MACHINE = "-machine virt" |
16 | QB_CPU = "-cpu cortex-a57" | 16 | QB_CPU = "-cpu cortex-a57" |
17 | # Standard Serial console and graphics (or lack thereof in this instance) | 17 | # Standard Serial console |
18 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0" | 18 | QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0" |
19 | QB_OPT_APPEND = "-show-cursor -monitor null" | 19 | # For graphics to work we need to define the VGA device as well as the necessary USB devices |
20 | QB_OPT_APPEND = "-show-cursor -device VGA" | ||
21 | QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd" | ||
20 | # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy | 22 | # Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy |
21 | QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" | 23 | QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" |
22 | # Virtio Networking support | 24 | # Virtio Networking support |
@@ -27,3 +29,5 @@ QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio | |||
27 | # Virtio serial console | 29 | # Virtio serial console |
28 | QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon" | 30 | QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=virtcon" |
29 | QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon" | 31 | QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.0.1 -device virtconsole,chardev=virtcon" |
32 | |||
33 | PREFERRED_VERSION_linux-yocto ?= "4.19%" | ||