summaryrefslogtreecommitdiff
path: root/docs/howtos
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-07-11 08:53:00 +0000
committerMichał Masłowski <mtjm@mtjm.eu>2014-08-22 19:01:19 +0200
commitcee90ae0fce6d6aee8d78969b60c952c8890abd6 (patch)
tree6cbca259e213f5ffbc3927121e662c0377938cce /docs/howtos
Libreboot release 6 beta 1.
Diffstat (limited to 'docs/howtos')
-rw-r--r--docs/howtos/cbfstool_libreboot5_strace48
-rw-r--r--docs/howtos/grub_boot_installer.html73
-rw-r--r--docs/howtos/grub_cbfs.html131
-rw-r--r--docs/howtos/t60_mainboard/t60_ati_gpu.jpgbin0 -> 94538 bytes
-rw-r--r--docs/howtos/t60_mainboard/t60_intel_gpu.jpgbin0 -> 61298 bytes
-rw-r--r--docs/howtos/x60_unbrick.html302
-rw-r--r--docs/howtos/x60_unbrick/0000.jpgbin0 -> 53772 bytes
-rw-r--r--docs/howtos/x60_unbrick/0001.jpgbin0 -> 38997 bytes
-rw-r--r--docs/howtos/x60_unbrick/0002.jpgbin0 -> 31435 bytes
-rw-r--r--docs/howtos/x60_unbrick/0003.jpgbin0 -> 29815 bytes
-rw-r--r--docs/howtos/x60_unbrick/0004.jpgbin0 -> 42084 bytes
-rw-r--r--docs/howtos/x60_unbrick/0005.jpgbin0 -> 42715 bytes
-rw-r--r--docs/howtos/x60_unbrick/0006.jpgbin0 -> 33748 bytes
-rw-r--r--docs/howtos/x60_unbrick/0007.jpgbin0 -> 45537 bytes
-rw-r--r--docs/howtos/x60_unbrick/0008.jpgbin0 -> 46045 bytes
-rw-r--r--docs/howtos/x60_unbrick/0009.jpgbin0 -> 34013 bytes
-rw-r--r--docs/howtos/x60_unbrick/0010.jpgbin0 -> 30985 bytes
-rw-r--r--docs/howtos/x60_unbrick/0011.jpgbin0 -> 38650 bytes
-rw-r--r--docs/howtos/x60_unbrick/0012.jpgbin0 -> 39202 bytes
-rw-r--r--docs/howtos/x60_unbrick/0013.jpgbin0 -> 45481 bytes
-rw-r--r--docs/howtos/x60_unbrick/0014.jpgbin0 -> 40388 bytes
-rw-r--r--docs/howtos/x60_unbrick/0015.jpgbin0 -> 38045 bytes
-rw-r--r--docs/howtos/x60_unbrick/0016.jpgbin0 -> 32380 bytes
-rw-r--r--docs/howtos/x60_unbrick/0017.jpgbin0 -> 36115 bytes
-rw-r--r--docs/howtos/x60_unbrick/0018.jpgbin0 -> 37295 bytes
-rw-r--r--docs/howtos/x60_unbrick/0019.jpgbin0 -> 33700 bytes
-rw-r--r--docs/howtos/x60_unbrick/0020.jpgbin0 -> 26069 bytes
-rw-r--r--docs/howtos/x60_unbrick/0021.jpgbin0 -> 33441 bytes
-rw-r--r--docs/howtos/x60_unbrick/0022.jpgbin0 -> 36356 bytes
-rw-r--r--docs/howtos/x60_unbrick/0023.jpgbin0 -> 34821 bytes
-rw-r--r--docs/howtos/x60_unbrick/0024.jpgbin0 -> 32001 bytes
-rw-r--r--docs/howtos/x60_unbrick/0025.jpgbin0 -> 31621 bytes
-rw-r--r--docs/howtos/x60_unbrick/0026.jpgbin0 -> 39855 bytes
-rw-r--r--docs/howtos/x60_unbrick/0027.jpgbin0 -> 37302 bytes
-rw-r--r--docs/howtos/x60_unbrick/0028.jpgbin0 -> 39501 bytes
-rw-r--r--docs/howtos/x60_unbrick/0029.jpgbin0 -> 37530 bytes
-rw-r--r--docs/howtos/x60_unbrick/0030.jpgbin0 -> 43484 bytes
-rw-r--r--docs/howtos/x60_unbrick/0031.jpgbin0 -> 38022 bytes
-rw-r--r--docs/howtos/x60_unbrick/0032.jpgbin0 -> 44860 bytes
-rw-r--r--docs/howtos/x60_unbrick/0033.jpgbin0 -> 30821 bytes
-rw-r--r--docs/howtos/x60_unbrick/0034.jpgbin0 -> 37249 bytes
-rw-r--r--docs/howtos/x60_unbrick/0035.jpgbin0 -> 38429 bytes
-rw-r--r--docs/howtos/x60_unbrick/0036.jpgbin0 -> 41042 bytes
-rw-r--r--docs/howtos/x60_unbrick/0037.jpgbin0 -> 33911 bytes
-rw-r--r--docs/howtos/x60_unbrick/0038.jpgbin0 -> 38246 bytes
-rw-r--r--docs/howtos/x60_unbrick/0039.jpgbin0 -> 45794 bytes
-rw-r--r--docs/howtos/x60_unbrick/0040.jpgbin0 -> 40020 bytes
-rw-r--r--docs/howtos/x60_unbrick/0041.jpgbin0 -> 37564 bytes
-rw-r--r--docs/howtos/x60_unbrick/0042.jpgbin0 -> 35915 bytes
-rw-r--r--docs/howtos/x60_unbrick/0043.jpgbin0 -> 36692 bytes
-rw-r--r--docs/howtos/x60_unbrick/0044.jpgbin0 -> 37146 bytes
-rw-r--r--docs/howtos/x60_unbrick/0045.jpgbin0 -> 39062 bytes
-rw-r--r--docs/howtos/x60_unbrick/0046.jpgbin0 -> 35431 bytes
-rw-r--r--docs/howtos/x60_unbrick/0047.jpgbin0 -> 37275 bytes
-rw-r--r--docs/howtos/x60_unbrick/0048.jpgbin0 -> 39975 bytes
-rw-r--r--docs/howtos/x60_unbrick/0049.jpgbin0 -> 42058 bytes
56 files changed, 554 insertions, 0 deletions
diff --git a/docs/howtos/cbfstool_libreboot5_strace b/docs/howtos/cbfstool_libreboot5_strace
new file mode 100644
index 0000000..7e3794f
--- /dev/null
+++ b/docs/howtos/cbfstool_libreboot5_strace
@@ -0,0 +1,48 @@
+# strace ./cbfstool coreboot.rom add -n grub.cfg -f grub.cfg -t raw
+execve("./cbfstool", ["./cbfstool", "coreboot.rom", "add", "-n", "grub.cfg", "-f", "grub.cfg", "-t", "raw"], [/* 25 vars */]) = 0
+brk(0) = 0x9577000
+access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
+mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb76f6000
+access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
+open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
+fstat64(3, {st_mode=S_IFREG|0644, st_size=94605, ...}) = 0
+mmap2(NULL, 94605, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb76de000
+close(3) = 0
+access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
+open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
+read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\232\1\0004\0\0\0"..., 512) = 512
+fstat64(3, {st_mode=S_IFREG|0755, st_size=1775080, ...}) = 0
+mmap2(NULL, 1784604, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb752a000
+mmap2(0xb76d8000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ae) = 0xb76d8000
+mmap2(0xb76db000, 11036, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb76db000
+close(3) = 0
+mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7529000
+set_thread_area({entry_number:-1 -> 6, base_addr:0xb7529900, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
+mprotect(0xb76d8000, 8192, PROT_READ) = 0
+mprotect(0x8067000, 4096, PROT_READ) = 0
+mprotect(0xb7719000, 4096, PROT_READ) = 0
+munmap(0xb76de000, 94605) = 0
+brk(0) = 0x9577000
+brk(0x9598000) = 0x9598000
+open("grub.cfg", O_RDONLY) = 3
+fstat64(3, {st_mode=S_IFREG|0644, st_size=810, ...}) = 0
+mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb76f5000
+fstat64(3, {st_mode=S_IFREG|0644, st_size=810, ...}) = 0
+_llseek(3, 0, [0], SEEK_SET) = 0
+read(3, "set default=\"0\"\nset timeout=1\nse"..., 810) = 810
+_llseek(3, 810, [810], SEEK_SET) = 0
+close(3) = 0
+munmap(0xb76f5000, 4096) = 0
+open("coreboot.rom", O_RDONLY) = 3
+fstat64(3, {st_mode=S_IFREG|0644, st_size=2097152, ...}) = 0
+mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb76f5000
+fstat64(3, {st_mode=S_IFREG|0644, st_size=2097152, ...}) = 0
+_llseek(3, 2097152, [2097152], SEEK_SET) = 0
+_llseek(3, 0, [0], SEEK_SET) = 0
+mmap2(NULL, 2101248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7328000
+read(3, "LARCHIVE\0\0\6\30\0\0\1\252\0\0\0\0\0\0\0(cmos_lay"..., 2097152) = 2097152
+close(3) = 0
+munmap(0xb76f5000, 4096) = 0
+--- SIGSEGV (Segmentation fault) @ 0 (0) ---
++++ killed by SIGSEGV +++
+Segmentation fault
diff --git a/docs/howtos/grub_boot_installer.html b/docs/howtos/grub_boot_installer.html
new file mode 100644
index 0000000..9377cfc
--- /dev/null
+++ b/docs/howtos/grub_boot_installer.html
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <style type="text/css">
+ body {
+ background:#fff;
+ color:#000;
+ font-family:sans-serif;
+ font-size:1em;
+ }
+ </style>
+
+ <title>Libreboot documentation: installing GNU/Linux</title>
+</head>
+
+<body>
+ <header>
+ <h1>Boot a GNU/Linux installer on USB</h1>
+ <aside>Or <a href="../index.html">back to main index</a></aside>
+ </header>
+ <h2>How to boot from USB</h2>
+ <p>
+ Connect the USB drive. Check dmesg:<br/>
+ <b>$ dmesg</b>
+ </p>
+ <p>
+ Check that it wasn't automatically mounted. If it was, unmount it. For example:<br/>
+ <b>$ sudo umount /dev/sdb1</b><br/>
+ <b># umount /dev/sdb1</b>
+ </p>
+ <p>
+ dmesg told you what device it is. Overwrite the drive, writing your distro ISO to it with dd. For example:<br/>
+ <b>$ sudo dd if=gnulinux.iso of=/dev/sdb bs=8M; sync</b><br/>
+ <b># dd if=gnulinux.iso of=/dev/sdb bs=8M; sync</b>
+ </p>
+ <p>
+ Boot it in GRUB using the "Parse ISOLINUX config (USB)" option (it's in default libreboot grub.cfg, at least).
+ </p>
+ <p>
+ If the ISOLINUX parser won't work, then press C to get to GRUB command line.<br/>
+ <b>ls</b><br/>
+ Get the device from above output, eg (usb0). Example:<br/>
+ <b>cat (usb0)/isolinux/isolinux.cfg</b><br/>
+ Either this will show the ISOLINUX menuentries for that ISO, or link to other .cfg files, for example /isolinux/foo.cfg.<br/>
+ If it did that, then you do:<br/>
+ <b>cat (usb0)/isolinux/foo.cfg</b><br/>
+ And so on, until you find the correct menuentries for ISOLINUX.
+ </p>
+ <p>
+ Now look at the ISOLINUX menuentry. It'll look like:<br/>
+ <pre>
+ kernel /path/to/kernel
+ append PARAMETERS initrd=/path/to/initrd MAYBE_MORE_PARAMETERS
+ </pre>
+ GRUB works the same way, but in it's own way. Example GRUB commands:<br/>
+ <b>linux (usb0)/path/to/kernel PARAMETERS MAYBE_MORE_PARAMETERS</b><br/>
+ <b>initrd (usb0)/path/to/initrd</b><br/>
+ <b>boot</b><br/>
+ Of course this will vary from distro to distro. If you did all that correctly, it should now be booting the ISO
+ the way you specified.
+ </p>
+
+<hr/>
+
+ <p>
+ Copyright &copy; 2014 Francis Rowe, All Rights Reserved.<br/>
+ See <a href="../license.html">../license.html</a> for license conditions.
+ </p>
+</body>
+</html>
diff --git a/docs/howtos/grub_cbfs.html b/docs/howtos/grub_cbfs.html
new file mode 100644
index 0000000..8446686
--- /dev/null
+++ b/docs/howtos/grub_cbfs.html
@@ -0,0 +1,131 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <style type="text/css">
+ body {
+ background:#fff;
+ color:#000;
+ font-family:sans-serif;
+ font-size:1em;
+ }
+ </style>
+
+ <title>Libreboot documentation: GRUB menu</title>
+</head>
+
+<body>
+ <header>
+ <h1 id="pagetop">How to change your default GRUB menu</h1>
+ <aside>Or <a href="../index.html">back to main index</a></aside>
+ </header>
+
+ <p>
+ Libreboot on X60/T60/macbook21 uses the GRUB2 payload, which means that the grub.cfg (which is where your GRUB menu comes from) is inside the ROM along with
+ GRUB itself, executed by libreboot directly in the SPI flash chip. In context, this means that installing distributions and managing them is handled slightly differently
+ compared to traditional BIOS systems.
+ </p>
+
+ <p>
+ A coreboot or libreboot ROM is not simply &quot;flat&quot;; there is an actual filesystem inside called CBFS (coreboot filesystem). A utility called 'cbfstool'
+ allows you to change the contents of the ROM. In this case, libreboot is configured such that the grub.cfg exists directly inside CBFS instead of
+ inside the grub.elf payload's 'memdisk' (which is itself stored in CBFS).
+ </p>
+
+ <p>
+ Here is an excellent writeup about CBFS (coreboot filesystem): <a href="http://lennartb.home.xs4all.nl/coreboot/col5.html" target="_blank">http://lennartb.home.xs4all.nl/coreboot/col5.html</a>.
+ </p>
+
+<hr/>
+
+ <p>
+ Download libreboot_src.tar.gz or libreboot_bin.tar.gz from <a href="http://libreboot.org/" target="_blank">http://libreboot.org/</a>
+ <br/><b>If you downloaded libreboot_meta.tar.gz, refer to <a href="../index.html#build_meta">../index.html#build_meta</a> before continuing.</b>
+ </p>
+
+ <p>
+ On apt-get distributions such as Trisquel you can install the build dependency (GCC) by running:<br/>
+ <b>$ sudo apt-get install build-essential</b>
+ </p>
+
+ <p>
+ If you are working with libreboot_src, then you can run <b><i>make</i></b> command in libreboot_src/coreboot/util/cbfstool to build the <b><i>cbfstool</i></b> and <b><i>rmodtool</i></b>
+ executable.
+ </p>
+ <p>
+ Alternatively if you are working with libreboot_bin, then you can run <b><i>./builddeps-cbfstool</i></b> command inside libreboot_bin/; a <b><i>cbfstool</i></b> and <b><i>rmodtool</i></b>
+ executable will appear under libreboot_bin/
+ </p>
+
+ <p>
+ You can work directly with one of the ROM's already included in libreboot_bin.tar.gz. For the purpose of this tutorial it is assumed
+ that your ROM is named 'coreboot.rom' so please make sure to adapt.
+ </p>
+
+ <p>
+ If you want to re-use the ROM that you currently have flashed (and running) then see <a href="../index.html#build_flashrom">../index.html#build_flashrom</a>
+ and then run:<br/>
+ <b>$ sudo ./flashrom -p internal -r coreboot.rom</b><br/>
+ Notice that this is using <b>&quot;-r&quot;</b> (read) instead of <b>&quot;-w&quot;</b> (write). This will create a dump (copy) of your current firmware and name it <b>coreboot.rom</b>. You need to take ownership of the file. For example:<br/>
+ <b>$ sudo chown yourusername:yourusername coreboot.rom</b><br/>
+ <b># chown yourusername:yourusername coreboot.rom</b>
+ </p>
+
+ <p>
+ Display contents of ROM:<br/>
+ <b>$ ./cbfstool coreboot.rom print</b>
+ </p>
+
+ <p>
+ The coreboot.rom file contains your grub.cfg.
+ </p>
+
+ <p>
+ Extract grub.cfg from the ROM:<br/>
+ <b>$ ./cbfstool coreboot.rom extract -n grub.cfg -f grub.cfg</b>
+ </p>
+
+ <p>
+ Now you have a grub.cfg in cbfstool directory. Edit it however you wish.
+ </p>
+
+ <p>
+ Delete the grub.cfg that remained inside the ROM:<br/>
+ <b>$ ./cbfstool coreboot.rom remove -n grub.cfg</b>
+ </p>
+
+ <p>
+ Display ROM contents and now you see grub.cfg no longer exists there:<br/>
+ <b>$ ./cbfstool coreboot.rom print</b>
+ </p>
+
+ <p>
+ Add the modified version that you just made:<br/>
+ <b>$ ./cbfstool coreboot.rom add -n grub.cfg -f grub.cfg -t raw</b>
+ </p>
+
+ <p>
+ Now display ROM contents again and see that it exists again:<br/>
+ <b>$ ./cbfstool coreboot.rom print</b>
+ </p>
+
+ <p>
+ Now you have a modified ROM. Refer back to <a href="../index.html#flashrom">../index.html#flashrom</a> for information
+ on how to flash it.
+ </p>
+
+ <p>
+ <b>Anecdotally, a user reported that segmentation faults occur with cbfstool when using this procedure depending on the size of the grub.cfg being re-insterted. In his case, a minimum size of 857 bytes was required. This could (at the time of this release) be a bug in cbfstool that should be investigated with the coreboot community. If cbfstool segfaults, then keep this in mind. 'strace' (or gdb? clang?) could be used for debugging. This was in libreboot 5th release (based on coreboot from late 2013). Not sure if the issue perists in the 6th release (based on coreboot from June 1st, 2014 at the time of writing); I have never personally encountered the bug. strace (from that user) is here: <a href="cbfstool_libreboot5_strace">cbfstool_libreboot5_strace</a>. The issue has been reported by a few users, so does not happen all the time: this bug (if it still exists) could (should) be reproduced.</b>
+ </p>
+
+<hr/>
+
+ <p>
+ Copyright &copy; 2014 Francis Rowe, All Rights Reserved.<br/>
+ See <a href="../license.html">../license.html</a> for license conditions.
+ </p>
+
+</body>
+</html>
diff --git a/docs/howtos/t60_mainboard/t60_ati_gpu.jpg b/docs/howtos/t60_mainboard/t60_ati_gpu.jpg
new file mode 100644
index 0000000..d2c83db
--- /dev/null
+++ b/docs/howtos/t60_mainboard/t60_ati_gpu.jpg
Binary files differ
diff --git a/docs/howtos/t60_mainboard/t60_intel_gpu.jpg b/docs/howtos/t60_mainboard/t60_intel_gpu.jpg
new file mode 100644
index 0000000..46fc561
--- /dev/null
+++ b/docs/howtos/t60_mainboard/t60_intel_gpu.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick.html b/docs/howtos/x60_unbrick.html
new file mode 100644
index 0000000..10f66b4
--- /dev/null
+++ b/docs/howtos/x60_unbrick.html
@@ -0,0 +1,302 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <style type="text/css">
+ body {
+ background:#fff;
+ color:#000;
+ font-family:sans-serif;
+ font-size:1em;
+ }
+ </style>
+
+ <title>Libreboot documentation: Unbricking the ThinkPad X60</title>
+</head>
+
+<body>
+
+ <header>
+ <h1>Unbricking the ThinkPad X60</h1>
+ <aside>This guide will show you how to recover from a bad flash that prevents your ThinkPad X60 from booting.</aside>
+ </header>
+
+ <p>Or go <a href="../index.html">back to main index</a></p>
+
+ <h2>Table of Contents</h2>
+ <ul>
+ <li><a href="#hardware_requirements">Hardware Requirements</a></li>
+ <li><a href="#software_requirements">Software Requirements</a></li>
+ <li>
+ Types of brick:
+ <ul>
+ <li><a href="#bucts_brick">Brick type 1: bucts not reset</a></li>
+ <li><a href="#recovery">Brick type 2: bad rom (or user error), machine won't boot</a></li>
+ </ul>
+ </li>
+ </ul>
+
+ <h1 id="hardware_requirements">Hardware requirements</h1>
+ <ul>
+ <li>a 2nd computer (maybe another X60. any computer will do)</li>
+ <li>external flashrom-compatible programmer (I'm using the "bus pirate")
+ <li>SOIC-8 IC clip (I'm using the Pomona 5250)</li>
+ <li>Cable (programmer<>clip) - mine came with the bus pirate.</li>
+ <li>USB mini a to b cable (for buspirate<>computer connection).</li>
+ </ul>
+
+ <h1 id="software_requirements">Software requirements</h1>
+ <ul>
+ <li>GNU/Linux (on the 2nd computer)</li>
+ <li>flashrom software (on the 2nd computer): <a href="http://flashrom.org/" target="_blank">http://flashrom.org/</a>
+ </ul>
+
+ <h1 id="bucts_brick">Brick type 1: bucts not reset.</h1>
+ <p>
+ You still have Lenovo BIOS, or you had libreboot running and you flashed another ROM; and you had bucts 1 set and
+ the ROM wasn't dd'd.* or if Lenovo BIOS was present and libreboot wasn't flashed.<br/><br/>
+
+ In this case, unbricking is easy: reset BUC.TS to 0 by removing that yellow cmos coin (it's a battery) and putting it back after a minute or two:<br/>
+ <img src="x60_unbrick/0004.jpg" alt="" /><br/><br/>
+
+ *Those dd commands should be applied to all newly compiled X60 ROM's (the ROM's in libreboot binary archives already have this applied!):<br/>
+ dd if=coreboot.rom of=top64k.bin bs=1 skip=$[$(stat -c %s coreboot.rom) - 0x10000] count=64k<br/>
+ dd if=coreboot.rom bs=1 skip=$[$(stat -c %s coreboot.rom) - 0x20000] count=64k | hexdump<br/>
+ dd if=top64k.bin of=coreboot.rom bs=1 seek=$[$(stat -c %s coreboot.rom) - 0x20000] count=64k conv=notrunc<br/>
+ (doing this makes the ROM suitable for use when flashing a machine that still has Lenovo BIOS running,
+ using those instructions: <a href="http://www.coreboot.org/Board:lenovo/x60/Installation" target="_blank">http://www.coreboot.org/Board:lenovo/x60/Installation</a>.
+ </p>
+
+ <h1 id="recovery">bad rom (or user error), machine won't boot</h1>
+ <p>
+ In this scenario, you compiled a ROM that had an incorrect configuration, or there is an actual bug preventing your machine from
+ booting. Or, maybe, you set BUC.TS to 0 and shut down after first flash while Lenovo BIOS was running. In any case, your machine is bricked and will not boot at all.
+ </p>
+ <p>
+ &quot;Unbricking&quot; means flashing a known-good (working) ROM. The problem: you can't boot the machine, making this difficult. In this situation, external hardware (see hardware requirements above) is needed which can flash the SPI chip (where libreboot resides).
+ </p>
+ <p>
+ Remove those screws:<br/>
+ <img src="x60_unbrick/0000.jpg" alt="" />
+ </p>
+ <p>
+ Push the keyboard forward (carefully):<br/>
+ <img src="x60_unbrick/0001.jpg" alt="" />
+ </p>
+ <p>
+ Lift the keyboard up and disconnect it from the board:<br/>
+ <img src="x60_unbrick/0002.jpg" alt="" />
+ </p>
+ <p>
+ Grab the right-hand side of the chassis and force it off (gently) and pry up the rest of the chassis:<br/>
+ <img src="x60_unbrick/0003.jpg" alt="" />
+ </p>
+ <p>
+ You should now have this:<br/>
+ <img src="x60_unbrick/0004.jpg" alt="" />
+ </p>
+ <p>
+ Disconnect the wifi antenna cables, the modem cable and the speaker:<br/>
+ <img src="x60_unbrick/0005.jpg" alt="" />
+ </p>
+ <p>
+ Unroute the cables along their path, carefully lifting the tape that holds them in place. Then, disconnect the modem
+ cable (other end) and power connection and unroute all the cables so that they dangle by the monitor hinge on the right-hand
+ side:<br/>
+ <img src="x60_unbrick/0006.jpg" alt="" />
+ </p>
+ <p>
+ Disconnect the monitor from the motherboard, and unroute the grey antenna cable, carefully lifting the tape
+ that holds it into place:<br/>
+ <img src="x60_unbrick/0008.jpg" alt="" />
+ </p>
+ <p>
+ Carefully lift the remaining tape and unroute the left antenna cable so that it is loose:<br/>
+ <img src="x60_unbrick/0009.jpg" alt="" />
+ </p>
+ <p>
+ Remove the screw that is highlighted (do NOT remove the other one; it holds part of the heatsink (other side) into place):<br/>
+ <img src="x60_unbrick/0011.jpg" alt="" />
+ </p>
+ <p>
+ Remove those screws:<br/>
+ <img src="x60_unbrick/0012.jpg" alt="" />
+ </p>
+ <p>
+ Carefully remove the plate, like so:<br/>
+ <img src="x60_unbrick/0013.jpg" alt="" />
+ </p>
+ <p>
+ Remove the SATA connector:<br/>
+ <img src="x60_unbrick/0014.jpg" alt="" />
+ </p>
+ <p>
+ Now remove the motherboard (gently) and cast the lcd/chassis aside:<br/>
+ <img src="x60_unbrick/0015.jpg" alt="" />
+ </p>
+ <p>
+ Lift back that tape and hold it with something. Highlighted is the SPI flash chip:<br/>
+ <img src="x60_unbrick/0016.jpg" alt="" />
+ </p>
+ <p>
+ At this point, you should wire up your programmer according to it's documentation. For me, this was (see: "SparkFun cable pin reference"):<br/>
+ <a href="http://dangerousprototypes.com/docs/Common_Bus_Pirate_cable_pinouts" target="_blank">http://dangerousprototypes.com/docs/Common_Bus_Pirate_cable_pinouts</a>.<br/>
+ Correlating with the following information, I was able to wire up my pirate correctly:<br/>
+ <a href="http://flashrom.org/Bus_Pirate#Connections" target="_blank">http://flashrom.org/Bus_Pirate#Connections</a><br/>
+ And by following that advice:<br/>
+ <a href="http://www.coreboot.org/Board:lenovo/x60/Installation#Howto" target="_blank">http://www.coreboot.org/Board:lenovo/x60/Installation#Howto</a>.<br/>
+ Note: that last page says to wire up only those 5 pins (see below) like that: 1, 2, 4, 5, 6.<br/>
+ Note: and then, for power it says (on that coreboot.org page) to connect the power jack to the board and connect the
+ AC adapter (without powering on the board).<br/>
+ Note: I ignored that advice, and wired up all 8 pins. And it worked.<br/>
+
+ Here is the pinout (correlate it with your programmer's documentation):<br/>
+ <img src="x60_unbrick/0017.jpg" alt="" />
+ </p>
+
+ <p>
+ My programmer, usb cable and clip:<br/>
+ <img src="x60_unbrick/0018.jpg" alt="" /><br/>
+ My programmer (bus pirate):<br/>
+ <img src="x60_unbrick/0019.jpg" alt="" /><br/>
+ My clip (pomona 5250):<br/>
+ <img src="x60_unbrick/0020.jpg" alt="" /><br/>
+ My USB mini a to b cable:<br/>
+ <img src="x60_unbrick/0021.jpg" alt="" /><br/>
+ Connecting the pomona:<br/>
+ <img src="x60_unbrick/0022.jpg" alt="" /><br/>
+ Connecting the USB cable from programmer to 2nd(working/non-bricked) computer, my T60:<br/>
+ <img src="x60_unbrick/0024.jpg" alt="" /><br/>
+ Programmer is now active:<br/>
+ <img src="x60_unbrick/0023.jpg" alt="" /><br/>
+ Now I install flashrom on the T60 (running Trisquel GNU/Linux) and do this:<br/>
+ <b>flashrom -p buspirate_spi:dev=/dev/ttyUSB0 -w coreboot.rom</b><br/>
+ Note: this is using buspirate as the programmer, so it is flashing the X60, not the T60!<br/>
+ Here's my terminal window on the T60:<br/>
+ <img src="x60_unbrick/0025.jpg" alt="" /><br/>
+ So, you should see the following:<br/>
+ --
+ <pre>
+ flashrom v0.9.5.2-r1517 on Linux 3.2.0-61-generic (i686), built with libpci 3.1.8, GCC 4.6.3, little endian
+ flashrom is free software, get the source code at http://www.flashrom.org
+
+ Calibrating delay loop... delay loop is unreliable, trying to continue OK.
+ Found Macronix flash chip "MX25L1605" (2048 kB, SPI) on buspirate_spi.
+ Reading old flash chip contents... done.
+ Erasing and writing flash chip... Erase/write done.
+ Verifying flash... VERIFIED.
+ </pre>
+ --<br/>
+ At the end it says "VERIFIED", which means that the procedure worked. If you see this, it means
+ that you can put your X60 back together. So let's do that now.
+ </p>
+ <p>
+ Remove the programmer and put it away somewhere. Put back the tape and press firmly over it:<br/>
+ <img src="x60_unbrick/0026.jpg" alt="" />
+ </p>
+ <p>
+ Your empty chassis:<br/>
+ <img src="x60_unbrick/0027.jpg" alt="" />
+ </p>
+ <p>
+ Put the motherboard back in:<br/>
+ <img src="x60_unbrick/0028.jpg" alt="" />
+ </p>
+ <p>
+ Reconnect SATA:<br/>
+ <img src="x60_unbrick/0029.jpg" alt="" />
+ </p>
+ <p>
+ Put the plate back and re-insert those screws:<br/>
+ <img src="x60_unbrick/0030.jpg" alt="" />
+ </p>
+ <p>
+ Re-route that antenna cable around the fan and apply the tape:<br/>
+ <img src="x60_unbrick/0031.jpg" alt="" />
+ </p>
+ <p>
+ Route the cable here and then (not shown, due to error on my part) reconnect the monitor cable to the motherboard
+ and re-insert the screws:<br/>
+ <img src="x60_unbrick/0032.jpg" alt="" />
+ </p>
+ <p>
+ Re-insert that screw:<br/>
+ <img src="x60_unbrick/0033.jpg" alt="" />
+ </p>
+ <p>
+ Route the black antenna cable like so:<br/>
+ <img src="x60_unbrick/0034.jpg" alt="" />
+ </p>
+ <p>
+ Tuck it in neatly like so:<br/>
+ <img src="x60_unbrick/0035.jpg" alt="" />
+ </p>
+ <p>
+ Route the modem cable like so:<br/>
+ <img src="x60_unbrick/0036.jpg" alt="" />
+ </p>
+ <p>
+ Connect modem cable to board and tuck it in neatly like so:<br/>
+ <img src="x60_unbrick/0037.jpg" alt="" />
+ </p>
+ <p>
+ Route the power connection and connect it to the board like so:<br/>
+ <img src="x60_unbrick/0038.jpg" alt="" />
+ </p>
+ <p>
+ Route the antenna and modem cables neatly like so:<br/>
+ <img src="x60_unbrick/0039.jpg" alt="" />
+ </p>
+ <p>
+ Connect the wifi antenna cables. At the start of the tutorial, this machine had an Intel wifi chip. Here you see I've replaced it with an
+ Atheros AR5B95 (supports 802.11n and can be used without blobs):<br/>
+ <img src="x60_unbrick/0040.jpg" alt="" />
+ </p>
+ <p>
+ Connect the modem cable:<br/>
+ <img src="x60_unbrick/0041.jpg" alt="" />
+ </p>
+ <p>
+ Connect the speaker:<br/>
+ <img src="x60_unbrick/0042.jpg" alt="" />
+ </p>
+ <p>
+ You should now have this:<br/>
+ <img src="x60_unbrick/0043.jpg" alt="" />
+ </p>
+ <p>
+ Re-connect the upper chassis:<br/>
+ <img src="x60_unbrick/0044.jpg" alt="" />
+ </p>
+ <p>
+ Re-connect the keyboard:<br/>
+ <img src="x60_unbrick/0045.jpg" alt="" />
+ </p>
+ <p>
+ Re-insert the screws that you removed earlier:<br/>
+ <img src="x60_unbrick/0046.jpg" alt="" />
+ </p>
+ <p>
+ Power on!<br/>
+ <img src="x60_unbrick/0047.jpg" alt="" />
+ </p>
+ <p>
+ Trisquel live USB menu (using GRUB's ISOLINUX parser):<br/>
+ <img src="x60_unbrick/0048.jpg" alt="" />
+ </p>
+ <p>
+ Trisquel live desktop:<br/>
+ <img src="x60_unbrick/0049.jpg" alt="" />
+ </p>
+
+<hr/>
+
+ <p>
+ Copyright &copy; 2014 Francis Rowe, All Rights Reserved.<br/>
+ See <a href="../license.html">../license.html</a> for license conditions.
+ </p>
+
+</body>
+</html>
diff --git a/docs/howtos/x60_unbrick/0000.jpg b/docs/howtos/x60_unbrick/0000.jpg
new file mode 100644
index 0000000..ce0ec3b
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0000.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0001.jpg b/docs/howtos/x60_unbrick/0001.jpg
new file mode 100644
index 0000000..2bbc0ca
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0001.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0002.jpg b/docs/howtos/x60_unbrick/0002.jpg
new file mode 100644
index 0000000..b55db3b
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0002.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0003.jpg b/docs/howtos/x60_unbrick/0003.jpg
new file mode 100644
index 0000000..c5799ae
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0003.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0004.jpg b/docs/howtos/x60_unbrick/0004.jpg
new file mode 100644
index 0000000..cd47840
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0004.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0005.jpg b/docs/howtos/x60_unbrick/0005.jpg
new file mode 100644
index 0000000..418c9d2
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0005.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0006.jpg b/docs/howtos/x60_unbrick/0006.jpg
new file mode 100644
index 0000000..6d36d93
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0006.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0007.jpg b/docs/howtos/x60_unbrick/0007.jpg
new file mode 100644
index 0000000..971ccdf
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0007.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0008.jpg b/docs/howtos/x60_unbrick/0008.jpg
new file mode 100644
index 0000000..24e6526
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0008.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0009.jpg b/docs/howtos/x60_unbrick/0009.jpg
new file mode 100644
index 0000000..d318395
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0009.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0010.jpg b/docs/howtos/x60_unbrick/0010.jpg
new file mode 100644
index 0000000..5e6fdc7
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0010.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0011.jpg b/docs/howtos/x60_unbrick/0011.jpg
new file mode 100644
index 0000000..edc14c7
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0011.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0012.jpg b/docs/howtos/x60_unbrick/0012.jpg
new file mode 100644
index 0000000..dbb6669
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0012.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0013.jpg b/docs/howtos/x60_unbrick/0013.jpg
new file mode 100644
index 0000000..2d2b9dd
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0013.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0014.jpg b/docs/howtos/x60_unbrick/0014.jpg
new file mode 100644
index 0000000..733f997
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0014.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0015.jpg b/docs/howtos/x60_unbrick/0015.jpg
new file mode 100644
index 0000000..1e81166
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0015.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0016.jpg b/docs/howtos/x60_unbrick/0016.jpg
new file mode 100644
index 0000000..f10ca88
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0016.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0017.jpg b/docs/howtos/x60_unbrick/0017.jpg
new file mode 100644
index 0000000..69b28c0
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0017.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0018.jpg b/docs/howtos/x60_unbrick/0018.jpg
new file mode 100644
index 0000000..7145d9f
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0018.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0019.jpg b/docs/howtos/x60_unbrick/0019.jpg
new file mode 100644
index 0000000..959a6ee
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0019.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0020.jpg b/docs/howtos/x60_unbrick/0020.jpg
new file mode 100644
index 0000000..e6b2536
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0020.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0021.jpg b/docs/howtos/x60_unbrick/0021.jpg
new file mode 100644
index 0000000..65bcb60
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0021.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0022.jpg b/docs/howtos/x60_unbrick/0022.jpg
new file mode 100644
index 0000000..cfcad6d
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0022.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0023.jpg b/docs/howtos/x60_unbrick/0023.jpg
new file mode 100644
index 0000000..10824fd
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0023.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0024.jpg b/docs/howtos/x60_unbrick/0024.jpg
new file mode 100644
index 0000000..9ce9d45
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0024.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0025.jpg b/docs/howtos/x60_unbrick/0025.jpg
new file mode 100644
index 0000000..7b6da73
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0025.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0026.jpg b/docs/howtos/x60_unbrick/0026.jpg
new file mode 100644
index 0000000..526c11c
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0026.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0027.jpg b/docs/howtos/x60_unbrick/0027.jpg
new file mode 100644
index 0000000..877dc59
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0027.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0028.jpg b/docs/howtos/x60_unbrick/0028.jpg
new file mode 100644
index 0000000..d22d932
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0028.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0029.jpg b/docs/howtos/x60_unbrick/0029.jpg
new file mode 100644
index 0000000..27f9190
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0029.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0030.jpg b/docs/howtos/x60_unbrick/0030.jpg
new file mode 100644
index 0000000..813b5c6
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0030.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0031.jpg b/docs/howtos/x60_unbrick/0031.jpg
new file mode 100644
index 0000000..49fe541
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0031.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0032.jpg b/docs/howtos/x60_unbrick/0032.jpg
new file mode 100644
index 0000000..e8625ef
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0032.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0033.jpg b/docs/howtos/x60_unbrick/0033.jpg
new file mode 100644
index 0000000..3abfa37
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0033.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0034.jpg b/docs/howtos/x60_unbrick/0034.jpg
new file mode 100644
index 0000000..c8ab597
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0034.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0035.jpg b/docs/howtos/x60_unbrick/0035.jpg
new file mode 100644
index 0000000..03d5482
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0035.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0036.jpg b/docs/howtos/x60_unbrick/0036.jpg
new file mode 100644
index 0000000..244c06c
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0036.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0037.jpg b/docs/howtos/x60_unbrick/0037.jpg
new file mode 100644
index 0000000..f55db4f
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0037.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0038.jpg b/docs/howtos/x60_unbrick/0038.jpg
new file mode 100644
index 0000000..0735825
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0038.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0039.jpg b/docs/howtos/x60_unbrick/0039.jpg
new file mode 100644
index 0000000..dff9ba4
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0039.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0040.jpg b/docs/howtos/x60_unbrick/0040.jpg
new file mode 100644
index 0000000..74a9b7f
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0040.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0041.jpg b/docs/howtos/x60_unbrick/0041.jpg
new file mode 100644
index 0000000..1b15834
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0041.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0042.jpg b/docs/howtos/x60_unbrick/0042.jpg
new file mode 100644
index 0000000..849a260
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0042.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0043.jpg b/docs/howtos/x60_unbrick/0043.jpg
new file mode 100644
index 0000000..c842695
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0043.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0044.jpg b/docs/howtos/x60_unbrick/0044.jpg
new file mode 100644
index 0000000..2b78380
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0044.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0045.jpg b/docs/howtos/x60_unbrick/0045.jpg
new file mode 100644
index 0000000..d6d8e2d
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0045.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0046.jpg b/docs/howtos/x60_unbrick/0046.jpg
new file mode 100644
index 0000000..5eef878
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0046.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0047.jpg b/docs/howtos/x60_unbrick/0047.jpg
new file mode 100644
index 0000000..87517e0
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0047.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0048.jpg b/docs/howtos/x60_unbrick/0048.jpg
new file mode 100644
index 0000000..a701a48
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0048.jpg
Binary files differ
diff --git a/docs/howtos/x60_unbrick/0049.jpg b/docs/howtos/x60_unbrick/0049.jpg
new file mode 100644
index 0000000..630ac53
--- /dev/null
+++ b/docs/howtos/x60_unbrick/0049.jpg
Binary files differ