coreboot
From Wikipedia, the free encyclopedia
This article may require cleanup to meet Wikipedia's quality standards. Please improve this article if you can. (March 2008) |
coreboot | |
---|---|
Design by | Ronald G. Minnich, Eric Biederman, Olli Lo, Stefan Reinauer, the coreboot community |
Initial release | 1999 |
Platform | x86, PPC |
Genre | Firmware (BIOS) |
License | GNU General Public License |
Website | coreboot.org |
coreboot (formerly known as LinuxBIOS[1]) is a free software project, endorsed by the Free Software Foundation,[2] aimed at replacing the standard BIOS firmware found in most computers with a lightweight firmware system designed to perform only the minimum of tasks necessary to load and run a modern 32-bit or 64-bit operating system.
The coreboot project was started in the winter of 1999 in the Advanced Computing Laboratory at Los Alamos National Laboratory.[3] It is licensed under the terms of the GNU General Public License. Main contributors have been LANL, AMD, coresystems GmbH and Linux Networx, Inc, as well as motherboard vendors MSI, Gigabyte and Tyan, by offering coreboot next to their standard BIOS or providing specifications of the hardware interfaces for some of their recent motherboards. However, Tyan seems to have dropped support of coreboot.[citation needed]
Coreboot support also exists for the AMD Geode. Started as Geode GX support developed by AMD for the OLPC, Artec Group then added Geode LX support for its model DBE61 ThinCan. Recently, that code was adopted by AMD and further polished for the OLPC after it upgraded to the Geode LX platform. That code is now being further developed by the coreboot community to support other Geode-based products.
Google partly sponsors the coreboot project.[4]
Contents |
[edit] General information
Coreboot usually loads a Linux kernel, but it can load any other stand-alone ELF executable, such as Etherboot which can boot Linux from a boot server or ADLO[5] which loads Microsoft Windows 2000/XP and OpenBSD[6]. Coreboot can also load almost any operating system from any supported device, such as Myrinet, Quadrics, or SCI cluster interconnects. Some OSes require legacy BIOS functions (such as Windows 2000/XP/Vista) which are provided by ADLO. Windows Vista additionally depends on specific subsets of ACPI which are not implemented completely yet.
Coreboot does whatever hardware initialization Linux doesn't do and lets Linux finish the hardware initialization.
A unique feature of coreboot is that the x86 version runs in 32-bit mode after executing only sixteen instructions (almost all other x86 BIOSes run exclusively in 16-bit mode).
Coreboot can boot other kernels, or pass control to a boot loader to boot a kernel/image instead. It can also boot a Plan 9 from Bell Labs kernel directly. A coreboot capable version of GNU GRUB 2 is still in development.
[edit] Developing and debugging coreboot
Since coreboot must initialize the bare hardware, it must be ported to every chipset and motherboard that it supports. Before initializing RAM, coreboot initializes the serial port (addressing Cache and Registers only), so it can send out debug text to a connected terminal. It can also send byte codes to port 0x80 that are displayed on a two-hex-digit display of a connected POST card. Another aid is the BIOS Savior, which is a combination of two BIOS devices that plugs into the BIOS socket and has a manual switch to select between them. A more expensive alternative is an EPROM/flash programmer. There are also CPU emulators that either replace the CPU or connect via a JTAG port. Code can be built on, or downloaded to, BIOS emulators rather than flashing the BIOS device.
[edit] Initializing DRAM
The most difficult hardware that coreboot initializes is the DRAM controllers and DRAM. In some cases, technical documentation how to do this is NDA protected or unavailable—rendering it impossible to build a coreboot. RAM initialization is particularly difficult because until the RAM is initialized, there is no RAM available for use. Therefore, to initialize DRAM controllers and DRAM without RAM, the initialization code must restrict itself to using only the CPU's general purpose registers for temporary storage. To make this hard task easy, a C compiler that uses registers instead of RAM, called romcc, was built. Using romcc, it is relatively easy to make SMBus accesses to the SPD ROMs of the DRAM DIMMs, that allows the RAM to be used. With newer x86 processors, the processor cache can be used as RAM until DRAM is initialized. The processor cache has to be initialized into Cache-as-RAM mode as well, but this needs fewer instructions than initializing DRAM. Also, the instructions to enable Cache-as-RAM mode are CPU architecture specific, thus more generic than DRAM initialization, which is chipset and mainboard specific.
[edit] See also
[edit] References
- ^ [LinuxBIOS Welcome to coreboot] (2008-01-12).
- ^ The Free Software Foundation's Campaign for Free BIOS
- ^ coreboot FAQ: Who is working on coreboot?
- ^ Google Sponsors the LinuxBIOS project
- ^ coreboot Add-on Layer (ADLO)
- ^ SEBOS, Security Enhanced Bootloader for Operating Systems, Phase 2, adding PC BIOS Services to coreboot via Bochs Bios
[edit] External links
- The coreboot Home Page
- "Open BIOSes for Linux", by Peter Seebach
- "LinuxBIOS ready to go mainstream", by Bruce Byfield
- "First desktop motherboard supported by LinuxBIOS: GIGABYTE M57SLI-S4", by Brandon Howard
- Video recording of Ron Minnich's LinuxBIOS talk from FOSDEM 2007
- Coreboot with X Server Inside (YouTube Video)
- OLPC booting with coreboot (YouTube Video)