mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-30 17:56:58 +00:00
b29447ef8f
- Update flashrom module to v1.2. - Drop Thinkpad x220 patch as it's now properly supported. - Drop 'laptop=force_I_want_a_brick' from board FLASHROM_OPTIONS since it's no longer needed. - Migrate kgpe-d16 patch. The kgpe-d16 patch needed a complete overhaul when rebased against flashrom v1.2, and needs close inspection/testing as a result. The following changes were made from the previous patch: - dropped addition of 4-byte addressing (4BA), since now supported - dropped addtiion of Macronix MX25L256 and MX66L512 chips, since now supported - added 4BA erase commands for Winbond W25Q256 chip - dropped code to show progress indicator, since another PR already adds that Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
27 lines
852 B
Markdown
27 lines
852 B
Markdown
To build for X220 we need to have the following files in this folder:
|
|
* `me.bin` - ME binary that has been stripped and truncated with me_cleaner
|
|
* `gbe.bin` - Network card blob from the original firmware
|
|
* `ifd.bin` - Flash layout file has been provided as text
|
|
|
|
To get the binaries, start with a copy of the original Lenovo firmware image.
|
|
If you do not have one already, you can read one out from the laptops SPI flash.
|
|
|
|
```
|
|
flashrom --programmer internal -r original.bin
|
|
```
|
|
|
|
Once you have the image, the provided extraction script will extract the files needed.
|
|
|
|
```
|
|
./extract.sh -f <romdump>
|
|
```
|
|
|
|
Use the options '-m' and '-i' to provide me_cleaner and ifdtool if they can not be located
|
|
automatically.
|
|
|
|
The flash layout will be automatically adjusted and the ME image cleaned and truncated.
|
|
|
|
You can now compile the image with:
|
|
|
|
make BOARD=x220
|