https://www.thinkwiki.org/w/api.php?action=feedcontributions&user=Regatus&feedformat=atomThinkWiki - User contributions [en]2024-03-28T23:59:00ZUser contributionsMediaWiki 1.31.12https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&diff=51323BIOS Upgrade2011-03-27T14:47:00Z<p>Regatus: /* GRUB2 Boot CD Image */</p>
<hr />
<div>{| width="100%"<br />
|style="vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;" | __TOC__<br />
|style="vertical-align:top" |<br />
This page is meant to describe ways to update the BIOS on a ThinkPad that only runs Linux for users that don't have ready access to Windows. If you have Windows on your ThinkPad you can just boot into it and follow instructions on the Lenovo website.<br />
<br />
Updating the BIOS in Linux (with few exceptions) '''is not officially supported''' by Lenovo. However there are work arounds.<br />
<br />
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems.<br />
<br />
'''Proceed at your own risk!'''}}<br />
|}<br />
<br />
= Downloading New Firmware =<br />
{{WARN|Flashing the wrong firmware for your hardware may cause permanent damage to your ThinkPad. It is up to you to confirm that the firmware you are using is correct.}}<br />
<br />
A list of links to firmware downloads can be found at [[BIOS Upgrade Downloads]] for most Thinkpad models. You can also check the Lenovo Support website's [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=TPAD-MATRIX|ThinkPad driver matrix].<br />
<br />
Lenovo provides firmware upgrades in a variety of packages:<br />
* Diskette<br />
* Non-diskette<br />
* Linux diskette<br />
* BIOS Utility<br />
* Bootable CD<br />
<br />
Not every type of package is available for every model.<br />
<br />
The ''BIOS Utility'' and ''Bootable CD'' packages combine the BIOS and ECP firmwares. For the other packages, there is one for each firmware.<br />
{| align="right" style="width:20em;"<br />
| {{HELP|Can an image be extracted from a "Linux diskette" .exe file?}}<br />
|}<br />
<br />
The ''Linux diskette'' is just the ''Diskette'' package that runs on Linux instead of Windows/DOS. It's unknown if a boot image can be extracted from it. <br />
<br />
You may need to try different packages to find the one from which you can extract a boot image.<br />
<br />
== Two Firmwares: BIOS and ECP ==<br />
{{WARN|Flashing incompatible firmwares, or flashing them in the wrong order, may cause permanent damage to your ThinkPad.}}<br />
<br />
It is important to understand that Thinkpads from IBM have two separate firmwares: the BIOS, and the Embedded Controller Program (ECP).<br />
<br />
A given BIOS version will require a certain version of the ECP. You must read the Lenovo website and/or .txt files to confirm which BIOS is compatible with which ECP, and '''the order in which to update them'''. <br />
<br />
=== Update Order ===<br />
<br />
The IBM documentation is sometimes unclear about the order in which these two firmwares should be updated. When in doubt (i.e. IBM didn't provide specific instructions for your model or a particular firmware update), '''update the ECP first, and then the BIOS'''. Also, make sure to do the two updates '''immediately one after the other'''.<br />
<br />
The EC firmware is usually much better at backwards compatibility than the BIOS.<br />
<br />
(Updaters for newer models take care of both BIOS and EC, and use automatically whatever sequence is needed, so you don't have to worry about it.)<br />
<br />
== Installed Firmware ==<br />
You can check the current BIOS and ECP versions on your ThinkPad by using '''dmidecode'''. For example:<br />
<br />
{{cmdroot|dmidecode -s bios-version}}<br />
<br />
1RETDRWW (3.23 )<br />
<br />
{{cmdroot|dmidecode -t 11}}<br />
<br />
# dmidecode 2.9<br />
SMBIOS 2.33 present.<br />
Handle 0x0029, DMI type 11, 5 bytes<br />
OEM Strings<br />
String 1: IBM ThinkPad Embedded Controller -[1RHT71WW-3.04 ]-<br />
<br />
Showing BIOS version 3.23 (1RETDRWW) and ECP version 3.04 (1RHT71WW).<br />
<br />
===DMI IDs===<br />
Please consider updating the [[List of DMI IDs]] before (and after) updating your BIOS.<br />
<br />
= Updating Firmware =<br />
<br />
There are two basic steps to updating the firmware (either the BIOS or the ECP) on a ThinkPad not running Windows:<br />
# Extract a bootable update image<br />
# Boot from that image<br />
<br />
== Extracting an update image ==<br />
{{WARN|Though this process has been successfully tested on many versions of .exe files found on IBMs website, that doesn't mean it will work for all of them. '''Proceed at your own risk'''. Consult the testing tables farther down of this page to see other users' experience with your model Thinkpad.}}<br />
{{NOTE|These EXE unpack procedures no longer work on more recent downloads, as Lenovo has changed the packaging format. You may still be able to unpack them using wine, or alternatively an actual (virtual) Windows machine.}}<br />
Older .exe installers from Lenovo mostly appear to be just a wrapper license program around Windows .cab files (see [[How_to_change_the_BIOS_bootsplash_screen|BIOS-Bootsplash]]). If you install the Linux program [http://freshmeat.net/projects/cabextract/ '''cabextract'''] you can expand these .cab files directly. For example, if you downloaded {{path|1iuj13us.exe}} from Lenovo:<br />
<br />
:{{cmduser|cabextract 1iuj13us.exe}}<br />
<br />
Extracting cabinet: 1iuj13us.exe<br />
extracting 1IUJ13US.IMG<br />
extracting BIOSUPTP.EXE<br />
extracting DOBOOT.EXE<br />
extracting DOSBOOT.COM<br />
extracting DOSBOOT.SYS<br />
extracting DOSBOOT.VXD<br />
extracting DOSBOOT2.COM<br />
extracting ECTLUPTP.EXE<br />
extracting EFLASHAS.SYS<br />
extracting HDFWUPTP.EXE<br />
extracting IBMTPI.XML<br />
All done, no errors.<br />
<br />
The file we want is '''FILENAME.IMG''', with "FILENAME" being the .exe. you downloaded. E.g., {{path|1IUJ13US.IMG}}.<br />
<br />
(If this does not work for the Non-diskette .exe, try it on the Diskette .exe. It's reported, for example, that the Non-diskette .exe for BIOS version 3.23 for the T41p was not extractable, but the Diskette .exe worked perfectly, with {{cmduser|cabextract}} delivering a .IMG file.)<br />
<br />
==== Testing the Image ====<br />
<br />
You can test that FILENAME.IMG is really a floppy image by running:<br />
<br />
{{cmdroot|mkdir /tmp/mntfloppy}}<br />
<br />
{{cmdroot|mount -o loop FILENAME.IMG /tmp/mntfloppy}}<br />
<br />
If a '''ls''' command on the image returns what looks like a DOS floppy, and no read errors were displayed, you have a pretty good chance that the image is usable. For example:<br />
<br />
{{cmdroot|ls /tmp/mntfloppy}}<br />
$0195000.FL1 069580.PAT 06d2.HSH IBMDOS.COM TPCHKS.EXE<br />
0691.HSH 06D0.PAT 06d6.HSH LOGO.BAT UPDTFLSH.EXE<br />
0691.PAT 06D1.PAT 06d8.HSH LOGO.SCR UPDTMN.EXE<br />
0694.HSH 06D2.PAT CHKBMP.EXE PHLASH16.EXE USERINT.EXE<br />
0694.PAT 06D6.PAT COMMAND.COM PREPARE.EXE UTILINFO.EXE<br />
0695.HSH 06D8.PAT CONFIG.SYS PROD.dat lcreflsh.bat<br />
0695.PAT 06d0.HSH FLASH2.EXE QKFLASH.EXE<br />
069580.HSH 06d1.HSH IBMBIO.COM README.TXT<br />
<br />
Unmount the image after you are done testing:<br />
<br />
{{cmdroot|umount /tmp/mntfloppy}}<br />
<br />
== Booting from update image ==<br />
Now that you have a bootable image for the correct update for you hardware, you need to do is boot from that image to install the update.<br />
<br />
There are different ways to do that:<br />
* [[#Booting from a CD|Boot from a CD]]<br />
* [[#Booting_using_GRUB|Boot from the image, using GRUB]]<br />
* [[#Booting_from_a_floppy|Boot from a floppy]]<br />
* [[#Booting_from_a_USB_Flash_drive|Boot from a USB Flash drive]]<br />
<br />
=== Booting from a CD ===<br />
{| align="right" style="width:40em;"<br />
|{{HINT|If there is a ''Bootable CD'' image available, e.g., FILENAME.iso, just download that, instead of mucking around with image files.}}<br />
|}<br />
If you are going to update the firmware by booting from a CD, you need to turn FILENAME.IMG that you extracted above into an .iso file.<br />
<br />
The [http://en.wikipedia.org/wiki/El_Torito_%28CD-ROM_standard%29 El Torito Bootable CD Specification] is a wonderful thing. Thanks to it, a bootable CD can be made with a bootable floppy image in such as way that the CD believes that it is a 2.88 MB floppy drive. This allows you to replace a boot floppy by a boot CD in nearly all situations.<br />
<br />
It is very easy to create such a bootable CD ISO image in Linux using the '''mkisofs''' tool{{footnote|1}}. Run a command as follows:<br />
<br />
{{cmdroot|genisoimage -b 1WUJ25US.IMG -c boot.catalog -o bootcd.iso 1WUJ25US.IMG}} #or older mkisofs<br />
<br />
Where *.IMG is the name of the image file extracted above. This creates a CD with one file on it and marks that file as the boot image.<br />
<br />
You can now burn the {{path|bootcd.iso}} to a CD in your favorite CD-burning program.<br />
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems. '''Proceed at your own risk!'''}}<br />
<br />
Boot from the CD to update your firmware. Remember to have [[BIOS_Upgrade#Two_Firmwares:_BIOS_and_ECP|both BIOS and ECP firmware boot-CDs]] ready, as needed, and use them in the [[#Proper_Order|proper order]].<br />
<br />
==== Successful tests ====<br />
<br />
{| border="1" cellspacing="0" cellpadding="2" style="font-size:80%; vertical-align:top;"<br />
! Model<br />
! Tested by, and comments<br />
|-<br />
| {{600E}} 2645-4AU ||<br />
* George Tellalov <gtellalov_dontspamme@bigfoot.com>. BIOS 1.16 from spsdin36.exe worked perfectly with the method bootable cd from floppy image. I highly recommend this upgrade because it made my ibm-acpi module load (it wouldn't load before) and fixed some suspend to ram problems. Here's the [http://george.tellalov.info/bios_upgrade_600e_spsdin36.iso cd image] I used. Use at your own risk. You can send me a chocolate if it works for you ;)<br />
|-<br />
| {{600E}} 2645-5bU ||<br />
* Mike Vincent<matchstc-putobvioushere.com>. Bios 1.16 from spsdin36.exe and then to the boot cd worked great for me. Thought I had bricked it three separate times using a "real" floppy! Each from different diskettes .The updater would start, give me the "going to take30 seconds" speech...and then access the HD for 10 minutes. Each time it would reboot fine. Did the cd as described above...worked great first time. Perhaps 10 year old seldom used floppy disc drives have some challenges?<br />
|-<br />
| {{600X}} 2645 ||<br />
* Jonathan Byrne <jonathan@RemoveThisToMailMe.yamame.org>. BIOS 1.11 from spsuit55.exe worked perfectly using cabextract/CD method.<br />
|-<br />
| {{600X}} 2645 ||<br />
* Andy Barnes <andy@RemoveThisToMailMe.itchypaws.co.uk>. As per Jonathan above, extracted BIOS 1.11 from spsuit55.exe using cabextract, created a CD boot image and burnt to CD. Worked flawlessly - thanks to everyone who contributed to this article!<br />
|-<br />
| {{A20p}} 2629-6VU ||<br />
* Chris Pickett http://www.sable.mcgill.ca/~cpicke/. BIOS 1.11 flashed fine with cabextract/CD method.<br />
|-<br />
| {{A21e}} 2628-JXU ||<br />
* Amit Gurdasani <gurdasani at yahoo dot com>. BIOS 1.13 flashed fine with cabextract/CD method. Alarmingly, after the BIOS update, the laptop beeped but did not shut down as was indicated onscreen -- that was frozen on the "do not shut down the laptop" screen. On power down and up again, the BIOS setup showed the newer BIOS image running, and Linux booted up fine. Linux ACPI didn't complain about the BIOS being too old either.<br />
|-<br />
| {{A31p}} 2653 ||<br />
* Matthias Meinke largeeddy@gmx.at, BIOS 1.09 1NET15WW flashed fine with cabextract/CD method.<br />
|-<br />
| {{A31}} 2652 ||<br />
* [[User:Wnoise|Aaron Denney]], BIOS 1.13 flashed fine with cabextract/CD method. The cabextract/CD method also worked for BIOS 1.10.<br />
|-<br />
| {{R30}} ||<br />
* Jarrod, 30 August 2007, Thinkpad R30 Type 2656-E0M. BIOS updated to 1.40 (1CETF0WW) using floppy disk/mkisofs/cdrecord. Worked fine, no problems.<br />
|-<br />
| {{R31}} ||<br />
* [http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html Mathias Dalheimer]<br />
* Sebastian Sauer (with cabextract/CD method)<br />
|-<br />
| {{R40}} ||<br />
* Matthew Lambie, http://lambie.org<br />
* Antti S. Lankila, update to 1.27 via direct use of phlash16.exe against a BIOS image. Normal method did not work because the battery is dead.<br />
|-<br />
| {{R50}} 1836-3SU ||<br />
* jlbartos <jlbartos at hotmail dot com><br />
|-<br />
| {{R50e}} 1834-PTG ||<br />
* item <item at freemail dot hu> : successfully finished with cabextract/CD method for "1wuj25us.exe" (BIOS version 1WET90WW (2.10), Release Date: 2006/12/22)<br />
* Christos Nouskas <nouskas at gmail dot com>: upgraded to BIOS version 1WET90WW (2.10) and EC version 1VHT28WW (1.04) using GRUB (BIOS first / EC second)<br />
|-<br />
| {{R51}} 1829 ||<br />
* Robert Uhl <rob dot uhl at gmx dot de>, Jellby <jellby at yahoo dot com><br />
|-<br />
| {{R51}} 1830-RM7 ||<br />
* Will Parker <stardotstar at sourcepoint dot com dot au> successfully flashed 3.20 using existing 3.04 ECP and retained custom boot splash.<br />
|-<br />
| {{R51}} 2887 ||<br />
* Ingo van Lil <inguin at gmx dot de><br />
|-<br />
| {{R52}} 1858 ||<br />
* Stuart McCord <stuart dot mccord at gmail dot com> flashed both BIOS and ECP using cabextract, BIOS flashed first as on IBM website<br />
|-<br />
| {{T20}} ||<br />
* Franz Hassels <fhassel at suse dot com><br />
|-<br />
| {{T22}} ||<br />
* Daniel Maier <nusse teamidiot de><br />
* Mathias Behrle (with cabextract/CD method, Version 1.07 => 1.12) --[[User:Mathiasb|Mathiasb]] 11:58, 14 December 2006 (CET)<br />
* Bob Skaroff (cabextract/CD), 1.06 => 1.12<br />
* Leo Butler (cabextract/CD), 1.11 => 1.12<br />
|-<br />
| {{T23}} ||<br />
* Bart Snapp <snapp at uiuc dot edu> Note: I followed IBM's instructions to flash the BIOS '''first''' and the Embedded Controller '''second'''.<br />
* Moy Easwaran: BIOS 1.18 / EC 1.06a via cabextract and CD-boot. The BIOS-update exe generated errors in Windows 2000.<br />
* Joe Renes: BIOS 1.18 / EC 1.06a on 2006-03-20 via cabextract and CD-boot. Piece of cake.<br />
* Raphael Errani: BIOS 1.20 / EC 1.06a on 2006-11-06 via cabextract and CD-boot (using mkisofs). Worked without errors. 1st Bios, 2nd EC<br />
* Myron Getman: BIOS 1.20 / EC 1.06a on 9/10/08 via cabextract --> k3b --> CD-boot. Worked like a charm. First BIOS update with Linux!<br />
* Leo Butler: BIOS 1.13 / EC 1.04 to 1.20/1.06a via cabextract and syslinux/memdisk boot through grub. Worked like a charm and no wasted CD.<br />
|-<br />
| {{T30}} ||<br />
* Martin Gühring <guehring at gmail.com> BIOS 2.10 via cabextract the Non-Diskette BIOS -> mkisofs '''in the directory the exe was extracted''' to generate the iso -> burn the iso -> boot the CD<br />
|-<br />
| {{T40}} ||<br />
* Sean Dague, http://dague.net<br />
* Justin Mason, http://jmason.org<br />
* Ivanhoe (Bios 3.19)<br />
* Alessandro Raulino (roger_2) EC 3.04 & BIOS 3.23 flashed with cabextract/CD method<br />
* Nick Jenkins, using BIOS 3.23 with the '''Non-diskette updater + cabextract method''', then [[#Creating_a_Bootable_CD_from_a_Floppy_Image|created a bootable CD from the cabextracted .IMG file]], then boot that ISO, and it worked great!<br />
* xyz: BIOS 3.23 & EC 3.04 flashed with cabextract/CD method. No problem.<br />
|-<br />
| {{T40p}} ||<br />
* Lukas Krähenbühl, ismo at pop dot agri dot ch<br />
* Thomas Achtemichuk, tom at tomchuk dot com. BIOS 3.15 flashed fine with cabextract/CD method<br />
* paper, BIOS 3.23 (1RETDRWW) flashed fine with cabextract/genisoimage method.<br />
|-<br />
| {{T41}} ||<br />
* Lev Givon (Bios 3.15 / EC 3.04) <lev at columbia dot edu><br />
* Ernesto Hernández-Novich (Bios 3.19 / CP 3.04) < emhn at usb dot ve ><br />
* [http://maebmij.org James Ballantine] (Bios 3.21 / CP 3.04) using nondisk/cabextract/CDRW<br />
* Vladimir Pycha (to Bios 3.23 / EC 3.04, from Bios 3.20 / EC 3.04) using nondisk/cabextract/CDRW. Booted with external USB optical drive (I have internal drive broken) - at the beginning of the boot sequence press PAUSE, then wait several seconds, then ENTER, then F12 and select the drive. Without pressing PAUSE I am not able to boot from USB optical/hard drive as the drive does not show in the F12 boot list menu.<br />
|-<br />
| {{T41p}} ||<br />
* Nils Newman, work great. (Version: Bios 3.14 / Embedded Controller 3.04)<br />
|-<br />
| {{T42}} 2373-JXG ||<br />
* magarzo <mdr.magarzo at gmail.com> (BIOS v.3.23 / Embedded Controller v.3.04 / both with cabextract to non-diskette v. plus Bootable CD)<br />
|-<br />
| {{T42}} ||<br />
* Dan (BIOS 3.20 / EC 3.04, cabextract/CD method) <tronic171 at evilphb.org><br />
* Hirosh Dabui <hirosh@dabui.de><br />
|-<br />
| {{T42p}} ||<br />
* Robert Schiele <rschiele@uni-mannheim.de>, Joern Heissler <joern@heissler.de>, Hirosh Dabui <hirosh@dabui.de><br />
|-<br />
| {{T43}} 1871-W34 ||<br />
* Florian Boucault <florian at boucault dot ath dot cx> (Version: Bios 1.23 / Embedded Controller 1.03)<br />
|-<br />
| {{T43}} 1871-4AG ||<br />
* [http://blog.martinmcdowell.com/about/contact Martin McDowell] 28-Feb-2010<br />
* BIOS 70ET62WW (1.22) to 70ET69WW (1.29), <br />
* ECP 70HT26WW (1.03) to 70HT28WW (1.05)<br />
Both successfully upgraded from CD Image made from the instructions on this website.<br />
|-<br />
| {{T43}} 2886 ||<br />
* Till Heikamp <t dot heikamp at geniusbytes dot com> (Bios 1.22 to 1.29, Embedded Controller 1.03 to 1.06)<br />
|-<br />
| {{T43}} ||<br />
* Conrad Rentsch <Conrad dot Rentsch at t-online dot de> (Version: Bios 1.29 / Embedded Controller 1.06)<br />
* Tom Heady <tom-thinkwiki.org@punch.net><br />
|-<br />
| {{T60}} ||<br />
* 1951 Roman Komkov <roman at komkov dot org dot ru> (Bios 1.07 to 2.13) Successfully upgraded from CD Image<br />
* 8744-HCG Konstantin Khorenko <horenko at mail dot ru> (Bios 1.06 to 1.18) Successfully upgraded from CD Image<br />
|-<br />
| {{T61}} ||<br />
* Kai Weber <kai.weber at glorybox dot org> (Bios 1.06 to 1.26) Successfully upgraded from CD Image<br />
|-<br />
| {{T410}} ||<br />
* Pablo Zometa (BIOS 1.35) <br />
|-<br />
| {{X20}} ||<br />
* Neil Caunt <retardis at gmail dot com><br />
|-<br />
| {{X21}} ||<br />
* Patrick Leickner <ranma at web dot de>, (BIOS 2.21->2.25 / EC 1.31->1.36) via non-disk/cabextract/mkisofs/cdrecord<br />
|-<br />
| {{X22}} ||<br />
* David Emery <dave at skiddlydee dot com>, (EC 1.30, BIOS 1.32 using non-disk/cabextract/CD method)<br />
|-<br />
| {{X23}} ||<br />
* Nils Faerber <nils dot faerber at kernelconcepts dot de> (Embedded Controller 1.30, BIOS 1.32 with cabextract/CD method)<br />
|-<br />
| {{X30}} ||<br />
* Hella Breitkopf, [http://www.unixwitch.de/ www] (Embedded Controller 1.04, BIOS 1.07 with cabextract/CD method)<br />
* William Roe <willroe at gmail dot com> (Embedded Controller 1.06, BIOS 1.09 - cabextract/mkisofs/wodim)<br />
|-<br />
| {{X31}} ||<br />
* Grzegorz Kuśnierz <koniu at sheket dot org> (Embedded Controller 1.08, BIOS 3.01 with cabextract/CD method)<br />
|-<br />
| {{X31}} ||<br />
* Paul Litwack <paullitwack at gmail dot com> (Embedded Controller 1.08, BIOS 3.02 with cabextract/unetbootin method)<br />
cabextract & unetbootin are staight foward(toggle floppy image instead of iso image in unetbootin dialog)<br />
No problems with update software.<br />
x31 has to be cajoled into booting from usb. Boot hangs when pendrive is present. Hit the key to bring up the boot menu. <br />
Unplug the pendrive. Let the boot menu come up. Plug in the pendrive. Select the pendrive in the boot menu and it boots. <br />
|-<br />
| {{X40}} ||<br />
* Robbie Stone <robbie@serendipity.cx><br />
* Andy Shevchenko <andy.shevchenko@gmail.com> (Fine by cabextract/CD method)<br />
|-<br />
| {{Z60m}} ||<br />
* [[User:Morle|Morle]] 01:09, 17 Nov 2007 (CEST), (Embedded Controller 1.18 and Bios 1.24 with cabextract/CD method)<br />
|}<br />
<br />
==== Unsuccessful tests ====<br />
{| border="1" cellspacing="0" cellpadding="2" style="font-size:80%; vertical-align:top;"<br />
! Model<br />
! Tested by, and comments<br />
|-<br />
|<pre> </pre> <!-- Placeholder --><br />
|<br />
|}<br />
<br />
=== Booting using GRUB ===<br />
{|<br />
| style="width:75%" | {{WARN|Many have warned '''not''' to use the SYSLINUX image-loader '''memdisk''' to boot firmware update images.}}<br />
| style="font-size:80%" | {{HELP|Who are these "many"? Link to a discussion?}}<br />
|}<br />
Once the bootable image, FILENAME.IMG, is extracted from the .exe, it can be booted directly through GRUB without the need of burning a CD, using the [http://syslinux.zytor.com/ SYSLINUX] image-loader '''[http://syslinux.zytor.com/memdisk.php memdisk]'''.<br />
<br />
Locate the '''memdisk''' file from the syslinux package. You can search for it with '''find''': <br />
<br />
{{cmdroot|find /usr -name memdisk}} #or just use "dlocate memdisk" or "locate memdisk" if these programs are installed<br />
<br />
If {{path|/usr/.../memdisk}} is not present, syslinux is not installed. You will need to install it to boot a .IMG from GRUB.<br />
<br />
Copy both the '''FILENAME.IMG''' and '''memdisk''' files into {{path|/boot}} directory. For example:<br />
<br />
{{cmdroot|cp ./FILENAME.IMG /usr/share/syslinux/memdisk /boot/}}<br />
<br />
Open {{path|/boot/grub/menu.lst}} in your favourite editor. '''Copy''' the active section into a '''new section''', and edit the new section:<br />
{| border="1" cellspacing="0" cellpadding="2"<br />
! Parameter<br />
! Instructions<br />
! Example<br />
|-<br />
| ''title'' || Pick a name for the new section. This will show up in the GRUB boot menu. || <tt>title IBM ECP Update</tt><br />
|-<br />
| ''root'' || Do not change. This is the partition containing the {{path|/boot}} directory || <tt>root (hd0,0)</tt><br />
|-<br />
| ''kernel'' || '''/boot/memdisk''' will allow you to boot an image file. || <tt>kernel /boot/memdisk</tt><br />
|-<br />
| ''initrd'' || This is the name of the firmware-updater image file, e.g., 1IUJ13US.IMG || <tt>initrd /boot/1IUJ13US.IMG</tt><br />
|}<br />
<br />
Do '''not''' modify the original section in {{path|/boot/grub/menu.lst}}, or you might not be able to boot back to the operating system.<br />
<br />
If you have [[#Two_Firmwares:_BIOS_and_ECP|two firmware updates to do]], you will need a section for each firmware's FILENAME.IMG in {{path|/boot/grub/menu.lst}}.<br />
<br />
{{NOTE|If both BIOS and ECP are to be updated, be sure to update them in the [[#Proper_Order|proper order]].}}<br />
<br />
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems. '''Proceed at your own risk!'''}}<br />
<br />
Reboot your computer, entering the GRUB menu and selecting ''IBM BIOS Update'', or whatever you named the new section in {{path|/boot/grub/menu.lst}}.<br />
<br />
==== GRUB2 ====<br />
With grub2, one would ''append'' the following to ''/boot/grub/grub.cfg'' :<br />
menuentry "My BIOS Upgrade" {<br />
set root=(hd0,0) #should match the others in your grub.cfg<br />
linux16 /boot/memdisk<br />
initrd16 /boot/1WUJ25US.IMG #or whatever yours is<br />
}<br />
<br />
==== Successful tests ====<br />
{|border="1" cellspacing="0" cellpadding="2" style="font-size: 80%"<br />
|-<br />
! Model<br />
! BIOS<br />
! ECP<br />
! Tested by<br />
! Notes<br />
|-<br />
| {{R30}} 2656-64G || v.1.40 || || [[User:english.voodoo|Yuri Spirin]] ||<br />
|-<br />
| {{R40}} 2723 || 1OHJ11WW.IMG || 1PUJ25US.IMG || [[User:qunying|Qunying]] || memdisk from syslinux 3.70 (slackware 12.1)<br />
|-<br />
| {{R50e}} 1834NV1 || 1WUJ25US.IMG || || [[User:Jidanni|Jidanni]] || memdisk from syslinux-common 2:3.84+dfsg-1 (Debian), grub2 (1.96+20080724-16)<br />
|-<br />
| {{R51}} 2888 || || || || <br />
|-<br />
| {{T23}} 2647 || 1AUJ20US.IMG || 1AHJ06US.IMG || [[User:cthon|cthon]] || memdisk from syslinux 4.02-1 (arch linux) <br />
|-<br />
| {{T40}} 2373 || 1RUJ37US.IMG || 1RHJ10U2.IMG || [[User:Euphoria|Euphoria]] || memdisk from syslinux 1:3.31-4 (Debian package version)<br />
|-<br />
| {{T40}} 2373 || 1RHJ10U2.IMG<br />(3.04, 2004-11-15) || 1RUJ37US.IMG<br />(3.23, 2007-07-03) || [[User:Morphics|Morphics]] || cabextract and memdisk from syslinux 3:1.36-4ubuntu5<br />
|-<br />
| {{T41}} 2373 || 1RUJ37US.IMG<br />(3.23, 2007-07-03) || || [[User:Tonko|Tonko]] || Fedora 12<br />
|-<br />
| {{T41p}} 2373 || 1RUJ37US.IMG<br />(3.23, 2007-07-03) || || [[User:Deggel|Deggel]] || cabextract and memdisk from syslinux 3.71 on gentoo <br />
|-<br />
| {{T41p}} 2373 || || || [[User:MrStaticVoid|James Lee]] || <br />
|-<br />
| {{T42}} 2373 || 1RUJ37US.IMG || || [[User:Secsaba|Simon Csaba Endre]] || Ubuntu 10.04 Pre-update versions: BIOS v3.21 / ECP v3.04 After-update versions: BIOS v3.23 / ECP v3.04<br />
|-<br />
| {{T42p}} 2374 || 1RUJ37US.IMG || 1RHJ10U2.IMG || [[User:aderigs|Achim Derigs]] || Debian GNU/Linux sid, works with `linux16 ...' and `initrd16 ...' only<br />
|-<br />
| {{X31}} 2673-CBU || || || [[User:JanTopinski|Jan Topinski]] || <br />
|-<br />
| {{X31}} 2672-CXU || || || [[User:TheAnarcat|TheAnarcat]] || <br />
|-<br />
| {{X31}} 2672-JBU || 3.02 1QUJ19US.IMG || 1.08 1QUJ08US.IMG || [[User:twbxf4|twbxf4]] || worked flawlessly<br />
|-<br />
| {{X31}} 2673-58G || || || [[User:FaUl|FaUl]] || <br />
|-<br />
| {{X31}} 2672-PG9 || || || [[User:Starox|Starox]] || a big moment between starting update and the updating window <br />
|-<br />
| {{X31}} 2672-PG9 || v3.02 1QUJ19US.IMG || v1.08 1QHJ08US.IMG || [[User:TeeLittle|TeeLittle]] || Apr 10, 2010: Using Debian 5.0 "Lenny" + package syslinux-common (Version: 2:3.71+dfsg-5). Pre-update versions: BIOS v2.11 / ECP v1.03 <br />
|-<br />
| {{X40}} 2371 || 2.07 1uuj21us.exe || 1.62 1uhj10us.exe || [[User:Antialize|Jakob Truelsen]] || Worked on two X40-2371 <br />
|-<br />
| {{X40}} 2386 || 2.08 1uuj22us.exe || 1.62 1uhj10us.exe || [[User:Antialize|Galen Seitz]] || memdisk from syslinux 3.61<br />
|}<br />
(More successful grub tests are scattered in the previous table too.)<br />
<br />
==== Unsuccessful tests ====<br />
{|border="1" cellspacing="0" cellpadding="2" style="font-size: 80%"<br />
|-<br />
! Model<br />
! style="width:10em;" | BIOS<br />
! ECP<br />
! Tested by<br />
! Notes<br />
|-<br />
| {{R32}} 2658-NWU || 2.16 1MUD23US.IMG || n/a || [[User:Millman12345|Mike Millman]] || Boots into the BIOS flashing program just fine, but when it comes time to start the update process, the system hangs completely. Luckily, it hangs before it actually modifies anything... A hard reboot got me back into a working system. I would not recommend this route!<br />
|-<br />
| {{R52e}} 1846-CGL || 1.29<br />76UJ28UD.IMG || 1.01 || [[User:Lacyc3|Laszlo Takacs]] || Boots into BIOS flashing program but it hangs up before the upgrade process. I used memdisk from syslinux-4.01.<br />
|-<br />
| {{T43}} 2668-F7G || 1.29 1YUJ18US.IMG || || [[User:Maus3273|Maus3273]] || I got into the bios program, but the machine never restarts after initiating the upgrade.<br />
|-<br />
| {{X41}} 2525-FAG || 2.09 74UJ15US || || [[User:Ukleinek|Uwe Kleine-König]] || booted fine (Debian syslinux 2:3.71+dfsg-5), but didn't succeed to write, just hang at "Don't restart or remove diskette etc. pp" (not bricked). Worked fine via CD method.<br />
|- <br />
| {{X41}} 2525-F8G || 2.06 74UJ12US.IMG<br />2.07 74UJ13US.IMG<br />2.09 74UJ15US.IMG || || [[User:ladoga|Lauri Koponen]] || hangs while initializing the actual BIOS flashing process<br /> ECP: 1.02 74HJ03US.IMG works<br />
|-<br />
|}<br />
<br />
==== GRUB2 Boot CD Image ====<br />
Download the bootable iso file from the Lenovo Website. Copy the file 'memdisk' from the syslinux package to /boot. Also create a symlink, so you do not have to change the grub configuration for each bios upgrade:<br />
<pre><br />
sudo su -<br />
cd /boot<br />
cp /home/youruser/Downloads/6uuj12uc.iso .<br />
cp /usr/share/syslinux/memdisk .<br />
ln -s 6uuj12uc.iso biosupgrade.iso<br />
</pre><br />
Now create the boot entry:<br />
<pre><br />
cat >> /etc/grub.d/40_custom <<EOF<br />
menuentry "Lenovo BIOS Upgrade" {<br />
set root=(hd0,1) # <-- check for correct numbering<br />
linux16 /boot/memdisk iso<br />
initrd16 /boot/biosupgrade.iso<br />
}<br />
EOF<br />
update-grub<br />
</pre><br />
Reboot an Select "Lenovo BIOS Upgrade".<br />
<br />
For the next Bios Upgrade you'll just need to copy the new iso file to /boot and adjust the symlink.<br />
<br />
==== Successful tests ====<br />
{|border="1" cellspacing="0" cellpadding="2" style="font-size: 80%"<br />
|-<br />
! Model<br />
! BIOS<br />
! ECP<br />
! Tested by<br />
! Notes<br />
|-<br />
| {{X100e}} 2876-55G || 6xuj05uc.iso || || [[User:nikel]] ||<br />
|-<br />
| {{Edge}} || 1.17 6yuj04uc.iso || || [[User:theBro]] || Current memdisk from syslinux worked (5/2010), the one provided by Ubuntu 9.10 did not.<br />
|-<br />
| {{X200s}} || 1.13 6duj40uc.iso || || [[User:theBro]] || Current memdisk from syslinux worked (5/2010), the one provided by Ubuntu 9.10 did not.<br />
|-<br />
| {{X200s}} || 3.14 6duj41uc.iso || 1.06 || [[User:dag-|Dag Wieers]] || Using memdisk from syslinux 4.01<br />
|-<br />
| {{X201}} 3626-A14 || 1.15 6quj05uc.iso || 1.09 6quj05uc.iso || [[User:Alexander List|Alexander List]] || memdisk from syslinux 3.86<br />
|-<br />
| {{Edge 13"}} 0197-6GG || 1.18 6yuj05uc.iso || || [[User:fethio]] || Current memdisk from syslinux worked (5/2010), the one provided by Ubuntu 9.10 did not.<br />
|-<br />
| {{Edge 13"}} 0197-34Q || 1.21 6yuj08uc.iso || || [[User:Kapil]] || Current memdisk from syslinux debian version 2:4.02+dfsg-7<br />
|-<br />
| {{Edge 13"}} 0197-34Q || 1.18 6yuj05uc.iso || || [[User:Kapil]] || Current memdisk from syslinux debian version 2:4.01+dfsg-1<br />
|-<br />
| {{X200s}} || 3.15 6duj42uc.iso || || [[User:lawnjam]] || Memdisk 4.02 worked, the one provided by Ubuntu 10.04 did not.<br />
|-<br />
| {{X201}} || 1.22 6quj08uc.iso || 1.11 || [[User:dag-|Dag Wieers]] || Using memdisk from syslinux 4.03<br />
|-<br />
| {{T410s}} || 1.41 6uuj12uc.iso || 1.12 || regatus || Gentoo + memdisk (syslinux 4.0.3)<br />
|-<br />
|}<br />
<br />
==== Unuccessful tests ====<br />
{|border="1" cellspacing="0" cellpadding="2" style="font-size: 80%"<br />
|-<br />
! Model<br />
! BIOS<br />
! ECP<br />
! Tested by<br />
! Notes<br />
|-<br />
| {{T61}} 6466-55G || 2.27 7luj26uc.iso || 1.08 || [[User:mgedmin]] || Grub2 + memdisk (2:4.01+dfsg-3ubuntu1) booted the DOS image on the CD, which then tried to load a DOS CD-ROM driver, which then could not find the CD, and ended up with the infamous Abort, Retry, Fail.<br />
|-<br />
|}<br />
<br />
=== Booting from a Floppy ===<br />
{{WARN|Using a floppy disk '''is NOT recommended'''.}}<br />
<br />
This is how IBM/Lenovo intended it. Use their .exe files to create a bootable floppy with the flash update on it. Boot from the floppy and there you go.<br />
<br />
So, why is it not recommended?<br />
# If something goes wrong, your ThinkPad may be permanently damaged<br />
# Floppy disk drives are not reliable<br />
# Floppy disks are not reliable<br />
# It only works with /dev/fd0, meaning it won't work with a USB floppy<br />
<br />
So, even though Lenovo is now offering "Linux diskette" updaters, that will create a bootable floppy under Linux, using a floppy is still not recommended. Besides, many people don't even ''have'' a floppy drive on their ThinkPad.<br />
<br />
If you really want to do it with a floppy, some tips:<br />
* Use a clean (in the physical sense) floppy drive<br />
* Use new floppies<br />
* Test floppies for errors before starting update process<br />
* Have multiple copies of the update disks ready--if one should fail, replace it with a copy<br />
* Should DOS complain of a read error, '''only''' respond wth "Retry"<br />
<br />
{{NOTE|Should the system encounter a disk read error during the flash process, and you select "Abort", your system could be permanently damaged.}}<br />
<br />
=== Booting from a USB Flash drive ===<br />
<br />
==== Updating the BIOS in MS-DOS mode ====<br />
(This process works for most Thinkpad models that has Windows XP, Windows Vista or Windows 7 OS)<br />
<br />
1. Using HP USB Boot Utility, [http://blogs.oreilly.com/digitalmedia/2004/10/utility-to-make-usb-flash-driv.html create a bootable USB flash drive [http://www.bay-wolf.com/utility/usbkey/win98boot.zip DOS using Windows 98 Boot Disk Floppy Image].<br />
<br />
2. Extract the (*.ima) from the ISO BIOS image (e.g. [http://www.rarsoft.com WinRAR] will do this).<br />
<br />
3. Using a tool that can open .IMA files (such as [http://www.winimage.com/ WinImage]), extract all files to a temporary folder.<br />
<br />
4. Run the HP tool, select the USB device, I used FAT32, create a DOS bootable disk and point at the win98boot folder - then "Start". Warning: this '''formats''' the USB flash drive and all data will be erased!<br />
<br />
5. Once complete (you could test if it boots at this point), copy the extracted BIOS files from the temporary folder you created to the USB flash drive.<br />
<br />
6. Boot from USB flash drive by pressing F11 within the BIOS boot logo. At the DOS command prompt, type "updflsh" and then follow the prompts by pressing "Y" or Enter. Make sure that you have a fully charged battery pack and the AC Adapter is firmly plugged before proceeding with the BIOS update.<br />
'''DO NOT Power off the laptop or unplug the USB flash drive while the update is in progress or else update will fail and your computer will be unable to boot and system board may need to be serviced.'''<br />
<br />
This process takes around 1-2 minutes. A long beep followed by a short beep will notify you that the update is complete and the system will automatically power off.<br />
<br />
7. Power on the laptop then enter the BIOS setup by pressing F1 and Load BIOS defaults.<br />
<br />
==== Using grub4dos (also for Linux) ====<br />
<br />
[http://grub4dos.sourceforge.net/wiki/ grub4dos] is a GNU GRUB fork with interesting features. One of them is the ability to boot ISO images directly off USB flash drives. Contrary to the name, GRUB for DOS works fine on Linux. Follow these steps:<br />
* Download the latest grub4dos package at http://download.gna.org/grub4dos/ (I needed 0.4.4 for my USB2 drive - 0.4.3 did not work.)<br />
* Unpack<br />
* Insert your FAT-32 formatted pendrive<br />
* Run <code>sudo ./bootlace.com /dev/sdX</code>, where /dev/sdX is the device name assigned to your pendrive (use <code>sudo fdisk -l</code> to figure this out). Be very careful to get the device correct or else you could overwrite your hard drive! This creates grub4dos boot sector in MBR of the flash drive.<br />
* Copy the files <code>grldr</code> and <code>menu.lst</code> to the root directory of your pendrive.<br />
* Convert the ThinkPad .IMG file to a .ISO file using <code>genisoimage -b 1yuj18us.img -c boot.catalog -o 1yuj18us.iso 1yuj18us.img</code><br />
* Copy the ISO image to the root directory of your pendrive (e.g. <code>1yuj18us.iso</code>).<br />
* Edit <code>menu.lst</code> on the pendrive and include the following section (of course putting the appropriate ISO image name):<br />
<pre><br />
title thinkpad-bios<br />
map (hd0,0)/1yuj18us.iso (hd32)<br />
map --hook<br />
chainloader (hd32)<br />
boot<br />
</pre><br />
* Reboot and press F12 to select booting from USB.<br />
* If all went well, you should be able to boot the Thinkpad's ISO image and flash the BIOS. I tested it successfully on T400. [[User:Wanted|Wanted]] 20:23, 16 July 2010 (UTC)<br />
<br />
==== Using UNetbootin ====<br />
<br />
Unetbootin 422 worked with the image files unpacked with cabextract on my x31.<br />
<br />
{{HELP|How exactly did you do this? It failed for me. Does it work only with .IMG files that are converted to .ISO files, or can .ISO files provided by Lenovo also work (how?)}}<br />
<br />
=== Booting from a Network Boot Image ===<br />
BIOS, ECP, CD/DVD and Harddisk firmware disks can be booted over the network with [http://syslinux.zytor.com/pxe.php PXELINX] as part of the [http://syslinux.zytor.com/ SYSLINUX] package. This requires that you have a DHCP and tftp server configured and setup properly on your network, and is probably not for the faint of heart.<br />
<br />
Make sure the firmware bootdisk is in linux 'dd' format, as the self-extracting .exe disks from the IBM website cannot be booted directly as such.<br />
<br />
This worked on the {{R31}}, {{X22}}, {{T21}}, {{T30}} and {{T41p}} with various firmware updates. On the {{X22}}, it worked with ECP 1.30 but '''not''' with BIOS 1.32<br />
<br />
= Updating without battery or with dead battery =<br />
<br />
This is a last-resort approach. Use this only if everything else fails.<br />
<br />
The BIOS updater may refuse to update a BIOS without a battery, or if the battery charge is too low. In that case, extract the disk image with cabextract as per instructions above and dd it to an usb stick. (This will destroy the data on it, of course.) Acquire a pure DOS boot cd such as Windows 98 recovery CD and boot that.<br />
<br />
Use F8 to abort the boot sequence of a windows 98 boot CD. If you need CD-ROM support, load CD-related things but say no to everything else. In particular, avoid loading himem.sys and doskey, as the presence of either program causes Phoenix bios flash tool phlash16.exe to abort.<br />
<br />
Change to the volume where flash2.exe and other tools are installed, and execute "flash2.exe /u". This should bypass the battery check and perform the flashing. If that doesn't work, check if the update disk contains a tool called "phlash16.exe". This can be used directly to flash the image, and the invocation is typically "phlash16 /exit $01c80000.fl1".<br />
<br />
This method won't work for the Thinkpad {{560X}} (and likely other older models). Since the 560X is a bit older, it won't be a big surprise if the battery is dead as a dodo. Here's how to update the bios in this case: download the spsdi833 bios update and create the update floppy. If you have trouble creating this disk, [http://rapidshare.com/files/413598837/spsdi833-bios-560X.zip.html download an archive with the files] and put them on a floppy. Don't worry about making it bootable. Also, you will need a DOS bootdisk. A Windows 98 bootdisk will be fine. Boot the system with the W98 bootdisk, do not load CD-rom support. Remove the W98 bootdisk and put the disk with the BIOS update in the drive. If you would now run UPDTFLSH you would get the battery message, so don't do that. If you open UPDTFLSH.exe with a text editor, you would find some lines about UPDTROM. UPDTROM is the actual flash tool, but you can't simply run it just like that. Run the following:<br />
<br />
*updtrom /np /prep1<br />
*updtrom /np /prep2<br />
*updtrom /np /prep3<br />
*updtrom /np /romcmp /romflsh /prep4<br />
*updtrom /np /h8flsh /h8img /model<br />
<br />
Yes, you need to run updtrom five times. Hold your breath and reboot the machine. It's done.<br />
<br />
Perhaps not all these lines are necessary, but to be sure I ran them all, and this worked for me. So I suggest you do the same. This could probably be done from the harddisk as well, but I did not test that.<br />
<br />
=After updating=<br />
Lenovo recommends reseting your BIOS settings to their factory defaults after a firmware update.<br />
<br />
==DMI IDs==<br />
Please consider updating the [[List of DMI IDs]] after updating your BIOS.<br />
<br />
= Special Cases =<br />
* In one case, see ([[APM setup on a type 2379 ThinkPad T40]]), it was not possible to upgrade the BIOS from Windows XP; a downgrade to Windows 98 was required to successfully run the BIOS upgrade app. The symptoms in this case were that, once the files had been extracted to the hard disk, and the machine was to reboot into the upgrade app, it would beep and hang just before reboot, requiring a power cycle. Once the power was cycled, it would simply reboot back into XP without performing any BIOS upgrade actions. So even if you have Windows, you may still need to use the info on this page.<br />
<br />
== Updating Thinkpad X Series ==<br />
The special update instructions for {{X_Series}} Thinkpads are quite long. You can find them at the page [[BIOS_Upgrade/X_Series]].<br />
<br />
<br />
<br />
<br />
<br />
----<br />
<br />
{{footnotes|<br />
# For lots of detail on making and burning .iso files, see The Linux Documentation Project (tldp.org): [http://tldp.org/HOWTO/CD-Writing-HOWTO-3.html#ss3.1 3.1 Writing CD-ROMs (pure data)].<br />
}}</div>Regatushttps://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&diff=50731BIOS Upgrade2011-02-25T23:19:50Z<p>Regatus: /* Successful tests */</p>
<hr />
<div>{| width="100%"<br />
|style="vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;" | __TOC__<br />
|style="vertical-align:top" |<br />
This page is meant to describe ways to update the BIOS on a ThinkPad that only runs Linux for users that don't have ready access to Windows. If you have Windows on your ThinkPad you can just boot into it and follow instructions on the Lenovo website.<br />
<br />
Updating the BIOS in Linux (with few exceptions) '''is not officially supported''' by Lenovo. However there are work arounds.<br />
<br />
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems.<br />
<br />
'''Proceed at your own risk!'''}}<br />
|}<br />
<br />
= Downloading New Firmware =<br />
{{WARN|Flashing the wrong firmware for your hardware may cause permanent damage to your ThinkPad. It is up to you to confirm that the firmware you are using is correct.}}<br />
<br />
A list of links to firmware downloads can be found at [[BIOS Upgrade Downloads]] for most Thinkpad models. You can also check the Lenovo Support website's [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=TPAD-MATRIX|ThinkPad driver matrix].<br />
<br />
Lenovo provides firmware upgrades in a variety of packages:<br />
* Diskette<br />
* Non-diskette<br />
* Linux diskette<br />
* BIOS Utility<br />
* Bootable CD<br />
<br />
Not every type of package is available for every model.<br />
<br />
The ''BIOS Utility'' and ''Bootable CD'' packages combine the BIOS and ECP firmwares. For the other packages, there is one for each firmware.<br />
{| align="right" style="width:20em;"<br />
| {{HELP|Can an image be extracted from a "Linux diskette" .exe file?}}<br />
|}<br />
<br />
The ''Linux diskette'' is just the ''Diskette'' package that runs on Linux instead of Windows/DOS. It's unknown if a boot image can be extracted from it. <br />
<br />
You may need to try different packages to find the one from which you can extract a boot image.<br />
<br />
== Two Firmwares: BIOS and ECP ==<br />
{{WARN|Flashing incompatible firmwares, or flashing them in the wrong order, may cause permanent damage to your ThinkPad.}}<br />
<br />
It is important to understand that Thinkpads from IBM have two separate firmwares: the BIOS, and the Embedded Controller Program (ECP).<br />
<br />
A given BIOS version will require a certain version of the ECP. You must read the Lenovo website and/or .txt files to confirm which BIOS is compatible with which ECP, and '''the order in which to update them'''. <br />
<br />
=== Update Order ===<br />
<br />
The IBM documentation is sometimes unclear about the order in which these two firmwares should be updated. When in doubt (i.e. IBM didn't provide specific instructions for your model or a particular firmware update), '''update the ECP first, and then the BIOS'''. Also, make sure to do the two updates '''immediately one after the other'''.<br />
<br />
The EC firmware is usually much better at backwards compatibility than the BIOS.<br />
<br />
(Updaters for newer models take care of both BIOS and EC, and use automatically whatever sequence is needed, so you don't have to worry about it.)<br />
<br />
== Installed Firmware ==<br />
You can check the current BIOS and ECP versions on your ThinkPad by using '''dmidecode'''. For example:<br />
<br />
{{cmdroot|dmidecode -s bios-version}}<br />
<br />
1RETDRWW (3.23 )<br />
<br />
{{cmdroot|dmidecode -t 11}}<br />
<br />
# dmidecode 2.9<br />
SMBIOS 2.33 present.<br />
Handle 0x0029, DMI type 11, 5 bytes<br />
OEM Strings<br />
String 1: IBM ThinkPad Embedded Controller -[1RHT71WW-3.04 ]-<br />
<br />
Showing BIOS version 3.23 (1RETDRWW) and ECP version 3.04 (1RHT71WW).<br />
<br />
===DMI IDs===<br />
Please consider updating the [[List of DMI IDs]] before (and after) updating your BIOS.<br />
<br />
= Updating Firmware =<br />
<br />
There are two basic steps to updating the firmware (either the BIOS or the ECP) on a ThinkPad not running Windows:<br />
# Extract a bootable update image<br />
# Boot from that image<br />
<br />
== Extracting an update image ==<br />
{{WARN|Though this process has been successfully tested on many versions of .exe files found on IBMs website, that doesn't mean it will work for all of them. '''Proceed at your own risk'''. Consult the testing tables farther down of this page to see other users' experience with your model Thinkpad.}}<br />
{{NOTE|These EXE unpack procedures no longer work on more recent downloads, as Lenovo has changed the packaging format. You may still be able to unpack them using wine, or alternatively an actual (virtual) Windows machine.}}<br />
Older .exe installers from Lenovo mostly appear to be just a wrapper license program around Windows .cab files (see [[How_to_change_the_BIOS_bootsplash_screen|BIOS-Bootsplash]]). If you install the Linux program [http://freshmeat.net/projects/cabextract/ '''cabextract'''] you can expand these .cab files directly. For example, if you downloaded {{path|1iuj13us.exe}} from Lenovo:<br />
<br />
:{{cmduser|cabextract 1iuj13us.exe}}<br />
<br />
Extracting cabinet: 1iuj13us.exe<br />
extracting 1IUJ13US.IMG<br />
extracting BIOSUPTP.EXE<br />
extracting DOBOOT.EXE<br />
extracting DOSBOOT.COM<br />
extracting DOSBOOT.SYS<br />
extracting DOSBOOT.VXD<br />
extracting DOSBOOT2.COM<br />
extracting ECTLUPTP.EXE<br />
extracting EFLASHAS.SYS<br />
extracting HDFWUPTP.EXE<br />
extracting IBMTPI.XML<br />
All done, no errors.<br />
<br />
The file we want is '''FILENAME.IMG''', with "FILENAME" being the .exe. you downloaded. E.g., {{path|1IUJ13US.IMG}}.<br />
<br />
(If this does not work for the Non-diskette .exe, try it on the Diskette .exe. It's reported, for example, that the Non-diskette .exe for BIOS version 3.23 for the T41p was not extractable, but the Diskette .exe worked perfectly, with {{cmduser|cabextract}} delivering a .IMG file.)<br />
<br />
==== Testing the Image ====<br />
<br />
You can test that FILENAME.IMG is really a floppy image by running:<br />
<br />
{{cmdroot|mkdir /tmp/mntfloppy}}<br />
<br />
{{cmdroot|mount -o loop FILENAME.IMG /tmp/mntfloppy}}<br />
<br />
If a '''ls''' command on the image returns what looks like a DOS floppy, and no read errors were displayed, you have a pretty good chance that the image is usable. For example:<br />
<br />
{{cmdroot|ls /tmp/mntfloppy}}<br />
$0195000.FL1 069580.PAT 06d2.HSH IBMDOS.COM TPCHKS.EXE<br />
0691.HSH 06D0.PAT 06d6.HSH LOGO.BAT UPDTFLSH.EXE<br />
0691.PAT 06D1.PAT 06d8.HSH LOGO.SCR UPDTMN.EXE<br />
0694.HSH 06D2.PAT CHKBMP.EXE PHLASH16.EXE USERINT.EXE<br />
0694.PAT 06D6.PAT COMMAND.COM PREPARE.EXE UTILINFO.EXE<br />
0695.HSH 06D8.PAT CONFIG.SYS PROD.dat lcreflsh.bat<br />
0695.PAT 06d0.HSH FLASH2.EXE QKFLASH.EXE<br />
069580.HSH 06d1.HSH IBMBIO.COM README.TXT<br />
<br />
Unmount the image after you are done testing:<br />
<br />
{{cmdroot|umount /tmp/mntfloppy}}<br />
<br />
== Booting from update image ==<br />
Now that you have a bootable image for the correct update for you hardware, you need to do is boot from that image to install the update.<br />
<br />
There are different ways to do that:<br />
* [[#Booting from a CD|Boot from a CD]]<br />
* [[#Booting_using_GRUB|Boot from the image, using GRUB]]<br />
* [[#Booting_from_a_floppy|Boot from a floppy]]<br />
* [[#Booting_from_a_USB_Flash_drive|Boot from a USB Flash drive]]<br />
<br />
=== Booting from a CD ===<br />
{| align="right" style="width:40em;"<br />
|{{HINT|If there is a ''Bootable CD'' image available, e.g., FILENAME.iso, just download that, instead of mucking around with image files.}}<br />
|}<br />
If you are going to update the firmware by booting from a CD, you need to turn FILENAME.IMG that you extracted above into an .iso file.<br />
<br />
The [http://en.wikipedia.org/wiki/El_Torito_%28CD-ROM_standard%29 El Torito Bootable CD Specification] is a wonderful thing. Thanks to it, a bootable CD can be made with a bootable floppy image in such as way that the CD believes that it is a 2.88 MB floppy drive. This allows you to replace a boot floppy by a boot CD in nearly all situations.<br />
<br />
It is very easy to create such a bootable CD ISO image in Linux using the '''mkisofs''' tool{{footnote|1}}. Run a command as follows:<br />
<br />
{{cmdroot|genisoimage -b 1WUJ25US.IMG -c boot.catalog -o bootcd.iso 1WUJ25US.IMG}} #or older mkisofs<br />
<br />
Where *.IMG is the name of the image file extracted above. This creates a CD with one file on it and marks that file as the boot image.<br />
<br />
You can now burn the {{path|bootcd.iso}} to a CD in your favorite CD-burning program.<br />
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems. '''Proceed at your own risk!'''}}<br />
<br />
Boot from the CD to update your firmware. Remember to have [[BIOS_Upgrade#Two_Firmwares:_BIOS_and_ECP|both BIOS and ECP firmware boot-CDs]] ready, as needed, and use them in the [[#Proper_Order|proper order]].<br />
<br />
==== Successful tests ====<br />
<br />
{| border="1" cellspacing="0" cellpadding="2" style="font-size:80%; vertical-align:top;"<br />
! Model<br />
! Tested by, and comments<br />
|-<br />
| {{600E}} 2645-4AU ||<br />
* George Tellalov <gtellalov_dontspamme@bigfoot.com>. BIOS 1.16 from spsdin36.exe worked perfectly with the method bootable cd from floppy image. I highly recommend this upgrade because it made my ibm-acpi module load (it wouldn't load before) and fixed some suspend to ram problems. Here's the [http://george.tellalov.info/bios_upgrade_600e_spsdin36.iso cd image] I used. Use at your own risk. You can send me a chocolate if it works for you ;)<br />
|-<br />
| {{600E}} 2645-5bU ||<br />
* Mike Vincent<matchstc-putobvioushere.com>. Bios 1.16 from spsdin36.exe and then to the boot cd worked great for me. Thought I had bricked it three separate times using a "real" floppy! Each from different diskettes .The updater would start, give me the "going to take30 seconds" speech...and then access the HD for 10 minutes. Each time it would reboot fine. Did the cd as described above...worked great first time. Perhaps 10 year old seldom used floppy disc drives have some challenges?<br />
|-<br />
| {{600X}} 2645 ||<br />
* Jonathan Byrne <jonathan@RemoveThisToMailMe.yamame.org>. BIOS 1.11 from spsuit55.exe worked perfectly using cabextract/CD method.<br />
|-<br />
| {{600X}} 2645 ||<br />
* Andy Barnes <andy@RemoveThisToMailMe.itchypaws.co.uk>. As per Jonathan above, extracted BIOS 1.11 from spsuit55.exe using cabextract, created a CD boot image and burnt to CD. Worked flawlessly - thanks to everyone who contributed to this article!<br />
|-<br />
| {{A20p}} 2629-6VU ||<br />
* Chris Pickett http://www.sable.mcgill.ca/~cpicke/. BIOS 1.11 flashed fine with cabextract/CD method.<br />
|-<br />
| {{A21e}} 2628-JXU ||<br />
* Amit Gurdasani <gurdasani at yahoo dot com>. BIOS 1.13 flashed fine with cabextract/CD method. Alarmingly, after the BIOS update, the laptop beeped but did not shut down as was indicated onscreen -- that was frozen on the "do not shut down the laptop" screen. On power down and up again, the BIOS setup showed the newer BIOS image running, and Linux booted up fine. Linux ACPI didn't complain about the BIOS being too old either.<br />
|-<br />
| {{A31p}} 2653 ||<br />
* Matthias Meinke largeeddy@gmx.at, BIOS 1.09 1NET15WW flashed fine with cabextract/CD method.<br />
|-<br />
| {{A31}} 2652 ||<br />
* [[User:Wnoise|Aaron Denney]], BIOS 1.13 flashed fine with cabextract/CD method. The cabextract/CD method also worked for BIOS 1.10.<br />
|-<br />
| {{R30}} ||<br />
* Jarrod, 30 August 2007, Thinkpad R30 Type 2656-E0M. BIOS updated to 1.40 (1CETF0WW) using floppy disk/mkisofs/cdrecord. Worked fine, no problems.<br />
|-<br />
| {{R31}} ||<br />
* [http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html Mathias Dalheimer]<br />
* Sebastian Sauer (with cabextract/CD method)<br />
|-<br />
| {{R40}} ||<br />
* Matthew Lambie, http://lambie.org<br />
* Antti S. Lankila, update to 1.27 via direct use of phlash16.exe against a BIOS image. Normal method did not work because the battery is dead.<br />
|-<br />
| {{R50}} 1836-3SU ||<br />
* jlbartos <jlbartos at hotmail dot com><br />
|-<br />
| {{R50e}} 1834-PTG ||<br />
* item <item at freemail dot hu> : successfully finished with cabextract/CD method for "1wuj25us.exe" (BIOS version 1WET90WW (2.10), Release Date: 2006/12/22)<br />
* Christos Nouskas <nouskas at gmail dot com>: upgraded to BIOS version 1WET90WW (2.10) and EC version 1VHT28WW (1.04) using GRUB (BIOS first / EC second)<br />
|-<br />
| {{R51}} 1829 ||<br />
* Robert Uhl <rob dot uhl at gmx dot de>, Jellby <jellby at yahoo dot com><br />
|-<br />
| {{R51}} 1830-RM7 ||<br />
* Will Parker <stardotstar at sourcepoint dot com dot au> successfully flashed 3.20 using existing 3.04 ECP and retained custom boot splash.<br />
|-<br />
| {{R51}} 2887 ||<br />
* Ingo van Lil <inguin at gmx dot de><br />
|-<br />
| {{R52}} 1858 ||<br />
* Stuart McCord <stuart dot mccord at gmail dot com> flashed both BIOS and ECP using cabextract, BIOS flashed first as on IBM website<br />
|-<br />
| {{T20}} ||<br />
* Franz Hassels <fhassel at suse dot com><br />
|-<br />
| {{T22}} ||<br />
* Daniel Maier <nusse teamidiot de><br />
* Mathias Behrle (with cabextract/CD method, Version 1.07 => 1.12) --[[User:Mathiasb|Mathiasb]] 11:58, 14 December 2006 (CET)<br />
* Bob Skaroff (cabextract/CD), 1.06 => 1.12<br />
* Leo Butler (cabextract/CD), 1.11 => 1.12<br />
|-<br />
| {{T23}} ||<br />
* Bart Snapp <snapp at uiuc dot edu> Note: I followed IBM's instructions to flash the BIOS '''first''' and the Embedded Controller '''second'''.<br />
* Moy Easwaran: BIOS 1.18 / EC 1.06a via cabextract and CD-boot. The BIOS-update exe generated errors in Windows 2000.<br />
* Joe Renes: BIOS 1.18 / EC 1.06a on 2006-03-20 via cabextract and CD-boot. Piece of cake.<br />
* Raphael Errani: BIOS 1.20 / EC 1.06a on 2006-11-06 via cabextract and CD-boot (using mkisofs). Worked without errors. 1st Bios, 2nd EC<br />
* Myron Getman: BIOS 1.20 / EC 1.06a on 9/10/08 via cabextract --> k3b --> CD-boot. Worked like a charm. First BIOS update with Linux!<br />
* Leo Butler: BIOS 1.13 / EC 1.04 to 1.20/1.06a via cabextract and syslinux/memdisk boot through grub. Worked like a charm and no wasted CD.<br />
|-<br />
| {{T30}} ||<br />
* Martin Gühring <guehring at gmail.com> BIOS 2.10 via cabextract the Non-Diskette BIOS -> mkisofs '''in the directory the exe was extracted''' to generate the iso -> burn the iso -> boot the CD<br />
|-<br />
| {{T40}} ||<br />
* Sean Dague, http://dague.net<br />
* Justin Mason, http://jmason.org<br />
* Ivanhoe (Bios 3.19)<br />
* Alessandro Raulino (roger_2) EC 3.04 & BIOS 3.23 flashed with cabextract/CD method<br />
* Nick Jenkins, using BIOS 3.23 with the '''Non-diskette updater + cabextract method''', then [[#Creating_a_Bootable_CD_from_a_Floppy_Image|created a bootable CD from the cabextracted .IMG file]], then boot that ISO, and it worked great!<br />
* xyz: BIOS 3.23 & EC 3.04 flashed with cabextract/CD method. No problem.<br />
|-<br />
| {{T40p}} ||<br />
* Lukas Krähenbühl, ismo at pop dot agri dot ch<br />
* Thomas Achtemichuk, tom at tomchuk dot com. BIOS 3.15 flashed fine with cabextract/CD method<br />
* paper, BIOS 3.23 (1RETDRWW) flashed fine with cabextract/genisoimage method.<br />
|-<br />
| {{T41}} ||<br />
* Lev Givon (Bios 3.15 / EC 3.04) <lev at columbia dot edu><br />
* Ernesto Hernández-Novich (Bios 3.19 / CP 3.04) < emhn at usb dot ve ><br />
* [http://maebmij.org James Ballantine] (Bios 3.21 / CP 3.04) using nondisk/cabextract/CDRW<br />
* Vladimir Pycha (to Bios 3.23 / EC 3.04, from Bios 3.20 / EC 3.04) using nondisk/cabextract/CDRW. Booted with external USB optical drive (I have internal drive broken) - at the beginning of the boot sequence press PAUSE, then wait several seconds, then ENTER, then F12 and select the drive. Without pressing PAUSE I am not able to boot from USB optical/hard drive as the drive does not show in the F12 boot list menu.<br />
|-<br />
| {{T41p}} ||<br />
* Nils Newman, work great. (Version: Bios 3.14 / Embedded Controller 3.04)<br />
|-<br />
| {{T42}} 2373-JXG ||<br />
* magarzo <mdr.magarzo at gmail.com> (BIOS v.3.23 / Embedded Controller v.3.04 / both with cabextract to non-diskette v. plus Bootable CD)<br />
|-<br />
| {{T42}} ||<br />
* Dan (BIOS 3.20 / EC 3.04, cabextract/CD method) <tronic171 at evilphb.org><br />
* Hirosh Dabui <hirosh@dabui.de><br />
|-<br />
| {{T42p}} ||<br />
* Robert Schiele <rschiele@uni-mannheim.de>, Joern Heissler <joern@heissler.de>, Hirosh Dabui <hirosh@dabui.de><br />
|-<br />
| {{T43}} 1871-W34 ||<br />
* Florian Boucault <florian at boucault dot ath dot cx> (Version: Bios 1.23 / Embedded Controller 1.03)<br />
|-<br />
| {{T43}} 1871-4AG ||<br />
* [http://blog.martinmcdowell.com/about/contact Martin McDowell] 28-Feb-2010<br />
* BIOS 70ET62WW (1.22) to 70ET69WW (1.29), <br />
* ECP 70HT26WW (1.03) to 70HT28WW (1.05)<br />
Both successfully upgraded from CD Image made from the instructions on this website.<br />
|-<br />
| {{T43}} 2886 ||<br />
* Till Heikamp <t dot heikamp at geniusbytes dot com> (Bios 1.22 to 1.29, Embedded Controller 1.03 to 1.06)<br />
|-<br />
| {{T43}} ||<br />
* Conrad Rentsch <Conrad dot Rentsch at t-online dot de> (Version: Bios 1.29 / Embedded Controller 1.06)<br />
* Tom Heady <tom-thinkwiki.org@punch.net><br />
|-<br />
| {{T60}} ||<br />
* 1951 Roman Komkov <roman at komkov dot org dot ru> (Bios 1.07 to 2.13) Successfully upgraded from CD Image<br />
* 8744-HCG Konstantin Khorenko <horenko at mail dot ru> (Bios 1.06 to 1.18) Successfully upgraded from CD Image<br />
|-<br />
| {{T61}} ||<br />
* Kai Weber <kai.weber at glorybox dot org> (Bios 1.06 to 1.26) Successfully upgraded from CD Image<br />
|-<br />
| {{X20}} ||<br />
* Neil Caunt <retardis at gmail dot com><br />
|-<br />
| {{X21}} ||<br />
* Patrick Leickner <ranma at web dot de>, (BIOS 2.21->2.25 / EC 1.31->1.36) via non-disk/cabextract/mkisofs/cdrecord<br />
|-<br />
| {{X22}} ||<br />
* David Emery <dave at skiddlydee dot com>, (EC 1.30, BIOS 1.32 using non-disk/cabextract/CD method)<br />
|-<br />
| {{X23}} ||<br />
* Nils Faerber <nils dot faerber at kernelconcepts dot de> (Embedded Controller 1.30, BIOS 1.32 with cabextract/CD method)<br />
|-<br />
| {{X30}} ||<br />
* Hella Breitkopf, [http://www.unixwitch.de/ www] (Embedded Controller 1.04, BIOS 1.07 with cabextract/CD method)<br />
* William Roe <willroe at gmail dot com> (Embedded Controller 1.06, BIOS 1.09 - cabextract/mkisofs/wodim)<br />
|-<br />
| {{X31}} ||<br />
* Grzegorz Kuśnierz <koniu at sheket dot org> (Embedded Controller 1.08, BIOS 3.01 with cabextract/CD method)<br />
|-<br />
| {{X31}} ||<br />
* Paul Litwack <paullitwack at gmail dot com> (Embedded Controller 1.08, BIOS 3.02 with cabextract/unetbootin method)<br />
cabextract & unetbootin are staight foward(toggle floppy image instead of iso image in unetbootin dialog)<br />
No problems with update software.<br />
x31 has to be cajoled into booting from usb. Boot hangs when pendrive is present. Hit the key to bring up the boot menu. <br />
Unplug the pendrive. Let the boot menu come up. Plug in the pendrive. Select the pendrive in the boot menu and it boots. <br />
|-<br />
| {{X40}} ||<br />
* Robbie Stone <robbie@serendipity.cx><br />
* Andy Shevchenko <andy.shevchenko@gmail.com> (Fine by cabextract/CD method)<br />
|-<br />
| {{Z60m}} ||<br />
* [[User:Morle|Morle]] 01:09, 17 Nov 2007 (CEST), (Embedded Controller 1.18 and Bios 1.24 with cabextract/CD method)<br />
|}<br />
<br />
==== Unsuccessful tests ====<br />
{| border="1" cellspacing="0" cellpadding="2" style="font-size:80%; vertical-align:top;"<br />
! Model<br />
! Tested by, and comments<br />
|-<br />
|<pre> </pre> <!-- Placeholder --><br />
|<br />
|}<br />
<br />
=== Booting using GRUB ===<br />
{|<br />
| style="width:75%" | {{WARN|Many have warned '''not''' to use the SYSLINUX image-loader '''memdisk''' to boot firmware update images.}}<br />
| style="font-size:80%" | {{HELP|Who are these "many"? Link to a discussion?}}<br />
|}<br />
Once the bootable image, FILENAME.IMG, is extracted from the .exe, it can be booted directly through GRUB without the need of burning a CD, using the [http://syslinux.zytor.com/ SYSLINUX] image-loader '''[http://syslinux.zytor.com/memdisk.php memdisk]'''.<br />
<br />
Locate the '''memdisk''' file from the syslinux package. You can search for it with '''find''': <br />
<br />
{{cmdroot|find /usr -name memdisk}} #or just use "dlocate memdisk" or "locate memdisk" if these programs are installed<br />
<br />
If {{path|/usr/.../memdisk}} is not present, syslinux is not installed. You will need to install it to boot a .IMG from GRUB.<br />
<br />
Copy both the '''FILENAME.IMG''' and '''memdisk''' files into {{path|/boot}} directory. For example:<br />
<br />
{{cmdroot|cp ./FILENAME.IMG /usr/share/syslinux/memdisk /boot/}}<br />
<br />
Open {{path|/boot/grub/menu.lst}} in your favourite editor. '''Copy''' the active section into a '''new section''', and edit the new section:<br />
{| border="1" cellspacing="0" cellpadding="2"<br />
! Parameter<br />
! Instructions<br />
! Example<br />
|-<br />
| ''title'' || Pick a name for the new section. This will show up in the GRUB boot menu. || <tt>title IBM ECP Update</tt><br />
|-<br />
| ''root'' || Do not change. This is the partition containing the {{path|/boot}} directory || <tt>root (hd0,0)</tt><br />
|-<br />
| ''kernel'' || '''/boot/memdisk''' will allow you to boot an image file. || <tt>kernel /boot/memdisk</tt><br />
|-<br />
| ''initrd'' || This is the name of the firmware-updater image file, e.g., 1IUJ13US.IMG || <tt>initrd /boot/1IUJ13US.IMG</tt><br />
|}<br />
<br />
Do '''not''' modify the original section in {{path|/boot/grub/menu.lst}}, or you might not be able to boot back to the operating system.<br />
<br />
If you have [[#Two_Firmwares:_BIOS_and_ECP|two firmware updates to do]], you will need a section for each firmware's FILENAME.IMG in {{path|/boot/grub/menu.lst}}.<br />
<br />
{{NOTE|If both BIOS and ECP are to be updated, be sure to update them in the [[#Proper_Order|proper order]].}}<br />
<br />
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems. '''Proceed at your own risk!'''}}<br />
<br />
Reboot your computer, entering the GRUB menu and selecting ''IBM BIOS Update'', or whatever you named the new section in {{path|/boot/grub/menu.lst}}.<br />
<br />
==== GRUB2 ====<br />
With grub2, one would ''append'' the following to ''/boot/grub/grub.cfg'' :<br />
menuentry "My BIOS Upgrade" {<br />
set root=(hd0,0) #should match the others in your grub.cfg<br />
linux16 /boot/memdisk<br />
initrd16 /boot/1WUJ25US.IMG #or whatever yours is<br />
}<br />
<br />
==== Successful tests ====<br />
{|border="1" cellspacing="0" cellpadding="2" style="font-size: 80%"<br />
|-<br />
! Model<br />
! BIOS<br />
! ECP<br />
! Tested by<br />
! Notes<br />
|-<br />
| {{R30}} 2656-64G || v.1.40 || || [[User:english.voodoo|Yuri Spirin]] ||<br />
|-<br />
| {{R40}} 2723 || 1OHJ11WW.IMG || 1PUJ25US.IMG || [[User:qunying|Qunying]] || memdisk from syslinux 3.70 (slackware 12.1)<br />
|-<br />
| {{R50e}} 1834NV1 || 1WUJ25US.IMG || || [[User:Jidanni|Jidanni]] || memdisk from syslinux-common 2:3.84+dfsg-1 (Debian), grub2 (1.96+20080724-16)<br />
|-<br />
| {{R51}} 2888 || || || || <br />
|-<br />
| {{T23}} 2647 || 1AUJ20US.IMG || 1AHJ06US.IMG || [[User:cthon|cthon]] || memdisk from syslinux 4.02-1 (arch linux) <br />
|-<br />
| {{T40}} 2373 || 1RUJ37US.IMG || 1RHJ10U2.IMG || [[User:Euphoria|Euphoria]] || memdisk from syslinux 1:3.31-4 (Debian package version)<br />
|-<br />
| {{T40}} 2373 || 1RHJ10U2.IMG<br />(3.04, 2004-11-15) || 1RUJ37US.IMG<br />(3.23, 2007-07-03) || [[User:Morphics|Morphics]] || cabextract and memdisk from syslinux 3:1.36-4ubuntu5<br />
|-<br />
| {{T41}} 2373 || 1RUJ37US.IMG<br />(3.23, 2007-07-03) || || [[User:Tonko|Tonko]] || Fedora 12<br />
|-<br />
| {{T41p}} 2373 || 1RUJ37US.IMG<br />(3.23, 2007-07-03) || || [[User:Deggel|Deggel]] || cabextract and memdisk from syslinux 3.71 on gentoo <br />
|-<br />
| {{T41p}} 2373 || || || [[User:MrStaticVoid|James Lee]] || <br />
|-<br />
| {{T42}} 2373 || 1RUJ37US.IMG || || [[User:Secsaba|Simon Csaba Endre]] || Ubuntu 10.04 Pre-update versions: BIOS v3.21 / ECP v3.04 After-update versions: BIOS v3.23 / ECP v3.04<br />
|-<br />
| {{T42p}} 2374 || 1RUJ37US.IMG || 1RHJ10U2.IMG || [[User:aderigs|Achim Derigs]] || Debian GNU/Linux sid, works with `linux16 ...' and `initrd16 ...' only<br />
|-<br />
| {{X31}} 2673-CBU || || || [[User:JanTopinski|Jan Topinski]] || <br />
|-<br />
| {{X31}} 2672-CXU || || || [[User:TheAnarcat|TheAnarcat]] || <br />
|-<br />
| {{X31}} 2672-JBU || 3.02 1QUJ19US.IMG || 1.08 1QUJ08US.IMG || [[User:twbxf4|twbxf4]] || worked flawlessly<br />
|-<br />
| {{X31}} 2673-58G || || || [[User:FaUl|FaUl]] || <br />
|-<br />
| {{X31}} 2672-PG9 || || || [[User:Starox|Starox]] || a big moment between starting update and the updating window <br />
|-<br />
| {{X31}} 2672-PG9 || v3.02 1QUJ19US.IMG || v1.08 1QHJ08US.IMG || [[User:TeeLittle|TeeLittle]] || Apr 10, 2010: Using Debian 5.0 "Lenny" + package syslinux-common (Version: 2:3.71+dfsg-5). Pre-update versions: BIOS v2.11 / ECP v1.03 <br />
|-<br />
| {{X40}} 2371 || 2.07 1uuj21us.exe || 1.62 1uhj10us.exe || [[User:Antialize|Jakob Truelsen]] || Worked on two X40-2371 <br />
|-<br />
| {{X40}} 2386 || 2.08 1uuj22us.exe || 1.62 1uhj10us.exe || [[User:Antialize|Galen Seitz]] || memdisk from syslinux 3.61<br />
|}<br />
(More successful grub tests are scattered in the previous table too.)<br />
<br />
==== Unsuccessful tests ====<br />
{|border="1" cellspacing="0" cellpadding="2" style="font-size: 80%"<br />
|-<br />
! Model<br />
! style="width:10em;" | BIOS<br />
! ECP<br />
! Tested by<br />
! Notes<br />
|-<br />
| {{R32}} 2658-NWU || 2.16 1MUD23US.IMG || n/a || [[User:Millman12345|Mike Millman]] || Boots into the BIOS flashing program just fine, but when it comes time to start the update process, the system hangs completely. Luckily, it hangs before it actually modifies anything... A hard reboot got me back into a working system. I would not recommend this route!<br />
|-<br />
| {{R52e}} 1846-CGL || 1.29<br />76UJ28UD.IMG || 1.01 || [[User:Lacyc3|Laszlo Takacs]] || Boots into BIOS flashing program but it hangs up before the upgrade process. I used memdisk from syslinux-4.01.<br />
|-<br />
| {{T43}} 2668-F7G || 1.29 1YUJ18US.IMG || || [[User:Maus3273|Maus3273]] || I got into the bios program, but the machine never restarts after initiating the upgrade.<br />
|-<br />
| {{X41}} 2525-FAG || 2.09 74UJ15US || || [[User:Ukleinek|Uwe Kleine-König]] || booted fine (Debian syslinux 2:3.71+dfsg-5), but didn't succeed to write, just hang at "Don't restart or remove diskette etc. pp" (not bricked). Worked fine via CD method.<br />
|- <br />
| {{X41}} 2525-F8G || 2.06 74UJ12US.IMG<br />2.07 74UJ13US.IMG<br />2.09 74UJ15US.IMG || || [[User:ladoga|Lauri Koponen]] || hangs while initializing the actual BIOS flashing process<br /> ECP: 1.02 74HJ03US.IMG works<br />
|-<br />
|}<br />
<br />
==== GRUB2 Boot CD Image ====<br />
Download the bootable iso file from the Lenovo Website. Copy the file 'memdisk' from the syslinux package to /boot. Also create a symlink, so you do not have to change the grub configuration for each bios upgrade:<br />
<pre><br />
sudo su -<br />
cp /home/youruser/Downloads/6uuj12uc.iso<br />
cp /usr/share/syslinux/memdisk /boot<br />
ln -s 6uuj12uc.iso biosupgrade.iso<br />
</pre><br />
Now create the boot entry:<br />
<pre><br />
cat >> /etc/grub.d/40_custom <<EOF<br />
menuentry "Lenovo BIOS Upgrade" {<br />
set root=(hd0,1) # <-- check for correct numbering<br />
linux16 /boot/memdisk iso<br />
initrd16 /boot/biosupgrade.iso<br />
}<br />
EOF<br />
update-grub<br />
</pre><br />
Reboot an Select "Lenovo BIOS Upgrade".<br />
<br />
For the next Bios Upgrade you'll just need to copy the new iso file to /boot and adjust the symlink.<br />
<br />
==== Successful tests ====<br />
{|border="1" cellspacing="0" cellpadding="2" style="font-size: 80%"<br />
|-<br />
! Model<br />
! BIOS<br />
! ECP<br />
! Tested by<br />
! Notes<br />
|-<br />
| {{X100e}} 2876-55G || 6xuj05uc.iso || || [[User:nikel]] ||<br />
|-<br />
| {{Edge}} || 1.17 6yuj04uc.iso || || [[User:theBro]] || Current memdisk from syslinux worked (5/2010), the one provided by Ubuntu 9.10 did not.<br />
|-<br />
| {{X200s}} || 1.13 6duj40uc.iso || || [[User:theBro]] || Current memdisk from syslinux worked (5/2010), the one provided by Ubuntu 9.10 did not.<br />
|-<br />
| {{X200s}} || 3.14 6duj41uc.iso || 1.06 || [[User:dag-|Dag Wieers]] || Using memdisk from syslinux 4.01<br />
|-<br />
| {{X201}} 3626-A14 || 1.15 6quj05uc.iso || 1.09 6quj05uc.iso || [[User:Alexander List|Alexander List]] || memdisk from syslinux 3.86<br />
|-<br />
| {{Edge 13"}} 0197-6GG || 1.18 6yuj05uc.iso || || [[User:fethio]] || Current memdisk from syslinux worked (5/2010), the one provided by Ubuntu 9.10 did not.<br />
|-<br />
| {{Edge 13"}} 0197-34Q || 1.21 6yuj08uc.iso || || [[User:Kapil]] || Current memdisk from syslinux debian version 2:4.02+dfsg-7<br />
|-<br />
| {{Edge 13"}} 0197-34Q || 1.18 6yuj05uc.iso || || [[User:Kapil]] || Current memdisk from syslinux debian version 2:4.01+dfsg-1<br />
|-<br />
| {{X200s}} || 3.15 6duj42uc.iso || || [[User:lawnjam]] || Memdisk 4.02 worked, the one provided by Ubuntu 10.04 did not.<br />
|-<br />
| {{X201}} || 1.22 6quj08uc.iso || 1.11 || [[User:dag-|Dag Wieers]] || Using memdisk from syslinux 4.03<br />
|-<br />
| {{T410s}} || 1.41 6uuj12uc.iso || 1.12 || regatus || Gentoo + memdisk (syslinux 4.0.3)<br />
|-<br />
|}<br />
<br />
=== Booting from a Floppy ===<br />
{{WARN|Using a floppy disk '''is NOT recommended'''.}}<br />
<br />
This is how IBM/Lenovo intended it. Use their .exe files to create a bootable floppy with the flash update on it. Boot from the floppy and there you go.<br />
<br />
So, why is it not recommended?<br />
# If something goes wrong, your ThinkPad may be permanently damaged<br />
# Floppy disk drives are not reliable<br />
# Floppy disks are not reliable<br />
# It only works with /dev/fd0, meaning it won't work with a USB floppy<br />
<br />
So, even though Lenovo is now offering "Linux diskette" updaters, that will create a bootable floppy under Linux, using a floppy is still not recommended. Besides, many people don't even ''have'' a floppy drive on their ThinkPad.<br />
<br />
If you really want to do it with a floppy, some tips:<br />
* Use a clean (in the physical sense) floppy drive<br />
* Use new floppies<br />
* Test floppies for errors before starting update process<br />
* Have multiple copies of the update disks ready--if one should fail, replace it with a copy<br />
* Should DOS complain of a read error, '''only''' respond wth "Retry"<br />
<br />
{{NOTE|Should the system encounter a disk read error during the flash process, and you select "Abort", your system could be permanently damaged.}}<br />
<br />
=== Booting from a USB Flash drive ===<br />
<br />
==== Updating the BIOS in MS-DOS mode ====<br />
(This process works for most Thinkpad models that has Windows XP, Windows Vista or Windows 7 OS)<br />
<br />
1. Using HP USB Boot Utility, [http://blogs.oreilly.com/digitalmedia/2004/10/utility-to-make-usb-flash-driv.html create a bootable USB flash drive [http://www.bay-wolf.com/utility/usbkey/win98boot.zip DOS using Windows 98 Boot Disk Floppy Image].<br />
<br />
2. Extract the (*.ima) from the ISO BIOS image (e.g. [http://www.rarsoft.com WinRAR] will do this).<br />
<br />
3. Using a tool that can open .IMA files (such as [http://www.winimage.com/ WinImage]), extract all files to a temporary folder.<br />
<br />
4. Run the HP tool, select the USB device, I used FAT32, create a DOS bootable disk and point at the win98boot folder - then "Start". Warning: this '''formats''' the USB flash drive and all data will be erased!<br />
<br />
5. Once complete (you could test if it boots at this point), copy the extracted BIOS files from the temporary folder you created to the USB flash drive.<br />
<br />
6. Boot from USB flash drive by pressing F11 within the BIOS boot logo. At the DOS command prompt, type "updflsh" and then follow the prompts by pressing "Y" or Enter. Make sure that you have a fully charged battery pack and the AC Adapter is firmly plugged before proceeding with the BIOS update.<br />
'''DO NOT Power off the laptop or unplug the USB flash drive while the update is in progress or else update will fail and your computer will be unable to boot and system board may need to be serviced.'''<br />
<br />
This process takes around 1-2 minutes. A long beep followed by a short beep will notify you that the update is complete and the system will automatically power off.<br />
<br />
7. Power on the laptop then enter the BIOS setup by pressing F1 and Load BIOS defaults.<br />
<br />
==== Using grub4dos (also for Linux) ====<br />
<br />
[http://grub4dos.sourceforge.net/wiki/ grub4dos] is a GNU GRUB fork with interesting features. One of them is the ability to boot ISO images directly off USB flash drives. Contrary to the name, GRUB for DOS works fine on Linux. Follow these steps:<br />
* Download the latest grub4dos package at http://download.gna.org/grub4dos/ (I needed 0.4.4 for my USB2 drive - 0.4.3 did not work.)<br />
* Unpack<br />
* Insert your FAT-32 formatted pendrive<br />
* Run <code>sudo ./bootlace.com /dev/sdX</code>, where /dev/sdX is the device name assigned to your pendrive (use <code>sudo fdisk -l</code> to figure this out). Be very careful to get the device correct or else you could overwrite your hard drive! This creates grub4dos boot sector in MBR of the flash drive.<br />
* Copy the files <code>grldr</code> and <code>menu.lst</code> to the root directory of your pendrive.<br />
* Convert the ThinkPad .IMG file to a .ISO file using <code>genisoimage -b 1yuj18us.img -c boot.catalog -o 1yuj18us.iso 1yuj18us.img</code><br />
* Copy the ISO image to the root directory of your pendrive (e.g. <code>1yuj18us.iso</code>).<br />
* Edit <code>menu.lst</code> on the pendrive and include the following section (of course putting the appropriate ISO image name):<br />
<pre><br />
title thinkpad-bios<br />
map (hd0,0)/1yuj18us.iso (hd32)<br />
map --hook<br />
chainloader (hd32)<br />
boot<br />
</pre><br />
* Reboot and press F12 to select booting from USB.<br />
* If all went well, you should be able to boot the Thinkpad's ISO image and flash the BIOS. I tested it successfully on T400. [[User:Wanted|Wanted]] 20:23, 16 July 2010 (UTC)<br />
<br />
==== Using UNetbootin ====<br />
<br />
Unetbootin 422 worked with the image files unpacked with cabextract on my x31.<br />
<br />
{{HELP|How exactly did you do this? It failed for me. Does it work only with .IMG files that are converted to .ISO files, or can .ISO files provided by Lenovo also work (how?)}}<br />
<br />
=== Booting from a Network Boot Image ===<br />
BIOS, ECP, CD/DVD and Harddisk firmware disks can be booted over the network with [http://syslinux.zytor.com/pxe.php PXELINX] as part of the [http://syslinux.zytor.com/ SYSLINUX] package. This requires that you have a DHCP and tftp server configured and setup properly on your network, and is probably not for the faint of heart.<br />
<br />
Make sure the firmware bootdisk is in linux 'dd' format, as the self-extracting .exe disks from the IBM website cannot be booted directly as such.<br />
<br />
This worked on the {{R31}}, {{X22}}, {{T21}}, {{T30}} and {{T41p}} with various firmware updates. On the {{X22}}, it worked with ECP 1.30 but '''not''' with BIOS 1.32<br />
<br />
= Updating without battery or with dead battery =<br />
<br />
This is a last-resort approach. Use this only if everything else fails.<br />
<br />
The BIOS updater may refuse to update a BIOS without a battery, or if the battery charge is too low. In that case, extract the disk image with cabextract as per instructions above and dd it to an usb stick. (This will destroy the data on it, of course.) Acquire a pure DOS boot cd such as Windows 98 recovery CD and boot that.<br />
<br />
Use F8 to abort the boot sequence of a windows 98 boot CD. If you need CD-ROM support, load CD-related things but say no to everything else. In particular, avoid loading himem.sys and doskey, as the presence of either program causes Phoenix bios flash tool phlash16.exe to abort.<br />
<br />
Change to the volume where flash2.exe and other tools are installed, and execute "flash2.exe /u". This should bypass the battery check and perform the flashing. If that doesn't work, check if the update disk contains a tool called "phlash16.exe". This can be used directly to flash the image, and the invocation is typically "phlash16 /exit $01c80000.fl1".<br />
<br />
This method won't work for the Thinkpad {{560X}} (and likely other older models). Since the 560X is a bit older, it won't be a big surprise if the battery is dead as a dodo. Here's how to update the bios in this case: download the spsdi833 bios update and create the update floppy. If you have trouble creating this disk, [http://rapidshare.com/files/413598837/spsdi833-bios-560X.zip.html download an archive with the files] and put them on a floppy. Don't worry about making it bootable. Also, you will need a DOS bootdisk. A Windows 98 bootdisk will be fine. Boot the system with the W98 bootdisk, do not load CD-rom support. Remove the W98 bootdisk and put the disk with the BIOS update in the drive. If you would now run UPDTFLSH you would get the battery message, so don't do that. If you open UPDTFLSH.exe with a text editor, you would find some lines about UPDTROM. UPDTROM is the actual flash tool, but you can't simply run it just like that. Run the following:<br />
<br />
*updtrom /np /prep1<br />
*updtrom /np /prep2<br />
*updtrom /np /prep3<br />
*updtrom /np /romcmp /romflsh /prep4<br />
*updtrom /np /h8flsh /h8img /model<br />
<br />
Yes, you need to run updtrom five times. Hold your breath and reboot the machine. It's done.<br />
<br />
Perhaps not all these lines are necessary, but to be sure I ran them all, and this worked for me. So I suggest you do the same. This could probably be done from the harddisk as well, but I did not test that.<br />
<br />
=After updating=<br />
Lenovo recommends reseting your BIOS settings to their factory defaults after a firmware update.<br />
<br />
==DMI IDs==<br />
Please consider updating the [[List of DMI IDs]] after updating your BIOS.<br />
<br />
= Special Cases =<br />
* In one case, see ([[APM setup on a type 2379 ThinkPad T40]]), it was not possible to upgrade the BIOS from Windows XP; a downgrade to Windows 98 was required to successfully run the BIOS upgrade app. The symptoms in this case were that, once the files had been extracted to the hard disk, and the machine was to reboot into the upgrade app, it would beep and hang just before reboot, requiring a power cycle. Once the power was cycled, it would simply reboot back into XP without performing any BIOS upgrade actions. So even if you have Windows, you may still need to use the info on this page.<br />
<br />
== Updating Thinkpad X Series ==<br />
The special update instructions for {{X_Series}} Thinkpads are quite long. You can find them at the page [[BIOS_Upgrade/X_Series]].<br />
<br />
<br />
<br />
<br />
<br />
----<br />
<br />
{{footnotes|<br />
# For lots of detail on making and burning .iso files, see The Linux Documentation Project (tldp.org): [http://tldp.org/HOWTO/CD-Writing-HOWTO-3.html#ss3.1 3.1 Writing CD-ROMs (pure data)].<br />
}}</div>Regatushttps://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&diff=50730BIOS Upgrade2011-02-25T23:16:13Z<p>Regatus: GRUB2 Boot CD Image rewrite</p>
<hr />
<div>{| width="100%"<br />
|style="vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;" | __TOC__<br />
|style="vertical-align:top" |<br />
This page is meant to describe ways to update the BIOS on a ThinkPad that only runs Linux for users that don't have ready access to Windows. If you have Windows on your ThinkPad you can just boot into it and follow instructions on the Lenovo website.<br />
<br />
Updating the BIOS in Linux (with few exceptions) '''is not officially supported''' by Lenovo. However there are work arounds.<br />
<br />
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems.<br />
<br />
'''Proceed at your own risk!'''}}<br />
|}<br />
<br />
= Downloading New Firmware =<br />
{{WARN|Flashing the wrong firmware for your hardware may cause permanent damage to your ThinkPad. It is up to you to confirm that the firmware you are using is correct.}}<br />
<br />
A list of links to firmware downloads can be found at [[BIOS Upgrade Downloads]] for most Thinkpad models. You can also check the Lenovo Support website's [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=TPAD-MATRIX|ThinkPad driver matrix].<br />
<br />
Lenovo provides firmware upgrades in a variety of packages:<br />
* Diskette<br />
* Non-diskette<br />
* Linux diskette<br />
* BIOS Utility<br />
* Bootable CD<br />
<br />
Not every type of package is available for every model.<br />
<br />
The ''BIOS Utility'' and ''Bootable CD'' packages combine the BIOS and ECP firmwares. For the other packages, there is one for each firmware.<br />
{| align="right" style="width:20em;"<br />
| {{HELP|Can an image be extracted from a "Linux diskette" .exe file?}}<br />
|}<br />
<br />
The ''Linux diskette'' is just the ''Diskette'' package that runs on Linux instead of Windows/DOS. It's unknown if a boot image can be extracted from it. <br />
<br />
You may need to try different packages to find the one from which you can extract a boot image.<br />
<br />
== Two Firmwares: BIOS and ECP ==<br />
{{WARN|Flashing incompatible firmwares, or flashing them in the wrong order, may cause permanent damage to your ThinkPad.}}<br />
<br />
It is important to understand that Thinkpads from IBM have two separate firmwares: the BIOS, and the Embedded Controller Program (ECP).<br />
<br />
A given BIOS version will require a certain version of the ECP. You must read the Lenovo website and/or .txt files to confirm which BIOS is compatible with which ECP, and '''the order in which to update them'''. <br />
<br />
=== Update Order ===<br />
<br />
The IBM documentation is sometimes unclear about the order in which these two firmwares should be updated. When in doubt (i.e. IBM didn't provide specific instructions for your model or a particular firmware update), '''update the ECP first, and then the BIOS'''. Also, make sure to do the two updates '''immediately one after the other'''.<br />
<br />
The EC firmware is usually much better at backwards compatibility than the BIOS.<br />
<br />
(Updaters for newer models take care of both BIOS and EC, and use automatically whatever sequence is needed, so you don't have to worry about it.)<br />
<br />
== Installed Firmware ==<br />
You can check the current BIOS and ECP versions on your ThinkPad by using '''dmidecode'''. For example:<br />
<br />
{{cmdroot|dmidecode -s bios-version}}<br />
<br />
1RETDRWW (3.23 )<br />
<br />
{{cmdroot|dmidecode -t 11}}<br />
<br />
# dmidecode 2.9<br />
SMBIOS 2.33 present.<br />
Handle 0x0029, DMI type 11, 5 bytes<br />
OEM Strings<br />
String 1: IBM ThinkPad Embedded Controller -[1RHT71WW-3.04 ]-<br />
<br />
Showing BIOS version 3.23 (1RETDRWW) and ECP version 3.04 (1RHT71WW).<br />
<br />
===DMI IDs===<br />
Please consider updating the [[List of DMI IDs]] before (and after) updating your BIOS.<br />
<br />
= Updating Firmware =<br />
<br />
There are two basic steps to updating the firmware (either the BIOS or the ECP) on a ThinkPad not running Windows:<br />
# Extract a bootable update image<br />
# Boot from that image<br />
<br />
== Extracting an update image ==<br />
{{WARN|Though this process has been successfully tested on many versions of .exe files found on IBMs website, that doesn't mean it will work for all of them. '''Proceed at your own risk'''. Consult the testing tables farther down of this page to see other users' experience with your model Thinkpad.}}<br />
{{NOTE|These EXE unpack procedures no longer work on more recent downloads, as Lenovo has changed the packaging format. You may still be able to unpack them using wine, or alternatively an actual (virtual) Windows machine.}}<br />
Older .exe installers from Lenovo mostly appear to be just a wrapper license program around Windows .cab files (see [[How_to_change_the_BIOS_bootsplash_screen|BIOS-Bootsplash]]). If you install the Linux program [http://freshmeat.net/projects/cabextract/ '''cabextract'''] you can expand these .cab files directly. For example, if you downloaded {{path|1iuj13us.exe}} from Lenovo:<br />
<br />
:{{cmduser|cabextract 1iuj13us.exe}}<br />
<br />
Extracting cabinet: 1iuj13us.exe<br />
extracting 1IUJ13US.IMG<br />
extracting BIOSUPTP.EXE<br />
extracting DOBOOT.EXE<br />
extracting DOSBOOT.COM<br />
extracting DOSBOOT.SYS<br />
extracting DOSBOOT.VXD<br />
extracting DOSBOOT2.COM<br />
extracting ECTLUPTP.EXE<br />
extracting EFLASHAS.SYS<br />
extracting HDFWUPTP.EXE<br />
extracting IBMTPI.XML<br />
All done, no errors.<br />
<br />
The file we want is '''FILENAME.IMG''', with "FILENAME" being the .exe. you downloaded. E.g., {{path|1IUJ13US.IMG}}.<br />
<br />
(If this does not work for the Non-diskette .exe, try it on the Diskette .exe. It's reported, for example, that the Non-diskette .exe for BIOS version 3.23 for the T41p was not extractable, but the Diskette .exe worked perfectly, with {{cmduser|cabextract}} delivering a .IMG file.)<br />
<br />
==== Testing the Image ====<br />
<br />
You can test that FILENAME.IMG is really a floppy image by running:<br />
<br />
{{cmdroot|mkdir /tmp/mntfloppy}}<br />
<br />
{{cmdroot|mount -o loop FILENAME.IMG /tmp/mntfloppy}}<br />
<br />
If a '''ls''' command on the image returns what looks like a DOS floppy, and no read errors were displayed, you have a pretty good chance that the image is usable. For example:<br />
<br />
{{cmdroot|ls /tmp/mntfloppy}}<br />
$0195000.FL1 069580.PAT 06d2.HSH IBMDOS.COM TPCHKS.EXE<br />
0691.HSH 06D0.PAT 06d6.HSH LOGO.BAT UPDTFLSH.EXE<br />
0691.PAT 06D1.PAT 06d8.HSH LOGO.SCR UPDTMN.EXE<br />
0694.HSH 06D2.PAT CHKBMP.EXE PHLASH16.EXE USERINT.EXE<br />
0694.PAT 06D6.PAT COMMAND.COM PREPARE.EXE UTILINFO.EXE<br />
0695.HSH 06D8.PAT CONFIG.SYS PROD.dat lcreflsh.bat<br />
0695.PAT 06d0.HSH FLASH2.EXE QKFLASH.EXE<br />
069580.HSH 06d1.HSH IBMBIO.COM README.TXT<br />
<br />
Unmount the image after you are done testing:<br />
<br />
{{cmdroot|umount /tmp/mntfloppy}}<br />
<br />
== Booting from update image ==<br />
Now that you have a bootable image for the correct update for you hardware, you need to do is boot from that image to install the update.<br />
<br />
There are different ways to do that:<br />
* [[#Booting from a CD|Boot from a CD]]<br />
* [[#Booting_using_GRUB|Boot from the image, using GRUB]]<br />
* [[#Booting_from_a_floppy|Boot from a floppy]]<br />
* [[#Booting_from_a_USB_Flash_drive|Boot from a USB Flash drive]]<br />
<br />
=== Booting from a CD ===<br />
{| align="right" style="width:40em;"<br />
|{{HINT|If there is a ''Bootable CD'' image available, e.g., FILENAME.iso, just download that, instead of mucking around with image files.}}<br />
|}<br />
If you are going to update the firmware by booting from a CD, you need to turn FILENAME.IMG that you extracted above into an .iso file.<br />
<br />
The [http://en.wikipedia.org/wiki/El_Torito_%28CD-ROM_standard%29 El Torito Bootable CD Specification] is a wonderful thing. Thanks to it, a bootable CD can be made with a bootable floppy image in such as way that the CD believes that it is a 2.88 MB floppy drive. This allows you to replace a boot floppy by a boot CD in nearly all situations.<br />
<br />
It is very easy to create such a bootable CD ISO image in Linux using the '''mkisofs''' tool{{footnote|1}}. Run a command as follows:<br />
<br />
{{cmdroot|genisoimage -b 1WUJ25US.IMG -c boot.catalog -o bootcd.iso 1WUJ25US.IMG}} #or older mkisofs<br />
<br />
Where *.IMG is the name of the image file extracted above. This creates a CD with one file on it and marks that file as the boot image.<br />
<br />
You can now burn the {{path|bootcd.iso}} to a CD in your favorite CD-burning program.<br />
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems. '''Proceed at your own risk!'''}}<br />
<br />
Boot from the CD to update your firmware. Remember to have [[BIOS_Upgrade#Two_Firmwares:_BIOS_and_ECP|both BIOS and ECP firmware boot-CDs]] ready, as needed, and use them in the [[#Proper_Order|proper order]].<br />
<br />
==== Successful tests ====<br />
<br />
{| border="1" cellspacing="0" cellpadding="2" style="font-size:80%; vertical-align:top;"<br />
! Model<br />
! Tested by, and comments<br />
|-<br />
| {{600E}} 2645-4AU ||<br />
* George Tellalov <gtellalov_dontspamme@bigfoot.com>. BIOS 1.16 from spsdin36.exe worked perfectly with the method bootable cd from floppy image. I highly recommend this upgrade because it made my ibm-acpi module load (it wouldn't load before) and fixed some suspend to ram problems. Here's the [http://george.tellalov.info/bios_upgrade_600e_spsdin36.iso cd image] I used. Use at your own risk. You can send me a chocolate if it works for you ;)<br />
|-<br />
| {{600E}} 2645-5bU ||<br />
* Mike Vincent<matchstc-putobvioushere.com>. Bios 1.16 from spsdin36.exe and then to the boot cd worked great for me. Thought I had bricked it three separate times using a "real" floppy! Each from different diskettes .The updater would start, give me the "going to take30 seconds" speech...and then access the HD for 10 minutes. Each time it would reboot fine. Did the cd as described above...worked great first time. Perhaps 10 year old seldom used floppy disc drives have some challenges?<br />
|-<br />
| {{600X}} 2645 ||<br />
* Jonathan Byrne <jonathan@RemoveThisToMailMe.yamame.org>. BIOS 1.11 from spsuit55.exe worked perfectly using cabextract/CD method.<br />
|-<br />
| {{600X}} 2645 ||<br />
* Andy Barnes <andy@RemoveThisToMailMe.itchypaws.co.uk>. As per Jonathan above, extracted BIOS 1.11 from spsuit55.exe using cabextract, created a CD boot image and burnt to CD. Worked flawlessly - thanks to everyone who contributed to this article!<br />
|-<br />
| {{A20p}} 2629-6VU ||<br />
* Chris Pickett http://www.sable.mcgill.ca/~cpicke/. BIOS 1.11 flashed fine with cabextract/CD method.<br />
|-<br />
| {{A21e}} 2628-JXU ||<br />
* Amit Gurdasani <gurdasani at yahoo dot com>. BIOS 1.13 flashed fine with cabextract/CD method. Alarmingly, after the BIOS update, the laptop beeped but did not shut down as was indicated onscreen -- that was frozen on the "do not shut down the laptop" screen. On power down and up again, the BIOS setup showed the newer BIOS image running, and Linux booted up fine. Linux ACPI didn't complain about the BIOS being too old either.<br />
|-<br />
| {{A31p}} 2653 ||<br />
* Matthias Meinke largeeddy@gmx.at, BIOS 1.09 1NET15WW flashed fine with cabextract/CD method.<br />
|-<br />
| {{A31}} 2652 ||<br />
* [[User:Wnoise|Aaron Denney]], BIOS 1.13 flashed fine with cabextract/CD method. The cabextract/CD method also worked for BIOS 1.10.<br />
|-<br />
| {{R30}} ||<br />
* Jarrod, 30 August 2007, Thinkpad R30 Type 2656-E0M. BIOS updated to 1.40 (1CETF0WW) using floppy disk/mkisofs/cdrecord. Worked fine, no problems.<br />
|-<br />
| {{R31}} ||<br />
* [http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html Mathias Dalheimer]<br />
* Sebastian Sauer (with cabextract/CD method)<br />
|-<br />
| {{R40}} ||<br />
* Matthew Lambie, http://lambie.org<br />
* Antti S. Lankila, update to 1.27 via direct use of phlash16.exe against a BIOS image. Normal method did not work because the battery is dead.<br />
|-<br />
| {{R50}} 1836-3SU ||<br />
* jlbartos <jlbartos at hotmail dot com><br />
|-<br />
| {{R50e}} 1834-PTG ||<br />
* item <item at freemail dot hu> : successfully finished with cabextract/CD method for "1wuj25us.exe" (BIOS version 1WET90WW (2.10), Release Date: 2006/12/22)<br />
* Christos Nouskas <nouskas at gmail dot com>: upgraded to BIOS version 1WET90WW (2.10) and EC version 1VHT28WW (1.04) using GRUB (BIOS first / EC second)<br />
|-<br />
| {{R51}} 1829 ||<br />
* Robert Uhl <rob dot uhl at gmx dot de>, Jellby <jellby at yahoo dot com><br />
|-<br />
| {{R51}} 1830-RM7 ||<br />
* Will Parker <stardotstar at sourcepoint dot com dot au> successfully flashed 3.20 using existing 3.04 ECP and retained custom boot splash.<br />
|-<br />
| {{R51}} 2887 ||<br />
* Ingo van Lil <inguin at gmx dot de><br />
|-<br />
| {{R52}} 1858 ||<br />
* Stuart McCord <stuart dot mccord at gmail dot com> flashed both BIOS and ECP using cabextract, BIOS flashed first as on IBM website<br />
|-<br />
| {{T20}} ||<br />
* Franz Hassels <fhassel at suse dot com><br />
|-<br />
| {{T22}} ||<br />
* Daniel Maier <nusse teamidiot de><br />
* Mathias Behrle (with cabextract/CD method, Version 1.07 => 1.12) --[[User:Mathiasb|Mathiasb]] 11:58, 14 December 2006 (CET)<br />
* Bob Skaroff (cabextract/CD), 1.06 => 1.12<br />
* Leo Butler (cabextract/CD), 1.11 => 1.12<br />
|-<br />
| {{T23}} ||<br />
* Bart Snapp <snapp at uiuc dot edu> Note: I followed IBM's instructions to flash the BIOS '''first''' and the Embedded Controller '''second'''.<br />
* Moy Easwaran: BIOS 1.18 / EC 1.06a via cabextract and CD-boot. The BIOS-update exe generated errors in Windows 2000.<br />
* Joe Renes: BIOS 1.18 / EC 1.06a on 2006-03-20 via cabextract and CD-boot. Piece of cake.<br />
* Raphael Errani: BIOS 1.20 / EC 1.06a on 2006-11-06 via cabextract and CD-boot (using mkisofs). Worked without errors. 1st Bios, 2nd EC<br />
* Myron Getman: BIOS 1.20 / EC 1.06a on 9/10/08 via cabextract --> k3b --> CD-boot. Worked like a charm. First BIOS update with Linux!<br />
* Leo Butler: BIOS 1.13 / EC 1.04 to 1.20/1.06a via cabextract and syslinux/memdisk boot through grub. Worked like a charm and no wasted CD.<br />
|-<br />
| {{T30}} ||<br />
* Martin Gühring <guehring at gmail.com> BIOS 2.10 via cabextract the Non-Diskette BIOS -> mkisofs '''in the directory the exe was extracted''' to generate the iso -> burn the iso -> boot the CD<br />
|-<br />
| {{T40}} ||<br />
* Sean Dague, http://dague.net<br />
* Justin Mason, http://jmason.org<br />
* Ivanhoe (Bios 3.19)<br />
* Alessandro Raulino (roger_2) EC 3.04 & BIOS 3.23 flashed with cabextract/CD method<br />
* Nick Jenkins, using BIOS 3.23 with the '''Non-diskette updater + cabextract method''', then [[#Creating_a_Bootable_CD_from_a_Floppy_Image|created a bootable CD from the cabextracted .IMG file]], then boot that ISO, and it worked great!<br />
* xyz: BIOS 3.23 & EC 3.04 flashed with cabextract/CD method. No problem.<br />
|-<br />
| {{T40p}} ||<br />
* Lukas Krähenbühl, ismo at pop dot agri dot ch<br />
* Thomas Achtemichuk, tom at tomchuk dot com. BIOS 3.15 flashed fine with cabextract/CD method<br />
* paper, BIOS 3.23 (1RETDRWW) flashed fine with cabextract/genisoimage method.<br />
|-<br />
| {{T41}} ||<br />
* Lev Givon (Bios 3.15 / EC 3.04) <lev at columbia dot edu><br />
* Ernesto Hernández-Novich (Bios 3.19 / CP 3.04) < emhn at usb dot ve ><br />
* [http://maebmij.org James Ballantine] (Bios 3.21 / CP 3.04) using nondisk/cabextract/CDRW<br />
* Vladimir Pycha (to Bios 3.23 / EC 3.04, from Bios 3.20 / EC 3.04) using nondisk/cabextract/CDRW. Booted with external USB optical drive (I have internal drive broken) - at the beginning of the boot sequence press PAUSE, then wait several seconds, then ENTER, then F12 and select the drive. Without pressing PAUSE I am not able to boot from USB optical/hard drive as the drive does not show in the F12 boot list menu.<br />
|-<br />
| {{T41p}} ||<br />
* Nils Newman, work great. (Version: Bios 3.14 / Embedded Controller 3.04)<br />
|-<br />
| {{T42}} 2373-JXG ||<br />
* magarzo <mdr.magarzo at gmail.com> (BIOS v.3.23 / Embedded Controller v.3.04 / both with cabextract to non-diskette v. plus Bootable CD)<br />
|-<br />
| {{T42}} ||<br />
* Dan (BIOS 3.20 / EC 3.04, cabextract/CD method) <tronic171 at evilphb.org><br />
* Hirosh Dabui <hirosh@dabui.de><br />
|-<br />
| {{T42p}} ||<br />
* Robert Schiele <rschiele@uni-mannheim.de>, Joern Heissler <joern@heissler.de>, Hirosh Dabui <hirosh@dabui.de><br />
|-<br />
| {{T43}} 1871-W34 ||<br />
* Florian Boucault <florian at boucault dot ath dot cx> (Version: Bios 1.23 / Embedded Controller 1.03)<br />
|-<br />
| {{T43}} 1871-4AG ||<br />
* [http://blog.martinmcdowell.com/about/contact Martin McDowell] 28-Feb-2010<br />
* BIOS 70ET62WW (1.22) to 70ET69WW (1.29), <br />
* ECP 70HT26WW (1.03) to 70HT28WW (1.05)<br />
Both successfully upgraded from CD Image made from the instructions on this website.<br />
|-<br />
| {{T43}} 2886 ||<br />
* Till Heikamp <t dot heikamp at geniusbytes dot com> (Bios 1.22 to 1.29, Embedded Controller 1.03 to 1.06)<br />
|-<br />
| {{T43}} ||<br />
* Conrad Rentsch <Conrad dot Rentsch at t-online dot de> (Version: Bios 1.29 / Embedded Controller 1.06)<br />
* Tom Heady <tom-thinkwiki.org@punch.net><br />
|-<br />
| {{T60}} ||<br />
* 1951 Roman Komkov <roman at komkov dot org dot ru> (Bios 1.07 to 2.13) Successfully upgraded from CD Image<br />
* 8744-HCG Konstantin Khorenko <horenko at mail dot ru> (Bios 1.06 to 1.18) Successfully upgraded from CD Image<br />
|-<br />
| {{T61}} ||<br />
* Kai Weber <kai.weber at glorybox dot org> (Bios 1.06 to 1.26) Successfully upgraded from CD Image<br />
|-<br />
| {{X20}} ||<br />
* Neil Caunt <retardis at gmail dot com><br />
|-<br />
| {{X21}} ||<br />
* Patrick Leickner <ranma at web dot de>, (BIOS 2.21->2.25 / EC 1.31->1.36) via non-disk/cabextract/mkisofs/cdrecord<br />
|-<br />
| {{X22}} ||<br />
* David Emery <dave at skiddlydee dot com>, (EC 1.30, BIOS 1.32 using non-disk/cabextract/CD method)<br />
|-<br />
| {{X23}} ||<br />
* Nils Faerber <nils dot faerber at kernelconcepts dot de> (Embedded Controller 1.30, BIOS 1.32 with cabextract/CD method)<br />
|-<br />
| {{X30}} ||<br />
* Hella Breitkopf, [http://www.unixwitch.de/ www] (Embedded Controller 1.04, BIOS 1.07 with cabextract/CD method)<br />
* William Roe <willroe at gmail dot com> (Embedded Controller 1.06, BIOS 1.09 - cabextract/mkisofs/wodim)<br />
|-<br />
| {{X31}} ||<br />
* Grzegorz Kuśnierz <koniu at sheket dot org> (Embedded Controller 1.08, BIOS 3.01 with cabextract/CD method)<br />
|-<br />
| {{X31}} ||<br />
* Paul Litwack <paullitwack at gmail dot com> (Embedded Controller 1.08, BIOS 3.02 with cabextract/unetbootin method)<br />
cabextract & unetbootin are staight foward(toggle floppy image instead of iso image in unetbootin dialog)<br />
No problems with update software.<br />
x31 has to be cajoled into booting from usb. Boot hangs when pendrive is present. Hit the key to bring up the boot menu. <br />
Unplug the pendrive. Let the boot menu come up. Plug in the pendrive. Select the pendrive in the boot menu and it boots. <br />
|-<br />
| {{X40}} ||<br />
* Robbie Stone <robbie@serendipity.cx><br />
* Andy Shevchenko <andy.shevchenko@gmail.com> (Fine by cabextract/CD method)<br />
|-<br />
| {{Z60m}} ||<br />
* [[User:Morle|Morle]] 01:09, 17 Nov 2007 (CEST), (Embedded Controller 1.18 and Bios 1.24 with cabextract/CD method)<br />
|}<br />
<br />
==== Unsuccessful tests ====<br />
{| border="1" cellspacing="0" cellpadding="2" style="font-size:80%; vertical-align:top;"<br />
! Model<br />
! Tested by, and comments<br />
|-<br />
|<pre> </pre> <!-- Placeholder --><br />
|<br />
|}<br />
<br />
=== Booting using GRUB ===<br />
{|<br />
| style="width:75%" | {{WARN|Many have warned '''not''' to use the SYSLINUX image-loader '''memdisk''' to boot firmware update images.}}<br />
| style="font-size:80%" | {{HELP|Who are these "many"? Link to a discussion?}}<br />
|}<br />
Once the bootable image, FILENAME.IMG, is extracted from the .exe, it can be booted directly through GRUB without the need of burning a CD, using the [http://syslinux.zytor.com/ SYSLINUX] image-loader '''[http://syslinux.zytor.com/memdisk.php memdisk]'''.<br />
<br />
Locate the '''memdisk''' file from the syslinux package. You can search for it with '''find''': <br />
<br />
{{cmdroot|find /usr -name memdisk}} #or just use "dlocate memdisk" or "locate memdisk" if these programs are installed<br />
<br />
If {{path|/usr/.../memdisk}} is not present, syslinux is not installed. You will need to install it to boot a .IMG from GRUB.<br />
<br />
Copy both the '''FILENAME.IMG''' and '''memdisk''' files into {{path|/boot}} directory. For example:<br />
<br />
{{cmdroot|cp ./FILENAME.IMG /usr/share/syslinux/memdisk /boot/}}<br />
<br />
Open {{path|/boot/grub/menu.lst}} in your favourite editor. '''Copy''' the active section into a '''new section''', and edit the new section:<br />
{| border="1" cellspacing="0" cellpadding="2"<br />
! Parameter<br />
! Instructions<br />
! Example<br />
|-<br />
| ''title'' || Pick a name for the new section. This will show up in the GRUB boot menu. || <tt>title IBM ECP Update</tt><br />
|-<br />
| ''root'' || Do not change. This is the partition containing the {{path|/boot}} directory || <tt>root (hd0,0)</tt><br />
|-<br />
| ''kernel'' || '''/boot/memdisk''' will allow you to boot an image file. || <tt>kernel /boot/memdisk</tt><br />
|-<br />
| ''initrd'' || This is the name of the firmware-updater image file, e.g., 1IUJ13US.IMG || <tt>initrd /boot/1IUJ13US.IMG</tt><br />
|}<br />
<br />
Do '''not''' modify the original section in {{path|/boot/grub/menu.lst}}, or you might not be able to boot back to the operating system.<br />
<br />
If you have [[#Two_Firmwares:_BIOS_and_ECP|two firmware updates to do]], you will need a section for each firmware's FILENAME.IMG in {{path|/boot/grub/menu.lst}}.<br />
<br />
{{NOTE|If both BIOS and ECP are to be updated, be sure to update them in the [[#Proper_Order|proper order]].}}<br />
<br />
{{WARN|By following any of the instructions here you are accepting the '''very real risk''' of turning your ThinkPad into a big expensive paper weight, as a firmware update gone wrong can create unfix-able problems. '''Proceed at your own risk!'''}}<br />
<br />
Reboot your computer, entering the GRUB menu and selecting ''IBM BIOS Update'', or whatever you named the new section in {{path|/boot/grub/menu.lst}}.<br />
<br />
==== GRUB2 ====<br />
With grub2, one would ''append'' the following to ''/boot/grub/grub.cfg'' :<br />
menuentry "My BIOS Upgrade" {<br />
set root=(hd0,0) #should match the others in your grub.cfg<br />
linux16 /boot/memdisk<br />
initrd16 /boot/1WUJ25US.IMG #or whatever yours is<br />
}<br />
<br />
==== Successful tests ====<br />
{|border="1" cellspacing="0" cellpadding="2" style="font-size: 80%"<br />
|-<br />
! Model<br />
! BIOS<br />
! ECP<br />
! Tested by<br />
! Notes<br />
|-<br />
| {{R30}} 2656-64G || v.1.40 || || [[User:english.voodoo|Yuri Spirin]] ||<br />
|-<br />
| {{R40}} 2723 || 1OHJ11WW.IMG || 1PUJ25US.IMG || [[User:qunying|Qunying]] || memdisk from syslinux 3.70 (slackware 12.1)<br />
|-<br />
| {{R50e}} 1834NV1 || 1WUJ25US.IMG || || [[User:Jidanni|Jidanni]] || memdisk from syslinux-common 2:3.84+dfsg-1 (Debian), grub2 (1.96+20080724-16)<br />
|-<br />
| {{R51}} 2888 || || || || <br />
|-<br />
| {{T23}} 2647 || 1AUJ20US.IMG || 1AHJ06US.IMG || [[User:cthon|cthon]] || memdisk from syslinux 4.02-1 (arch linux) <br />
|-<br />
| {{T40}} 2373 || 1RUJ37US.IMG || 1RHJ10U2.IMG || [[User:Euphoria|Euphoria]] || memdisk from syslinux 1:3.31-4 (Debian package version)<br />
|-<br />
| {{T40}} 2373 || 1RHJ10U2.IMG<br />(3.04, 2004-11-15) || 1RUJ37US.IMG<br />(3.23, 2007-07-03) || [[User:Morphics|Morphics]] || cabextract and memdisk from syslinux 3:1.36-4ubuntu5<br />
|-<br />
| {{T41}} 2373 || 1RUJ37US.IMG<br />(3.23, 2007-07-03) || || [[User:Tonko|Tonko]] || Fedora 12<br />
|-<br />
| {{T41p}} 2373 || 1RUJ37US.IMG<br />(3.23, 2007-07-03) || || [[User:Deggel|Deggel]] || cabextract and memdisk from syslinux 3.71 on gentoo <br />
|-<br />
| {{T41p}} 2373 || || || [[User:MrStaticVoid|James Lee]] || <br />
|-<br />
| {{T42}} 2373 || 1RUJ37US.IMG || || [[User:Secsaba|Simon Csaba Endre]] || Ubuntu 10.04 Pre-update versions: BIOS v3.21 / ECP v3.04 After-update versions: BIOS v3.23 / ECP v3.04<br />
|-<br />
| {{T42p}} 2374 || 1RUJ37US.IMG || 1RHJ10U2.IMG || [[User:aderigs|Achim Derigs]] || Debian GNU/Linux sid, works with `linux16 ...' and `initrd16 ...' only<br />
|-<br />
| {{X31}} 2673-CBU || || || [[User:JanTopinski|Jan Topinski]] || <br />
|-<br />
| {{X31}} 2672-CXU || || || [[User:TheAnarcat|TheAnarcat]] || <br />
|-<br />
| {{X31}} 2672-JBU || 3.02 1QUJ19US.IMG || 1.08 1QUJ08US.IMG || [[User:twbxf4|twbxf4]] || worked flawlessly<br />
|-<br />
| {{X31}} 2673-58G || || || [[User:FaUl|FaUl]] || <br />
|-<br />
| {{X31}} 2672-PG9 || || || [[User:Starox|Starox]] || a big moment between starting update and the updating window <br />
|-<br />
| {{X31}} 2672-PG9 || v3.02 1QUJ19US.IMG || v1.08 1QHJ08US.IMG || [[User:TeeLittle|TeeLittle]] || Apr 10, 2010: Using Debian 5.0 "Lenny" + package syslinux-common (Version: 2:3.71+dfsg-5). Pre-update versions: BIOS v2.11 / ECP v1.03 <br />
|-<br />
| {{X40}} 2371 || 2.07 1uuj21us.exe || 1.62 1uhj10us.exe || [[User:Antialize|Jakob Truelsen]] || Worked on two X40-2371 <br />
|-<br />
| {{X40}} 2386 || 2.08 1uuj22us.exe || 1.62 1uhj10us.exe || [[User:Antialize|Galen Seitz]] || memdisk from syslinux 3.61<br />
|}<br />
(More successful grub tests are scattered in the previous table too.)<br />
<br />
==== Unsuccessful tests ====<br />
{|border="1" cellspacing="0" cellpadding="2" style="font-size: 80%"<br />
|-<br />
! Model<br />
! style="width:10em;" | BIOS<br />
! ECP<br />
! Tested by<br />
! Notes<br />
|-<br />
| {{R32}} 2658-NWU || 2.16 1MUD23US.IMG || n/a || [[User:Millman12345|Mike Millman]] || Boots into the BIOS flashing program just fine, but when it comes time to start the update process, the system hangs completely. Luckily, it hangs before it actually modifies anything... A hard reboot got me back into a working system. I would not recommend this route!<br />
|-<br />
| {{R52e}} 1846-CGL || 1.29<br />76UJ28UD.IMG || 1.01 || [[User:Lacyc3|Laszlo Takacs]] || Boots into BIOS flashing program but it hangs up before the upgrade process. I used memdisk from syslinux-4.01.<br />
|-<br />
| {{T43}} 2668-F7G || 1.29 1YUJ18US.IMG || || [[User:Maus3273|Maus3273]] || I got into the bios program, but the machine never restarts after initiating the upgrade.<br />
|-<br />
| {{X41}} 2525-FAG || 2.09 74UJ15US || || [[User:Ukleinek|Uwe Kleine-König]] || booted fine (Debian syslinux 2:3.71+dfsg-5), but didn't succeed to write, just hang at "Don't restart or remove diskette etc. pp" (not bricked). Worked fine via CD method.<br />
|- <br />
| {{X41}} 2525-F8G || 2.06 74UJ12US.IMG<br />2.07 74UJ13US.IMG<br />2.09 74UJ15US.IMG || || [[User:ladoga|Lauri Koponen]] || hangs while initializing the actual BIOS flashing process<br /> ECP: 1.02 74HJ03US.IMG works<br />
|-<br />
|}<br />
<br />
==== GRUB2 Boot CD Image ====<br />
Download the bootable iso file from the Lenovo Website. Copy the file 'memdisk' from the syslinux package to /boot. Also create a symlink, so you do not have to change the grub configuration for each bios upgrade:<br />
<pre><br />
sudo su -<br />
cp /home/youruser/Downloads/6uuj12uc.iso<br />
cp /usr/share/syslinux/memdisk /boot<br />
ln -s 6uuj12uc.iso biosupgrade.iso<br />
</pre><br />
Now create the boot entry:<br />
<pre><br />
cat >> /etc/grub.d/40_custom <<EOF<br />
menuentry "Lenovo BIOS Upgrade" {<br />
set root=(hd0,1) # <-- check for correct numbering<br />
linux16 /boot/memdisk iso<br />
initrd16 /boot/biosupgrade.iso<br />
}<br />
EOF<br />
update-grub<br />
</pre><br />
Reboot an Select "Lenovo BIOS Upgrade".<br />
<br />
For the next Bios Upgrade you'll just need to copy the new iso file to /boot and adjust the symlink.<br />
<br />
==== Successful tests ====<br />
{|border="1" cellspacing="0" cellpadding="2" style="font-size: 80%"<br />
|-<br />
! Model<br />
! BIOS<br />
! ECP<br />
! Tested by<br />
! Notes<br />
|-<br />
| {{X100e}} 2876-55G || 6xuj05uc.iso || || [[User:nikel]] ||<br />
|-<br />
| {{Edge}} || 1.17 6yuj04uc.iso || || [[User:theBro]] || Current memdisk from syslinux worked (5/2010), the one provided by Ubuntu 9.10 did not.<br />
|-<br />
| {{X200s}} || 1.13 6duj40uc.iso || || [[User:theBro]] || Current memdisk from syslinux worked (5/2010), the one provided by Ubuntu 9.10 did not.<br />
|-<br />
| {{X200s}} || 3.14 6duj41uc.iso || 1.06 || [[User:dag-|Dag Wieers]] || Using memdisk from syslinux 4.01<br />
|-<br />
| {{X201}} 3626-A14 || 1.15 6quj05uc.iso || 1.09 6quj05uc.iso || [[User:Alexander List|Alexander List]] || memdisk from syslinux 3.86<br />
|-<br />
| {{Edge 13"}} 0197-6GG || 1.18 6yuj05uc.iso || || [[User:fethio]] || Current memdisk from syslinux worked (5/2010), the one provided by Ubuntu 9.10 did not.<br />
|-<br />
| {{Edge 13"}} 0197-34Q || 1.21 6yuj08uc.iso || || [[User:Kapil]] || Current memdisk from syslinux debian version 2:4.02+dfsg-7<br />
|-<br />
| {{Edge 13"}} 0197-34Q || 1.18 6yuj05uc.iso || || [[User:Kapil]] || Current memdisk from syslinux debian version 2:4.01+dfsg-1<br />
|-<br />
| {{X200s}} || 3.15 6duj42uc.iso || || [[User:lawnjam]] || Memdisk 4.02 worked, the one provided by Ubuntu 10.04 did not.<br />
|-<br />
| {{X201}} || 1.22 6quj08uc.iso || 1.11 || [[User:dag-|Dag Wieers]] || Using memdisk from syslinux 4.03<br />
|-<br />
|}<br />
<br />
=== Booting from a Floppy ===<br />
{{WARN|Using a floppy disk '''is NOT recommended'''.}}<br />
<br />
This is how IBM/Lenovo intended it. Use their .exe files to create a bootable floppy with the flash update on it. Boot from the floppy and there you go.<br />
<br />
So, why is it not recommended?<br />
# If something goes wrong, your ThinkPad may be permanently damaged<br />
# Floppy disk drives are not reliable<br />
# Floppy disks are not reliable<br />
# It only works with /dev/fd0, meaning it won't work with a USB floppy<br />
<br />
So, even though Lenovo is now offering "Linux diskette" updaters, that will create a bootable floppy under Linux, using a floppy is still not recommended. Besides, many people don't even ''have'' a floppy drive on their ThinkPad.<br />
<br />
If you really want to do it with a floppy, some tips:<br />
* Use a clean (in the physical sense) floppy drive<br />
* Use new floppies<br />
* Test floppies for errors before starting update process<br />
* Have multiple copies of the update disks ready--if one should fail, replace it with a copy<br />
* Should DOS complain of a read error, '''only''' respond wth "Retry"<br />
<br />
{{NOTE|Should the system encounter a disk read error during the flash process, and you select "Abort", your system could be permanently damaged.}}<br />
<br />
=== Booting from a USB Flash drive ===<br />
<br />
==== Updating the BIOS in MS-DOS mode ====<br />
(This process works for most Thinkpad models that has Windows XP, Windows Vista or Windows 7 OS)<br />
<br />
1. Using HP USB Boot Utility, [http://blogs.oreilly.com/digitalmedia/2004/10/utility-to-make-usb-flash-driv.html create a bootable USB flash drive [http://www.bay-wolf.com/utility/usbkey/win98boot.zip DOS using Windows 98 Boot Disk Floppy Image].<br />
<br />
2. Extract the (*.ima) from the ISO BIOS image (e.g. [http://www.rarsoft.com WinRAR] will do this).<br />
<br />
3. Using a tool that can open .IMA files (such as [http://www.winimage.com/ WinImage]), extract all files to a temporary folder.<br />
<br />
4. Run the HP tool, select the USB device, I used FAT32, create a DOS bootable disk and point at the win98boot folder - then "Start". Warning: this '''formats''' the USB flash drive and all data will be erased!<br />
<br />
5. Once complete (you could test if it boots at this point), copy the extracted BIOS files from the temporary folder you created to the USB flash drive.<br />
<br />
6. Boot from USB flash drive by pressing F11 within the BIOS boot logo. At the DOS command prompt, type "updflsh" and then follow the prompts by pressing "Y" or Enter. Make sure that you have a fully charged battery pack and the AC Adapter is firmly plugged before proceeding with the BIOS update.<br />
'''DO NOT Power off the laptop or unplug the USB flash drive while the update is in progress or else update will fail and your computer will be unable to boot and system board may need to be serviced.'''<br />
<br />
This process takes around 1-2 minutes. A long beep followed by a short beep will notify you that the update is complete and the system will automatically power off.<br />
<br />
7. Power on the laptop then enter the BIOS setup by pressing F1 and Load BIOS defaults.<br />
<br />
==== Using grub4dos (also for Linux) ====<br />
<br />
[http://grub4dos.sourceforge.net/wiki/ grub4dos] is a GNU GRUB fork with interesting features. One of them is the ability to boot ISO images directly off USB flash drives. Contrary to the name, GRUB for DOS works fine on Linux. Follow these steps:<br />
* Download the latest grub4dos package at http://download.gna.org/grub4dos/ (I needed 0.4.4 for my USB2 drive - 0.4.3 did not work.)<br />
* Unpack<br />
* Insert your FAT-32 formatted pendrive<br />
* Run <code>sudo ./bootlace.com /dev/sdX</code>, where /dev/sdX is the device name assigned to your pendrive (use <code>sudo fdisk -l</code> to figure this out). Be very careful to get the device correct or else you could overwrite your hard drive! This creates grub4dos boot sector in MBR of the flash drive.<br />
* Copy the files <code>grldr</code> and <code>menu.lst</code> to the root directory of your pendrive.<br />
* Convert the ThinkPad .IMG file to a .ISO file using <code>genisoimage -b 1yuj18us.img -c boot.catalog -o 1yuj18us.iso 1yuj18us.img</code><br />
* Copy the ISO image to the root directory of your pendrive (e.g. <code>1yuj18us.iso</code>).<br />
* Edit <code>menu.lst</code> on the pendrive and include the following section (of course putting the appropriate ISO image name):<br />
<pre><br />
title thinkpad-bios<br />
map (hd0,0)/1yuj18us.iso (hd32)<br />
map --hook<br />
chainloader (hd32)<br />
boot<br />
</pre><br />
* Reboot and press F12 to select booting from USB.<br />
* If all went well, you should be able to boot the Thinkpad's ISO image and flash the BIOS. I tested it successfully on T400. [[User:Wanted|Wanted]] 20:23, 16 July 2010 (UTC)<br />
<br />
==== Using UNetbootin ====<br />
<br />
Unetbootin 422 worked with the image files unpacked with cabextract on my x31.<br />
<br />
{{HELP|How exactly did you do this? It failed for me. Does it work only with .IMG files that are converted to .ISO files, or can .ISO files provided by Lenovo also work (how?)}}<br />
<br />
=== Booting from a Network Boot Image ===<br />
BIOS, ECP, CD/DVD and Harddisk firmware disks can be booted over the network with [http://syslinux.zytor.com/pxe.php PXELINX] as part of the [http://syslinux.zytor.com/ SYSLINUX] package. This requires that you have a DHCP and tftp server configured and setup properly on your network, and is probably not for the faint of heart.<br />
<br />
Make sure the firmware bootdisk is in linux 'dd' format, as the self-extracting .exe disks from the IBM website cannot be booted directly as such.<br />
<br />
This worked on the {{R31}}, {{X22}}, {{T21}}, {{T30}} and {{T41p}} with various firmware updates. On the {{X22}}, it worked with ECP 1.30 but '''not''' with BIOS 1.32<br />
<br />
= Updating without battery or with dead battery =<br />
<br />
This is a last-resort approach. Use this only if everything else fails.<br />
<br />
The BIOS updater may refuse to update a BIOS without a battery, or if the battery charge is too low. In that case, extract the disk image with cabextract as per instructions above and dd it to an usb stick. (This will destroy the data on it, of course.) Acquire a pure DOS boot cd such as Windows 98 recovery CD and boot that.<br />
<br />
Use F8 to abort the boot sequence of a windows 98 boot CD. If you need CD-ROM support, load CD-related things but say no to everything else. In particular, avoid loading himem.sys and doskey, as the presence of either program causes Phoenix bios flash tool phlash16.exe to abort.<br />
<br />
Change to the volume where flash2.exe and other tools are installed, and execute "flash2.exe /u". This should bypass the battery check and perform the flashing. If that doesn't work, check if the update disk contains a tool called "phlash16.exe". This can be used directly to flash the image, and the invocation is typically "phlash16 /exit $01c80000.fl1".<br />
<br />
This method won't work for the Thinkpad {{560X}} (and likely other older models). Since the 560X is a bit older, it won't be a big surprise if the battery is dead as a dodo. Here's how to update the bios in this case: download the spsdi833 bios update and create the update floppy. If you have trouble creating this disk, [http://rapidshare.com/files/413598837/spsdi833-bios-560X.zip.html download an archive with the files] and put them on a floppy. Don't worry about making it bootable. Also, you will need a DOS bootdisk. A Windows 98 bootdisk will be fine. Boot the system with the W98 bootdisk, do not load CD-rom support. Remove the W98 bootdisk and put the disk with the BIOS update in the drive. If you would now run UPDTFLSH you would get the battery message, so don't do that. If you open UPDTFLSH.exe with a text editor, you would find some lines about UPDTROM. UPDTROM is the actual flash tool, but you can't simply run it just like that. Run the following:<br />
<br />
*updtrom /np /prep1<br />
*updtrom /np /prep2<br />
*updtrom /np /prep3<br />
*updtrom /np /romcmp /romflsh /prep4<br />
*updtrom /np /h8flsh /h8img /model<br />
<br />
Yes, you need to run updtrom five times. Hold your breath and reboot the machine. It's done.<br />
<br />
Perhaps not all these lines are necessary, but to be sure I ran them all, and this worked for me. So I suggest you do the same. This could probably be done from the harddisk as well, but I did not test that.<br />
<br />
=After updating=<br />
Lenovo recommends reseting your BIOS settings to their factory defaults after a firmware update.<br />
<br />
==DMI IDs==<br />
Please consider updating the [[List of DMI IDs]] after updating your BIOS.<br />
<br />
= Special Cases =<br />
* In one case, see ([[APM setup on a type 2379 ThinkPad T40]]), it was not possible to upgrade the BIOS from Windows XP; a downgrade to Windows 98 was required to successfully run the BIOS upgrade app. The symptoms in this case were that, once the files had been extracted to the hard disk, and the machine was to reboot into the upgrade app, it would beep and hang just before reboot, requiring a power cycle. Once the power was cycled, it would simply reboot back into XP without performing any BIOS upgrade actions. So even if you have Windows, you may still need to use the info on this page.<br />
<br />
== Updating Thinkpad X Series ==<br />
The special update instructions for {{X_Series}} Thinkpads are quite long. You can find them at the page [[BIOS_Upgrade/X_Series]].<br />
<br />
<br />
<br />
<br />
<br />
----<br />
<br />
{{footnotes|<br />
# For lots of detail on making and burning .iso files, see The Linux Documentation Project (tldp.org): [http://tldp.org/HOWTO/CD-Writing-HOWTO-3.html#ss3.1 3.1 Writing CD-ROMs (pure data)].<br />
}}</div>Regatus