Skip to content

Commit

Permalink
WiP VGA correctness
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tlaurion committed Mar 29, 2023
1 parent 405e617 commit a9ec050
Show file tree
Hide file tree
Showing 8 changed files with 202 additions and 229 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export CONFIG_BOOTSCRIPT=/bin/gui-init
export CONFIG_BOOT_REQ_HASH=n
export CONFIG_BOOT_REQ_ROLLBACK=n
export CONFIG_BOOT_RECOVERY_SERIAL="/dev/ttyS0"
export CONFIG_BOOT_KERNEL_ADD="console=ttyS0 console=tty systemd.zram=0 intel_iommu=on intel_iommu=igfx_off"
export CONFIG_BOOT_KERNEL_ADD="console=ttyS0 console=tty systemd.zram=0"
export CONFIG_BOOT_KERNEL_REMOVE="quiet rhgb splash"

export CONFIG_TPM=y
Expand Down
2 changes: 1 addition & 1 deletion config/coreboot-qemu-tpm1.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CONFIG_CBFS_SIZE=0x980000
# CONFIG_POST_DEVICE is not set
CONFIG_BOARD_EMULATION_QEMU_X86_Q35=y
# CONFIG_CONSOLE_SERIAL is not set
CONFIG_LINUX_COMMAND_LINE="debug console=ttyS0,115200 console=tty intel_iommu=igfx_off"
CONFIG_LINUX_COMMAND_LINE="debug console=ttyS0,115200 console=tty"
CONFIG_COREBOOT_ROMSIZE_KB_10240=y
CONFIG_PCIEXP_ASPM=y
CONFIG_PCIEXP_COMMON_CLOCK=y
Expand Down
4 changes: 2 additions & 2 deletions config/linux-qemu.config
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ CONFIG_X86_IOPL_IOPERM=y
CONFIG_MICROCODE=y
CONFIG_MICROCODE_INTEL=y
# CONFIG_MICROCODE_AMD is not set
CONFIG_MICROCODE_OLD_INTERFACE=y
# CONFIG_MICROCODE_OLD_INTERFACE is not set
CONFIG_X86_MSR=y
# CONFIG_X86_CPUID is not set
# CONFIG_X86_5LEVEL is not set
Expand Down Expand Up @@ -508,7 +508,7 @@ CONFIG_PCI_DIRECT=y
# CONFIG_PCI_CNB20LE_QUIRK is not set
# CONFIG_ISA_BUS is not set
CONFIG_ISA_DMA_API=y
# CONFIG_X86_SYSFB is not set
CONFIG_X86_SYSFB=y
# end of Bus options (PCI etc.)

#
Expand Down
Loading

0 comments on commit a9ec050

Please sign in to comment.