#17 Fixes for x220 in site/docs/hardware and added internal flashon coreboot/osboot

Closed
phloryglow wants to merge 1 commits from phloryglow/branch_with_my_changes into osboot/master
3 changed files with 30 additions and 3 deletions
  1. 1 0
      site/docs/hardware/index.md
  2. 8 0
      site/docs/install/index.md
  3. 21 3
      site/docs/install/x220_external.md

+ 1 - 0
site/docs/hardware/index.md

@@ -64,6 +64,7 @@ osboot currently supports the following systems in this release:
 -   [Lenovo Thinkpad X220](../install/ivy_has_common.md)
 -   [Lenovo Thinkpad X220t](../install/ivy_has_common.md)
 -   [Lenovo Thinkpad T420](../install/ivy_has_common.md)
+-   [Lenovo Thinkpad X220](../install/x220_external.md)
 -   [Lenovo Thinkpad X230](../install/x230_external.md)
 -   [Lenovo Thinkpad X230t](../install/x230_external.md)
 

+ 8 - 0
site/docs/install/index.md

@@ -578,6 +578,14 @@ TARGET: Lenovo ThinkPad R500 laptop
 Refer to the following laptop:\
 [ThinkPad R500](../hardware/r500.md)
 
+TARGET: Thinkpad X220
+---------------------
+
+Refer to the [ivybridge/haswell common guide.](ivy_has_common.md) for how to
+make the rom image usable for external flashing.
+
+Read [board documentation](/docs/install/x220_external.md) for disassembly.
+
 TARGET: Thinkpad X230
 ---------------------
 

+ 21 - 3
site/docs/install/x220_external.md

@@ -1,10 +1,28 @@
 ---
-title: ThinkPad X220/X220T external flashing
+title: ThinkPad X220/X220T internal/external flashing
 x-toc-enable: true
 ...
+INTERNAL FLASH 
+--------------
+X220 does not support flash via software(internal) method running on non-free lenovo bios. 
+But if you have already run coreboot/osboot on your X220, then you can flash it with software(internal) method.
+You need to boot with a kernel parameter iomem=relaxed
+And when you boot into your GNU/Linux os you can update/flash other coreboot/osboot rom with flasrom.
 
-Make sure to read the [Ivybridge/Haswell common guide](/docs/install/ivy_has_common.html) before attempting to flash this board.
-After you have prepared a rom and split it into two section, refer to this guide for disassembly instructions.
+First you need to know the model of your chip.
+This can only be done by disassembling the laptop and looking at the markings on the chip
+See [coreboot docs](https://www.coreboot.org/Board:lenovo/x220) for how to disassemble this machine to reveal the flash chips.
+After you know the chip model you need to run this to list chip models:
+    flasrom -p internal
+Copy the name of the chip and paste it in CHIPNAME and type romfile name in ROMNAME:
+    flasrom -p internal -c CHIPNAME -w ROMNAME
+Wait until the flashing ends and if it completed without errors, turn off your laptop by long pressing the power button
+
+Boot it!
+--------
 
+EXTERNAL FLASH
+--------------
 We don't currently have disassembly instructions for this board.
 See [coreboot docs](https://www.coreboot.org/Board:lenovo/x220) for how to disassemble this machine to reveal the flash chips.
+Refer to [spi.md](spi.md) for how to re-flash externally.