User Tools

Site Tools


laptop:lenovo-x230:flash-lenovo-x230-coreboot

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-x230:flash-lenovo-x230-coreboot [2020/03/15 20:07] – [Check Voltage] chucklaptop:lenovo-x230:flash-lenovo-x230-coreboot [2024/03/17 09:13] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ======Flashing my Lenovo x230 with Coreboot====== ======Flashing my Lenovo x230 with Coreboot======
 +<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 Coreboot site for any necessary updates until I can update this guide.
 +
 +I apologize for any inconveniences this causes.
 +</WRAP>
 +
  
 I flashed my Lenovo x230 with Coreboot and documented how I did it. I flashed my Lenovo x230 with Coreboot and documented how I did it.
Line 24: Line 32:
  
 =====Gather Supplies===== =====Gather Supplies=====
 +<WRAP announcement red smaller >
 +==Warning==
 +It is NOT recommended to use the CH341a!\\
 +The following page for recommendations and an explanation of why the CH341a is not advised:\\
 +https://libreboot.org/docs/install/spi.html#do-not-use-ch341a
 +</WRAP>
 +
 First, we need to gather the supplies that we need to perform the flash. This time, we will be using a CH341a instead of the BeagleBone Black that I used on the [[laptop:lenovo-x200:flash-lenovo-x200-libreboot|Libreboot X200]] Flash. First, we need to gather the supplies that we need to perform the flash. This time, we will be using a CH341a instead of the BeagleBone Black that I used on the [[laptop:lenovo-x200:flash-lenovo-x200-libreboot|Libreboot X200]] Flash.
  
Line 60: Line 75:
 flex \ flex \
 git \ git \
-gnat-5 \+gnat \
 libncurses5-dev \ libncurses5-dev \
 m4 \ m4 \
 +rename \
 zlib1g-dev zlib1g-dev
 </code> </code>
Line 165: Line 181:
  
 ===CH341a=== ===CH341a===
- 
 I bought the special adapter that connects to the top of the CH341a but then realized that these pins have the connections we need. In the past, I’ve read a few forum posts ( [[https://www.reddit.com/r/coreboot/comments/8b5m8g/ch341a_usb_flasher_and_335v/|ONE]], [[https://www.eevblog.com/forum/repair/ch341a-serial-memory-programmer-power-supply-fix/|TWO]], [[https://www.win-raid.com/t796f16-Guide-Using-CH-A-based-programmer-to-flash-SPI-EEPROM-5.html#msg43126|THREE]]) that state that this black version doesn’t provide the proper voltage through that method anyways. I bought the special adapter that connects to the top of the CH341a but then realized that these pins have the connections we need. In the past, I’ve read a few forum posts ( [[https://www.reddit.com/r/coreboot/comments/8b5m8g/ch341a_usb_flasher_and_335v/|ONE]], [[https://www.eevblog.com/forum/repair/ch341a-serial-memory-programmer-power-supply-fix/|TWO]], [[https://www.win-raid.com/t796f16-Guide-Using-CH-A-based-programmer-to-flash-SPI-EEPROM-5.html#msg43126|THREE]]) that state that this black version doesn’t provide the proper voltage through that method anyways.
  
 ===Bottom=== ===Bottom===
  
-The bottom of the CH341a has labels of what each pin is for, although there is a misprint of MIOS (supposed to read MISO){{ :zzz-site:coreboot-x230:ch341a-back-pins-1080.jpg?direct&600 | Bottom of CH341a pins }}+The bottom of the CH341a has labels of what each pin is for, although there is a misprint of MIOS (supposed to read MISO){{ :usb-device:ch341a:ch341a-back-pins.jpg?direct&600 | Bottom of CH341a pins }}
 \\ \\
  
 ===Top=== ===Top===
-Transfer those labels to the top and we get the pins we need to perform the flash. Make sure the jumper is connected on the other side to pins 1 and 2.{{ :zzz-site:coreboot-x230:ch341a-top-pinout-1080.jpg?direct&600 | Top of CH341a pins }}+Transfer those labels to the top and we get the pins we need to perform the flash. Make sure the jumper is connected on the other side to pins 1 and 2.{{ :usb-device:ch341a:ch341a-top-pinout.jpg?direct&600 | Top of CH341a pins }}
 \\ \\
  
Line 342: Line 357:
 [user@mainpc:~]$ cp ~/X230/bios-backup/X230-bios.rom ~/X230/coreboot/util/ifdtool/ [user@mainpc:~]$ cp ~/X230/bios-backup/X230-bios.rom ~/X230/coreboot/util/ifdtool/
 [user@mainpc:~]$ cd ~/X230/coreboot/util/ifdtool/ [user@mainpc:~]$ cd ~/X230/coreboot/util/ifdtool/
 +[user@mainpc:ifdtool]$ make
 [user@mainpc:ifdtool]$ ./ifdtool -x X230-bios.rom  [user@mainpc:ifdtool]$ ./ifdtool -x X230-bios.rom 
 File x230-bios.rom is 12582912 bytes File x230-bios.rom is 12582912 bytes
Line 350: Line 366:
   Flash Region 4 (Platform Data): 00fff000 - 00000fff (unused)   Flash Region 4 (Platform Data): 00fff000 - 00000fff (unused)
  
-[user@mainpc:ifdtool]$ ls *.bin+[user@mainpc:ifdtool]$ echo *.bin
 flashregion_0_flashdescriptor.bin  flashregion_1_bios.bin  flashregion_2_intel_me.bin  flashregion_3_gbe.bin flashregion_0_flashdescriptor.bin  flashregion_1_bios.bin  flashregion_2_intel_me.bin  flashregion_3_gbe.bin
  
Line 428: Line 444:
   * Secondary Payloads:   * Secondary Payloads:
     * Select: Load coreinfo     * Select: Load coreinfo
-    * Select: Load Memtest86+ 
     * Select: Load nvramcui     * Select: Load nvramcui
-    * Memtest 86+ version (Stable) 
   * **Save**   * **Save**
   * **Exit**   * **Exit**
Line 444: Line 458:
 ===Pictures=== ===Pictures===
 {{gallery> laptop:lenovo-x230:coreboot:?x230-nconfig*.png&250x250&1920X1080&3&lightbox}} {{gallery> laptop:lenovo-x230:coreboot:?x230-nconfig*.png&250x250&1920X1080&3&lightbox}}
 +
  
 ---- ----
Line 591: Line 606:
 If you run into this problem do the following: If you run into this problem do the following:
  
-<code>+<code bash>
 # append i915 to the end of the file # append i915 to the end of the file
 [user@mainpc:~]$ echo "i915" | sudo tee -a /etc/initramfs-tools/modules [user@mainpc:~]$ echo "i915" | sudo tee -a /etc/initramfs-tools/modules
Line 598: Line 613:
 [user@mainpc:~]$ sudo update-initramfs -u [user@mainpc:~]$ sudo update-initramfs -u
  
-If grub isn’t full screen you may have to set the resolution:+If grub isn’t full screen you may have to set the resolution:
  
 [user@mainpc:~]$ sudoedit /etc/default/grub [user@mainpc:~]$ sudoedit /etc/default/grub
Line 623: Line 638:
   * [[https://libreboot.org/docs/gnulinux/encrypted_debian.html|Install Debian]]   * [[https://libreboot.org/docs/gnulinux/encrypted_debian.html|Install Debian]]
   * IRC Freenode: #coreboot   * IRC Freenode: #coreboot
 +
laptop/lenovo-x230/flash-lenovo-x230-coreboot.1584317227.txt.gz · Last modified: 2020/03/15 20:07 by chuck