[OE-core] [PATCH] runqemu: Fix guest has not initialized error
shohei.maruyama at cybertrust.co.jp
shohei.maruyama at cybertrust.co.jp
Wed Aug 28 05:07:46 UTC 2019
By default qemu use -device VGA,edid=on but in some case cannot use
display because of it.
---
meta/conf/machine/qemuarm64.conf | 2 +-
scripts/runqemu | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf
index 5c8aac1511..2c6d4dfc98 100644
--- a/meta/conf/machine/qemuarm64.conf
+++ b/meta/conf/machine/qemuarm64.conf
@@ -17,7 +17,7 @@ QB_CPU = "-cpu cortex-a57"
# Standard Serial console
QB_KERNEL_CMDLINE_APPEND = "console=ttyAMA0"
# 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,edid=on"
+QB_OPT_APPEND = "-show-cursor"
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"
diff --git a/scripts/runqemu b/scripts/runqemu
index 28ecee97a7..d4ff5b9eb9 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -397,6 +397,8 @@ class BaseConfig(object):
self.kernel_cmdline_script += ' console=ttyS0'
elif arg == 'sdl':
self.qemu_opt_script += ' -display sdl'
+ elif arg == 'gtk':
+ self.qemu_opt_script += ' -device virtio-gpu-pci'
elif arg == 'gtk-gl':
self.qemu_opt_script += ' -device virtio-gpu-pci,virgl=on -display gtk,gl=on'
elif arg == 'gtk-gl-es':
--
2.23.0
More information about the Openembedded-core
mailing list