Difference between revisions of "SeaBIOS"

From coreboot
Jump to navigation Jump to search
m
Line 8: Line 8:


<source lang="bash">
<source lang="bash">
$ git clone git://git.linuxtogo.org/home/kevin/legacybios.git seabios
$ git clone git://git.linuxtogo.org/home/kevin/seabios.git seabios
$ cd seabios
$ cd seabios
</source>
</source>

Revision as of 00:48, 28 October 2008

SeaBIOS (previously known as LegacyBIOS) is an open-source legacy BIOS implementation, which can also be used as coreboot payload.

Building

SeaBIOS

You can download the latest version of SeaBIOS through a git repository:

<source lang="bash"> $ git clone git://git.linuxtogo.org/home/kevin/seabios.git seabios $ cd seabios </source>

Alternatively, the released versions of SeaBIOS can be found at http://linuxtogo.org/~kevin/legacybios/.

Edit src/config.h and set the following values:

<source lang="C">

  1. define CONFIG_COREBOOT 1
  2. define CONFIG_DEBUG_SERIAL 1
  3. define CONFIG_PCIBIOS 0

</source>

Then:

<source lang="bash"> $ make AVOIDCOMBINE=1 </source>

The final SeaBIOS payload file is out/bios.bin.elf, which can be used with coreboot v2 or v3.

coreboot

Finally, you have to build coreboot (v3 in this example) with SeaBIOS as payload:

<source lang="bash"> $ cd .. $ svn co svn://coreboot.org/repository/coreboot-v3 $ cp seabios/out/bios.bin.elf coreboot-v3/payload.elf $ cd coreboot-v3 $ make menuconfig </source>

Now enter the Payload menu and select Payload type and then An ELF executable payload file. Now exit the menu, save your settings, and build coreboot:

<source lang="bash"> $ make </source>

The file build/coreboot.rom (or build/bios.bin) is your final coreboot v3 image, which also contains the SeaBIOS payload.

Running SeaBIOS in QEMU

For running coreboot+SeaBIOS in QEMU, you need a patched version of vgabios-cirrus.bin in your build directory first:

<source lang="bash"> $ cd build $ wget http://www.coreboot.org/images/0/0d/Vgabios-cirrus.zip $ unzip Vgabios-cirrus.zip $ cd .. </source>

You can now run LegacyBIOS in QEMU:

<source lang="bash"> $ qemu -L build -hda /dev/zero -serial stdio </source>

Ready-made LegacyBIOS QEMU image

TODO

Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.