User Tools

Site Tools


laptop:lenovo-x200:flash-lenovo-x200-libreboot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
laptop:lenovo-x200:flash-lenovo-x200-libreboot [2021/11/08 20:46] chucklaptop:lenovo-x200:flash-lenovo-x200-libreboot [2024/03/17 09:10] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ======Flashing my Lenovo x200 with Libreboot====== ======Flashing my Lenovo x200 with Libreboot======
 +<WRAP info smaller>
 +This guide is fairly old (2020/2021) and I haven't had time to update it with any changes that Coreboot may require.
 +
 +Most of the steps will still be relevant but I suggest cross-checking with the Libreboot site for any necessary updates until I can update this guide.
 +
 +I apologize for any inconveniences this causes.
 +</WRAP>
  
 I accidentally botched my original Libreboot flash during an update, so I decided to take some pictures and type this guide to hopefully help someone else. I accidentally botched my original Libreboot flash during an update, so I decided to take some pictures and type this guide to hopefully help someone else.
Line 33: Line 40:
 After the hostname, it shows the current directory. Eg: After the hostname, it shows the current directory. Eg:
  
-<code bash> +  * We're on the main computer in the home (~) directory:<code bash>
-We're on the main computer in the home (~) directory+
 [user@mainpc:~]$ [user@mainpc:~]$
- +</code> 
-We're on the BBB in the armv7l directory+  We're on the BBB in the armv7l directory:<code bash>
 [debian@beaglebone:armv7l]$ [debian@beaglebone:armv7l]$
 </code> </code>
  
 ---- ----
 +
 =====Gather Supplies===== =====Gather Supplies=====
 +
 +<WRAP announcement blue smaller>
 +==Attention==
 +The BeagleBone Black used in this guide is old.\\
 +Head over to the Libreboot site for updated device recommendations:\\
 +https://libreboot.org/docs/install/spi.html
 +</WRAP>
  
 First, gather the supplies needed to perform the flash. First, gather the supplies needed to perform the flash.
Line 48: Line 62:
 {{ :laptop:lenovo-x200:libreboot:x200-supplies.jpg?direct&600 | Gather Supplies }} {{ :laptop:lenovo-x200:libreboot:x200-supplies.jpg?direct&600 | Gather Supplies }}
  
-**Pictured**+==Pictured==
   * BeagleBone Black   * BeagleBone Black
   * 5V Power Supply (for the BBB)   * 5V Power Supply (for the BBB)
Line 55: Line 69:
   * #0 Phillips Screwdriver   * #0 Phillips Screwdriver
  
-**Not Pictured**+==Not Pictured==
   * Lenovo X200 - Not X200S or X200T   * Lenovo X200 - Not X200S or X200T
   * Second computer - to connect to the BBB   * Second computer - to connect to the BBB
Line 67: Line 81:
  
 =====Prepare the Files===== =====Prepare the Files=====
 +
 +<WRAP info>
 +These instructions are currently for **Libreboot 20160907** which has a different gpg signing key than **Libreboot 20210522** and newer!
 +</WRAP>
  
 We need to download the necessary files from the Libreboot site and have them all set up and ready to go for when we get the BBB connected to the X200. We need to download the necessary files from the Libreboot site and have them all set up and ready to go for when we get the BBB connected to the X200.
Line 90: Line 108:
  
 <WRAP important> <WRAP important>
-//You need to verify what size flash chip your X200 has. That will be done below at the Checking Communication section. If you’re not sure, come back to this section once you know what rom to download.//+//You need to verify what size flash chip your X200 has. That will be done below at the [[laptop:lenovo-x200:flash-lenovo-x200-libreboot#checking-communication|Checking Communication]] section. If you’re not sure, come back to this section once you know what rom to download.//
 </WRAP> </WRAP>
  
  
-  * You should now have a file structure that looks like similar to this:<code bash>+  * You should now have a file structure that looks similar to this:<code bash>
 [user@mainpc:~]$ cd ~/libreboot [user@mainpc:~]$ cd ~/libreboot
 [user@mainpc:libreboot]$ tree [user@mainpc:libreboot]$ tree
Line 151: Line 169:
 ---- ----
  
-====Prepare the ROM====+====Obtain the MAC Address====
  
 We need to set the MAC address for our wired interface in the rom. There are a few ways to get it. We need to set the MAC address for our wired interface in the rom. There are a few ways to get it.
Line 165: Line 183:
 00001000: XXXX XXXX XXXX ...'PH 00001000: XXXX XXXX XXXX ...'PH
 </code> </code>
-    * If you need to use the factory.rom method, wait until you dump the factory rom to get the mac address, then come back and finish these steps.+    * If you need to use the factory.rom method, wait until you [[laptop:lenovo-x200:flash-lenovo-x200-libreboot#backup-factory-rom|dump the factory rom]] to get the mac address, then come back and finish these steps.
  
 ---- ----
  
 +====Prepare the ROM====
   * Check architecture:<code bash>   * Check architecture:<code bash>
 [user@mainpc:libreboot]$ uname -m [user@mainpc:libreboot]$ uname -m
Line 278: Line 297:
 [debian@beaglebone:~]$ uname -m [debian@beaglebone:~]$ uname -m
 armv7l armv7l
 +</code>
   * Change directories:<code bash>   * Change directories:<code bash>
 [debian@beaglebone:~]$ cd ~/libreboot/libreboot_r20160907_util/flashrom/armv7l/ [debian@beaglebone:~]$ cd ~/libreboot/libreboot_r20160907_util/flashrom/armv7l/
Line 291: Line 311:
 </code> </code>
  
-You can see that it found the Macronix flash chip and that it’s 8192kB. That lets us know that we need to use the 8Mb rom from the Libreboot mirror. If you need to, go back to Prepare the Files and download the proper rom and follow the steps up to disassembling the X200.+You can see that it found the Macronix flash chip and that it’s 8192kB. That lets us know that we need to use the 8Mb rom from the Libreboot mirror. If you need to, go back to [[laptop:lenovo-x200:flash-lenovo-x200-libreboot#prepare-the-files|Prepare the Files]] and download the proper rom and follow the steps up to disassembling the X200.
  
 ---- ----
Line 368: Line 388:
  
 If you’re planning on using wifi, it is recommended to replace the factory Intel wifi chip. The factory chip requires proprietary software to work correctly, and we’re librebooting to rid our x200 of closed source software! If you’re planning on using wifi, it is recommended to replace the factory Intel wifi chip. The factory chip requires proprietary software to work correctly, and we’re librebooting to rid our x200 of closed source software!
- 
-See Recommended for suggestions on what to change it with. 
  
 For reference, I replaced mine with an Atheros 9285G and the Libreboot tutorial shows them using a Atheros AR5B95. For reference, I replaced mine with an Atheros 9285G and the Libreboot tutorial shows them using a Atheros AR5B95.
laptop/lenovo-x200/flash-lenovo-x200-libreboot.1636422383.txt.gz · Last modified: 2021/11/08 20:46 by chuck