Build ROMs
A Libreboot ROM is the firmware image written to the laptop's flash chip. ./mk -b coreboot followed by your laptop's target name builds the image for that laptop and packs it into a .tar.xz archive in lbmk's bin/ folder. Unpack the archive and copy out the image: as of Libreboot 26.11rev4 (21 November 2026) each ThinkPad gets one, which starts with uefi_edk2_ and boots like a normal UEFI computer, except on the X60 and T60, where it starts with bios_seabios_. If your laptop's firmware sits on two flash chips, the last step splits that image into one file for each chip.
Step 1: Find your laptop's target
Step 1 finds the lbmk target name for your laptop, which also tells you whether its firmware is on one flash chip or two. List the ThinkPads lbmk can build, from the lbmk directory:
./mk -b coreboot list | grep thinkpad
As of 26.11rev4 that prints:
legacy_lenovo_thinkpad_t440pmrc_12mb
legacy_lenovo_thinkpad_w541mrc_12mb
lenovo_thinkpad_r400_16mb
lenovo_thinkpad_r400_4mb
lenovo_thinkpad_r400_8mb
lenovo_thinkpad_r500_4mb
lenovo_thinkpad_t400_16mb
lenovo_thinkpad_t400_4mb
lenovo_thinkpad_t400_8mb
lenovo_thinkpad_t420_8mb
lenovo_thinkpad_t420s_8mb
lenovo_thinkpad_t430_12mb
lenovo_thinkpad_t440p_12mb
lenovo_thinkpad_t480_16mb
lenovo_thinkpad_t480s_16mb
lenovo_thinkpad_t500_16mb
lenovo_thinkpad_t500_4mb
lenovo_thinkpad_t500_8mb
lenovo_thinkpad_t520_8mb
lenovo_thinkpad_t530_12mb
lenovo_thinkpad_t580_16mb
lenovo_thinkpad_t60_gpu_intel_16mb
lenovo_thinkpad_t60_gpu_intel_2mb
lenovo_thinkpad_w500_16mb
lenovo_thinkpad_w500_4mb
lenovo_thinkpad_w500_8mb
lenovo_thinkpad_w530_12mb
lenovo_thinkpad_w541_12mb
lenovo_thinkpad_x200_16mb
lenovo_thinkpad_x200_4mb
lenovo_thinkpad_x200_8mb
lenovo_thinkpad_x220_8mb
lenovo_thinkpad_x230_12mb
lenovo_thinkpad_x230_16mb
lenovo_thinkpad_x230t_12mb
lenovo_thinkpad_x230t_16mb
lenovo_thinkpad_x270_16mb
lenovo_thinkpad_x280_16mb
lenovo_thinkpad_x301_16mb
lenovo_thinkpad_x301_4mb
lenovo_thinkpad_x301_8mb
lenovo_thinkpad_x60_16mb
lenovo_thinkpad_x60_2mb
Without | grep thinkpad the list also includes every other board Libreboot supports. The number at the end of each name is the total flash size, and it decides which steps you follow from here on:
| Target ends in | Flash chips | What changes |
|---|---|---|
_12mb | Two: one of 8 MB and one of 4 MB | Split the image in step 5, then back up and write each chip in turn |
| Any other size | One | Flash the whole image as it is |
Where a model is listed with more than one size, pick the one that matches the flash on your board; on a running Linux system this shows the ROM size the firmware reports:
sudo dmidecode | grep ROM
An unmodified X230 or X230 Tablet has 12 MB, an 8 MB and a 4 MB chip, so it takes the _12mb target. Libreboot's install pages do not explain the X230's _16mb targets, and this guide does not cover them. Ignore the two legacy_ targets as well: lbmk's configuration marks them never to be built, and keeps them only so ./mk inject can still read archives from older releases. A T440p or W541 uses lenovo_thinkpad_t440p_12mb or lenovo_thinkpad_w541_12mb.
Step 2: Build the images
Step 2 builds the image for your target. It takes a while the first time, because lbmk downloads and compiles coreboot and its toolchain:
./mk -b coreboot lenovo_thinkpad_t480s_16mb
Replace the target with yours. When the build finishes, lbmk packs the image into an archive in bin/, inserts the vendor files your laptop needs, and deletes the folder it built the image in. List bin/ to find the archive:
ls bin/
libreboot-26.11rev4_lenovo_thinkpad_t480s_16mb.tar.xz
The part after libreboot- is the version lbmk is checked out at, and it should read 26.11rev4. A longer version such as 26.11-30-g9763ad8d means the clone is on lbmk's development branch rather than the release; step 2 of build Libreboot explains why and how to check out the release.
Step 3: Unpack the archive
Step 3 unpacks the image from the archive into a folder of its own, outside lbmk, so the next build cannot touch it:
mkdir -p ~/libreboot
tar -xf bin/libreboot-26.11rev4_lenovo_thinkpad_t480s_16mb.tar.xz -C ~/libreboot
ls ~/libreboot/bin/lenovo_thinkpad_t480s_16mb/
The archive holds one folder, bin/ followed by your target's name, with the image built for the board. For the T480s in 26.11rev4 that is one file:
uefi_edk2_lenovo_thinkpad_t480s_16mb_libgfxinit_corebootfb.rom
Step 4: Choose the image
Step 4 identifies the image to flash. As of 26.11rev4 every ThinkPad target has exactly one, and the start of its name says what it boots:
| Image name starts with | Boards | What it boots |
|---|---|---|
uefi_edk2_ | Every ThinkPad target except the X60 and T60 | EDK2, an open-source UEFI. Install your operating system in UEFI mode |
bios_seabios_ | X60 and T60 | SeaBIOS, a legacy BIOS |
Libreboot 26.11 no longer builds GRUB or memtest86+, and EDK2 boards no longer get a SeaBIOS image. If you need one of them, Libreboot's legacy payload page explains how to add it to your build. Copy the image to your home folder as libreboot.rom, the name the rest of this guide uses:
cp ~/libreboot/bin/lenovo_thinkpad_t480s_16mb/uefi_edk2_lenovo_thinkpad_t480s_16mb_libgfxinit_corebootfb.rom ~/libreboot.rom
Replace the target with yours in both places. On an X60 or T60, also replace uefi_edk2 with bios_seabios.
Step 5: Split the image if your board has two chips
Step 5 prepares the file for each flash chip: a board with one chip takes libreboot.rom as it is, and a board with two chips (every _12mb target) needs the image cut into the 8 MB that go on one chip and the 4 MB that go on the other.
One chip
Nothing to do. ~/libreboot.rom is the file you flash.
Two chips
The first 8 MB of the image belong on the 8 MB chip and the last 4 MB on the 4 MB chip, which is how Libreboot's own X230, T440p and W541 instructions split it:
cd ~
dd if=libreboot.rom of=libreboot_8mb.rom bs=1M count=8
dd if=libreboot.rom of=libreboot_4mb.rom bs=1M skip=8
ls -l libreboot_8mb.rom libreboot_4mb.rom
ls -l should show 8388608 bytes for libreboot_8mb.rom and 4194304 for libreboot_4mb.rom. Keep libreboot.rom as well: updating Libreboot later from inside Linux writes the whole image, not the halves. The flashing page writes these files.