Skip to content

Commit a9ec050

Browse files
committed
WiP VGA correctness
Status qemu coreboot config: +CONFIG_GENERIC_LINEAR_FRAMEBUFFER=y momentarily qemu linux config: +CONFIG_X86_SYSFB=y seems to be requirement for non legacy VESA bringup, but seems to break Heads?!? removal of vga 16 removal of vesa leaving simplefb NOTE: CONFIG_DRM_FBDEV_EMULATION is required and provides linux console support on top of modesetting driver modules/linux/coreboot: add modify helpers to generate in place oldconfigs and defconfigs WiP: kexec-boot: modifying kexec passed boot options on qemu for Tinycore. A bit confused on why kexec call just freezes there. Next time is investigating how to gdb into qemu for firmware, since we should have output on host console even if qemu is not able to get vga, and vga should be able to be reused from kexec call since: user@heads-tests:/media/boot$ zcat core.gz | cpio -ivt | grep -e vga -e fb -e drm -e virt lrwxrwxrwx 1 root root 17 May 8 2022 usr/sbin/fbset -> ../../bin/busybox drwxr-xr-x 3 root root 0 May 8 2022 lib/modules/5.15.10-tinycore/kernel/virt drwxr-xr-x 2 root root 0 May 8 2022 lib/modules/5.15.10-tinycore/kernel/virt/lib -rw-r--r-- 1 root root 1779 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/virt/lib/irqbypass.ko.gz -rw-r--r-- 1 root root 4556 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/net/vmw_vsock/vmw_vsock_virtio_transport.ko.gz -rw-r--r-- 1 root root 6898 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko.gz drwxr-xr-x 3 root root 0 May 8 2022 lib/modules/5.15.10-tinycore/kernel/drivers/video/fbdev -rw-r--r-- 1 root root 9612 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/video/fbdev/udlfb.ko.gz drwxr-xr-x 2 root root 0 May 8 2022 lib/modules/5.15.10-tinycore/kernel/drivers/video/fbdev/core -rw-r--r-- 1 root root 2149 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/video/fbdev/core/sysfillrect.ko.gz -rw-r--r-- 1 root root 1274 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/video/fbdev/core/fb_sys_fops.ko.gz -rw-r--r-- 1 root root 1782 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/video/fbdev/core/sysimgblt.ko.gz -rw-r--r-- 1 root root 2268 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/video/fbdev/core/syscopyarea.ko.gz -rw-r--r-- 1 root root 7035 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/video/fbdev/hyperv_fb.ko.gz -rw-r--r-- 1 root root 3082 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/gpio/gpio-virtio.ko.gz drwxr-xr-x 3 root root 0 May 8 2022 lib/modules/5.15.10-tinycore/kernel/drivers/virt drwxr-xr-x 2 root root 0 May 8 2022 lib/modules/5.15.10-tinycore/kernel/drivers/virt/vboxguest -rw-r--r-- 1 root root 12506 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/virt/vboxguest/vboxguest.ko.gz drwxr-xr-x 2 root root 0 May 8 2022 lib/modules/5.15.10-tinycore/kernel/drivers/virtio -rw-r--r-- 1 root root 8029 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/virtio/virtio_ring.ko.gz -rw-r--r-- 1 root root 3847 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/virtio/virtio_pci_modern_dev.ko.gz -rw-r--r-- 1 root root 3718 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/virtio/virtio.ko.gz -rw-r--r-- 1 root root 7084 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/virtio/virtio_pci.ko.gz -rw-r--r-- 1 root root 3377 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/virtio/virtio_input.ko.gz -rw-r--r-- 1 root root 6258 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/virtio/virtio_balloon.ko.gz -rw-r--r-- 1 root root 1042 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/virtio/virtio_dma_buf.ko.gz -rw-r--r-- 1 root root 3551 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/virtio/virtio_mmio.ko.gz -rw-r--r-- 1 root root 6916 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/block/virtio_blk.ko.gz -rw-r--r-- 1 root root 17961 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/net/virtio_net.ko.gz drwxr-xr-x 2 root root 0 May 8 2022 lib/modules/5.15.10-tinycore/kernel/drivers/crypto/virtio -rw-r--r-- 1 root root 7020 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/crypto/virtio/virtio_crypto.ko.gz -rw-r--r-- 1 root root 5924 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/iommu/virtio-iommu.ko.gz -rw-r--r-- 1 root root 10007 Dec 21 2021 lib/modules/5.15.10-tinycore/kernel/drivers/char/virtio_console.ko.gz Last line is virtio_console that qemu is using.... So no clue at this point
1 parent 405e617 commit a9ec050

File tree

8 files changed

+202
-229
lines changed

8 files changed

+202
-229
lines changed

boards/qemu-coreboot-whiptail-tpm1/qemu-coreboot-whiptail-tpm1.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export CONFIG_BOOTSCRIPT=/bin/gui-init
5656
export CONFIG_BOOT_REQ_HASH=n
5757
export CONFIG_BOOT_REQ_ROLLBACK=n
5858
export CONFIG_BOOT_RECOVERY_SERIAL="/dev/ttyS0"
59-
export CONFIG_BOOT_KERNEL_ADD="console=ttyS0 console=tty systemd.zram=0 intel_iommu=on intel_iommu=igfx_off"
59+
export CONFIG_BOOT_KERNEL_ADD="console=ttyS0 console=tty systemd.zram=0"
6060
export CONFIG_BOOT_KERNEL_REMOVE="quiet rhgb splash"
6161

6262
export CONFIG_TPM=y

config/coreboot-qemu-tpm1.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CONFIG_CBFS_SIZE=0x980000
66
# CONFIG_POST_DEVICE is not set
77
CONFIG_BOARD_EMULATION_QEMU_X86_Q35=y
88
# CONFIG_CONSOLE_SERIAL is not set
9-
CONFIG_LINUX_COMMAND_LINE="debug console=ttyS0,115200 console=tty intel_iommu=igfx_off"
9+
CONFIG_LINUX_COMMAND_LINE="debug console=ttyS0,115200 console=tty"
1010
CONFIG_COREBOOT_ROMSIZE_KB_10240=y
1111
CONFIG_PCIEXP_ASPM=y
1212
CONFIG_PCIEXP_COMMON_CLOCK=y

config/linux-qemu.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ CONFIG_X86_IOPL_IOPERM=y
348348
CONFIG_MICROCODE=y
349349
CONFIG_MICROCODE_INTEL=y
350350
# CONFIG_MICROCODE_AMD is not set
351-
CONFIG_MICROCODE_OLD_INTERFACE=y
351+
# CONFIG_MICROCODE_OLD_INTERFACE is not set
352352
CONFIG_X86_MSR=y
353353
# CONFIG_X86_CPUID is not set
354354
# CONFIG_X86_5LEVEL is not set
@@ -508,7 +508,7 @@ CONFIG_PCI_DIRECT=y
508508
# CONFIG_PCI_CNB20LE_QUIRK is not set
509509
# CONFIG_ISA_BUS is not set
510510
CONFIG_ISA_DMA_API=y
511-
# CONFIG_X86_SYSFB is not set
511+
CONFIG_X86_SYSFB=y
512512
# end of Bus options (PCI etc.)
513513

514514
#

0 commit comments

Comments
 (0)