2017-07-27 10:26:04 +00:00
|
|
|
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
|
2017-08-04 20:48:27 +00:00
|
|
|
* `ifd.bin` - Flash layout file has been provided as text
|
2017-07-27 10:26:04 +00:00
|
|
|
|
|
|
|
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:laptop=force_I_want_a_brick -r original.bin
|
|
|
|
```
|
|
|
|
|
2017-08-04 20:48:27 +00:00
|
|
|
Once you have the image, the provided extraction script will extract the files needed.
|
2017-07-27 10:26:04 +00:00
|
|
|
|
|
|
|
```
|
2017-08-04 20:48:27 +00:00
|
|
|
./extract.sh -f <romdump>
|
2017-07-27 10:26:04 +00:00
|
|
|
```
|
|
|
|
|
2017-08-04 20:48:27 +00:00
|
|
|
Use the options '-m' and '-i' to provide me_cleaner and ifdtool if they can not be located
|
|
|
|
automatically.
|
2017-07-27 10:26:04 +00:00
|
|
|
|
2017-08-04 20:48:27 +00:00
|
|
|
The flash layout will be automatically adjusted and the ME image cleaned and truncated.
|
2017-07-27 10:26:04 +00:00
|
|
|
|
|
|
|
You can now compile the image with:
|
|
|
|
|
|
|
|
```
|
2017-08-04 20:48:27 +00:00
|
|
|
make CONFIG=config/x220-generic.config
|
2017-07-27 10:26:04 +00:00
|
|
|
```
|