summaryrefslogtreecommitdiff
path: root/Documentation/flash_tutorial/int_flashrom.md
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2018-08-04 10:04:45 +0200
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-09-30 03:20:36 +0000
commit15d840558480536ddaca71bc1876254d59fca7fe (patch)
treeecbb8b330e53b9413eaf17a72e0fb79a9ed2523f /Documentation/flash_tutorial/int_flashrom.md
parent3d1d966dd8866e8fd399f988b38b7ceba9f4cfee (diff)
downloadcoreboot-15d840558480536ddaca71bc1876254d59fca7fe.tar.xz
Documentation: Add basic flashing tutorial for Lenovo
* Add basic flashing tutorial ** Describe internal and external flashing ** Describe flash supply diode protection ** Gives general advices on flashing ** Describe how to use flashrom --ifd * Describe basic flashing on Lenovo T4xx devices ** Describe how to disassemble and access the flash IC on T4xx ** Describe flash layout on Sandy Bridge and Ivy Bridge series. Change-Id: Ia833e27f4e7d89ee32be9bed21a0c021839facec Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/27852 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'Documentation/flash_tutorial/int_flashrom.md')
-rw-r--r--Documentation/flash_tutorial/int_flashrom.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/flash_tutorial/int_flashrom.md b/Documentation/flash_tutorial/int_flashrom.md
new file mode 100644
index 0000000000..28b534b003
--- /dev/null
+++ b/Documentation/flash_tutorial/int_flashrom.md
@@ -0,0 +1,19 @@
+# Flashing firmware internally
+
+**WARNING:** If you flash a broken firmware and have no recovery mechanism, you
+ must use the **external method** to flash a working firmware again.
+
+## Using flashrom
+This method does only work on Linux, if it isn't locked down.
+You may also need to boot with 'iomem=relaxed' in the kernel command
+line if CONFIG_IO_STRICT_DEVMEM is set.
+
+
+For more details please also check [flashrom's wiki].
+Use the programmer *internal* to flash *coreboot.rom* internally:
+
+```bash
+flashrom -p internal -w coreboot.rom
+```
+
+[flashrom's wiki]: https://www.flashrom.org/Flashrom