Buildrom is a tool that can construct a coreboot image (comprising the coreboot loader and payload) from scratch.
Starting from a configuration file, it will download and build all the code necessary to construct the final binary.
Buildrom currently supports the following platforms / mainboards:
|AMD||DB800 (Salsa)||AMD LX||AMD CS5536||Winbond™ W83627HF||AMD Geode™ LX||—||?||?||—|
|AMD||Norwich||AMD LX||AMD CS5536||—||AMD Geode™ LX||—||?||?||—|
|AMD||Serengeti Cheetah||AMD K8||AMD-8111™, 8151™, 8132™||Winbond™ W83627HF||AMD Opteron™||Socket F||?||?||—|
|Artec Group||DBE61||AMD LX||AMD CS5536||—||AMD Geode™ LX||—||?||?||—|
|DIGITAL-LOGIC||MSM800SEV||AMD Geode™ LX||AMD Geode™ CS5536||—||AMD Geode™ LX||—||?||?||—|
|GIGABYTE||GA-M57SLI-S4||AMD K8||NVIDIA MCP55||ITE IT8716F||AMD Sempron™ / Athlon™ 64 / FX / X2||Socket AM2||?||?||Tutorial|
|GIGABYTE||GA-2761GXDK (Churchill)||AMD K8||SiS761GX/SiS966||ITE IT8716F||AMD Sempron™ / Athlon™ 64 / FX / X2 (?)||Socket AM2||?||?||Tutorial|
|PC Engines||ALIX1.C||AMD Geode™ LX||AMD Geode™ CS5536||Winbond® W83627HF||AMD Geode™ LX||—||?||?||Tutorial|
|Supermicro||H8DMR-i2||AMD K8||NVIDIA MCP55||Winbond™ W83627EHG||AMD Opteron™||Socket F||?||?||—|
|Tyan||Thunder K8S Pro (S2882)||AMD K8||AMD-8111™, 8131™||Winbond™ W83627HF||AMD Opteron™||Socket 940||?||?||Tutorial|
|Tyan||Thunder K8SRE (S2891)||AMD K8||AMD-8131™, NVIDIA CK8041||Winbond™ W83627HF||AMD Opteron™||Socket 940||?||?||Tutorial|
Buildrom supports the following payloads:
- Linux kernel
- "Linux-as-bootloader" (LAB)
- Memtest86+ (except on the GA-M57SLI-S4 and the Tyan S2891)
$ svn co svn://coreboot.org/buildrom
You can also visit the web-based trac instance to browse the code and outstanding issues.
You will need the following packages on your system to use buildrom. Please consult your distribution documentation on how to install new packages:
- GNU compiler tools (as, ld, gcc)
- iasl (for AMD K8 platforms)
In the buildrom-devel directory, type:
$ make menuconfig
You can now navigate the configuration system (this is the same configuration engine that the Linux kernel uses, so it should be familiar to some readers).
Building the ROM
Make sure you have access to the internet (to download new packages), and type the following to create your ROM:
Buildrom will download and build all the components of the ROM selected in the configuration stage. if the build is successful, then the final ROM will be located in buildrom-devel/deploy. If it is not successful, then you will see an error message. You can see the build output for each package in by reading build.log in the work/<package>logs/ directory (i.e work/filo/logs/build.log).
Developing within Buildrom
This section is for the developers who wish to change and rebuild the code. BuildROM builds the code for coreboot and the payloads in the work/ directory. Here is a typical view of the buildROM work/ directory:
$ ls work/ linuxbios filo
In each directory, you will find three directories. Logs from the build will be found in logs/ and timestamps that the build system uses are in stamps/. You normally won't have to touch these directories. The source code is located in the third directory. BuildROM provides several commands to make it easy to rebuild individual packages and ROMs. To clean a directory (but not remove the source code) use 'make <package>-clean'. You can build an individual packages with 'make <package>'. f you wish to completely erase the source code and start again with a pristine version, use 'make <package>-distclean'. Typing 'make' at any time will rebuild the ROM using the most current versions of the individual packages. Here is a typical work flow for modifying coreboot code:
- Build the initial ROM from scratch with 'make'
- Edit the coreboot source code in work/linuxbios/svn/
- Clean the coreboot package with 'make linuxbios-clean'
- Rebuild the ROM with 'make'