Professional Documents
Culture Documents
$ ▄
Installing Coreboot on
a ThinkPad X220
Greg Garcia
@iamgreggarcia
coreboot
d
k Pa
T hin
Tointerruptthenormalstartup,presstheCAPSLOCKbutton
Image Credit:
notthebee/seabiosbootsplash
Introduction
Table of Contents
Prerequisites
Setup
Download Coreboot
Make ifdtool
Disassemble X220
Run me_cleaner
Build Coreboot
Run ifdtool
Configure Coreboot
Test
Conclusion
Prerequisites
A separate computer
Setup
Download Coreboot
https://review.coreboot.org/coreboot.git
Make ifdtool
make :
cd ~/x220-coreboot/coreboot/util/ifdtool
make
Disassemble X220
DB1
2340861.001
5011XER
VERAOC
sudo flashrom \
-c 'MX25L6406E/MX25L6408E' \
-p ch341a_spi \
-r x220-orig.bin
Run me_cleaner
Use cd ~/x220-coreboot/me_cleaner to
navigate back into the me_cleaner
directory. Run the following to see the
usage options for me_cleaner:
positional arguments:
file ME/TXE image or
optional arguments:
-h, --help show this help m
-v, --version show program\'s
-O output_file, --output output_file
save the modifie
modifying the or
-S, --soft-disable in addition to t
firmware, set th
ask Intel ME/TXE
initialization (
-s, --soft-disable-only
instead of the u
firmware, just s
to ask Intel ME/
hardware initial
-r, --relocate relocate the FTP
region to save e
-t, --truncate truncate the emp
separated ME/TXE
-k, --keep-modules don't remove the
-w whitelist, --whitelist whitelist
Comma separated
in the final ima
MFS partition fo
settings.
-b blacklist, --blacklist blacklist
Comma separated
image. This opti
-d, --descriptor remove the ME/TX
regions on the f
(requires a full
-D output_descriptor, --extract-descri
extract the flas
used with --trun
regions start an
-M output_me_image, --extract-me outpu
extract the ME f
with --truncate
-c, --check verify the integ
firmware and exi
Build Coreboot
Run ifdtool
./ifdtool -x ~/x220-coreboot/x220-no-me.
cd ../..
mkdir -p 3rdparty/blobs/mainboard/lenovo
cd 3rd party/blobs/mainboard/lenovo/x220
mv ~/x220-coreboot/util/ifdtool/flashreg
descriptor.bin
mv ~/x220-coreboot/util/ifdtool/flashreg
me.bin
mv ~/x220/coreboot/util/ifdtool/flashreg
gbe.bin
Configure Coreboot
cd ~/x220-coreboot/coreboot
make menuconfig
sudo flashrom \
-c 'MX25L6406E/MX25L6408E' \
-p ch341a_spi \
-w build/coreboot.rom
Test
Conclusion
TAGS
COREBOOT THINKPAD X220 HARDWARE
OPENSOURCE