External flashing
External flashing writes coreboot with a programmer, such as a Raspberry Pi Pico, clipped onto the laptop's flash chip, and it is the only route that can neutralise the Intel Management Engine: put the serprog firmware on the Pico, detect the chip, back up the whole factory image, run me_cleaner on its ME region and flash the result, flash coreboot to the BIOS region, and check with intelmetool that the ME is disabled.
External flashing is needed in three cases. The stock firmware locks the ME region against internal access, so neutralising the ME takes an external flash the first time. If an internal flash fails and the laptop no longer boots, an external programmer is the only way to restore it. And some boards do not allow internal flashing at all.
Step 1: Put serprog on the Pico
Step 1 puts serprog, the open-source firmware that turns a Raspberry Pi Pico into an SPI programmer that flashrom drives over USB, on the Pico. Libreboot publishes serprog prebuilt and signed with each of its releases, so you can download it without Libreboot's build system. The commands are for Libreboot 26.11rev4, the current release as of November 2026.
Use Libreboot's serprog, not the original pico-serprog it was forked from. The original puts chip select on GP1 instead of GP5, so it would not match the wiring in step 2.
Download the serprog archive and its signature from a Libreboot mirror, and Libreboot's signing key from libreboot.org:
mkdir -p ~/serprog && cd ~/serprog
MIRROR=https://www.mirrorservice.org/sites/libreboot.org/release/stable/26.11rev4/roms
curl -O $MIRROR/libreboot-26.11rev4-pico-serprog-default.tar.xz
curl -O $MIRROR/libreboot-26.11rev4-pico-serprog-default.tar.xz.sig
curl -O https://libreboot.org/lbkey.asc
Any HTTPS mirror on Libreboot's download page serves the same files. Import the key and check the signature:
gpg --import lbkey.asc
gpg --verify libreboot-26.11rev4-pico-serprog-default.tar.xz.sig libreboot-26.11rev4-pico-serprog-default.tar.xz
You should see:
gpg: Signature made Sat 21 Nov 2026 22:38:45 UTC
gpg: using RSA key 8BB1F7D28CF7696DBF4F71925C654067D383B1FF
gpg: Good signature from "Leah Rowe <info@minifree.org>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 8BB1 F7D2 8CF7 696D BF4F 7192 5C65 4067 D383 B1FF
The line that matters is Good signature, from the key whose fingerprint Libreboot's download page lists: 8BB1 F7D2 8CF7 696D BF4F 7192 5C65 4067 D383 B1FF. The warning only means you have not certified the key yourself. If gpg reports BAD signature, delete the archive and download it again.
Unpack the archive and copy out the firmware for your board:
tar -xf libreboot-26.11rev4-pico-serprog-default.tar.xz
cp elf/pico-serprog/default/default/noconfig/xbmk/serprog_pico.uf2 ~/
The archive holds a .uf2 file for every board the Raspberry Pi Pico SDK knows. serprog_pico.uf2 is for the Pico and Pico H, and serprog_pico_w.uf2 is for the Pico W. Use an original Pico (RP2040): Libreboot removed Pico 2 support because of stability problems.
Build serprog from source instead
Libreboot's build system, lbmk, builds serprog from two sources: Libreboot's pico-serprog, at a commit lbmk pins, and the Raspberry Pi Pico SDK 1.5.1. You can build the same firmware without lbmk. On top of the packages from step 1 of Build coreboot, install CMake and an ARM cross-compiler.
Debian-based distros (e.g., Ubuntu, Linux Mint):
sudo apt install -y cmake python3 gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
Arch-based distros (e.g., Manjaro, EndeavourOS):
sudo pacman -S cmake python arm-none-eabi-binutils arm-none-eabi-gcc arm-none-eabi-newlib
Red Hat-based distros (e.g., Fedora, CentOS, RHEL):
sudo dnf install cmake python3 arm-none-eabi-binutils arm-none-eabi-gcc arm-none-eabi-gcc-cs-c++ arm-none-eabi-newlib
Then fetch both sources at the revisions lbmk uses in 26.11rev4 and build for the Pico. The sed line is the one-line fix lbmk applies to pico-serprog: without it the build fails on GCC 16, which Arch ships.
mkdir -p ~/serprog && cd ~/serprog
git clone https://github.com/raspberrypi/pico-sdk
git -C pico-sdk checkout 1.5.1
git -C pico-sdk submodule update --init lib/tinyusb
git clone https://codeberg.org/libreboot/pico-serprog
git -C pico-serprog checkout 3ea792664ed29ca1ff3e2e78d1d16099684781bd
sed -i 's/enable_spi(baud);/enable_spi();/' pico-serprog/main.c
cmake -DPICO_BOARD=pico -DPICO_SDK_PATH="$PWD/pico-sdk" -B pico-serprog/build pico-serprog
cmake --build pico-serprog/build
cp pico-serprog/build/pico_serprog.uf2 ~/serprog_pico.uf2
For a Pico W, build with -DPICO_BOARD=pico_w. The build names its output pico_serprog.uf2, and the last command copies it to the name the rest of this step uses.
Copy ~/serprog_pico.uf2 onto the Pico and check that your computer sees it as a serial device, as steps 3 and 4 of the Libreboot serprog guide describe. Plug the Pico in with its BOOTSEL button held down, copy the file onto the RPI-RP2 drive that appears, then plug the Pico in again while sudo dmesg -wH runs and look for a ttyACM0 line. The rest of this guide assumes /dev/ttyACM0.
Step 2: Detect the chip
Step 2 connects the programmer to the laptop's flash chip and checks that flashrom can identify the chip. With the laptop switched off and its battery removed:
- Wire the Pico with Dupont cables to a Pomona clip for a SOIC chip (first photo) or a pogo-pin adapter for a WSON chip (second photo), following the Libreboot wiring guide.
- Attach the clip firmly to the chip, so every pin makes contact.
- Plug the Pico into the computer you are flashing from with a USB cable.


Then detect the chip:
sudo flashrom -p serprog:dev=/dev/ttyACM0,spispeed=16M
If flashrom reports several possible chip types, identify the right one from the markings on the chip and run the command again with its name:
sudo flashrom -p serprog:dev=/dev/ttyACM0,spispeed=16M -c "W25Q128.V"
Once flashrom names one chip, go on to the backup.
Step 3: Back up the factory BIOS
Step 3 reads the whole chip three times and compares the reads, so you have a factory image you can trust. If you are recovering from a failed internal flash, skip this step: an image that does not boot is not worth keeping.
sudo flashrom -p serprog:dev=/dev/ttyACM0,spispeed=16M -c "W25Q128.V" -r factory.bin
sudo flashrom -p serprog:dev=/dev/ttyACM0,spispeed=16M -c "W25Q128.V" -r factory2.bin
sudo flashrom -p serprog:dev=/dev/ttyACM0,spispeed=16M -c "W25Q128.V" -r factory3.bin
Compare the three reads:
sha1sum factory.bin factory2.bin factory3.bin
All three hashes must match:
6cf9bfc90df1ed01336872cd159a00c101d0a7b0 factory.bin
6cf9bfc90df1ed01336872cd159a00c101d0a7b0 factory2.bin
6cf9bfc90df1ed01336872cd159a00c101d0a7b0 factory3.bin
If they do, keep factory.bin somewhere safe and delete the other two. If they differ, reseat the clip and read again.
rm factory2.bin factory3.bin
Step 4: Neutralise the Intel ME
Step 4 checks the factory image and runs me_cleaner on its ME region. First confirm the image has the expected layout with ifdtool, from the coreboot source tree:
cd coreboot/util/ifdtool
make
./ifdtool -d factory.bin
It prints a long description of the flash descriptor, including the ME region:
Output
Warning: No platform specified. Output may be incomplete
File t430s_full_dump_coreboot.bin is 16777216 bytes
PCH Revision: 6 series Cougar Point
FLMAP0: 0x03040003
NR: 3
FRBA: 0x40
NC: 1
FCBA: 0x30
FLMAP1: 0x12100206
ISL: 0x12
FPSBA: 0x100
NM: 2
FMBA: 0x60
FLMAP2: 0x00210120
PSL: 0x2101
FMSBA: 0x200
FLUMAP1: 0x000018df
Intel ME VSCC Table Length (VTL): 24
Intel ME VSCC Table Base Address (VTBA): 0x000df0
ME VSCC table:
JID0: 0x001620c2
SPI Component Vendor ID: 0xc2
SPI Component Device ID 0: 0x20
SPI Component Device ID 1: 0x16
VSCC0: 0x20052005
Lower Erase Opcode: 0x20
Lower Write Enable on Write Status: 0x50
Lower Write Status Required: No
Lower Write Granularity: 64 bytes
Lower Block / Sector Erase Size: 4KB
Upper Erase Opcode: 0x20
Upper Write Enable on Write Status: 0x50
Upper Write Status Required: No
Upper Write Granularity: 64 bytes
Upper Block / Sector Erase Size: 4KB
JID1: 0x001720c2
SPI Component Vendor ID: 0xc2
SPI Component Device ID 0: 0x20
SPI Component Device ID 1: 0x17
VSCC1: 0x20052005
Lower Erase Opcode: 0x20
Lower Write Enable on Write Status: 0x50
Lower Write Status Required: No
Lower Write Granularity: 64 bytes
Lower Block / Sector Erase Size: 4KB
Upper Erase Opcode: 0x20
Upper Write Enable on Write Status: 0x50
Upper Write Status Required: No
Upper Write Granularity: 64 bytes
Upper Block / Sector Erase Size: 4KB
JID2: 0x001820c2
SPI Component Vendor ID: 0xc2
SPI Component Device ID 0: 0x20
SPI Component Device ID 1: 0x18
VSCC2: 0x20052005
Lower Erase Opcode: 0x20
Lower Write Enable on Write Status: 0x50
Lower Write Status Required: No
Lower Write Granularity: 64 bytes
Lower Block / Sector Erase Size: 4KB
Upper Erase Opcode: 0x20
Upper Write Enable on Write Status: 0x50
Upper Write Status Required: No
Upper Write Granularity: 64 bytes
Upper Block / Sector Erase Size: 4KB
JID3: 0x001640ef
SPI Component Vendor ID: 0xef
SPI Component Device ID 0: 0x40
SPI Component Device ID 1: 0x16
VSCC3: 0x20052005
Lower Erase Opcode: 0x20
Lower Write Enable on Write Status: 0x50
Lower Write Status Required: No
Lower Write Granularity: 64 bytes
Lower Block / Sector Erase Size: 4KB
Upper Erase Opcode: 0x20
Upper Write Enable on Write Status: 0x50
Upper Write Status Required: No
Upper Write Granularity: 64 bytes
Upper Block / Sector Erase Size: 4KB
JID4: 0x001740ef
SPI Component Vendor ID: 0xef
SPI Component Device ID 0: 0x40
SPI Component Device ID 1: 0x17
VSCC4: 0x20052005
Lower Erase Opcode: 0x20
Lower Write Enable on Write Status: 0x50
Lower Write Status Required: No
Lower Write Granularity: 64 bytes
Lower Block / Sector Erase Size: 4KB
Upper Erase Opcode: 0x20
Upper Write Enable on Write Status: 0x50
Upper Write Status Required: No
Upper Write Granularity: 64 bytes
Upper Block / Sector Erase Size: 4KB
JID5: 0x001840ef
SPI Component Vendor ID: 0xef
SPI Component Device ID 0: 0x40
SPI Component Device ID 1: 0x18
VSCC5: 0x20052005
Lower Erase Opcode: 0x20
Lower Write Enable on Write Status: 0x50
Lower Write Status Required: No
Lower Write Granularity: 64 bytes
Lower Block / Sector Erase Size: 4KB
Upper Erase Opcode: 0x20
Upper Write Enable on Write Status: 0x50
Upper Write Status Required: No
Upper Write Granularity: 64 bytes
Upper Block / Sector Erase Size: 4KB
JID6: 0x0016ba20
SPI Component Vendor ID: 0x20
SPI Component Device ID 0: 0xba
SPI Component Device ID 1: 0x16
VSCC6: 0x20052005
Lower Erase Opcode: 0x20
Lower Write Enable on Write Status: 0x50
Lower Write Status Required: No
Lower Write Granularity: 64 bytes
Lower Block / Sector Erase Size: 4KB
Upper Erase Opcode: 0x20
Upper Write Enable on Write Status: 0x50
Upper Write Status Required: No
Upper Write Granularity: 64 bytes
Upper Block / Sector Erase Size: 4KB
JID7: 0x0017ba20
SPI Component Vendor ID: 0x20
SPI Component Device ID 0: 0xba
SPI Component Device ID 1: 0x17
VSCC7: 0x20052005
Lower Erase Opcode: 0x20
Lower Write Enable on Write Status: 0x50
Lower Write Status Required: No
Lower Write Granularity: 64 bytes
Lower Block / Sector Erase Size: 4KB
Upper Erase Opcode: 0x20
Upper Write Enable on Write Status: 0x50
Upper Write Status Required: No
Upper Write Granularity: 64 bytes
Upper Block / Sector Erase Size: 4KB
OEM Section:
00: 47 31 52 4e 31 36 57 57 ff 38 2e 31 2e 34 30 2e
10: 31 34 31 36 ff 31 36 4d 42 ff 53 49 47 4e 45 44
20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Found Region Section
FLREG0: 0x00000000
Flash Region 0 (Flash Descriptor): 00000000 - 00000fff
FLREG1: 0x0fff0500
Flash Region 1 (BIOS): 00500000 - 00ffffff
FLREG2: 0x04ff0003
Flash Region 2 (Intel ME): 00003000 - 004fffff
FLREG3: 0x00020001
Flash Region 3 (GbE): 00001000 - 00002fff
FLREG4: 0x00001fff
Flash Region 4 (Platform Data): 00fff000 - 00000fff (unused)
Found Component Section
FLCOMP 0x4990001d
Dual Output Fast Read Support: supported
Read ID/Read Status Clock Frequency: 33MHz
Write/Erase Clock Frequency: 33MHz
Fast Read Clock Frequency: 50MHz
Fast Read Support: supported
Read Clock Frequency: 20MHz
Component 2 Density: 4MB
Component 1 Density: 16MB
FLILL 0x00000000
Invalid Instruction 3: 0x00
Invalid Instruction 2: 0x00
Invalid Instruction 1: 0x00
Invalid Instruction 0: 0x00
FLPB 0x00000000
Flash Partition Boundary Address: 0x000000
Found PCH Strap Section
PCHSTRP0 : 0x4810d782
PCHSTRP1 : 0x0000010f
PCHSTRP2 : 0x00000000
PCHSTRP3 : 0x00000000
PCHSTRP4 : 0x00c8e102
PCHSTRP5 : 0x00000000
PCHSTRP6 : 0x00000000
PCHSTRP7 : 0x00000000
PCHSTRP8 : 0x00000000
PCHSTRP9 : 0x30000b8c
PCHSTRP10 : 0x00410044
PCHSTRP11 : 0x99000097
PCHSTRP12 : 0x00000000
PCHSTRP13 : 0x00000000
PCHSTRP14 : 0x00000000
PCHSTRP15 : 0x0000437e
PCHSTRP16 : 0x00000000
PCHSTRP17 : 0x00000002
AltMeDisable bit is not set
Found Master Section
FLMSTR1: 0x0a0b0000 (Host CPU/BIOS)
Platform Data Region Write Access: disabled
GbE Region Write Access: enabled
Intel ME Region Write Access: disabled
Host CPU/BIOS Region Write Access: enabled
Flash Descriptor Write Access: disabled
Platform Data Region Read Access: disabled
GbE Region Read Access: enabled
Intel ME Region Read Access: disabled
Host CPU/BIOS Region Read Access: enabled
Flash Descriptor Read Access: enabled
Requester ID: 0x0000
FLMSTR2: 0x0c0d0000 (Intel ME)
Platform Data Region Write Access: disabled
GbE Region Write Access: enabled
Intel ME Region Write Access: enabled
Host CPU/BIOS Region Write Access: disabled
Flash Descriptor Write Access: disabled
Platform Data Region Read Access: disabled
GbE Region Read Access: enabled
Intel ME Region Read Access: enabled
Host CPU/BIOS Region Read Access: disabled
Flash Descriptor Read Access: enabled
Requester ID: 0x0000
FLMSTR3: 0x08080118 (GbE)
Platform Data Region Write Access: disabled
GbE Region Write Access: enabled
Intel ME Region Write Access: disabled
Host CPU/BIOS Region Write Access: disabled
Flash Descriptor Write Access: disabled
Platform Data Region Read Access: disabled
GbE Region Read Access: enabled
Intel ME Region Read Access: disabled
Host CPU/BIOS Region Read Access: disabled
Flash Descriptor Read Access: disabled
Requester ID: 0x0118
Found Processor Strap Section
????: 0x00000000
????: 0xffffffff
????: 0xffffffff
????: 0xffffffff
????: 0xffffffff
????: 0xffffffff
????: 0xffffffff
????: 0xffffffff
Then check that the ME firmware in the image is valid with me_cleaner, which ships in the coreboot tree at util/me_cleaner:
python me_cleaner.py -c factory.bin
The output should look like this:
Output
Full image detected
The ME/TXE region goes from 0x3000 to 0x500000
Found FPT header at 0x3010
Found 23 partition(s)
Found FTPR header: FTPR partition spans from 0x180000 to 0x24a000
ME/TXE firmware version 8.1.40.1416
Public key match: Intel ME, firmware versions 7.x.x.x, 8.x.x.x
The AltMeDisable bit is NOT SET
Checking the FTPR RSA signature... VALID
Then neutralise the ME. -S also sets the AltMeDisable bit, which asks the ME to switch itself off after hardware initialisation, and -O writes the result to a new file, leaving factory.bin untouched:
python me_cleaner.py -S -O factory_me_neutralized.bin factory.bin
The output should look like this:
Output
Full image detected
The ME/TXE region goes from 0x3000 to 0x500000
Found FPT header at 0x3010
Found 23 partition(s)
Found FTPR header: FTPR partition spans from 0x180000 to 0x24a000
ME/TXE firmware version 8.1.40.1416
Public key match: Intel ME, firmware versions 7.x.x.x, 8.x.x.x
The AltMeDisable bit is NOT SET
Reading partitions list...
???? (0x000003c0 - 0x000000400, 0x00000040 total bytes): removed
FOVD (0x00000400 - 0x000001000, 0x00000c00 total bytes): removed
MDES (0x00001000 - 0x000002000, 0x00001000 total bytes): removed
FCRS (0x00002000 - 0x000003000, 0x00001000 total bytes): removed
EFFS (0x00003000 - 0x0000df000, 0x000dc000 total bytes): removed
BIAL (NVRAM partition, no data, 0x0000add0 total bytes): nothing to remove
BIEL (NVRAM partition, no data, 0x00003000 total bytes): nothing to remove
BIIS (NVRAM partition, no data, 0x00036000 total bytes): nothing to remove
NVCL (NVRAM partition, no data, 0x00010511 total bytes): nothing to remove
NVCM (NVRAM partition, no data, 0x0000493f total bytes): nothing to remove
NVCP (NVRAM partition, no data, 0x0000a553 total bytes): nothing to remove
NVJC (NVRAM partition, no data, 0x00004000 total bytes): nothing to remove
NVKR (NVRAM partition, no data, 0x0001257d total bytes): nothing to remove
NVOS (NVRAM partition, no data, 0x00034af5 total bytes): nothing to remove
NVSH (NVRAM partition, no data, 0x00007609 total bytes): nothing to remove
NVTD (NVRAM partition, no data, 0x00001eac total bytes): nothing to remove
PLDM (NVRAM partition, no data, 0x0000a000 total bytes): nothing to remove
GLUT (0x000df000 - 0x0000e3000, 0x00004000 total bytes): removed
LOCL (0x000e3000 - 0x0000e7000, 0x00004000 total bytes): removed
WCOD (0x000e7000 - 0x000140000, 0x00059000 total bytes): removed
MDMV (0x00140000 - 0x000180000, 0x00040000 total bytes): removed
FTPR (0x00180000 - 0x00024a000, 0x000ca000 total bytes): NOT removed
NFTP (0x0024a000 - 0x0004a4000, 0x0025a000 total bytes): removed
Removing partition entries in FPT...
Removing EFFS presence flag...
Correcting checksum (0x2f)...
Reading FTPR modules list...
UPDATE (LZMA , 0x1cc507 - 0x1cc6c5 ): removed
ROMP (Huffman, fragmented data, ~2 KiB ): NOT removed, essential
BUP (Huffman, fragmented data, ~56 KiB ): NOT removed, essential
KERNEL (Huffman, fragmented data, ~135 KiB ): removed
POLICY (Huffman, fragmented data, ~91 KiB ): removed
HOSTCOMM (LZMA , 0x1cc6c5 - 0x1d349f ): removed
RSA (LZMA , 0x1d349f - 0x1d86f5 ): removed
CLS (LZMA , 0x1d86f5 - 0x1dde8a ): removed
TDT (LZMA , 0x1dde8a - 0x1e4580 ): removed
FTCS (Huffman, fragmented data, ~18 KiB ): removed
ClsPriv (LZMA , 0x1e4580 - 0x1e4961 ): removed
SESSMGR (LZMA , 0x1e4961 - 0x1f328b ): removed
The ME minimum size should be 1667072 bytes (0x197000 bytes)
The ME region can be reduced up to:
00003000:00199fff me
Setting the AltMeDisable bit in PCHSTRP10 to disable Intel ME...
Checking the FTPR RSA signature... VALID
Done! Good luck!
Step 5: Flash the neutralised image
Step 5 writes the whole neutralised image back to the chip:
sudo flashrom -p serprog:dev=/dev/ttyACM0,spispeed=16M -c "W25Q128.V" -w factory_me_neutralized.bin
Read the chip back and compare it with the file you wrote:
sudo flashrom -p serprog:dev=/dev/ttyACM0,spispeed=16M -c "W25Q128.V" -r flashed.bin
sha1sum factory_me_neutralized.bin flashed.bin
The two hashes must match:
4b9f06ccd2ce11dad757e337829a450a05df7929 factory_me_neutralized.bin
4b9f06ccd2ce11dad757e337829a450a05df7929 flashed.bin
If they do, delete flashed.bin. If they differ, write the image again before going on.
rm flashed.bin
Step 6: Flash the coreboot BIOS region
Step 6 writes coreboot to the BIOS region of the chip. Skip it if you have already flashed coreboot internally. Remove the CMOS battery first: some laptops keep settings that protect the SPI chip in CMOS or the embedded controller. Then disable the chip's write protection:
sudo flashrom -p serprog:dev=/dev/ttyACM0,spispeed=16M -c "W25Q128.V" --wp-disable
flashrom confirms it:
Disabled hardware protection
Write only the BIOS region of your coreboot image, leaving the descriptor and the neutralised ME as they are:
sudo flashrom -p serprog:dev=/dev/ttyACM0,spispeed=16M -c "W25Q128.V" -w coreboot.rom --ifd -i bios -N
Then verify the flashed BIOS region, reading it back with this same programmer in place of -p internal.
Step 7: Verify the Intel ME is neutralised
Step 7 boots the laptop and checks the ME's state with intelmetool, from the coreboot source tree:
cd coreboot/util/intelmetool
make
sudo ./intelmetool -m
On a neutralised ME the output looks like this:
Output
Bad news, you have a `QM77 Express Chipset LPC Controller` so you have ME hardware on board and you can't control or disable it, continuing...
MEI found: [8086:1e3a] 7 Series/C216 Chipset Family MEI Controller #1
ME Status : 0x1c020191
ME Status 2 : 0x120a0150
ME: FW Partition Table : OK
ME: Bringup Loader Failure : NO
ME: Firmware Init Complete : NO
ME: Manufacturing Mode : YES
ME: Boot Options Present : NO
ME: Update In Progress : NO
ME: Current Working State : Initializing
ME: Current Operation State : Bring up
ME: Current Operation Mode : Debug
ME: Error Code : No Error
ME: Progress Phase : BUP Phase
ME: Power Management Event : Clean global reset
ME: Progress Phase State : Check to see if straps say ME DISABLED
ME: Extend SHA-256: f9acfe9c2b5b199d321a1580417f5c4334d710175ad70bdaf4350eb1bef276fe
ME: failed to become ready
ME: failed to become ready
ME: GET FW VERSION message failed
In this output, Intel ME remains in the initializing state and fails to become fully ready. This is what a neutralised ME looks like: the hardware is present, but the ME firmware is disabled and cannot initialize.