| 1 | # 51NB X210 |
| 2 | |
| 3 | ## Extracting vendor EC firmware |
| 4 | |
| 5 | EC firmware is included in the SPI image. To extract it, run: |
| 6 | |
| 7 | ``` |
| 8 | dd bs=64K skip=32 count=1 if=bios.rom of=ec.bin |
| 9 | ``` |
| 10 | |
| 11 | and ensure that you have a file that includes the string "Insyde Software Corp". |
| 12 | |
| 13 | ## Flashing instructions |
| 14 | |
| 15 | This can be performed using the internal SPI controller, even when flashing |
| 16 | from stock firmware. Use `flashrom -p internal` and follow the appropriate |
| 17 | flashrom instructions to force it. Alternatively, external flashing has been |
| 18 | tested with Dediprog SF100 and SF600 and using a Beaglebone Black. The flash |
| 19 | is located on the upper side of the motherboard, below the keyboard |
| 20 | connector. It is circled in red here: |
| 21 | |
| 22 |  |
| 23 | |
| 24 | ## Flashing a subset of the ROM |
| 25 | |
| 26 | If you want to flash coreboot without extracting firmware blobs, you can |
| 27 | flash coreboot without overwriting those blobs. After building coreboot, |
| 28 | create a layout file with the following content: |
| 29 | |
| 30 | ``` |
| 31 | 00000000:001fffff me |
| 32 | 00200000:0020ffff ec |
| 33 | 00210000:007fffff main |
| 34 | ``` |
| 35 | |
| 36 | and run flashrom with the `--layout rom.layout --image main` arguments. This |
| 37 | will flash the main firmware without overwriting the existing EC or ME |
| 38 | firmware. |
| 39 | |
| 40 | ## Working |
| 41 | |
| 42 | All hardware features are believed to be working, although the SD reader is |
| 43 | untested. Note that certain hotkeys don't work (including the ThinkVantage |
| 44 | button) - this is a limitation of the EC firmware, and these keys also |
| 45 | generate no events under the stock vendor firmware. |
| 46 |