Firmware

Firmware

This page is meant to be a quick reference for me when flashing Libreboot/Coreboot. I always forget which pins need to be hooked up, where.

General

MB1 –> BBB17
MB2 –> BBB21
MB3 –> NC
MB4 –> BBB1
MB5 –> BBB18
MB6 –> BBB22
MB7 –> NC
MB8 –> 3.3V PSU

Libreboot

https://libreboot.org/docs/install/x200_external.html

Test

./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512

Backup

# ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -r factory.rom
# ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -r factory1.rom
# ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -r factory2.rom

Flash

# ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -w path/to/libreboot/rom/image.rom -V

Coreboot

https://www.coreboot.org/Build_HOWTO

https://www.coreboot.org/Board:lenovo/x220

Troubleshooting

FAILED at 0x00000000! Expected=0xff, Found=0x00

Current flashing rig

  • BeagleBone Black w/ 5v power adapter