[coreboot] ISOLINUX gfx problems under qemu/coreboot/SeaBIOS (was: Building of payloads fails, SeaBIOS fails in qemu)
Gerd Hoffmann
kraxel at redhat.com
Wed Oct 26 11:40:41 CEST 2016
Hi,
> graphics initialization failed
> Error setting up gfxboot
> boot:
Not sure how coreboot+seabios is configured by default.
I see that too when running with coreboot native graphics.
SeaBIOS has a coreboot vgabios which uses the coreboot framebuffer and
provides text mode emulation using the framebuffer, i.e. it works on
*any* display hardware supported by coreboot. But in that case only a
single graphics mode is available (whatever the coreboot framebuffer
resolution is, for qemu it is compile-time configurable and IIRC
1024x768 by default).
I guess gfxboot is unhappy about not finding the mode it wants use ...
With coreboot vgabios NOT being rolled into the coreboot.rom (and
CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=n) seabios will load the vgabios from
the qemu vga pci rom bar instead and everything works fine because all
usual resolutions are available then.
cheers,
Gerd
PS: https://www.kraxel.org/repos/jenkins/ has rpms with both variants
built, here is the config diff:
# diff /usr/share/doc/coreboot.git-4.5/coreboot-i440fx-seabios*
--- /usr/share/doc/coreboot.git-4.5/coreboot-i440fx-seabios-corevga.config 2016-10-26 09:06:27.000000000 +0200
+++ /usr/share/doc/coreboot.git-4.5/coreboot-i440fx-seabios.config
2016-10-26 09:06:08.000000000 +0200
@@ -117,13 +117,11 @@ CONFIG_MAINBOARD_VENDOR="Emulation"
CONFIG_MAX_CPUS=1
CONFIG_CACHE_ROM_SIZE_OVERRIDE=0x0
CONFIG_CBFS_SIZE=0x400000
-CONFIG_VGA_BIOS_ID="1234,1111"
# CONFIG_ONBOARD_VGA_IS_PRIMARY is not set
-CONFIG_VGA_BIOS=y
+# CONFIG_VGA_BIOS is not set
CONFIG_MAINBOARD_SERIAL_NUMBER="123456789"
CONFIG_DCACHE_RAM_BASE=0xd0000
CONFIG_DCACHE_RAM_SIZE=0x10000
-CONFIG_VGA_BIOS_FILE="/usr/share/seabios.git-coreboot/vgabios-coreboot.bin"
CONFIG_MAINBOARD_SMBIOS_MANUFACTURER="Emulation"
CONFIG_POST_IO=y
CONFIG_MAX_REBOOT_CNT=3
@@ -372,7 +370,7 @@ CONFIG_SUBSYSTEM_DEVICE_ID=0x0000
#
# Display
#
-CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y
+# CONFIG_FRAMEBUFFER_KEEP_VESA_MODE is not set
#
# Generic Drivers
@@ -399,8 +397,6 @@ CONFIG_FRAMEBUFFER_KEEP_VESA_MODE=y
# CONFIG_HAVE_USBDEBUG is not set
# CONFIG_HAVE_USBDEBUG_OPTIONS is not set
CONFIG_DRIVERS_EMULATION_QEMU_BOCHS=y
-CONFIG_DRIVERS_EMULATION_QEMU_BOCHS_XRES=1024
-CONFIG_DRIVERS_EMULATION_QEMU_BOCHS_YRES=768
# CONFIG_SMBIOS_PROVIDED_BY_MOBO is not set
# CONFIG_DRIVERS_I2C_PCF8523 is not set
# CONFIG_DRIVERS_I2C_RTD2132 is not set
More information about the coreboot
mailing list