From 052ef8ab3b6eb1cc98114f6ac8416d8e0eddbd6b Mon Sep 17 00:00:00 2001
From: Francis Rowe Or go back to main index
+ Shopping list (pictures of this hardware is shown later):
+
+ With my PSU, first I had wire up the mains power cable. Any clover or kettle lead will do. Cut the end off (not the one
+ that goes in the wall, but the kettle/clover connector).
+ Strip the protection away by a decent length, then strip the wires inside so that a decent amount of
+ copper is shown. Then wire up earth/live/neutral. This will vary according to what country you live in
+ and/or the colour codes that your cable uses inside. Make sure to get this right, as a botched job
+ could result in extreme damage to you and your surroundings. Here's what mine looks like after wiring up
+ the power cable: images/x200/psu_power.jpg - also, make sure
+ that the plug (for the wall) has the correct fuse. In my case I had a 240V wall socket, and the device
+ says that it accepts 1.5A at that voltage, so I used the smallest fuse available (3A). For 110-120V the device
+ says it needs 2.8A. Also, if yours looks like in the image linked above, make sure to wrap electrical tape (lots)
+ around it for safety. (otherwise, don't touch the terminals while the PSU is plugged in).
+
+ Now take a red and black 20cm female-female jumper lead, and cut one of the ends off. Strip away the bare copper by about 1 or
+ 1.5cm so you get this: images/x200/stripped_jumper_lead.jpg.
+
+ Black goes on -V, red goes on +V. In my case, I removed those screws from my PSU like this:
+ images/x200/psu_screws_removed.jpg. Then,
+
+ Then I twisted the exposed copper on the jumper leads (so that they don't fray), and wrapped each to one of the
+ screws each, around it near the head. I then screwed them in:
+ images/x200/psu_jumper_leads.jpg.
+
+ If you are using a different PSU, then the steps will change from those above. Anyway, once you are satisfied,
+ continue reading...
+
+ Your BBB will have an sshd with no password on root. Find it's IP address
+ (it will use DHCP by default) and set a root password. The steps below
+ are done while SSH'd into a BBB.
+
+ Since it's a bare board (no case) and you are also touching inside your X200, you should be earthed/grounded.
+ images/x200/strap.jpg shows how I earthed myself. This is to prevent you
+ from causing any ESD damage. The surface that you place components on should also be earthed/grounded.
+ (for this, I used a shielded ESD bag with a wire, copper exposed, attached from the bag to the exposed metal
+ part on a radiator, which was earthed - not professional, but it should work. see images/x200/mat.jpg).
+ Most people ignore this advice and don't ground/earth themselves, at their own risk. You should also store the BBB
+ in a shielded anti-static bag when you are finished with it.
+ (the principles above apply to any computer components, since they are extremely sensitive te ESD).
+
+ These instructions may or may not work for you. They are simply the steps that this author took.
+
+ setting up SPIDEV on the BBB: http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0
+ - If you only setup SPI0, you don't have to disable the HDMI out. (you only need one).
+ That guide is for seting up the device overlay for SPIDEV, last part is to make it persist across reboots.
+ Needed to turn the BBB into an SPI flasher.
+
+ Don't bother modifying uEnv.txt. it won't work;
+ use the workaround here instead: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Loading_custom_capes.
+
+ Follow the instructions at http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0
+ up to (and excluding) the point where it tells you to modify uEnv.txt
+
+ You need to update the software on the BBB first. Before being able to use apt-get,
+ I had to use the workaround defined here:Setup the BeagleBone Black as an SPI flashrom programmer
+
+
+
+ Hardware requirements
+
+
+
+
+
+
+
+
+ Configuring the BeagleBone Black
+
+ Setting up the 3.3V DC PSU
+ Setting up the BBB
+
+ - Replace the contents of /etc/init.d/led_aging.sh with:
+
+#!/bin/sh -e
+### BEGIN INIT INFO
+# Provides: led_aging.sh
+# Required-Start: $local_fs
+# Required-Stop: $local_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Start LED aging
+# Description: Starts LED aging (whatever that is)
+### END INIT INFO
+
+x=$(/bin/ps -ef | /bin/grep "[l]ed_acc")
+if [ ! -n "$x" -a -x /usr/bin/led_acc ]; then
+ /usr/bin/led_acc &
+fi
+
+
+ Run those commands:
+ # echo BB-SPI0-01 > /sys/devices/bone_capemgr.*/slots
+ Then I did:
+ # ls -al /dev/spidev0.*
+ ls: cannot access /dev/spidev0.*: No such file or directory
+ Then I rebooted and did:
+ # cat /sys/devices/bone_capemgr.*/slots
+ Output:
+
+ 0: 54:PF--- + 1: 55:PF--- + 2: 56:PF--- + 3: 57:PF--- + 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G + 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI ++
+ And then:
+ # ls /lib/firmware/BB-SPI0-01-00A0.*
+ Output:
+
+/lib/firmware/BB-SPI0-01-00A0.dtbo ++
+ Then:
+ # echo BB-SPI0-01 > /sys/devices/bone_capemgr.*/slots
+ # cat /sys/devices/bone_capemgr.*/slots
+ Output:
+
+ 0: 54:PF--- + 1: 55:PF--- + 2: 56:PF--- + 3: 57:PF--- + 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G + 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI + 7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPI0-01 ++
+ Then check if the device exists:
+ # ls -al /dev/spidev0.*
+ Output:
+
+ls: cannot access /dev/spidev0.*: No such file or directory ++
+ It didn't exist under that name, but I then did:
+ # ls -al /dev/spid*
+ Output:
+
+crw-rw---T 1 root spi 153, 0 Nov 19 21:07 /dev/spidev1.0 ++
+ Now the BBB is ready to be used for flashing. Make this persist
+ across reboots:
+ In /etc/default/capemgr add CAPE=BB-SPI0-01 at the end
+ (or change the existing CAPE= entry to say that, if an
+ entry already exists.
+
+ Now you will download and build flashrom on the BBB.
+ # apt-get install libpci-dev pciutils zlib1g-dev libftdi-dev build-essential subversion
+ # svn co svn://flashrom.org/flashrom/trunk flashrom
+ # cd flashrom/
+ # make
+
+ Now test flashrom:
+ # ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512
+ Output:
+
+Calibrating delay loop... OK. +No EEPROM/flash device found. +Note: flashrom can never write if the flash chip isn't found automatically. ++ +
+ This means that it's working (the clip isn't connected to any flash chip, + so the error is fine). +
++ Use this image for reference when connecting the pomona to the BBB: + http://beagleboard.org/Support/bone101#headers + (D0 = MISO or connects to MISO). +
+ ++ The following shows how to connect clip to the BBB (on the P9 header), for SOIC-16 (clip: Pomona 5252): +
++ NC - - 21 + 1 - - 17 + NC - - NC + NC - - NC + NC - - NC + NC - - NC + 18 - - 3.3V PSU RED + 22 - - NC - this is pin 1 on the flash chip +This is how you will connect. Numbers refer to pin numbers on the BBB, on the plugs near the DC jack. ++
+ The following shows how to connect clip to the BBB (on the P9 header), for SOIC-8 (clip: Pomona 5250): +
++ 18 - - 1 + 22 - - NC + NC - - 21 + 3.3V PSU RED - - 17 - this is pin 1 on the flash chip +This is how you will connect. Numbers refer to pin numbers on the BBB, on the plugs near the DC jack. ++
+ NC = no connection +
++ DO NOT connect 3.3V PSU RED yet. ONLY connect this once the pomona is connected to the flash chip. +
++ You also need to connect the BLACK wire from the 3.3V PSU to pin 2 on the BBB (P9 header). It is safe to install this now + (that is, before you connect the pomona to the flash chip). +
++ if you need to extend the 3.3v psu leads, just use the same colour M-F leads, but keep all other + leads short (10cm or less) +
+ ++ images/x200/5252_bbb0.jpg and + images/x200/5252_bbb1.jpg shows a properly wired up BBB with Pomona + 5252 before being connected to the flash chip on the X200. +
+ ++ That's basically it. Now refer back to the documentation for how to use this on your board. +
+ + + +
+ Copyright © 2014 Francis Rowe <info@gluglug.org.uk>
+ This document is released under the Creative Commons Attribution-ShareAlike 4.0 International Public License and all future versions.
+ A copy of the license can be found at ../license.txt.
+
+ This document is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See ../license.txt for more information. +
+ + + diff --git a/docs/install/images/x60/th_bbb_flashing.jpg b/docs/install/images/x60/th_bbb_flashing.jpg new file mode 100644 index 0000000..dd51242 --- /dev/null +++ b/docs/install/images/x60/th_bbb_flashing.jpg Binary files differ diff --git a/docs/install/index.html b/docs/install/index.html index 7bd670d..dc2de70 100644 --- a/docs/install/index.html +++ b/docs/install/index.html @@ -20,6 +20,10 @@ +You still have Lenovo BIOS, or you had libreboot running and you flashed another ROM; and you had bucts 1 set and @@ -173,63 +155,41 @@
+ +
+ Now wire up the BBB and the Pomona with your PSU.
+ Refer to bbb_setup.html for how to setup
+ the BBB for flashing.
+ Note, the guide mentions a 3.3v DC PSU but you don't need this on the T60:
+ if you don't have or don't want to use an external PSU, then make
+ sure not to connect the red/black 3.3v leads mentioned in the guide;
+ instead, connect the AC adapter (the one that normally charges your
+ battery) so that the board has power (but don't boot it up)
+
+ Correlate the following with the BBB guide linked above:
+
+POMONA 5250: +=== DVD drive ==== + 18 - - 1 + 22 - - NC ---- RAM is on this end + NC - - 21 + 3.3V PSU RED - - 17 - this is pin 1 on the flash chip +=== audio jacks === +This is how you will connect. Numbers refer to pin numbers on the BBB, on the plugs near the DC jack. +
- At this point, you should wire up your programmer according to it's documentation. For me, this was (see: "SparkFun cable pin reference"):
- http://dangerousprototypes.com/docs/Common_Bus_Pirate_cable_pinouts.
- Correlating with the following information, I was able to wire up my pirate correctly:
- http://flashrom.org/Bus_Pirate#Connections
- And by following that advice:
- http://www.coreboot.org/Board:lenovo/x60/Installation#Howto.
- (it says X60 but instructions are virtually the same for the T60, with except to physical differences in how to disassemble the machine)
- Note: that last page says to wire up only those 5 pins (see below) like that: 1, 2, 4, 5, 6.
- 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).
- Note: I ignored that advice, and wired up all 8 pins. And it worked.
-
- Here is the pinout (correlate it with your programmer's documentation):
-
-
- Connecting the pomona:
-
-
- Connect programmer to 2nd computer:
-
-
- Programmer has power:
-
+ Connect the pomona from the BBB to the flash chip. No pics unfortunately. (use the text diagram above).
- Now flash the bricked machine using the 2nd computer. in my case I did:
- flashrom -p buspirate_spi:dev=/dev/ttyUSB0 -w bin/t60/libreboot_usqwerty.rom
- Note: there are also other ROM images for T60
- Note: this is using buspirate as the programmer, so it is flashing the T60, not the 2nd computer!
- Here's my terminal window on the 2nd computer (also the programmer is active):
-
- So, you should see the following:
- --
+ SSH'd into the BBB:
+ # ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -w yourrom.rom
-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. -
- --
- At the end it says "VERIFIED", which means that the procedure worked. If you see this, it means
- that you can put your T60 back together. So let's do that now.
+ It should be Verifying flash... VERIFIED at the end. If flashrom complains about multiple flash chip
+ definitions detected, then choose one of them following the instructions in the output.
diff --git a/docs/install/x200_external.html b/docs/install/x200_external.html index aa077da..207a769 100644 --- a/docs/install/x200_external.html +++ b/docs/install/x200_external.html @@ -42,7 +42,7 @@
There are two possible flash chip sizes for the X200: 4MiB @@ -54,242 +54,24 @@
- Shopping list (pictures of this hardware is shown later): -
-- With my PSU, first I had wire up the mains power cable. Any clover or kettle lead will do. Cut the end off (not the one - that goes in the wall, but the kettle/clover connector). - Strip the protection away by a decent length, then strip the wires inside so that a decent amount of - copper is shown. Then wire up earth/live/neutral. This will vary according to what country you live in - and/or the colour codes that your cable uses inside. Make sure to get this right, as a botched job - could result in extreme damage to you and your surroundings. Here's what mine looks like after wiring up - the power cable: images/x200/psu_power.jpg - also, make sure - that the plug (for the wall) has the correct fuse. In my case I had a 240V wall socket, and the device - says that it accepts 1.5A at that voltage, so I used the smallest fuse available (3A). For 110-120V the device - says it needs 2.8A. Also, if yours looks like in the image linked above, make sure to wrap electrical tape (lots) - around it for safety. (otherwise, don't touch the terminals while the PSU is plugged in). -
-- Now take a red and black 20cm female-female jumper lead, and cut one of the ends off. Strip away the bare copper by about 1 or - 1.5cm so you get this: images/x200/stripped_jumper_lead.jpg. -
-- Black goes on -V, red goes on +V. In my case, I removed those screws from my PSU like this: - images/x200/psu_screws_removed.jpg. Then, -
-- Then I twisted the exposed copper on the jumper leads (so that they don't fray), and wrapped each to one of the - screws each, around it near the head. I then screwed them in: - images/x200/psu_jumper_leads.jpg. -
-- If you are using a different PSU, then the steps will change from those above. Anyway, once you are satisfied, - continue reading... -
-- Since it's a bare board (no case) and you are also touching inside your X200, you should be earthed/grounded. - images/x200/strap.jpg shows how I earthed myself. This is to prevent you - from causing any ESD damage. The surface that you place components on should also be earthed/grounded. - (for this, I used a shielded ESD bag with a wire, copper exposed, attached from the bag to the exposed metal - part on a radiator, which was earthed - not professional, but it should work. see images/x200/mat.jpg). - Most people ignore this advice and don't ground/earth themselves, at their own risk. You should also store the BBB - in a shielded anti-static bag when you are finished with it. - (the principles above apply to any computer components, since they are extremely sensitive te ESD). -
-- These instructions may or may not work for you. They are simply the steps that this author took. -
-- setting up SPIDEV on the BBB: http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0 - - If you only setup SPI0, you don't have to disable the HDMI out. (you only need one). - That guide is for seting up the device overlay for SPIDEV, last part is to make it persist across reboots. - Needed to turn the BBB into an SPI flasher. -
-- Don't bother modifying uEnv.txt. it won't work; - use the workaround here instead: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Loading_custom_capes. -
-- Follow the instructions at http://elinux.org/BeagleBone_Black_Enable_SPIDEV#SPI0 - up to (and excluding) the point where it tells you to modify uEnv.txt -
-
- You need to update the software on the BBB first. Before being able to use apt-get,
- I had to use the workaround defined here:
- - Replace the contents of /etc/init.d/led_aging.sh with:
-
-#!/bin/sh -e -### BEGIN INIT INFO -# Provides: led_aging.sh -# Required-Start: $local_fs -# Required-Stop: $local_fs -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start LED aging -# Description: Starts LED aging (whatever that is) -### END INIT INFO - -x=$(/bin/ps -ef | /bin/grep "[l]ed_acc") -if [ ! -n "$x" -a -x /usr/bin/led_acc ]; then - /usr/bin/led_acc & -fi -- - Run apt-get update and apt-get upgrade then reboot the BBB, before continuing. - -
- Run those commands:
- # echo BB-SPI0-01 > /sys/devices/bone_capemgr.*/slots
- Then I did:
- # ls -al /dev/spidev0.*
- ls: cannot access /dev/spidev0.*: No such file or directory
- Then I rebooted and did:
- # cat /sys/devices/bone_capemgr.*/slots
- Output:
-
- 0: 54:PF--- - 1: 55:PF--- - 2: 56:PF--- - 3: 57:PF--- - 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G - 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI --
- And then:
- # ls /lib/firmware/BB-SPI0-01-00A0.*
- Output:
-
-/lib/firmware/BB-SPI0-01-00A0.dtbo --
- Then:
- # echo BB-SPI0-01 > /sys/devices/bone_capemgr.*/slots
- # cat /sys/devices/bone_capemgr.*/slots
- Output:
-
- 0: 54:PF--- - 1: 55:PF--- - 2: 56:PF--- - 3: 57:PF--- - 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G - 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI - 7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-SPI0-01 --
- Then check if the device exists:
- # ls -al /dev/spidev0.*
- Output:
-
-ls: cannot access /dev/spidev0.*: No such file or directory --
- It didn't exist under that name, but I then did:
- # ls -al /dev/spid*
- Output:
-
-crw-rw---T 1 root spi 153, 0 Nov 19 21:07 /dev/spidev1.0 --
- Now the BBB is ready to be used for flashing. Make this persist
- across reboots:
- In /etc/default/capemgr add CAPE=BB-SPI0-01 at the end
- (or change the existing CAPE= entry to say that, if an
- entry already exists.
-
- Now you will download and build flashrom on the BBB.
- # apt-get install libpci-dev pciutils zlib1g-dev libftdi-dev build-essential subversion
- # svn co svn://flashrom.org/flashrom/trunk flashrom
- # cd flashrom/
- # make
-
- Now test flashrom:
- # ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512
- Output:
-
-Calibrating delay loop... OK. -No EEPROM/flash device found. -Note: flashrom can never write if the flash chip isn't found automatically. -+
+ Refer to bbb_setup.html for how to + setup the BBB for flashing. +
-- This means that it's working (the clip isn't connected to any flash chip, - so the error is fine). -
-- Use this image for reference when connecting the pomona to the BBB: - http://beagleboard.org/Support/bone101#headers - (D0 = MISO or connects to MISO). -
- -- The following shows how to connect clip to the BBB (on the P9 header), for SOIC-16 (clip: Pomona 5252): -
++ The following shows how to connect clip to the BBB (on the P9 header), for SOIC-16 (clip: Pomona 5252): +
-=== front (display) ==== +POMONA 5252 (correlate with the BBB guide) +=== front (display) on your X200 ==== NC - - 21 1 - - 17 NC - - NC @@ -298,48 +80,30 @@ Note: flashrom can never write if the flash chip isn't found automatically. NC - - NC 18 - - 3.3V PSU RED 22 - - NC - this is pin 1 on the flash chip -=== back (palmrest) === +=== back (palmrest) on your X200 === This is how you will connect. Numbers refer to pin numbers on the BBB, on the plugs near the DC jack.-
- The following shows how to connect clip to the BBB (on the P9 header), for SOIC-8 (clip: Pomona 5250): -
++ The following shows how to connect clip to the BBB (on the P9 header), for SOIC-8 (clip: Pomona 5250): +
-=== front (display) ==== +POMONA 5250 (correlate with the BBB guide) +=== front (display) on your X200 ==== 18 - - 1 22 - - NC NC - - 21 3.3V PSU RED - - 17 - this is pin 1 on the flash chip -=== back (palmrest) === +=== back (palmrest) on your X200 === This is how you will connect. Numbers refer to pin numbers on the BBB, on the plugs near the DC jack.-
- On the X200S the flash chip is underneath the board, in a WSON package. - The pinout is very much the same as a SOIC-8, except you need to solder (there are no clips available). - images/x200/wson_soldered.jpg (image copyright (C) 2014 Steve Shenton under CC-BY-SA 4.0 - or higher, same license that this document uses) shows it wired (soldered) and - connected to a BBB. -
-- NC = no connection -
-- DO NOT connect 3.3V PSU RED yet. ONLY connect this once the pomona is connected to the flash chip. -
-- You also need to connect the BLACK wire from the 3.3V PSU to pin 2 on the BBB (P9 header). It is safe to install this now. -
-- if you need to extend the 3.3v psu leads, just use the same colour M-F leads, but keep all other - leads short (10cm or less) -
- -- images/x200/5252_bbb0.jpg and - images/x200/5252_bbb1.jpg shows a properly wired up BBB with Pomona - 5252 before being connected to the flash chip on the X200. -
- ++ On the X200S the flash chip is underneath the board, in a WSON package. + The pinout is very much the same as a SOIC-8, except you need to solder (there are no clips available). + images/x200/wson_soldered.jpg (image copyright (C) 2014 Steve Shenton under CC-BY-SA 4.0 + or higher, same license that this document uses) shows it wired (soldered) and + connected to a BBB. +
+
- I did:
+ I did (SSH'd into the BBB):
# ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512
In my case, the output was:
You still have Lenovo BIOS, or you had libreboot running and you flashed another ROM; and you had bucts 1 set and @@ -136,55 +119,43 @@
- At this point, you should wire up your programmer according to it's documentation. For me, this was (see: "SparkFun cable pin reference"):
- http://dangerousprototypes.com/docs/Common_Bus_Pirate_cable_pinouts.
- Correlating with the following information, I was able to wire up my pirate correctly:
- http://flashrom.org/Bus_Pirate#Connections
- And by following that advice:
- http://www.coreboot.org/Board:lenovo/x60/Installation#Howto.
- Note: that last page says to wire up only those 5 pins (see below) like that: 1, 2, 4, 5, 6.
- 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).
- Note: I ignored that advice, and wired up all 8 pins. And it worked.
-
- Here is the pinout (correlate it with your programmer's documentation):
-
+ Now wire up the BBB and the Pomona with your PSU.
+ Refer to bbb_setup.html for how to setup
+ the BBB for flashing.
+ Note, the guide mentions a 3.3v DC PSU but you don't need this on the X60:
+ if you don't have or don't want to use an external PSU, then make
+ sure not to connect the red/black 3.3v leads mentioned in the guide;
+ instead, connect the AC adapter (the one that normally charges your
+ battery) so that the board has power (but don't boot it up)
+
+ Correlate the following with the BBB guide linked above:
+POMONA 5250: +=== golden finger and wifi switch ==== + 18 - - 1 + 22 - - NC ---------- audio jacks are on this end + NC - - 21 + 3.3V PSU RED - - 17 - this is pin 1 on the flash chip +=== CPU fan === +This is how you will connect. Numbers refer to pin numbers on the BBB, on the plugs near the DC jack. +
- My programmer (bus pirate):
-
- My clip (pomona 5250):
-
- Connecting the pomona:
-
- Connecting the USB cable from programmer to 2nd(working/non-bricked) computer, my T60:
-
- Now I install flashrom on the T60 (running Trisquel GNU/Linux) and do this:
- flashrom -p buspirate_spi:dev=/dev/ttyUSB0 -w bin/x60/libreboot_usqwerty.rom
- Note: there are also other ROM images for X60
- Note: this is using buspirate as the programmer, so it is flashing the X60, not the T60!
- Here's my terminal window on the T60:
-
- So, you should see the following:
- --
+ Connecting the BBB and pomona (in this image, an external 3.3v DC PSU was used):
+
-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. -
- --
- 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.
+ SSH'd into the BBB:
+ # ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -w yourrom.rom
+ It should be Verifying flash... VERIFIED at the end. If flashrom complains about multiple flash chip + definitions detected, then choose one of them following the instructions in the output. +
+ +
Remove the programmer and put it away somewhere. Put back the tape and press firmly over it:
You still have Lenovo BIOS, or you had libreboot running and you flashed another ROM; and you had bucts 1 set and
@@ -126,65 +109,42 @@
Remove that screw and then remove the board:
- At this point, you should wire up your programmer according to it's documentation. For me, this was (see: "SparkFun cable pin reference"):
- http://dangerousprototypes.com/docs/Common_Bus_Pirate_cable_pinouts.
- Correlating with the following information, I was able to wire up my pirate correctly:
- http://flashrom.org/Bus_Pirate#Connections
- And by following that advice:
- http://www.coreboot.org/Board:lenovo/x60/Installation#Howto.
- Note: that last page says to wire up only those 5 pins (see below) like that: 1, 2, 4, 5, 6.
- 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).
- Note: I ignored that advice, and wired up all 8 pins. And it worked.
-
- Here is the pinout (correlate it with your programmer's documentation):
+ Now wire up the BBB and the Pomona with your PSU.
+ Refer to bbb_setup.html for how to setup
+ the BBB for flashing.
+ Note, the guide mentions a 3.3v DC PSU but you don't need this on the X60 Tablet:
+ if you don't have or don't want to use an external PSU, then make
+ sure not to connect the red/black 3.3v leads mentioned in the guide;
+ instead, connect the AC adapter (the one that normally charges your
+ battery) so that the board has power (but don't boot it up)
- (SPI chip here is on the bottom of the board)
-
- Bus pirate:
-
+ Correlate the following with the BBB guide linked above:
+POMONA 5250: +=== golden finger and wifi switch ==== + 18 - - 1 + 22 - - NC ---------- audio jacks are on this end + NC - - 21 + 3.3V PSU RED - - 17 - this is pin 1 on the flash chip +=== CPU fan === +This is how you will connect. Numbers refer to pin numbers on the BBB, on the plugs near the DC jack. +
- Pomona 5250:
-
+ Connecting the BBB and pomona (in this image, an external 3.3v DC PSU was used):
+
- Connect pomona:
-
+ SSH'd into the BBB:
+ # ./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -w yourrom.rom
- Connect pirate to USB on 2nd computer:
-
-
- -
- -- On the 2nd machine, I did: flashrom -p buspirate_spi:dev=/dev/ttyUSB0 -w bin/x60t/libreboot_ukqwerty.rom -
- -- 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. --
- At the end it says "VERIFIED", which means that the procedure worked. If you see this, it means that you can put your X60T back together. So let's do that now. + It should be Verifying flash... VERIFIED at the end. If flashrom complains about multiple flash chip + definitions detected, then choose one of them following the instructions in the output.
-- cgit v0.9.1