mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
bc87fbb0a5
commit
b181bf92e2
@@ -14,9 +14,11 @@ QB_SYSTEM_NAME = "qemu-system-aarch64"
|
||||
QB_MEM = "-m 512"
|
||||
QB_MACHINE = "-machine virt"
|
||||
QB_CPU = "-cpu cortex-a57"
|
||||
# Standard Serial console and graphics (or lack thereof in this instance)
|
||||
# Standard Serial console
|
||||
QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0"
|
||||
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 null,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%"
|
||||
|
||||
Reference in New Issue
Block a user