-
Notifications
You must be signed in to change notification settings - Fork 23
X60 T60 Hardware Flashing
If the motherboard is bricked or has a Supervisor password on it, you must use a hardware flasher to install Coreboot/Libreboot on it.
The Bus Pirate is the all purpose EEPROM flashing utility.
- $30 - Bus Pirate
- $20 - Pomona SOIC-8 Clip
- Usually comes with a convenient F-F interface cable.
- $4 + $3 shipping (Optional) - Seeed Studio Bus Pirate F-F Interface Cable - Just for convenience's sake; or if you didn't get an F-F interface cable bundled.
- $7 -
Below is a diagram, with colors based on the Seeed Studio pinout. Your cable colors may differ (such as the Sparkfun layout).
8765
----
| |
----
1234
Pin # | SPI Pin Name | Seeed Studio Color |
---|---|---|
1 | CS | White |
2 | MISO | Black |
3 | not used | not used |
4 | GND | Brown |
5 | MOSI | Gray |
6 | CLK | Purple |
7 | not used | not used |
8 | 3.3V | red |
- CS (white)
- MISO (black)
- not used
- GND (brown)
- MOSI (gray)
- CLK (purple)
- not used
- 3.3V (red) - Depends on chip
Make sure the pinouts are correct; otherwise, Bus Pirate will fail to detect a chip, or it will "detect" an 0x0
chip. Finally, make sure that the Pomona clip makes contact with the metal wires of the chip. It can be a challenge, but keep trying.
There are two ways to supply power to the chip: plugging in an AC adapter (without turning it on), and using the 8th 3.3v pin.
I have found that the SST chips work best with the 8th pin, while the Macronix chips require an AC Adapter to power up.
Your results may vary.
You'll probably want to upgrade the Bus Pirate firmware to a special beta version, which will read/write at 8MHz instead of just 2MHz. Otherwise, the flash could take a very, very long time (almost 20 minutes to complete the process for me...). This guide is designed for Linux.
-
Download and extract the special beta bootloader.
-
Download and extract the latest Bus Pirate package (which contains flashing tools for you to use).
-
Identify whether your Bus Pirate is hardware revision v3 or v4. Most Bus Pirates on the market are v3, since v4 is still experimental.
-
Once you know which one is yours, go into either
BPv3-firmware
orBPv4-firmware
(extracted from the Bus Pirate Package zip). Copy the.hex
files extracted from the special beta version into this folder. -
From a Linux terminal, use GNU Screen to make contact with the Bus Pirate console.
screen /dev/ttyUSB0 115200 8N1
-
Press Enter, and a HiZ prompt should appear. Type
$
and press Enter to send the Bus Pirate into Bootloader mode.HiZ> $
-
The console will ask
Are you sure?
Typey
and press Enter. Bus Pirate will enter Bootloader Mode.Are you sure? y BOOTLOADER
-
Once this is done, we need to quit the
screen
session and free up the port forPirateLoader
. Open up another terminal to check whichscreen
sessions are active:screen -ls
-
The following output will be displayed. From this, we see that the socket ID is
8803
(yours will differ).There is a screen on: 8803.pts-7.ThinkPad-X60 (09/04/2014 09:42:27 PM) (Attached) 1 Socket in /var/run/screen/S-trisquel.
-
Run the following command to quit that screen session (Replace
8803
with your own socket):screen -X -S 8803 quit
-
Navigate the terminal to the
BPv3-firmware
folder, and makepirate-loader_lnx
executable withchmod
:chmod +x pirate-loader_lnx
-
Now use
PirateLoader
to install the special beta bootloader../pirate-loader_lnx --dev=/dev/ttyUSB0 --hex=bpv3-spifix.hex
- Source: Flashrom - Bus Pirate
Follow the [http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles_pdf/42x3550_04.pdf X60 Hardware Maintenance Manual] or [http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles_pdf/42t7844_04.pdf T60 Hardware Maintenance Manual] to disassemble the laptop, until you can access the BIOS chip.
(photos needed)
- On the X60, the BIOS chip is on the bottom of the motherboard, under a layer of protective black tape.
- On the T60, the BIOS chip is just under the palmrest, but blocked by a magnesium frame (which you will have to remove).
First, visually inspect (with a magnifying glass) the type of flashchip on the motherboard.
Next, download and extract the Libreboot binaries, and enter the libreboot_bin/flashrom
folder.
cd libreboot_bin
cd flashrom
If it is an SST, run this command:
sudo ./flashrom_lenovobios_sst -p buspirate_spi:dev=/dev/ttyUSB0 -r test.rom
If it is a Macronix, run this command:
sudo ./flashrom_lenovobios_macronix -c "MX25L1605" -p buspirate_spi:dev=/dev/ttyUSB0 -r test.rom
Next, check the md5sum of the dump:
md5sum test.rom
Run the flashrom
command again to make a second dump. Then, check the md5sum of the second dump:
md5sum test.rom
If the md5sums match after three tries, flashrom
has managed to read the flashchip precisely (but not always accurately). You may try and flash Libreboot now.
Note: replace
/path/to/libreboot.rom
with the location of your chosen ROM, such as../bin/x60/libreboot_usqwerty.rom
):
If your chip is SST, run this command:
sudo ./flashrom_lenovobios_sst -p buspirate_spi:dev=/dev/ttyUSB0 -w /path/to/libreboot.rom
If your chip is Macronix, run this command:
sudo ./flashrom_lenovobios_macronix -c "MX25L1605" -p buspirate_spi:dev=/dev/ttyUSB0 -w /path/to/libreboot.rom
Once that command outputs the following, the flash has completed successfully. If not, just flash again.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.
Coreboot is an open source, user configurable BIOS. However, it does use a few proprietary blobs here and there.
These require hardware flashing. Due to Intel Management Firmware, proprietary blobs are required for newer Intel motherboards to even power up.
-
ThinkPad T430/X230
- xx30 BIOS Whitelist Removal
- xx30 BIOS Mod with Old Keyboard - Since Libreboot's ROMs each can use a different keyboard layout, would it be possible to modify Coreboot to work with the old xx20 keyboard? Or just mod the official BIOS to do so?
- ThinkPad X201
- ThinkPad T60p (ATI GPU)
- ThinkPad T22 - Back when Coreboot was known as "LinuxBIOS", they installed it on a ThinkPad T22 for Richard Stallman.
Most Intel Chromebooks come with Coreboot preinstalled. SeaBIOS can optionally be installed to add Windows support.
Just use John Lewis's Installation Script for All Models to autoinstall.
-
Chromebook Coreboot Installation - Install Coreboot + SeaBIOS for 2nd gen laptops. Not necessary for 3rd gen.
- Acer C7 Chromebook
- Toshiba Chromebook 2 - The only 13-inch model around with an FHD 1920x1080 IPS screen.
- Samsung Series 5 550
- Acer C720 Chromebook
- ThinkPad X131e Chromebook
- Install Typical BIOS
- Chromebook Pixel
NOTE: The Libreboot components of this wiki was divested into the Official Libreboot Documentation here. Please use that from now on.
Libreboot laptops are certified by the FSF to protect your freedom.
They contain no proprietary blobs of any kind, and have the best support for FSF certified GNU/LInux.
- Customizing Libreboot
- X60 T60 Hardware Flashing
- X200 X201 Hardware Flashing
- Installing Trisquel with Full Disk Encryption
- BIOS Flashchip Identification Method
- Phoenix BIOS Crisis Recovery - (under research) Software method for recovering the factory BIOS, even if you lost the original dump.