Installing Libreboot on Thinkpad T480
Posted: 3 November 2026 • Latest edit: 30 November 2026
Table of Contents
I have recently purchased a Thinkpad T480 to replace my current T470s and to be able to install Libreboot/Coreboot on it as a technical challenge. It is not a huge jump, but big enough that it doubles the cores and allows me to install a small NVMe device I had from another computer that was just sitting on a bookshelf unused. In the past, I guess around 2021, I had also installed coreboot on a Thinkpad X220 which later on had to change hands and was basically gifted to a family member who was just starting university. I remember using a Raspberry Pi 2 to do the flashing and I had the clip, but I don’t remember much because I did not take any notes and I wasn’t even able to find the clip thingy in one of the boxes where I keep all this stuff. So, this will be like starting anew.
When I started checking tutorials, I noticed there is not a straightforward tutorial that does not dive into the technical details immediately. It is understandable as this is a very technical process but I feel like there should be a walkthrough that lays out the steps in a manner that is simpler to understand. I will try to do that here in this tutorial first.
It is overwhelming and confusing at times and it takes some dedication. Some guides cover some parts of the process well so I might skip those in this and focus on the parts that is not clearly explained elsewhere. And the unbelievable thing, Codeberg was down at the moment I needed to clone the lmbk repo. Talk about luck.
Do your own research and I take no liability for the information here. You have been warned.
What is Coreboot and Libreboot?
coreboot is a replacement for your BIOS / UEFI with a strong focus on boot speed, security and flexibility. Read more here.
Libreboot is a coreboot distribution (coreboot distro), in the same way that Debian is a Linux distribution. Libreboot provides free, open source (libre) boot firmware based on coreboot, replacing proprietary BIOS/UEFI firmware on specific Intel/AMD x86 and ARM based motherboards, including laptop and desktop computers. Read more here.
Overview of the process
We can split all the thousand required steps into 3 main sections:
- Prepare the T480 for installation
- Create the ROM file to write to the BIOS chip
- The actual flashing of the ROM to the chip
Tools you will need
- Another x86-64 computer to build the images (preferably running a Linux distro with Docker)
- A Raspberry Pi (If you use a Raspberry Pico, you need to check other guides. I will be using a Raspberry Pi 3 B+. Instructions in this guide should work on all Pis from 2 to 5.)
- A SOIC8 clip to connect the Raspberry to the BIOS chip
- A multimeter to make sure the chip is connected to correct GPIO pins. Optional but it proved useful when determining the pinout and how to connect the clip to Raspberry Pi. Now that I made the work, you might not need it.
Preparing the T480 for installation
To prepare the T480, we will need to downgrade to a specific BIOS version and set some BIOS settings to their required values.
To proceed with installation on T480, the BIOS version needs to be 1.52. On Lenovo T480 BIOS update page, you will find the latest version with a list of older versions available at the bottom of the page. I will share the files here for future reference in case Lenovo decides to remove this page in the future.
Windows installer: n24uj39w.exe - Readme
Update ISO: n24ur39w.iso - Readme
After BIOS is downgraded to 1.52, the BIOS settings should be as per Libreboot guide:
1Config -> Thunderbolt(TM) 3 -> Thunderbolt BIOS Assist Mode -> DISABLED
2Security -> UEFI BIOS Update Option -> Flash BIOS Updating by End-Users -> ENABLED
3Security -> UEFI BIOS Update Option -> Secure RollBack Prevention -> DISABLED
4Security -> UEFI BIOS Update Option -> Windows UEFI Firmware Update -> DISABLED
5Security -> Secure Boot -> Secure Boot -> DISABLED
6Startup -> UEFI/Legacy Boot -> Both
7Startup -> UEFI/Legacy Boot -> UEFI/Legacy Boot Priority -> Legacy First
8Startup -> UEFI/Legacy Boot -> CSM Support -> Yes
You can also note your internal ethernet MAC address from the BIOS screen. We will use this when creating the Libreboot image.
Creating the ROM images
The ROM image we want to put on the chip comes in almost ready form from Libreboot. We only build it again because we need to inject some proprietary blobs from Lenovo to the Libreboot image. They cannot release the actual injected images because the blobs are not free, so we have this rebuilding/injecting step.
I wanted the environment to be contained so I did this in a docker container. I chose Debian for the build environment.
I created a libreboot directory in my home directory and cloned lbmk (Libreboot make environment) repository here.
1~ $ mkdir libreboot
2~ $ cd libreboot
3~/libreboot $ git clone https://codeberg.org/libreboot/lbmk
4~/libreboot $ cd lbmk
In this folder, we also need the prebuilt ROM archive from Libreboot (for me it is libreboot-26.10rev16_lenovo_thinkpad_t480_16mb.tar.xz at the time of writing). Go to Libreboot download page and select a mirror. We want stable branch, and within it you will find the current stable branch roms folder.
1~/libreboot/lbmk $ wget https://mirror.math.princeton.edu/pub/libreboot/stable/26.10rev16/roms/libreboot-26.10rev16_lenovo_thinkpad_t480_16mb.tar.xz
2~/libreboot/lbmk $ cd ..
In this folder, we will create a docker container with a fresh Debian install and start bash in the container.
1~/libreboot $ docker run -it --name debian-libreboot -v .:/work debian:stable-slim bash
We are now root in our fresh Debian installation. We mounted the ~/libreboot directory to /work, so head over there and start working. We will install required packages using mk tool as root.
1# cd /work/lbmk
2/work/lbmk # ./mk dependencies debian
In theory, this step should install all necessary dependencies to proceed with the process. However it threw me an error and was not able to install the packages. Luckily, the package list is available in I believe this was due to a mistake I made. Since this is a fresh installation of Debian, it needs config/dependencies/debian, so you can just copy and paste all these packages and proceed to the next step.apt update && apt upgrade before it can install the dependencies. After this, the dependencies install without a problem.
From here on, you should continue as a normal user because otherwise it throws and error and refuses to build. In this container environment there is no other user so I went ahead and created a new user called fcn. Also changed the shell to bash so that I can use tab completion. I don’t know if copying .profile and .bashrc was necessary but I did it just in case.
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
From here we can continue as a normal user.
1/work/lbmk # su fcn
Next we will start injecting blobs. This is the actual work part of the process. This will take a long while and can be continued with the same command in case of a problem. If it gives an error about a lock file, it is just right there at the root of the repository, you can just remove it and proceed. Replace the MAC address with yours. I did not read this section carefully so I’m not sure if this was necessary or if I should have replaced it with something random. If you know the correct way, let me know too.
1/work/lbmk $ ./mk inject libreboot-26.10rev16_lenovo_thinkpad_t480_16mb.tar.xz setmac "xx:xx:xx:xx:xx"
This will create the images and replace the xz file we have downloaded earlier. It might ask us for confirmation before replacing it, if asked say yes. We now have the actual images we want to write to the BIOS chip now and it is again called libreboot-26.10rev16_lenovo_thinkpad_t480_16mb.tar.xz.
Thunderbolt update
While we are here, we can make another image to write to Thunderbolt chip. As explained in the original Libreboot tutorial, there is a fault in the older firmware for Thunderbolt which can disable fast charging. You probably don’t have this problem but there is no harm in updating this chip too when everything is all set up already.
1/work/lbmk $ ./mk -d coreboot lenovo_thinkpad_t480_16mb
This will create a folder called vendorfiles, what we need from this folder is vendorfiles/t480/tb.bin.
Now we have the two files we need available in the folder we first created, accessible from the host machine: libreboot-26.10rev16_lenovo_thinkpad_t480_16mb.tar.xz and tb.bin. We can exit from the docker machine.
Cleaning up Docker image and build environment
The files for this Debian install is saved in docker storage. We can go back to this docker instance later if needed:
1~ $ docker start debian-libreboot
2~ $ docker exec -it debian-libreboot bash
When you are completely finished with this installation and want to get rid of it, you can just remove the container:
1~ $ docker stop debian-libreboot
2~ $ docker rm debian-libreboot
Now you have only the files in your work folder ~/libreboot left on your system. You can also remove this safely after you take out the two files we will need.
Writing the images on the chips
I will be using a Raspberry Pi 3B+ to write the image to the BIOS chip. I installed Raspberry Pi OS (64 Bit) on an SD card and booted the Pi. If you have a Raspberry Pico, it is a different process because Pico is used as a USB device, not as a standalone computer. Here we are using the Raspberry Pi 3B+ as a standalone computer that will use linux_spi connection over GPIO to work on the BIOS chip. SPI stands for Serial Peripheral Interface and is the interface we will be using to modify the data that is on the chip.
Enabling SPI on Raspberry Pi
First we need to enable internal SPI connection on the Raspberry Pi. You can enable SPI in the Interface section of the Control Centre application of Raspberry Pi OS. It can also be enabled in raspi-config tool of Pi OS. After you enable SPI here, it will immediately be available so there is no need to restart or anything.
![]() | ![]() |
Connecting SOIC8 clip to the Raspberry Pi
Now that we have SPI enabled on the Pi, next let’s connect the SOIC8 clip to the Raspberry Pi. The clip I have has a red line to determine the starting pin, and we will note this pin as #1.
Using below table (source), connect each one to the GPIO pins on the Raspberry Pi. Refer to the GPIO pinout of Raspberry Pi (source).
| Chip Pin | Signal | RPi Physical Pin | GPIO Function | Purpose |
|---|---|---|---|---|
| 1 | CS | 24 | SPI0_CE0_N | Chip Select: The Pi will use this to activate the BIOS chip. |
| 2 | MISO | 21 | SPI0_MISO | BIOS chip sends data back to the Pi. |
| 3 | WP | - | - | Write Protect. We leave this unconnected. |
| 4 | GND | 25 | Ground | Ground: Common electrical reference. |
| 5 | MOSI | 19 | SPI0_MOSI | Pi sends data to the BIOS chip. |
| 6 | CLK | 23 | SPI0_SCLK | Serial Clock: The Pi provides the timing signal. |
| 7 | HOLD | - | - | Hold. We leave this unconnected. |
| 8 | VCC | 17 | 3V3 power | Power. Read the note below. |
Note on power: There are a lot of warnings in many of the tutorials that the power from Raspberry Pi is not stable enough when writing to a chip. I haven’t faced with any problems but this might be due to using the original high current 3A power brick. So, be careful and do your own research.
Also, now is a good time to copy both files we have prepared in the earlier steps (libreboot-26.10rev16_lenovo_thinkpad_t480_16mb.tar.xz and tb.bin) to the Raspberry Pi. You can use SSH or just copy it on a USB stick.
flashrom is the tool we will be using to communicate with the chip. As noted in its man page, flashrom is a utility for detecting, reading, writing, verifying and erasing flash chips. It was already installed on Raspberry Pi OS, but if it is not installed in your case, sudo apt install flashrom should do the trick.
Now we have the clip connected to Raspberry Pi, ROM files are on the Pi and the flashrom is installed. So we are ready to proceed with the actual flashing.
Chip locations on the mainboard and cautions
We will now open the back cover of T480. There are two chips we are interested. The actual BIOS chip placed in the middle part of the mainboard. It is a 16 MB chip with the designation W25Q128.V (datasheet for a common variant). The other one is the Thunderbolt chip, located near the charging port. Tunderbolt chip is the same size visually, however it is only 1 MB chip with designation W25Q80.V (datasheet).
You can refer to the below image for their locations. When the computer is in this orientation (external battery at the top and internal battery at the bottom), #1 pin of both chips are on the top left, red line tip of the clip should be placed top left. There is also a little notch on the corner of the chip showing leg #1. See the pinout of the chips (source).
In below photo, A is the BIOS chip and B is the Thunderbolt chip.
Caution #1: When flashing or connecting the clip to the motherboard, all power sources must be unplugged. Don’t forget to unplug the internal battery and CMOS battery, both of which are marked on the image with arrows.
Caution #2: When the clip is correctly attached to the chip, it should not unattach easily, so try until it is hatched on the chip strongly enough.
Caution #3: Before you write to a chip, always do multiple reads and compare them and make sure they are the same. This means you have a good connection with the chip and successfully reading.
flashrom parameters
1flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "W25Q80.V" -r read.bin
-p .... is for programmer. We are using the GPIO connection on Raspberry Pi which is linux_spi. The rest of it are the parameters of this interface. dev is the device which likely would be same in your system too, and spispeed is the speed of interfacing. 1000 or 2000 should be considered safe values.
-c .... is for the chip. W25Q80.V for the Thunderbolt chip and W25Q128.V for the BIOS chip. You don’t have to specify the chip, flashrom can recognize it.
-r file.bin is to read from the chip and save it as file.bin.
-w file.bin is to write to the chip from the file.bin.
-E is to erase the chip.
Thunderbolt situation
So, as explained in the Libreboot tutorial, older Thunderbolt firmware versions write their logs on the chip, which can cause it to fill up. When this happens, fast charging and Thunderbolt is disabled, and a regular firmware update is not able to fix it because it cannot actually update the firmware. If your machine is affected by it, now you can fix it.
Place the clip on the Thunderbolt chip and do a few reads from the chip and compare them.
1# flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "W25Q80.V" -r tb_first_read.bin
2# flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "W25Q80.V" -r tb_second_read.bin
3# sha512sum tb_*
On each read or write, it should recognize and tell you it successfully found and reached the chip.
1Found Winbond flash chip "W25Q80.V" (1024 kB, SPI) on linux_spi.
Next, after we ensure we are reading successfully, we should erase the chip. Once with the erase command of flashrom, and once again by writing an image filled with zeroes to the chip.
1# flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "W25Q80.V" -E
2# dd if=/dev/zero of=null.bin bs=1M count=1
3# flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "W25Q80.V" -w null.bin
At this stage, you need to remove the clip, connect the CMOS battery, both internal and external batteries, and the external power and boot the computer. There is a warning in the tutorial it might take a while to boot in this state but for me it was pretty quick. We can shutdown the computer again, and remove the batteries and attach the clip to Thunderbolt chip for next step. You should do the double reading trick again before every writing attempt.
Now we will use the tb.bin file we have created earlier and write this image to the chip.
1# flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "W25Q80.V" -w tb.bin
You can boot now, and the chip is cleared from earlier leftover logs and updated with the correctly working firmware.
Writing the Libreboot ROM to the BIOS chip
We are finally at the stage to write Libreboot on the actual flash chip. Let’s unpack the archive file from earlier, and decide on which boot firmware we will be using.
1# tar xvf libreboot-26.10rev16_lenovo_thinkpad_t480_16mb.tar.xz
2# cd bin/lenovo_thinkpad_t480_16mb/
3# ls
4bios_seabios_lenovo_thinkpad_t480_16mb_.....
5 .
6 .
7bios_seagrub_lenovo_thinkpad_t480_16mb_.....
8bios_seagrub_lenovo_thinkpad_t480_16mb_.....
9 .
10 .
11 .
12uefi_edk2_grub_lenovo_thinkpad_t480_16mb_libgfxinit_corebootfb.rom
As you can see, even though there are a bunch of files, there are actually mainly 3 options for you to choose from for the actual boot firmware you want to use on your T480.
- Seabios: Old school BIOS implementation
- Seagrub: Your computer just loads GRUB as soon as it initializes
- EDK2: This is a UEFI implementation.
I decided to proceed with the EDK2 UEFI image, which I will be using. You can change this later on fairly easily, so you can choose the one you like the most for now and proceed.
Update: As of November 2026, Libreboot comes with only EDK2 payload in the archive. If you want to choose other options, read Re-adding legacy payloads to Libreboot. See my article about updating Libreboot.
Remove the batteries, attach clip to the BIOS chip, do your double reading for confirmation. If you skipped above section about Thunderbolt chip, go read it for more details on how to flash the chip. Then proceed with writing the actual image:
1# flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "W25Q128.V" -w uefi_edk2_grub_lenovo_thinkpad_t480_16mb_libgfxinit_corebootfb.rom
It should again acknowledge the correct chip, read the contents, write on the chip and then show VERIFIED.
1Found Winbond flash chip "W25Q128.V" (16384 kB, SPI) on linux_spi.
It took around 2 minutes on my system, and completed successfully. You can now safely remove the clip from the BIOS chip, plug the batteries and turn on your computer. You will be greeted with Libreboot splash screen.
Outro
OK, this was a fun weekend adventure. Also it was a good chance for me to practice writing long form articles. Thank you for reading so far. Hope you found the information you were looking for. Don’t forget to like and subscribe. Nah, just kidding, there is nothing to subscribe here other than the RSS feed. Enjoy your Librebooted T480 and send me a shoutout with a photo of your T480 if I was helpful!
Related articles
Resources and links
- Coreboot
- Libreboot
- lbmk repo on Codeberg
- Install Libreboot on Lenovo ThinkPad T480, T480s, T580, X280 on libreboot.org
- Installing Libreboot on my ThinkPad T480s on kaezone.nz
- Coreboot + EDK2 on the ThinkPad T480 on radleylewis.com
- t480_libreboot on Github
- Librebooting my new Thinkpad T480 on vimorie.com
- Connecting the SOIC8 Clip to Raspberry Pi GPIO on grasp.study
- RaspberryPi documentation on flashrom.org
- How to flash bios chips with Raspberry Pi on tomvanveen.eu
- Lenovo T480 (Maximized) on osresearch.net
- Introduction to the Raspberry Pi GPIO and Physical Computing on sparkfun.com
- Skulls - Thinkpad X230 on Github
![Raspberry Pi OS Menu Raspberry Pi OS Menu [IMG]](/articles/installing-libreboot-on-t480/menu_hu_ab5b36985cf3d8be.png)
![Raspberry Pi OS Control Centre Raspberry Pi OS Control Centre [IMG]](/articles/installing-libreboot-on-t480/control_centre_hu_7a90ca27021f5044.png)
![SOIC8 Clip SOIC8 Clip [IMG]](/articles/installing-libreboot-on-t480/soic8_clip_hu_e340b9b8ad19d5b3.jpeg)
![SOIC8 Clip Pinout SOIC8 Clip Pinout [IMG]](/articles/installing-libreboot-on-t480/soic8_pinout_hu_a8c611ddc176b6a7.jpeg)
![Raspberry Pi GPIO pins connected Raspberry Pi GPIO pins connected [IMG]](/articles/installing-libreboot-on-t480/pi_connected_hu_887aae80d43ab8c3.jpeg)
![T480 Mainboard T480 Mainboard [IMG]](/articles/installing-libreboot-on-t480/t480_chips_hu_4e896086294029f2.jpeg)
![Clip connected to T480 Mainboard Clip connected to T480 Mainboard [IMG]](/articles/installing-libreboot-on-t480/clip_connected_to_motherboard_hu_73bf06ebda197489.jpeg)
![Libreboot splash screen Libreboot splash screen [IMG]](/articles/installing-libreboot-on-t480/libreboot_splash_hu_7087b636c49e8429.jpeg)
![Libreboot firmware setup screen Libreboot firmware setup screen [IMG]](/articles/installing-libreboot-on-t480/libreboot_setup_hu_a058efe18f379bd5.jpeg)