summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-02-16 16:50:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-18 23:53:54 +0000
commitec7beb650fd3ad445e77d2c3c8fde27556d9d0c9 (patch)
treed2b56ef92514f1eaa2f3105f12277e1fae1c863d
parente88fe83014b771b1868ee1159672c80f7710f41d (diff)
downloadpoky-ec7beb650fd3ad445e77d2c3c8fde27556d9d0c9.tar.gz
qemux86: drop resolution setting via uvesafb
I am not sure if this has ever worked, but uvesafb is a really outdated (VBE from the 1990s), awkward (needs v86d) and limited (no support for high resolutions) way to do it. The specific reason 640x480-32 was introduced (ages ago) was to force 32 bit mode with vmware driver, as 16bit had rendering issues. The modern, supported option is video=... kernel parameter documented here: https://wiki.archlinux.org/index.php/kernel_mode_setting#Forcing_modes_and_EDID https://github.com/torvalds/linux/blob/master/Documentation/fb/modedb.rst which can be passed directly to runqemu and doesn't require special kernel modules. Sato under X will continue to use 640x480 as that is hardcoded into xorg.conf under qemu. (From OE-Core rev: 1cf26f69fd89b43be24cd1232c43e5050b9d718a) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/machine/include/qemuboot-x86.inc3
-rw-r--r--meta/conf/machine/qemux86-64.conf4
-rw-r--r--meta/conf/machine/qemux86.conf4
-rw-r--r--meta/lib/oeqa/runtime/cases/parselogs.py4
4 files changed, 1 insertions, 14 deletions
diff --git a/meta/conf/machine/include/qemuboot-x86.inc b/meta/conf/machine/include/qemuboot-x86.inc
index 049681b27d..5dcc8b6f6b 100644
--- a/meta/conf/machine/include/qemuboot-x86.inc
+++ b/meta/conf/machine/include/qemuboot-x86.inc
@@ -8,9 +8,8 @@ QB_CPU_KVM_x86-64 = "-cpu core2duo"
8 8
9QB_AUDIO_DRV = "alsa" 9QB_AUDIO_DRV = "alsa"
10QB_AUDIO_OPT = "-soundhw ac97,es1370" 10QB_AUDIO_OPT = "-soundhw ac97,es1370"
11QB_KERNEL_CMDLINE_APPEND = "uvesafb.mode_option=${UVESA_MODE} oprofile.timer=1 uvesafb.task_timeout=-1" 11QB_KERNEL_CMDLINE_APPEND = "oprofile.timer=1"
12QB_OPT_APPEND = "-show-cursor -usb -device usb-tablet" 12QB_OPT_APPEND = "-show-cursor -usb -device usb-tablet"
13# Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy 13# Add the 'virtio-rng-pci' device otherwise the guest may run out of entropy
14QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" 14QB_OPT_APPEND += "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0"
15 15
16UVESA_MODE ?= "640x480-32"
diff --git a/meta/conf/machine/qemux86-64.conf b/meta/conf/machine/qemux86-64.conf
index 648cf2fe8f..db9004ee32 100644
--- a/meta/conf/machine/qemux86-64.conf
+++ b/meta/conf/machine/qemux86-64.conf
@@ -37,10 +37,6 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
37 37
38MACHINE_EXTRA_RRECOMMENDS = "kernel-module-snd-ens1370 kernel-module-snd-rawmidi" 38MACHINE_EXTRA_RRECOMMENDS = "kernel-module-snd-ens1370 kernel-module-snd-rawmidi"
39 39
40KERNEL_MODULE_AUTOLOAD += "uvesafb"
41KERNEL_MODULE_PROBECONF += "uvesafb"
42module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}"
43
44WKS_FILE ?= "qemux86-directdisk.wks" 40WKS_FILE ?= "qemux86-directdisk.wks"
45do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" 41do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
46 42
diff --git a/meta/conf/machine/qemux86.conf b/meta/conf/machine/qemux86.conf
index 8e0da82076..7e6723b880 100644
--- a/meta/conf/machine/qemux86.conf
+++ b/meta/conf/machine/qemux86.conf
@@ -34,10 +34,6 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
34 34
35MACHINE_EXTRA_RRECOMMENDS = "kernel-module-snd-ens1370 kernel-module-snd-rawmidi" 35MACHINE_EXTRA_RRECOMMENDS = "kernel-module-snd-ens1370 kernel-module-snd-rawmidi"
36 36
37KERNEL_MODULE_AUTOLOAD += "uvesafb"
38KERNEL_MODULE_PROBECONF += "uvesafb"
39module_conf_uvesafb = "options uvesafb mode_option=${UVESA_MODE}"
40
41WKS_FILE ?= "qemux86-directdisk.wks" 37WKS_FILE ?= "qemux86-directdisk.wks"
42do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" 38do_image_wic[depends] += "syslinux:do_populate_sysroot syslinux-native:do_populate_sysroot mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
43 39
diff --git a/meta/lib/oeqa/runtime/cases/parselogs.py b/meta/lib/oeqa/runtime/cases/parselogs.py
index 9dafb89b03..3cad0709a1 100644
--- a/meta/lib/oeqa/runtime/cases/parselogs.py
+++ b/meta/lib/oeqa/runtime/cases/parselogs.py
@@ -60,7 +60,6 @@ common_errors = [
60 ] 60 ]
61 61
62video_related = [ 62video_related = [
63 "uvesafb",
64] 63]
65 64
66x86_common = [ 65x86_common = [
@@ -82,11 +81,8 @@ qemux86_common = [
82 "fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.", 81 "fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.",
83 "can't claim BAR ", 82 "can't claim BAR ",
84 'amd_nb: Cannot enumerate AMD northbridges', 83 'amd_nb: Cannot enumerate AMD northbridges',
85 'uvesafb: 5000 ms task timeout, infinitely waiting',
86 'tsc: HPET/PMTIMER calibration failed', 84 'tsc: HPET/PMTIMER calibration failed',
87 "modeset(0): Failed to initialize the DRI2 extension", 85 "modeset(0): Failed to initialize the DRI2 extension",
88 "uvesafb: cannot reserve video memory at",
89 "uvesafb: probe of uvesafb.0 failed with error",
90 "glamor initialization failed", 86 "glamor initialization failed",
91] + common_errors 87] + common_errors
92 88