coreboot

On this page 7

coreboot is an open-source firmware project that performs the minimum hardware initialization a computer needs after power-on and then hands control to a separate payload, which loads the operating system. In the Boot & firmware stage of operating systems, it replaces the proprietary BIOS or UEFI implementation that a vendor would normally ship on the motherboard flash chip.

The project began in 1999 as LinuxBIOS at Los Alamos National Laboratory and was renamed in 2008. It is licensed mainly under the GPLv2, and it is best known as the firmware base of Chromebooks, as well as of several privacy-oriented laptops, network appliances and server boards.

How the coreboot boot flow works

The coreboot boot flow is divided into separate stages, each compiled as its own program and stored in a flash file system called CBFS. Every stage does a narrow job and then loads the next one, which keeps the code small and makes each step easier to audit and debug.

The table below lists the stages in the order they run on a typical x86 platform.

StageRuns fromMain task
BootblockFlash, cache as RAMSets up the first execution environment after reset
VerstageCache as RAMOptionally verifies the next stages for verified boot
RomstageCache as RAMTrains and initializes main memory
PostcarDRAMTears down cache as RAM and switches to DRAM
RamstageDRAMEnumerates PCI devices, builds ACPI and SMBIOS tables
PayloadDRAMLoads the bootloader or the operating system kernel
Stages of a coreboot boot

Before main memory works, early stages run with the processor cache configured as temporary memory, a technique called cache as RAM. The memory training done in romstage is usually the most hardware-specific and time-consuming part of the boot.

Payloads and the separation of duties

The defining idea of coreboot is that it does not implement a boot interface itself. Once hardware is ready, it passes a description of the system to a payload, which provides the services an operating system or bootloader expects. This separation keeps coreboot lean and lets the same hardware initialization serve very different use cases.

The choice of payload determines what the user sees at startup and which operating systems will boot, as summarized below.

PayloadWhat it providesTypical use
SeaBIOSLegacy BIOS services and option ROM supportBooting older operating systems and boot sectors
EDK II UEFIFull UEFI environment with boot managerModern Windows and Linux installations
DepthchargeVerified boot loader for ChromeOSChromebooks
GRUB2Bootloader with scripting and file system driversLinux systems and encrypted boot setups
LinuxBootA small Linux kernel acting as bootloaderServers and data center fleets
Common coreboot payloads

Because the payload is replaceable, a single board can be configured to boot with legacy BIOS behavior today and with a UEFI payload after a firmware update, without changing the underlying hardware initialization.

coreboot compared with proprietary BIOS and UEFI firmware

Unlike a vendor UEFI implementation, coreboot is a firmware foundation rather than a complete firmware interface. Standard UEFI firmware combines hardware initialization, boot services, a setup utility and runtime services in one large image, while coreboot covers only initialization and leaves the rest to a payload.

PropertyVendor BIOS or UEFIcoreboot with payload
Source codeMostly closedOpen, with closed binary blobs on many platforms
Typical code sizeSeveral megabytesOften well under one megabyte before the payload
Boot time to payloadCommonly several secondsOften under one second on supported boards
Setup menuBuilt inDepends on the payload
Hardware supportEvery board the vendor shipsLimited list of supported boards
coreboot and conventional firmware

Boot times depend heavily on memory training and the payload, so the figures above are typical ranges, not guarantees. Still, a fast path to the payload is one of the main reasons embedded vendors and Chromebook makers adopt coreboot.

Binary blobs and the limits of openness

Most modern x86 platforms cannot be initialized with fully open code. Intel systems need the Firmware Support Package (FSP) for memory and silicon setup, and AMD systems use a comparable binary component. Both vendors also run separate management firmware, such as the Intel Management Engine or the AMD Platform Security Processor, that coreboot cannot replace.

As a result, a coreboot machine is often more transparent but not fully open. Projects such as Libreboot distribute coreboot builds without blobs, but only for a small set of older hardware where this is technically possible.

Practical use, risks and common mistakes

Most users encounter coreboot preinstalled on a Chromebook or on a laptop sold with open firmware. Installing it manually means writing the flash chip, either internally with a tool such as flashrom or externally with a hardware programmer clipped to the chip. A failed write can leave a board unable to start, so recovery planning is essential.

The problems below account for most failed or disappointing installations.

SymptomLikely causeRemedy
Board does not power on after flashingWrong image or interrupted writeRestore the original dump with an external programmer
No display during bootMissing graphics initialization blobAdd the video BIOS or use native graphics init
Operating system does not bootPayload mismatch with boot modeChoose a UEFI payload for UEFI installations
Internal flashing refusedFlash write protection enabledDisable protection per the board documentation
Typical problems when deploying coreboot
  • Always back up the original firmware image before the first write.
  • Use only boards listed as supported, because coreboot has no generic image for arbitrary motherboards.
  • Check whether Secure Boot or measured boot requirements still hold after switching payloads.

In simple terms

When a computer is switched on, a small built-in program wakes up the processor and memory before anything else can run. On most machines that program is closed software from the manufacturer.

coreboot is an open alternative to that starting program. It does only the essential warm-up work and then passes the job to a second program that actually starts Windows, Linux or ChromeOS. Think of it as a stage crew that sets up the lights quickly and then hands the stage to the performer.

A practical example

A school district manages 4,000 Chromebooks used by students in daily lessons. Every device ships with coreboot and the Depthcharge payload, which checks the signature of each boot stage through verified boot. When a student powers on a laptop, it reaches the login screen in a few seconds, largely because the firmware skips the broad device probing found in conventional firmware.

When a malfunctioning update corrupts the system partition on about 30 devices, verified boot detects the problem and switches them into recovery mode instead of loading damaged code. Technicians restore them from a USB recovery image in a single afternoon. No device needed hardware repair, which the district attributes to the clear separation between the firmware and the payload.