[coreboot] Success replicating seabios boot from grub2 on the X60

Charles Devereaux coreboot at guylhem.net
Sat Jul 26 00:08:56 CEST 2014


Hello

Last weekend I successfully booted seabios from grub2 with native video
support.
This had been previously reported on
www.coreboot.org/pipermail/coreboot/2014-February/077306.html

If you want to do the same:

 - get the latest seabios, no need for a specific branch anymore (I'm using
3aa31d7d6375303fc88438021aad485f50bb1e39)

git clone git://git.seabios.org/seabios.git seabios

 - configure it with the attached configuration file, or at least
enable CONFIG_COREBOOT
and CONFIG_VGA_COREBOOT as per the original instructions (
http://www.coreboot.org/pipermail/coreboot/2014-February/077245.html)

 - add seabios.elf and its vga rom to the CBFS payload (supposing you
cloned seabios into ../payloads) with:

cbfstool coreboot.rom add -f ../payloads/seabios/out/bios.bin.elf -n
elf/seabios.elf -t raw && cbfstool coreboot.rom add -f
../payloads/seabios/out/vgabios.bin -n vgaroms/vgabios.bin -t raw

The add -t raw seems to be important. I had boot problems that required a
reflash after using add-payload and a few other experimental settings.
Since I was investigating other issues, I did not try to explore that and
return to a working setup instead.

 - add to your grub.cfg

menuentry '2: SeaBios' {

        insmod cbfs

        chainloader (cbfsdisk)/elf/seabios.elf

}

That's it! I could successfully start an old grub from the hard drive, but
not its memtest86 menu entry.  Likewise, bootable USB stick or a windows
partition can not be started. I'm still investigating.

Any help or suggestion would be appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20140725/7c5927bd/attachment.html>
-------------- next part --------------
#
# Automatically generated file; DO NOT EDIT.
# SeaBIOS Configuration
#

#
# General Features
#
CONFIG_COREBOOT=y
# CONFIG_QEMU is not set
# CONFIG_CSM is not set
# CONFIG_QEMU_HARDWARE is not set
CONFIG_THREADS=y
CONFIG_RELOCATE_INIT=y
CONFIG_BOOTMENU=y
# CONFIG_BOOTSPLASH is not set
CONFIG_BOOTORDER=y
CONFIG_COREBOOT_FLASH=y
CONFIG_LZMA=y
CONFIG_CBFS_LOCATION=0x0
# CONFIG_FLASH_FLOPPY is not set
CONFIG_ENTRY_EXTRASTACK=y
CONFIG_MALLOC_UPPERMEMORY=y
CONFIG_ROM_SIZE=0

#
# Hardware support
#
CONFIG_ATA=y
CONFIG_ATA_DMA=y
CONFIG_ATA_PIO32=y
CONFIG_AHCI=y
# CONFIG_MEGASAS is not set
# CONFIG_FLOPPY is not set
CONFIG_PS2PORT=y
CONFIG_USB=y
CONFIG_USB_UHCI=y
CONFIG_USB_OHCI=y
CONFIG_USB_EHCI=y
# CONFIG_USB_XHCI is not set
CONFIG_USB_MSC=y
CONFIG_USB_UAS=y
CONFIG_USB_HUB=y
CONFIG_USB_KEYBOARD=y
CONFIG_USB_MOUSE=y
CONFIG_SERIAL=y
CONFIG_LPT=y
CONFIG_PMTIMER=y

#
# BIOS interfaces
#
CONFIG_DRIVES=y
CONFIG_CDROM_BOOT=y
CONFIG_CDROM_EMU=y
CONFIG_PCIBIOS=y
CONFIG_APMBIOS=y
CONFIG_PNPBIOS=y
CONFIG_OPTIONROMS=y
CONFIG_PMM=y
CONFIG_BOOT=y
CONFIG_KEYBOARD=y
CONFIG_KBD_CALL_INT15_4F=y
CONFIG_MOUSE=y
CONFIG_S3_RESUME=y
CONFIG_VGAHOOKS=y
# CONFIG_DISABLE_A20 is not set

#
# VGA ROM
#
# CONFIG_NO_VGABIOS is not set
# CONFIG_VGA_GEODEGX2 is not set
# CONFIG_VGA_GEODELX is not set
CONFIG_VGA_COREBOOT=y
CONFIG_BUILD_VGABIOS=y
CONFIG_VGA_ALLOCATE_EXTRA_STACK=y
CONFIG_VGA_EXTRA_STACK_SIZE=512
CONFIG_VGA_VBE=y

#
# Debugging
#
CONFIG_DEBUG_LEVEL=1
# CONFIG_DEBUG_SERIAL is not set
CONFIG_DEBUG_COREBOOT=y


More information about the coreboot mailing list