Updating Libreboot
Posted: 29 November 2026 • Latest edit: 30 November 2026
Table of Contents
This is a follow-up article on installing Libreboot.
After successfully installing Libreboot on a computer, updating becomes almost a trivial thing as you can just simply update the chip contents by running a flashprog (or flashrom) command. While I’m at it, I decided I wanted to do some customizations too, so I decided to compile Coreboot from source.
Setting up compilation environment
I’m on Arch Linux, and I wanted to make it possible to keep customizations with future updates too if possible. So I used a similar method to what I did when installing Libreboot. I setup a Docker container as explained in installing Libreboot article.
Create a workspace, clone the repo:
1~ $ mkdir Projects/libreboot-update
2~ $ cd Projects/libreboot-update
3~/Projects/libreboot-update $ git clone https://codeberg.org/libreboot/lbmk
4~/Projects/libreboot-update $ cd lmbk
Run Debian in a Docker container and install dependencies:
1~/Projects/libreboot-update $ docker run -it --name debian-libreboot -v .:/work debian:stable-slim bash
2# apt update && apt upgrade
3# cd /work/lbmk
4/work/lbmk # ./mk dependencies debian
Add a regular user to run mk commands.
1/work/lbmk # mkdir /home/fcn && useradd fcn
2/work/lbmk # chsh fcn
3/work/lbmk # cp /root/.profile /root/.bashrc /home/fcn
4/work/lbmk # chown -R fcn:fcn /home/fcn
5/work/lbmk # su fcn
I created a new branch on git, so my customizations can be kept and can be reapplied when the base is updated.
1$ git checkout -b t480-custom
Customizations
The changes I want to make:
Remove the purple background from splash
This is done using a patch. We can just git rm this patch file:
1$ git rm config/module/edk2_fs_drivers/default/patches/0001-i-made-it-purple.patch
Change splash logo
I switched the logo with a black background version. You can simply use this logo with black background or you can use your own BMP. You can easily change it using in UEFI menu later. The file is located config/data/coreboot/libreboot.bmp. I have used the Libreboot logo in 200x200px form, and converted to BMP using this command on Arch: magick splash.png -alpha off -type TrueColor -compress None BMP3:libreboot.bmp.
Enable CPU hyperthreading and swap Ctrl+Fn in config
I changed both options in the config menu:
1$ ./mk -m coreboot lenovo_thinkpad_t480_16mb
After this, I committed all customizations and created a patch file:
1$ git add -A
2$ git commit -m "T480 customizations"
3$ git format-patch master..HEAD -o /work/patches
This will create a patch file you can save and reuse later. If you want, you can apply my patch file directly with all 4 customizations done.
Building the ROM and inject required blobs
This command will compile the ROM and create bin/libreboot-*lenovo_thinkpad_t480_16mb.tar.xz file.
1$ ./mk -b coreboot lenovo_thinkpad_t480_16mb
Once the ROM is compiled, we need to inject the proprietary blobs to the ROM before we can write it to the chip:
1./mk inject bin/libreboot-*lenovo_thinkpad_t480_16mb.tar.xz setmac xx:xx:xx:xx:xx:xx
At this stage, our ROM is ready to be written to the chip.
Writing to the chip internally
We can go back to the host machine now and install flashprog:
1$ sudo pacman -S flashprog
And unzip the file (the version number will change with updates):
1$ tar xvf ~/Projects/libreboot-update/bin/libreboot-26.11-74-g388eacdd_lenovo_thinkpad_t480_16mb.tar.xz
Using flashprog, we will again read our internal chip and make a backup:
1$ sudo flashprog -p internal -r backup-$(date +%Y%m%d-%H%M%S).rom
After we have a backup, we will continue and write the updated image on the chip:
1$ sudo flashprog -p internal -w uefi_edk2_lenovo_thinkpad_t480_16mb_libgfxinit_corebootfb.rom
After this successfully finishes, it is time to poweroff, wait a while and start the computer.
Next updates
If we decide to keep the docker around, we can simply restart it and start bash in it in the future:
1$ docker start debian-libreboot
2$ docker exec -it debian-libreboot bash
When we are done with it, we can just simply stop it:
1$ docker stop debian-libreboot
In the container environment, we can simply update the git base and reapply our customizations:
1$ git checkout master
2$ git pull --rebase
3$ git checkout t480-custom
4$ git rebase master
If this command completes without any errors or warnings, it means our changes can still apply without any conflict with this latest version. We can proceed with the recompile and flashprog steps and update our ROM again.