summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-02-20 14:52:21 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-23 22:35:00 +0000
commitacfa0e0dce918ef86e94a4f159e113c7c1f54540 (patch)
tree4e38d60374c18145f2b8ef83db80a27dcdfd21bf
parentfa35f3ef9c1f61bc79bb84540ca696da0a9641ac (diff)
downloadpoky-acfa0e0dce918ef86e94a4f159e113c7c1f54540.tar.gz
runqemu: Add new option to disable vga emulation
When using nographic, explicitly disabling vga is needed some cases since some qemu firmware (OpenFirmware ) defaults to std vga, and when vga is enabled then it disables output to serial and redirects that to vga which is by design, hwoever we expect the console output to go to serial when using nographic, therefore its important to disable vga with nographic especially on qemu based ppc platforms (From OE-Core rev: eabbdb3c4f78ab23348a6b988f59d9d98b5e2c7c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index dd92a64553..532f2e338d 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -65,6 +65,7 @@ of the following environment variables (in any order):
65 MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified) 65 MACHINE - the machine name (optional, autodetected from KERNEL filename if unspecified)
66 Simplified QEMU command-line options can be passed with: 66 Simplified QEMU command-line options can be passed with:
67 nographic - disable video console 67 nographic - disable video console
68 novga - Disable VGA emulation completely
68 sdl - choose the SDL UI frontend 69 sdl - choose the SDL UI frontend
69 gtk - choose the Gtk UI frontend 70 gtk - choose the Gtk UI frontend
70 gl - enable virgl-based GL acceleration (also needs gtk or sdl options) 71 gl - enable virgl-based GL acceleration (also needs gtk or sdl options)
@@ -489,6 +490,8 @@ class BaseConfig(object):
489 elif arg == 'egl-headless': 490 elif arg == 'egl-headless':
490 self.set_dri_path() 491 self.set_dri_path()
491 self.qemu_opt_script += ' -vga virtio -display egl-headless,show-cursor=on' 492 self.qemu_opt_script += ' -vga virtio -display egl-headless,show-cursor=on'
493 elif arg == 'novga':
494 self.qemu_opt_script += ' -vga none'
492 elif arg == 'serial': 495 elif arg == 'serial':
493 self.kernel_cmdline_script += ' console=ttyS0' 496 self.kernel_cmdline_script += ' console=ttyS0'
494 self.serialconsole = True 497 self.serialconsole = True