Difference between revisions of "Build coreboot using LBdistro"

From coreboot
Jump to: navigation, search
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
=== What is LBdistro? ===
 
=== What is LBdistro? ===
  
LBdistro is an improvement on buildrom to let user customize what binaries will be at final ROM.
+
LBdistro is an improvement on buildrom to let user customize what binaries will be at final ROM. The original name was [[biosdistro]] but Uwe suggest me change it to LBdistro.
 +
In the LBdistro the user can just select through menus what applications, kernel features and coreboot will be added to ROM. So the system will compile everything and the user  needs just write this firmware into BIOS flash memory.
  
 
=== How to getting started? ===
 
=== How to getting started? ===
  
First you need download it from SVN repository:
+
First you need download the toolchain used to compile some LBdistro packages:
  
<pre>
+
wget http://lbdistro.sourceforge.net/tools/toolchain.tar.bz2
svn co https://lbdistro.svn.sourceforge.net/svnroot/lbdistro/trunk LBdistro
+
 
</pre>
+
Extract it to /usr/local:
 +
 
 +
sudo tar jxvf toolchain.tar.bz2 -C /usr/local
 +
 
 +
Get last LBdistro from SVN repository:
 +
 
 +
svn co https://lbdistro.svn.sourceforge.net/svnroot/lbdistro/trunk LBdistro
  
 
After that issue:
 
After that issue:
  
<pre>
+
cd LBdistro
cd LBdistro
+
make menuconfig
make menuconfig
+
make
make
+
 
</pre>
+
Move the create file (deploy/emulation-qemu-i386.rom) to your HOME renaming its name to bios.bin
 +
 
 +
Compile QEMU and apply [http://www.coreboot.org/QEMU_Build_Tutorial patches] to support 2MB BIOS
 +
 
 +
Execute QEMU using the argument -L pointing to directory where bios.bin is located (we use ~ to refer to HOME)
 +
 
 +
qemu -L ~ -hda /dev/null
 +
 
 +
For now only QEMU compilation is generating ROM, but other boards will be added after Kdrive and application works.
  
 
=== Known problems ===
 
=== Known problems ===
  
There is some problems when compiling it on Debian and others (on Ubuntu 6.06 it works fine). This problem will be fixed ASAP.
+
The final coreboot ROM created is not starting correctly in Qemu.
 +
 
 +
=== TODO ===
 +
 
 +
Remove the needs of external toolchain, the build system needs create the toolchains too.
 +
 
 +
Add Gigabyte M57SLI-S4 to real tests.

Latest revision as of 14:59, 15 January 2008

What is LBdistro?

LBdistro is an improvement on buildrom to let user customize what binaries will be at final ROM. The original name was biosdistro but Uwe suggest me change it to LBdistro. In the LBdistro the user can just select through menus what applications, kernel features and coreboot will be added to ROM. So the system will compile everything and the user needs just write this firmware into BIOS flash memory.

How to getting started?

First you need download the toolchain used to compile some LBdistro packages:

wget http://lbdistro.sourceforge.net/tools/toolchain.tar.bz2

Extract it to /usr/local:

sudo tar jxvf toolchain.tar.bz2 -C /usr/local

Get last LBdistro from SVN repository:

svn co https://lbdistro.svn.sourceforge.net/svnroot/lbdistro/trunk LBdistro

After that issue:

cd LBdistro
make menuconfig
make

Move the create file (deploy/emulation-qemu-i386.rom) to your HOME renaming its name to bios.bin

Compile QEMU and apply patches to support 2MB BIOS

Execute QEMU using the argument -L pointing to directory where bios.bin is located (we use ~ to refer to HOME)

qemu -L ~ -hda /dev/null

For now only QEMU compilation is generating ROM, but other boards will be added after Kdrive and application works.

Known problems

The final coreboot ROM created is not starting correctly in Qemu.

TODO

Remove the needs of external toolchain, the build system needs create the toolchains too.

Add Gigabyte M57SLI-S4 to real tests.