<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Joachim+Selke</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Joachim+Selke"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Joachim_Selke"/>
	<updated>2026-05-05T02:05:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=43622</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=43622"/>
		<updated>2009-07-12T11:35:05Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have internal optical or floppy drives. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. In recent times Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, in most cases these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update files are that large, they do not fit on such a floppy image. To resolve it, you have to either use a large harddisk image for your bootimage (e.g. in [[:Category:X200|X200]], [[:Category:X200_Tablet|X200 Tablet]] and [[:Category:X301|X301]]), or store these update files on the CD outside the virtual floppy image. For the former case, see [[BIOS update without optical disk]]. This page concerns with the later case.&lt;br /&gt;
&lt;br /&gt;
To access the BIOS update files on the CD outside the bootimage, a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
Another problem is that older X Series (like the {{X32}}) don't have bootable iso images at all. They have only two options: 1. update from Windows, 2. update using a diskette updater, which requires you to have a real floppy disk drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problems above.&lt;br /&gt;
&lt;br /&gt;
Here is a brief overview of each approach:&lt;br /&gt;
* [[#Approach 1: Use larger boot image and create virtual CD drive]]&amp;lt;br&amp;gt;Requires a USB CD drive.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]]&amp;lt;br&amp;gt;Requires a USB CD drive.  People have reported mixed results, with the flash update software freezing, depending on things like CD drive letter and type.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 3: Alternative method using a USB stick]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Reported to work on {{X60s}}, {{X61}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Seems functionally similar to Approach 3.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 5: Free Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, does not require MS Windows or any proprietary software.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 6: Using a USB stick to upgrade BIOS on older X Series Thinkpads]]&amp;lt;br&amp;gt;Requires a USB flash drive.  Reported to work on {{X32}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 7: Use syslinux to boot floppy images which are part of the IBM/ Lenovo BIOS update CD ISO files.]]&amp;lt;br&amp;gt;Done with a {{X31}} to upgrade the EC to version 1.08 and the BIOS to 3.02.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs (for Fedora users: contained in the package dosfstools)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 11 system (it should also run without problems on Fedora 7, 8, 9, 10 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some additional notes:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Currently, the script is not able to handle spaces in file names properly. Thus, the file names and directory path names used when calling the script should not contain spaces.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The file name of the original ISO file (7buj23uc.iso in the example above) must follow the DOS 8.3 file name conventions; otherwise SHSUCD will not be able to load the ISO image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-12-28&lt;br /&gt;
&lt;br /&gt;
# Known bugs:&lt;br /&gt;
# - spaces in file names make trouble at the moment (so try to avoid spaces),&lt;br /&gt;
#   I will fix that later&lt;br /&gt;
# - some users seem to have problems with some of the sed statements,&lt;br /&gt;
#   I currently have no idea what is wrong there ... (please report those bugs)&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=`mktemp -d`&lt;br /&gt;
ISODIR=`mktemp -d`&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
HDDDIR=$TMPDIR/hdd&lt;br /&gt;
FLOPPYDIR=$TMPDIR/floppy&lt;br /&gt;
su --command=&amp;quot;\&lt;br /&gt;
  mkdir $HDDDIR;\&lt;br /&gt;
  mkdir $FLOPPYDIR;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $FLOPPYDIR;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmbio.com $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmdos.com $HDDDIR;\&lt;br /&gt;
  cp --preserve -u $FLOPPYDIR/* $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $HDDDIR;\&lt;br /&gt;
  cat $FLOPPYDIR/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$HDDDIR/config.sys;\&lt;br /&gt;
  cat $FLOPPYDIR/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$HDDDIR/autoexec.bat;\&lt;br /&gt;
  umount $FLOPPYDIR;\&lt;br /&gt;
  umount $HDDDIR;\&lt;br /&gt;
  rm -rf $FLOPPYDIR;\&lt;br /&gt;
  rm -rf $HDDDIR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
rm -rf $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Reported to work on:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60s (1702-55G) with Plextor PX-608CU USB DVD recorder&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1702-55G) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.14 to 2.16&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1706-GMG) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.03 to 2.14&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X61s (7666-36G) with Freecom FS-50 USB DVD recorder, upgraded BIOS from version 1.10 to 2.07&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X300 (6476-CTO) with Nu SBW-242US USB DVD recorder, upgraded BIOS from 1.05 to 1.08&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Thinkpad X60s (1704-44U) with Lite-On DX-20A3H, upgraded BIOS from 2.17 to 2.18&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing BIOS 2.14 works for me on a X60s (using drive c). 25-02-2008&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to a new directory HPUSBF\ (using WinRAR, 7zip or similar).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW.EXE utility, selecting the location of system files as C:\DriveKey\HPUSBF, and let it format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 4 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I (Martin Aulbach) followed these clear instructions and updated my X61t (from BIOS v1.08 to v1.10) without any problems and with a nice graphic splash screen. It is not necessary to let Windows format the USB stick as a MS-DOS startup disk, as outlined in Approach 3. The HP format tool will take care of this (in Step 5) and the USB stick will boot sucessfully at startup (correct boot order provided).&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; This update to BIOS 2.14 worked on a brand-new X61s, 2008-06-27. (adsmith)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; This update to BIOS 2.19 worked on a X61 (76754KU), 2009-01-21. (leonardokroeger)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 5: Free Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is functionally equivalent to the above two &amp;quot;alternative methods&amp;quot;, yet does not depend on MS Windows or any other proprietary software. It updates the BIOS through a bootable USB stick, and depends upon the FreeDOS, SYSLINUX, and AdvanceMAME projects. A detailed description is provided at [http://ubuntuforums.org/showthread.php?p=5459421#post5459421].&lt;br /&gt;
''This method currently isn't redommended by the author &amp;quot;due to troubles reported by users (August 9th, 2008)&amp;quot;.''&lt;br /&gt;
&lt;br /&gt;
= Approach 6: Using a USB stick to upgrade BIOS on older X Series Thinkpads =&lt;br /&gt;
&lt;br /&gt;
This method has been successfully applied for upgrading an {{X32}} Thinkpad. The previous BIOS version was 3.00d, and it was upgraded to 3.02 . Below are the steps:&lt;br /&gt;
&lt;br /&gt;
1. Download the new BIOS and EC Diskette-type upgrades.&lt;br /&gt;
&lt;br /&gt;
2. Make a DOS-bootable USB stick. See the section above for instructions on how to do this.&lt;br /&gt;
&lt;br /&gt;
3. Copy the upgrade programs to the USB stick.&lt;br /&gt;
&lt;br /&gt;
4. Make two zero-files (using dd), each with the size of a floppy disk.&lt;br /&gt;
&lt;br /&gt;
5. Boot up the USB stick using QEMU, with the USB stick as hda, and the two floppy disk images as A: and B: .&lt;br /&gt;
&lt;br /&gt;
6. Run the BIOS upgrade program, and select the first diskette as its destination. This will not actually upgrade the BIOS; it will only fill up the disk image.&lt;br /&gt;
&lt;br /&gt;
7. Run the EC upgrade program, with the second diskette as target. Again, this will only fill up the disk image, not upgrade the EC.&lt;br /&gt;
&lt;br /&gt;
8. Make two directories, C:\1 and C:\2 .&lt;br /&gt;
&lt;br /&gt;
9. Copy the contents of the first diskette to C:\1 and the second diskette to C:\2 .&lt;br /&gt;
&lt;br /&gt;
10. Exit QEMU, use the USB stick to boot the Thinkpad which BIOS we are going to upgrade.&lt;br /&gt;
&lt;br /&gt;
11. cd into C:\1 and run command.com inside it. This will bring up the BIOS update interface, so update the BIOS.&lt;br /&gt;
&lt;br /&gt;
12. After updating the BIOS, the machine will turn off by itself. Now boot again, with the same USB stick.&lt;br /&gt;
&lt;br /&gt;
13. cd into C:\2 and run command.com inside it. This will bring up the EC update interface. Update the EC and wait for the machine to shut down completely.&lt;br /&gt;
&lt;br /&gt;
14. Remove the USB stick. Now boot into the machine and go into BIOS setup. Right now you should see the new BIOS and EC version. If not, then something is wrong; make sure you have followed the above steps properly. Please also discuss this.&lt;br /&gt;
&lt;br /&gt;
= Approach 7: Use syslinux to boot floppy images which are part of the CD ISO files.  Done with a {{X31}} to upgrade the EC to version 1.08 and the BIOS to 3.02. =&lt;br /&gt;
&lt;br /&gt;
1. Download the CD ISO files of the embedded controller and the BIOS.&lt;br /&gt;
&lt;br /&gt;
2. loop mount these files, check for files like 1quj08us.img (EC) and 1quj19us.img (BIOS) and copy them to /boot/&lt;br /&gt;
&lt;br /&gt;
3. Install the syslinux package and boot the two images with the help of the memdisk feature ( grub: kernel /boot/memdisk initrd /boot/{ec|bios}.img)&lt;br /&gt;
&lt;br /&gt;
= Approach 8 : Use HP USB Format Utility and Win98Boot files to Create Bootable USB Stick =&lt;br /&gt;
&lt;br /&gt;
I have an X60s - and needed to upgrade BIOS from 1.09 (2006) to 2.18 (2009) to enable Intel virtualisation feature.&lt;br /&gt;
&lt;br /&gt;
1. There is an HP utility tool floating around the net called HP USB Boot Utility. This can create a bootable USB stick using boot/system files you have.&lt;br /&gt;
&lt;br /&gt;
e.g. See : http://blogs.oreilly.com/digitalmedia/2004/10/utility-to-make-usb-flash-driv.html&lt;br /&gt;
&lt;br /&gt;
2. Get some DOS (or similar) boot files - I found something called &amp;quot;win98boot.zip&amp;quot; e.g.&lt;br /&gt;
&lt;br /&gt;
http://www.bay-wolf.com/utility/usbkey/win98boot.zip&lt;br /&gt;
&lt;br /&gt;
3. Extract the ISO BIOS image (e.g. WinRAR will do this)&lt;br /&gt;
&lt;br /&gt;
4. Run the HP tool, select the USB device, I used FAT32,  create a DOS bootable disk and point at the win98boot folder - then &amp;quot;Start&amp;quot;. NOTE - this '''formats''' the USB stick!&lt;br /&gt;
&lt;br /&gt;
5. Once complete (you could test it boots at this point), copy the extracted BIOS files to the stick e.g. inside new folder &amp;quot;bios&amp;quot;&lt;br /&gt;
&lt;br /&gt;
6. Plug in to laptop and boot from stick. This takes ~2 mins and may (loudly) beep twice.&lt;br /&gt;
&lt;br /&gt;
Once complete, I restarted and reset the BIOS, restarted, set the BIOS up and now all seems well.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=37531</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=37531"/>
		<updated>2008-05-01T16:40:13Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
Another problem is that older X Series (like the {{X32}}) don't have bootable iso images at all. They have only two options: 1. update from Windows, 2. update using a diskette updater, which requires you to have a real floppy disk drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problems above.&lt;br /&gt;
&lt;br /&gt;
Here is a brief overview of each approach:&lt;br /&gt;
* [[#Approach 1: Use larger boot image and create virtual CD drive]]&amp;lt;br&amp;gt;Requires a USB CD drive.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]]&amp;lt;br&amp;gt;Requires a USB CD drive.  People have reported mixed results, with the flash update software freezing, depending on things like CD drive letter and type.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 3: Alternative method using a USB stick]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Reported to work on {{X60s}}, {{X61}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Seems functionally similar to Approach 3.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 5: Using a USB stick to upgrade BIOS on older X Series Thinkpads]]&amp;lt;br&amp;gt;Requires a USB flash drive.  Reported to work on {{X32}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs (for Fedora users: contained in the package dosfstools)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some additional notes:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Currently, the script is not able to handle spaces in file names properly. Thus, the file names and directory path names used when calling the script should not contain spaces.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The file name of the original ISO file (7buj23uc.iso in the example above) must follow the DOS 8.3 file name conventions; otherwise SHSUCD will not be able to load the ISO image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-12-28&lt;br /&gt;
&lt;br /&gt;
# Known bugs:&lt;br /&gt;
# - spaces in file names make trouble at the moment (so try to avoid spaces),&lt;br /&gt;
#   I will fix that later&lt;br /&gt;
# - some users seem to have problems with some of the sed statements,&lt;br /&gt;
#   I currently have no idea what is wrong there ... (please report those bugs)&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=`mktemp -d`&lt;br /&gt;
ISODIR=`mktemp -d`&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
HDDDIR=$TMPDIR/hdd&lt;br /&gt;
FLOPPYDIR=$TMPDIR/floppy&lt;br /&gt;
su --command=&amp;quot;\&lt;br /&gt;
  mkdir $HDDDIR;\&lt;br /&gt;
  mkdir $FLOPPYDIR;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $FLOPPYDIR;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmbio.com $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmdos.com $HDDDIR;\&lt;br /&gt;
  cp --preserve -u $FLOPPYDIR/* $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $HDDDIR;\&lt;br /&gt;
  cat $FLOPPYDIR/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$HDDDIR/config.sys;\&lt;br /&gt;
  cat $FLOPPYDIR/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$HDDDIR/autoexec.bat;\&lt;br /&gt;
  umount $FLOPPYDIR;\&lt;br /&gt;
  umount $HDDDIR;\&lt;br /&gt;
  rm -rf $FLOPPYDIR;\&lt;br /&gt;
  rm -rf $HDDDIR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
rm -rf $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Reported to work on:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60s (1702-55G) with Plextor PX-608CU USB DVD recorder&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1702-55G) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.14 to 2.16&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1706-GMG) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.03 to 2.14&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X61s (7666-36G) with Freecom FS-50 USB DVD recorder, upgraded BIOS from version 1.10 to 2.07&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing BIOS 2.14 works for me on a X60s (using drive c). 25-02-2008&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to a new directory HPUSBF\ (using WinRAR, 7zip or similar).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW.EXE utility, selecting the location of system files as C:\DriveKey\HPUSBF, and let it format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 4 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I (Martin Aulbach) followed these clear instructions and updated my X61t (from BIOS v1.08 to v1.10) without any problems and with a nice graphic splash screen. It is not necessary to let Windows format the USB stick as a MS-DOS startup disk, as outlined in Approach 3. The HP format tool will take care of this (in Step 5) and the USB stick will boot sucessfully at startup (correct boot order provided).&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 5: Using a USB stick to upgrade BIOS on older X Series Thinkpads =&lt;br /&gt;
&lt;br /&gt;
This method has been successfully applied for upgrading an {{X32}} Thinkpad. The previous BIOS version was 3.00d, and it was upgraded to 3.02 . Below are the steps:&lt;br /&gt;
&lt;br /&gt;
1. Download the new BIOS and EC Diskette-type upgrades.&lt;br /&gt;
&lt;br /&gt;
2. Make a DOS-bootable USB stick. See the section above for instructions on how to do this.&lt;br /&gt;
&lt;br /&gt;
3. Copy the upgrade programs to the USB stick.&lt;br /&gt;
&lt;br /&gt;
4. Make two zero-files (using dd), each with the size of a floppy disk.&lt;br /&gt;
&lt;br /&gt;
5. Boot up the USB stick using QEMU, with the USB stick as hda, and the two floppy disk images as A: and B: .&lt;br /&gt;
&lt;br /&gt;
6. Run the BIOS upgrade program, and select the first diskette as its destination. This will not actually upgrade the BIOS; it will only fill up the disk image.&lt;br /&gt;
&lt;br /&gt;
7. Run the EC upgrade program, with the second diskette as target. Again, this will only fill up the disk image, not upgrade the EC.&lt;br /&gt;
&lt;br /&gt;
8. Make two directories, C:\1 and C:\2 .&lt;br /&gt;
&lt;br /&gt;
9. Copy the contents of the first diskette to C:\1 and the second diskette to C:\2 .&lt;br /&gt;
&lt;br /&gt;
10. Exit QEMU, use the USB stick to boot the Thinkpad which BIOS we are going to upgrade.&lt;br /&gt;
&lt;br /&gt;
11. cd into C:\1 and run command.com inside it. This will bring up the BIOS update interface, so update the BIOS.&lt;br /&gt;
&lt;br /&gt;
12. After updating the BIOS, the machine will turn off by itself. Now boot again, with the same USB stick.&lt;br /&gt;
&lt;br /&gt;
13. cd into C:\2 and run command.com inside it. This will bring up the EC update interface. Update the EC and wait for the machine to shut down completely.&lt;br /&gt;
&lt;br /&gt;
14. Remove the USB stick. Now boot into the machine and go into BIOS setup. Right now you should see the new BIOS and EC version. If not, then something is wrong; make sure you have followed the above steps properly. Please also discuss this.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=37067</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=37067"/>
		<updated>2008-03-21T17:02:08Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
Another problem is that older X Series (like the {{X32}}) don't have bootable iso images at all. They have only two options: 1. update from Windows, 2. update using a diskette updater, which requires you to have a real floppy disk drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problems above.&lt;br /&gt;
&lt;br /&gt;
Here is a brief overview of each approach:&lt;br /&gt;
* [[#Approach 1: Use larger boot image and create virtual CD drive]]&amp;lt;br&amp;gt;Requires a USB CD drive.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]]&amp;lt;br&amp;gt;Requires a USB CD drive.  People have reported mixed results, with the flash update software freezing, depending on things like CD drive letter and type.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 3: Alternative method using a USB stick]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Reported to work on {{X60s}}, {{X61}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Seems functionally similar to Approach 3.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 5: Using a USB stick to upgrade BIOS on older X Series Thinkpads]]&amp;lt;br&amp;gt;Requires a USB flash drive.  Reported to work on {{X32}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs (for Fedora users: contained in the package dosfstools)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some additional notes:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Currently, the script is not able to handle spaces in file names properly. Thus, the file names and directory path names used when calling the script should not contain spaces.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The file name of the original ISO file (7buj23uc.iso in the example above) must follow the DOS 8.3 file name conventions; otherwise SHSUCD will not be able to load the ISO image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-12-28&lt;br /&gt;
&lt;br /&gt;
# Known bugs:&lt;br /&gt;
# - spaces in file names make trouble at the moment (so try to avoid spaces),&lt;br /&gt;
#   I will fix that later&lt;br /&gt;
# - some users seem to have problems with some of the sed statements,&lt;br /&gt;
#   I currently have no idea what is wrong there ... (please report those bugs)&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=`mktemp -d`&lt;br /&gt;
ISODIR=`mktemp -d`&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
HDDDIR=$TMPDIR/hdd&lt;br /&gt;
FLOPPYDIR=$TMPDIR/floppy&lt;br /&gt;
su --command=&amp;quot;\&lt;br /&gt;
  mkdir $HDDDIR;\&lt;br /&gt;
  mkdir $FLOPPYDIR;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $FLOPPYDIR;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmbio.com $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmdos.com $HDDDIR;\&lt;br /&gt;
  cp --preserve -u $FLOPPYDIR/* $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $HDDDIR;\&lt;br /&gt;
  cat $FLOPPYDIR/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$HDDDIR/config.sys;\&lt;br /&gt;
  cat $FLOPPYDIR/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$HDDDIR/autoexec.bat;\&lt;br /&gt;
  umount $FLOPPYDIR;\&lt;br /&gt;
  umount $HDDDIR;\&lt;br /&gt;
  rm -rf $FLOPPYDIR;\&lt;br /&gt;
  rm -rf $HDDDIR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
rm -rf $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Reported to work on:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60s (1702-55G) with Plextor PX-608CU USB DVD recorder&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1706-GMG) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.03 to 2.14&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing BIOS 2.14 works for me on a X60s (using drive c). 25-02-2008&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;br /&gt;
&lt;br /&gt;
= Approach 5: Using a USB stick to upgrade BIOS on older X Series Thinkpads =&lt;br /&gt;
&lt;br /&gt;
This method has been successfully applied for upgrading an {{X32}} Thinkpad. The previous BIOS version was 3.00d, and it was upgraded to 3.02 . Below are the steps:&lt;br /&gt;
&lt;br /&gt;
1. Download the new BIOS and EC Diskette-type upgrades.&lt;br /&gt;
&lt;br /&gt;
2. Make a DOS-bootable USB stick. See the section above for instructions on how to do this.&lt;br /&gt;
&lt;br /&gt;
3. Copy the upgrade programs to the USB stick.&lt;br /&gt;
&lt;br /&gt;
4. Make two zero-files (using dd), each with the size of a floppy disk.&lt;br /&gt;
&lt;br /&gt;
5. Boot up the USB stick using QEMU, with the USB stick as hda, and the two floppy disk images as A: and B: .&lt;br /&gt;
&lt;br /&gt;
6. Run the BIOS upgrade program, and select the first diskette as its destination. This will not actually upgrade the BIOS; it will only fill up the disk image.&lt;br /&gt;
&lt;br /&gt;
7. Run the EC upgrade program, with the second diskette as target. Again, this will only fill up the disk image, not upgrade the EC.&lt;br /&gt;
&lt;br /&gt;
8. Make two directories, C:\1 and C:\2 .&lt;br /&gt;
&lt;br /&gt;
9. Copy the contents of the first diskette to C:\1 and the second diskette to C:\2 .&lt;br /&gt;
&lt;br /&gt;
10. Exit QEMU, use the USB stick to boot the Thinkpad which BIOS we are going to upgrade.&lt;br /&gt;
&lt;br /&gt;
11. cd into C:\1 and run command.com inside it. This will bring up the BIOS update interface, so update the BIOS.&lt;br /&gt;
&lt;br /&gt;
12. After updating the BIOS, the machine will turn off by itself. Now boot again, with the same USB stick.&lt;br /&gt;
&lt;br /&gt;
13. cd into C:\2 and run command.com inside it. This will bring up the EC update interface. Update the EC and wait for the machine to shut down completely.&lt;br /&gt;
&lt;br /&gt;
14. Remove the USB stick. Now boot into the machine and go into BIOS setup. Right now you should see the new BIOS and EC version. If not, then something is wrong; make sure you have followed the above steps properly. Please also discuss this.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=36824</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=36824"/>
		<updated>2008-03-04T20:30:52Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
Another problem is that older X Series (like the {{X32}}) don't have bootable iso images at all. They have only two options: 1. update from Windows, 2. update using a diskette updater, which requires you to have a real floppy disk drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problems above.&lt;br /&gt;
&lt;br /&gt;
Here is a brief overview of each approach:&lt;br /&gt;
* [[#Approach 1: Use larger boot image and create virtual CD drive]]&amp;lt;br&amp;gt;Requires a USB CD drive.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]]&amp;lt;br&amp;gt;Requires a USB CD drive.  People have reported mixed results, with the flash update software freezing, depending on things like CD drive letter and type.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 3: Alternative method using a USB stick]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Reported to work on {{X60s}}, {{X61}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Seems functionally similar to Approach 3.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 5: Using a USB stick to upgrade BIOS on older X Series Thinkpads]]&amp;lt;br&amp;gt;Requires a USB flash drive.  Reported to work on {{X32}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs (for Fedora users: contained in the package dosfstools)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some additional notes:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Currently, the script is not able to handle spaces in file names properly. Thus, the file names and directory path names used when calling the script should not contain spaces.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The file name of the original ISO file (7buj23uc.iso in the example above) must follow the DOS 8.3 file name conventions; otherwise SHSUCD will not be able to load the ISO image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-12-28&lt;br /&gt;
&lt;br /&gt;
# Known bugs:&lt;br /&gt;
# - spaces in file names make trouble at the moment (so try to avoid spaces),&lt;br /&gt;
#   I will fix that later&lt;br /&gt;
# - some users seem to have problems with some of the sed statements,&lt;br /&gt;
#   I currently have no idea what is wrong there ... (please report those bugs)&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=`mktemp -d`&lt;br /&gt;
ISODIR=`mktemp -d`&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
HDDDIR=$TMPDIR/hdd&lt;br /&gt;
FLOPPYDIR=$TMPDIR/floppy&lt;br /&gt;
su --command=&amp;quot;\&lt;br /&gt;
  mkdir $HDDDIR;\&lt;br /&gt;
  mkdir $FLOPPYDIR;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $FLOPPYDIR;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmbio.com $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmdos.com $HDDDIR;\&lt;br /&gt;
  cp --preserve -u $FLOPPYDIR/* $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $HDDDIR;\&lt;br /&gt;
  cat $FLOPPYDIR/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$HDDDIR/config.sys;\&lt;br /&gt;
  cat $FLOPPYDIR/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$HDDDIR/autoexec.bat;\&lt;br /&gt;
  umount $FLOPPYDIR;\&lt;br /&gt;
  umount $HDDDIR;\&lt;br /&gt;
  rm -rf $FLOPPYDIR;\&lt;br /&gt;
  rm -rf $HDDDIR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
rm -rf $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Reported to work on:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60s (1702-55G) with Plextor PX-608CU USB DVD recorder&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1706-GMG) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.03 to 2.14&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing BIOS 2.14 works for me on a X60s (using drive c). 25-02-2008&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;br /&gt;
&lt;br /&gt;
= Approach 5: Using a USB stick to upgrade BIOS on older X Series Thinkpads =&lt;br /&gt;
&lt;br /&gt;
This method has been successfully applied for upgrading an {{X32}} Thinkpad. The previous BIOS version was 3.00d, and it was upgraded to 3.02 . Below are the steps:&lt;br /&gt;
&lt;br /&gt;
1. Download the new BIOS and EC Diskette-type upgrades.&lt;br /&gt;
&lt;br /&gt;
2. Make a DOS-bootable USB stick. See the section above for instructions on how to do this.&lt;br /&gt;
&lt;br /&gt;
3. Copy the upgrade programs to the USB stick.&lt;br /&gt;
&lt;br /&gt;
4. Make two zero-files (using dd), each with the size of a floppy disk.&lt;br /&gt;
&lt;br /&gt;
5. Boot up the USB stick using QEMU, with the USB stick as hda, and the two floppy disk images as A: and B: .&lt;br /&gt;
&lt;br /&gt;
6. Run the BIOS upgrade program, and select the first diskette as its destination. This will not actually upgrade the BIOS; it will only fill up the disk image.&lt;br /&gt;
&lt;br /&gt;
7. Run the EC upgrade program, with the second diskette as target. Again, this will only fill up the disk image, not upgrade the EC.&lt;br /&gt;
&lt;br /&gt;
8. Make two directories, C:\1 and C:\2 .&lt;br /&gt;
&lt;br /&gt;
9. Copy the contents of the first diskette to C:\1 and the second diskette to C:\2 .&lt;br /&gt;
&lt;br /&gt;
10. Exit QEMU, use the USB stick to boot the Thinkpad which BIOS we are going to upgrade.&lt;br /&gt;
&lt;br /&gt;
11. cd into C:\1 and run command.com inside it. This will bring up the BIOS update interface, so update the BIOS.&lt;br /&gt;
&lt;br /&gt;
12. After updating the BIOS, the machine will turn off by itself. Now boot again, with the same USB stick.&lt;br /&gt;
&lt;br /&gt;
13. cd into C:\2 and run command.com inside it. This will bring up the EC update interface. Update the EC and wait for the machine to shut down completely.&lt;br /&gt;
&lt;br /&gt;
14. Remove the USB stick. Now boot into the machine and go into BIOS setup. Right now you should see the new BIOS and EC version. If not, then something is wrong; make sure you have followed the above steps properly. Please also discuss this.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=35439</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=35439"/>
		<updated>2007-12-29T12:56:15Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problem.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs (for Fedora users: contained in the package dosfstools)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-12-28&lt;br /&gt;
&lt;br /&gt;
# Known bugs:&lt;br /&gt;
# - spaces in file names make trouble at the moment (so try to avoid spaces),&lt;br /&gt;
#   I will fix that later&lt;br /&gt;
# - some users seem to have problems with some of the sed statements,&lt;br /&gt;
#   I currently have no idea what is wrong there ... (please report those bugs)&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=`mktemp -d`&lt;br /&gt;
ISODIR=`mktemp -d`&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
HDDDIR=$TMPDIR/hdd&lt;br /&gt;
FLOPPYDIR=$TMPDIR/floppy&lt;br /&gt;
su --command=&amp;quot;\&lt;br /&gt;
  mkdir $HDDDIR;\&lt;br /&gt;
  mkdir $FLOPPYDIR;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $FLOPPYDIR;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmbio.com $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmdos.com $HDDDIR;\&lt;br /&gt;
  cp --preserve -u $FLOPPYDIR/* $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $HDDDIR;\&lt;br /&gt;
  cat $FLOPPYDIR/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$HDDDIR/config.sys;\&lt;br /&gt;
  cat $FLOPPYDIR/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$HDDDIR/autoexec.bat;\&lt;br /&gt;
  umount $FLOPPYDIR;\&lt;br /&gt;
  umount $HDDDIR;\&lt;br /&gt;
  rm -rf $FLOPPYDIR;\&lt;br /&gt;
  rm -rf $HDDDIR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
rm -rf $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=35418</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=35418"/>
		<updated>2007-12-28T11:02:31Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: some fixes in the script&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problem.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-12-28&lt;br /&gt;
&lt;br /&gt;
# Known bugs:&lt;br /&gt;
# - spaces in file names make trouble at the moment (so try to avoid spaces),&lt;br /&gt;
#   I will fix that later&lt;br /&gt;
# - some users seem to have problems with some of the sed statements,&lt;br /&gt;
#   I currently have no idea what is wrong there ... (please report those bugs)&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=`mktemp -d`&lt;br /&gt;
ISODIR=`mktemp -d`&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
su --command=&amp;quot;\&lt;br /&gt;
  mkdir $TMPDIR/hdd;\&lt;br /&gt;
  mkdir $TMPDIR/floppy;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $TMPDIR/floppy;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmbio.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmdos.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve -u $TMPDIR/floppy/* $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $TMPDIR/hdd;\&lt;br /&gt;
  cat $TMPDIR/floppy/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$TMPDIR/hdd/config.sys;\&lt;br /&gt;
  cat $TMPDIR/floppy/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$TMPDIR/hdd/autoexec.bat;\&lt;br /&gt;
  umount $TMPDIR/floppy;\&lt;br /&gt;
  umount $TMPDIR/hdd;\&lt;br /&gt;
  rm -rf $TMPDIR/floppy;\&lt;br /&gt;
  rm -rf $TMPDIR/hdd&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
rm -rf $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34417</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34417"/>
		<updated>2007-11-11T17:50:26Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: /* Approach 1: Use larger boot image and create virtual CD drive */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problem.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-11-11&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=/tmp/ibm-bios&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
mkdir -p $TMPDIR&lt;br /&gt;
&lt;br /&gt;
ISODIR=$TMPDIR/iso&lt;br /&gt;
&lt;br /&gt;
mkdir -p $ISODIR&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
su - --command=&amp;quot;\&lt;br /&gt;
  mkdir -p $TMPDIR/hdd;\&lt;br /&gt;
  mkdir -p $TMPDIR/floppy;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $TMPDIR/floppy;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmbio.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmdos.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve -u $TMPDIR/floppy/* $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $TMPDIR/hdd;\&lt;br /&gt;
  cat $TMPDIR/floppy/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$TMPDIR/hdd/config.sys;\&lt;br /&gt;
  cat $TMPDIR/floppy/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$TMPDIR/hdd/autoexec.bat;\&lt;br /&gt;
  umount $TMPDIR/floppy;\&lt;br /&gt;
  umount $TMPDIR/hdd;\&lt;br /&gt;
  rm -rf $TMPDIR/floppy;\&lt;br /&gt;
  rm -rf $TMPDIR/hdd&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34416</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34416"/>
		<updated>2007-11-11T17:49:43Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problem.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=/tmp/ibm-bios&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
mkdir -p $TMPDIR&lt;br /&gt;
&lt;br /&gt;
ISODIR=$TMPDIR/iso&lt;br /&gt;
&lt;br /&gt;
mkdir -p $ISODIR&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
su - --command=&amp;quot;\&lt;br /&gt;
  mkdir -p $TMPDIR/hdd;\&lt;br /&gt;
  mkdir -p $TMPDIR/floppy;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $TMPDIR/floppy;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmbio.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmdos.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve -u $TMPDIR/floppy/* $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $TMPDIR/hdd;\&lt;br /&gt;
  cat $TMPDIR/floppy/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$TMPDIR/hdd/config.sys;\&lt;br /&gt;
  cat $TMPDIR/floppy/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$TMPDIR/hdd/autoexec.bat;\&lt;br /&gt;
  umount $TMPDIR/floppy;\&lt;br /&gt;
  umount $TMPDIR/hdd;\&lt;br /&gt;
  rm -rf $TMPDIR/floppy;\&lt;br /&gt;
  rm -rf $TMPDIR/hdd&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34415</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34415"/>
		<updated>2007-11-11T17:49:15Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: /* Approach 1: Use larger boot image and create virtual CD drive */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problem.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke | Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=/tmp/ibm-bios&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
mkdir -p $TMPDIR&lt;br /&gt;
&lt;br /&gt;
ISODIR=$TMPDIR/iso&lt;br /&gt;
&lt;br /&gt;
mkdir -p $ISODIR&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
su - --command=&amp;quot;\&lt;br /&gt;
  mkdir -p $TMPDIR/hdd;\&lt;br /&gt;
  mkdir -p $TMPDIR/floppy;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $TMPDIR/floppy;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmbio.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmdos.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve -u $TMPDIR/floppy/* $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $TMPDIR/hdd;\&lt;br /&gt;
  cat $TMPDIR/floppy/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$TMPDIR/hdd/config.sys;\&lt;br /&gt;
  cat $TMPDIR/floppy/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$TMPDIR/hdd/autoexec.bat;\&lt;br /&gt;
  umount $TMPDIR/floppy;\&lt;br /&gt;
  umount $TMPDIR/hdd;\&lt;br /&gt;
  rm -rf $TMPDIR/floppy;\&lt;br /&gt;
  rm -rf $TMPDIR/hdd&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34414</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34414"/>
		<updated>2007-11-11T17:47:54Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: /* Approach 1: Use larger boot image and create virtual CD drive */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problem.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section [[BIOS_Upgrade/X_Series:Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]] below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.geocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke | Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=/tmp/ibm-bios&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
mkdir -p $TMPDIR&lt;br /&gt;
&lt;br /&gt;
ISODIR=$TMPDIR/iso&lt;br /&gt;
&lt;br /&gt;
mkdir -p $ISODIR&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
su - --command=&amp;quot;\&lt;br /&gt;
  mkdir -p $TMPDIR/hdd;\&lt;br /&gt;
  mkdir -p $TMPDIR/floppy;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $TMPDIR/floppy;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmbio.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmdos.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve -u $TMPDIR/floppy/* $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $TMPDIR/hdd;\&lt;br /&gt;
  cat $TMPDIR/floppy/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$TMPDIR/hdd/config.sys;\&lt;br /&gt;
  cat $TMPDIR/floppy/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$TMPDIR/hdd/autoexec.bat;\&lt;br /&gt;
  umount $TMPDIR/floppy;\&lt;br /&gt;
  umount $TMPDIR/hdd;\&lt;br /&gt;
  rm -rf $TMPDIR/floppy;\&lt;br /&gt;
  rm -rf $TMPDIR/hdd&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34413</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34413"/>
		<updated>2007-11-11T17:47:08Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: /* Approach 1: Use larger boot image and create virtual CD drive */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problem.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section [[BIOS_Upgrade/X_Series:Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]] below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [[http://www.geocities.com/jadoxa/shsucdx/index.html]].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke | Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=/tmp/ibm-bios&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
mkdir -p $TMPDIR&lt;br /&gt;
&lt;br /&gt;
ISODIR=$TMPDIR/iso&lt;br /&gt;
&lt;br /&gt;
mkdir -p $ISODIR&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
su - --command=&amp;quot;\&lt;br /&gt;
  mkdir -p $TMPDIR/hdd;\&lt;br /&gt;
  mkdir -p $TMPDIR/floppy;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $TMPDIR/floppy;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmbio.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmdos.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve -u $TMPDIR/floppy/* $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $TMPDIR/hdd;\&lt;br /&gt;
  cat $TMPDIR/floppy/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$TMPDIR/hdd/config.sys;\&lt;br /&gt;
  cat $TMPDIR/floppy/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$TMPDIR/hdd/autoexec.bat;\&lt;br /&gt;
  umount $TMPDIR/floppy;\&lt;br /&gt;
  umount $TMPDIR/hdd;\&lt;br /&gt;
  rm -rf $TMPDIR/floppy;\&lt;br /&gt;
  rm -rf $TMPDIR/hdd&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34412</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34412"/>
		<updated>2007-11-11T17:33:17Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: Reorganize page and add a new approach&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problem.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section [[BIOS_Upgrade/X_Series:Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]] below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.geocities.com/jadoxa/shsucdx/index.html | SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [[http://www.geocities.com/jadoxa/shsucdx/index.html]].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 8 system (it should also run without problems on Fedora 7 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke | Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=/tmp/ibm-bios&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
mkdir -p $TMPDIR&lt;br /&gt;
&lt;br /&gt;
ISODIR=$TMPDIR/iso&lt;br /&gt;
&lt;br /&gt;
mkdir -p $ISODIR&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
su - --command=&amp;quot;\&lt;br /&gt;
  mkdir -p $TMPDIR/hdd;\&lt;br /&gt;
  mkdir -p $TMPDIR/floppy;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $TMPDIR/floppy;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmbio.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve $TMPDIR/floppy/ibmdos.com $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve -u $TMPDIR/floppy/* $TMPDIR/hdd/;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $TMPDIR/hdd;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $TMPDIR/hdd;\&lt;br /&gt;
  cat $TMPDIR/floppy/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$TMPDIR/hdd/config.sys;\&lt;br /&gt;
  cat $TMPDIR/floppy/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$TMPDIR/hdd/autoexec.bat;\&lt;br /&gt;
  umount $TMPDIR/floppy;\&lt;br /&gt;
  umount $TMPDIR/hdd;\&lt;br /&gt;
  rm -rf $TMPDIR/floppy;\&lt;br /&gt;
  rm -rf $TMPDIR/hdd&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User:Joachim_Selke&amp;diff=34411</id>
		<title>User:Joachim Selke</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User:Joachim_Selke&amp;diff=34411"/>
		<updated>2007-11-11T17:07:53Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: â†Created page with 'Email: mail@joachim-selke.de'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Email: mail@joachim-selke.de&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34410</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34410"/>
		<updated>2007-11-11T15:19:52Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: Added TOC&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. The CD images provided by Lenovo can be modified such that they contain drivers for USB CD drives. I tested the following with a Thinkpad {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
The idea is to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something. Therefore, before starting the update process the CD contents have to be copied to a RAM disk. I will describe the procedure step by step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Alternative method using a USB stick===&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
===Comments===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Alternative method to the above &amp;quot;alternative method&amp;quot;===&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=34409</id>
		<title>BIOS Upgrade</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=34409"/>
		<updated>2007-11-11T15:19:02Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: Moved X series instructions to a new page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
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 IBM website.&lt;br /&gt;
&lt;br /&gt;
{{NOTE| In one case ([[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.}}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==Before You Begin==&lt;br /&gt;
Updating the BIOS in Linux (with few exceptions) '''is not officially supported''' by IBM/Lenovo.  However there are work arounds.&lt;br /&gt;
&lt;br /&gt;
{{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 unfixable problems.&lt;br /&gt;
&lt;br /&gt;
'''Proceed at your own risk!'''&lt;br /&gt;
&lt;br /&gt;
It is also important to understand that Thinkpads from IBM have two separate firmwares: the BIOS, and the Embedded Controller program.  A given BIOS version will require a certain version of the Embedded Controller program.&lt;br /&gt;
&lt;br /&gt;
The IBM documentation is sometimes unclear about the order in which these two firmwares should be updated.  On most, but not all Thinkpads, '''the correct update order is Embedded Controller program first, and then the BIOS'''.  Make sure to do the two updates immediately one after the other.  Newer models from Lenovo update both the Embedded Controller program and the BIOS at the same time, so you don't have to worry about it.}}&lt;br /&gt;
&lt;br /&gt;
==BIOS Upgrade Paths==&lt;br /&gt;
&lt;br /&gt;
For every firmware (either BIOS or Embedded Controller program) update on the IBM web site there used to be two different firmware update programs provided. The Diskette Updater and the Non Diskette Updater. For newer Lenovo Models the Diskette Updater is replaced with a bootable CD-Image and the Non Diskette Updater is renamed BIOS Update Utility, both of which update the BIOS and the Embedded Controller program at the same time. A list of links to firmware downloads can be found at [[BIOS Upgrade Downloads]] for nearly all Thinkpad Models.&lt;br /&gt;
&lt;br /&gt;
===The Diskette Updater===&lt;br /&gt;
&lt;br /&gt;
The Diskette updater appears to be a 16 bit DOS program which asks you to accept a license agreement.  It will run in Windows, DOS, OS/2, or [http://dosemu.sf.net Dosemu] perfectly, but requires a real floppy disk attached via a real floppy controller.  A USB Floppy Drive will not work.&lt;br /&gt;
&lt;br /&gt;
===The Bootable CD Image===&lt;br /&gt;
&lt;br /&gt;
Newer models from Lenovo can be updated using the Bootable CD Image.  This should be the easiest way for non-Windows users and also maybe a more secure way for Windows users, as well. As the image is provided as a plain ISO-file without any Windows enclosure, you can simply burn it to a CD-R/RW with any modern operating system, as long as you have a CD/DVD-RW Drive and are then able to boot from it.&lt;br /&gt;
&lt;br /&gt;
===Extracting a Bootable CD-ROM Image from the Non Diskette Updater===&lt;br /&gt;
{{WARN|Though this process was successfully tested on one version of .exe files found on IBMs website this doesn't mean it will work for all of them.  Proceed at your own risk.  Consult the list at the bottom of this page to see other users' experience with your model Thinkpad.}}&lt;br /&gt;
&lt;br /&gt;
This installer appears to be a 32bit windows .exe which is designed for updating the BIOS directly from a running Windows OS.  It turns out that this .exe is really 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.  Run the following:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|cabextract FILENAME.exe}}&lt;br /&gt;
&lt;br /&gt;
This will extract 8 files in the current directory.  One of them will be FILENAME.img.  In this discussion, &amp;quot;FILENAME&amp;quot; represents the name of the Non Diskette file that you downloaded, such as &amp;quot;1NHJ04US&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can test that this is really a floppy image by running:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|mkdir mntfloppy}}&lt;br /&gt;
:{{cmdroot|mount -o loop FILENAME.img mntfloppy}}&lt;br /&gt;
:{{cmdroot|ls -la mntfloppy}}&lt;br /&gt;
&lt;br /&gt;
If the results of {{cmdroot|ls -la mntfloppy}} look like a dos floppy, and no read errors were displayed, you have a pretty good chance that the floppy image is usable.&lt;br /&gt;
&lt;br /&gt;
Unmount the image after you are done:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|umount mntfloppy}}&lt;br /&gt;
&lt;br /&gt;
Now, you can proceed to [[BIOS_Upgrade:Creating a Bootable CD from a Floppy Image]], below.&lt;br /&gt;
&lt;br /&gt;
== Updating Thinkpad X Series ==&lt;br /&gt;
&lt;br /&gt;
The special update instructions for X series Thinkpads are quite long. You can find them at the page [[BIOS_Upgrade/X_Series]].&lt;br /&gt;
&lt;br /&gt;
==Updating via CD/DVD Drive==&lt;br /&gt;
&lt;br /&gt;
The whole thing gets more complicated if you neither have Windows nor a floppy drive installed. This is what this page is intended to describe.&lt;br /&gt;
&lt;br /&gt;
Another possibility which works even without a CD-drive or network is to boot the disk image via the grub initrd mechanism.&lt;br /&gt;
&lt;br /&gt;
Be aware that IBM officially does '''not''' support this! The official statement to my support request was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
I'm afraid we only support the options listed on our web page and no you&lt;br /&gt;
can't burn a CD/DVD, however you can try to use an external USB FDD&lt;br /&gt;
(floppy) drive. The experts recommend a IBM USB FDD, however they have also&lt;br /&gt;
tested it with a Sony USB FDD drive.&lt;br /&gt;
&lt;br /&gt;
In order to make sure the drive is recognised you can boot up the FDD with&lt;br /&gt;
a bootable dos diskette for w98&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But it seems to be possible as Mathias Dalheimer describes this [http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html here].&lt;br /&gt;
&lt;br /&gt;
Another indication that it should work is that IBM uses PHLASH16.EXE (at least on T4x/p systems) to flash the BIOS into the chip. The same tool is used by [http://www.samsungpc.com/gb/support/p35/bios/bios-instructions.html other vendors] to flash the BIOS from bootable CD-ROMs.&lt;br /&gt;
{{WARN|Do '''not''' use the [http://syslinux.zytor.com/ SYSLINUX] image-loader [http://syslinux.zytor.com/memdisk.php MEMDISK] to boot the images! Some flash tools crash in that situation!}}&lt;br /&gt;
&lt;br /&gt;
Some interesting but very technical information about the used flash tool can be found [http://www.paul.sladen.org/thinkpad-r31/wifi-card-pci-ids.html here].&lt;br /&gt;
&lt;br /&gt;
===Creating a Floppy Image===&lt;br /&gt;
If you have created a boot floppy on another machine, you need to create an image file of that floppy. This can be easily done in linux by running a command line:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|1=dd bs=2x80x18b if=/dev/fd0 of=/tmp/floppy.img}}&lt;br /&gt;
&lt;br /&gt;
You can also create a floppy image by using Ken Kato's [http://chitchat.at.infoseek.co.jp/vmware/vfd.html VMware's back]. It is a free Windoze tool that creates a virtual floppy drive and allows you to produce an image file ready to be ISO'ed. Note: you might have to 'manually' (through application's interface) assign the virtual drive a volume letter in order to be seen by IBM's application (as, by default, it seems not to do it).&lt;br /&gt;
&lt;br /&gt;
You should verify this {{path|floppy.img}} as explained above.&lt;br /&gt;
&lt;br /&gt;
===Creating a Bootable CD from a Floppy Image===&lt;br /&gt;
Once you have your floppy image, either from imaging a real floppy, or from extracting them via the cabextract method above, you need to make a boot CD out of it.&lt;br /&gt;
&lt;br /&gt;
The eltorito bootable CD standard is a wonderful thing.  What this means is that a bootable CD can be made with a bootable floppy 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.&lt;br /&gt;
&lt;br /&gt;
It is very easy to create such a bootable CD ISO image in Linux using the mkisofs tool.  To do this run a command as follows:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|mkisofs -b bootfloppy.img -o bootcd.iso bootfloppy.img}}&lt;br /&gt;
&lt;br /&gt;
where bootfloppy.img is the name of the .img floppy image file, for example 1NUJ10US.IMG.&lt;br /&gt;
&lt;br /&gt;
Note: This creates a CD with one file on it and marks that file as the boot image.  For more info on this read {{cmduser|man mkisofs}}.&lt;br /&gt;
&lt;br /&gt;
You can now burn the {{path|bootcd.iso}} in your favorite CD burning program.&lt;br /&gt;
&lt;br /&gt;
To get an overview which models have been tested with this version, here is a list:&lt;br /&gt;
&lt;br /&gt;
===Does work:===&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
| '''Model''' || '''Tested by'''&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{600E}} (2645-4AU) ||&lt;br /&gt;
*George Tellalov &amp;lt;gtellalov_dontspamme@bigfoot.com&amp;gt;. 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 ;)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{600E}} (2645-5bU) ||&lt;br /&gt;
*Mike Vincent&amp;lt;matchstc-putobvioushere.com&amp;gt;. 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 &amp;quot;real&amp;quot; floppy! Each from different diskettes .The updater would start, give me the &amp;quot;going to take30 seconds&amp;quot; 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?&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{600X}} (2645) ||&lt;br /&gt;
*Jonathan Byrne &amp;lt;jonathan@RemoveThisToMailMe.yamame.org&amp;gt;. BIOS 1.11 from spsuit55.exe worked perfectly using cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{600X}} (2645) ||&lt;br /&gt;
*Andy Barnes &amp;lt;andy@RemoveThisToMailMe.itchypaws.co.uk&amp;gt;. 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!&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A20p}} (2629-6VU) ||&lt;br /&gt;
*Chris Pickett http://www.sable.mcgill.ca/~cpicke/. BIOS 1.11 flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A21e}} (2628-JXU) ||&lt;br /&gt;
*Amit Gurdasani &amp;lt;gurdasani at yahoo dot com&amp;gt;. 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 &amp;quot;do not shut down the laptop&amp;quot; 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.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A31p}} (2653) ||&lt;br /&gt;
*Matthias Meinke largeeddy@gmx.at, BIOS 1.09 1NET15WW flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A31}} (2652) ||&lt;br /&gt;
*[[User:Wnoise|Aaron Denney]], BIOS 1.13 flashed fine with cabextract/CD method.  The cabextract/CD method also worked for BIOS 1.10.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{R30}}  ||&lt;br /&gt;
*Jarrod, 30 August 2007, Thinkpad R30 Type 2656-E0M. BIOS updated to 1.40 (1CETF0WW) using floppy disk/mkisofs/cdrecord. Worked fine, no problems. &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{R31}} ||&lt;br /&gt;
*[http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html Mathias Dalheimer]&lt;br /&gt;
*Sebastian Sauer (with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R40}} ||&lt;br /&gt;
*Matthew Lambie, http://lambie.org&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R50}} (1836-3SU) ||&lt;br /&gt;
*jlbartos &amp;lt;jlbartos at hotmail dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R50e}} (1834-PTG) ||&lt;br /&gt;
*item &amp;lt;item at freemail dot hu&amp;gt; : successfully finished with cabextract/CD method for &amp;quot;1wuj25us.exe&amp;quot; (BIOS version 1WET90WW (2.10), Release Date: 2006/12/22)&lt;br /&gt;
*Christos Nouskas &amp;lt;nouskas at gmail dot com&amp;gt;: upgraded to BIOS version 1WET90WW (2.10) and EC version 1VHT28WW (1.04) using GRUB (BIOS first / EC second)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (1829) ||&lt;br /&gt;
*Robert Uhl &amp;lt;rob dot uhl at gmx dot de&amp;gt;, Jellby &amp;lt;jellby at yahoo dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (1830-RM7) ||&lt;br /&gt;
*Will Parker &amp;lt;stardotstar at sourcepoint dot com dot au&amp;gt; successfully flashed 3.20 using existing 3.04 ECP and retained custom boot splash.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (2887) ||&lt;br /&gt;
*Ingo van Lil &amp;lt;inguin at gmx dot de&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R52}} (1858) ||&lt;br /&gt;
*Stuart McCord &amp;lt;stuart dot mccord at gmail dot com&amp;gt;  flashed both BIOS and ECP using cabextract, BIOS flashed first as on IBM website&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T20}} ||&lt;br /&gt;
*Franz Hassels &amp;lt;fhassel at suse dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T22}} ||&lt;br /&gt;
*Daniel Maier &amp;lt;nusse teamidiot de&amp;gt;&lt;br /&gt;
*Mathias Behrle (with cabextract/CD method, Version 1.07 =&amp;gt; 1.12) --[[User:Mathiasb|Mathiasb]] 11:58, 14 December 2006 (CET)&lt;br /&gt;
*Bob Skaroff (cabextract/CD), 1.06 =&amp;gt; 1.12&lt;br /&gt;
*Leo Butler (cabextract/CD), 1.11 =&amp;gt; 1.12 &lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T23}} ||&lt;br /&gt;
*Bart Snapp &amp;lt;snapp at uiuc dot edu&amp;gt; Note: I followed IBM's instructions to flash the BIOS *first* and the Embedded Controller *second*.&lt;br /&gt;
*Moy Easwaran: BIOS 1.18 / EC 1.06a via cabextract and CD-boot.  The BIOS-update exe generated errors in Windows 2000.&lt;br /&gt;
*Joe Renes: BIOS 1.18 / EC 1.06a on 2006-03-20 via cabextract and CD-boot. Piece of cake.&lt;br /&gt;
*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&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T30}} ||&lt;br /&gt;
*Martin GÃ¼hring &amp;lt;guehring at gmail.com&amp;gt; BIOS 2.10 via cabextract the Non-Diskette BIOS -&amp;gt; mkisofs '''in the directory the exe was extracted''' to generate the iso -&amp;gt; burn the iso -&amp;gt; boot the CD&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{T40}} ||&lt;br /&gt;
*Sean Dague, http://dague.net&lt;br /&gt;
*Justin Mason, http://jmason.org&lt;br /&gt;
*Ivanhoe (Bios 3.19)&lt;br /&gt;
*Alessandro Raulino (roger_2) EC 3.04 &amp;amp; BIOS 3.23 flashed with cabextract/CD method&lt;br /&gt;
*Nick Jenkins, using BIOS 3.23 with the [[#The_Non_Diskette_Updater|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!&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T40p}} ||&lt;br /&gt;
*Lukas KrÃ¤henbÃ¼hl, ismo at pop dot agri dot ch&lt;br /&gt;
*Thomas Achtemichuk, tom at tomchuk dot com. BIOS 3.15 flashed fine with cabextract/CD method&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{T41}} ||&lt;br /&gt;
*Lev Givon (Bios 3.15 / EC 3.04) &amp;lt;lev at columbia dot edu&amp;gt;&lt;br /&gt;
*Ernesto HernÃ¡ndez-Novich (Bios 3.19 / CP 3.04) &amp;lt; emhn at usb dot ve &amp;gt;&lt;br /&gt;
*[http://maebmij.org James Ballantine] (Bios 3.21 / CP 3.04) using nondisk/cabextract/CDRW&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T41p}} ||&lt;br /&gt;
*Nils Newman, work great. (Version: Bios 3.14 / Embedded Controller 3.04)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T42}} ||&lt;br /&gt;
*Dan (BIOS 3.20 / EC 3.04, cabextract/CD method) &amp;lt;tronic171 at evilphb.org&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T42p}} ||&lt;br /&gt;
*Robert Schiele &amp;lt;rschiele@uni-mannheim.de&amp;gt;, Joern Heissler &amp;lt;joern@heissler.de&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T43}}  ||&lt;br /&gt;
*Conrad Rentsch &amp;lt;Conrad dot Rentsch at t-online dot de&amp;gt; (Version: Bios 1.29 / Embedded Controller 1.06)&lt;br /&gt;
*Tom Heady &amp;lt;tom-thinkwiki.org@punch.net&amp;gt;&lt;br /&gt;
*Florian Boucault &amp;lt;florian at boucault dot ath dot cx&amp;gt; (Model : 1871-W34 &amp;amp; Version: Bios 1.23 / Embedded Controller 1.03)&lt;br /&gt;
*Till Heikamp &amp;lt;t dot heikamp at geniusbytes dot com&amp;gt; (Model 2886, Bios 1.22 to 1.29, Embedded Controller 1.03 to 1.06)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T60}}  ||&lt;br /&gt;
*Roman Komkov &amp;lt;roman  at komkov dot org dot ru&amp;gt; (Model 1951, Bios 1.07 to 2.13) Successfully upgraded from CD Image&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T61}}  ||&lt;br /&gt;
*Kai Weber &amp;lt;kai.weber  at glorybox dot org&amp;gt; (Bios 1.06 to 1.26) Successfully upgraded from CD Image&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X20}}  ||&lt;br /&gt;
*Neil Caunt &amp;lt;retardis at gmail dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X21}}  ||&lt;br /&gt;
*Patrick Leickner &amp;lt;ranma at web dot de&amp;gt;, (BIOS 2.21-&amp;gt;2.25 / EC 1.31-&amp;gt;1.36) via non-disk/cabextract/mkisofs/cdrecord&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X22}}  ||&lt;br /&gt;
*David Emery &amp;lt;dave at skiddlydee dot com&amp;gt;,  (EC 1.30, BIOS 1.32 using non-disk/cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X23}}  ||&lt;br /&gt;
*Nils Faerber &amp;lt;nils dot faerber at kernelconcepts dot de&amp;gt; (Embedded Controller 1.30, BIOS 1.32 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X30}}  ||&lt;br /&gt;
*Hella Breitkopf, [http://www.unixwitch.de/ www]  (Embedded Controller 1.04, BIOS 1.07 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X31}}  ||&lt;br /&gt;
*Grzegorz KuÅ›nierz &amp;lt;koniu at sheket dot org&amp;gt;  (Embedded Controller 1.08, BIOS 3.01 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X40}}  ||&lt;br /&gt;
*Robbie Stone &amp;lt;robbie@serendipity.cx&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{Z60m}}  ||&lt;br /&gt;
*[[User:Morle|Morle]] 13:09, 20 May 2006 (CEST),  (Embedded Controller 1.14 with cabextract/CD method)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Does not work:===&lt;br /&gt;
{|&lt;br /&gt;
| '''Model''' || '''Tested by'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Please note that testing this is '''at your own risk'''!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating via Grub and a Floppy Image==&lt;br /&gt;
&lt;br /&gt;
{{WARN|Many have warned '''not''' to use the [http://syslinux.zytor.com/ SYSLINUX] image-loader [http://syslinux.zytor.com/memdisk.php MEMDISK] to boot the images! Some flash tools may crash in that situation!  Proceed at your own risk!}}&lt;br /&gt;
&lt;br /&gt;
Floppy images may be booted from Grub via a utility called [http://syslinux.zytor.com/memdisk.php MEMDISK], which may be compiled from the [http://www.kernel.org/pub/linux/utils/boot/syslinux/ '''SYSLINUX source'''].  Copy the compiled memdisk image and the floppy image to your boot directory and configure grub as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
title     Bios Flash&lt;br /&gt;
kernel    /boot/memdisk&lt;br /&gt;
initrd    /boot/FILENAME.img&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, proceed at your own risk.  This was tested on an R51 type 2888.&lt;br /&gt;
&lt;br /&gt;
This also worked for me on a T41p type 2373. -- [[User:MrStaticVoid|James Lee]] 20:55, 8 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
And it worked for me on a X31 type 2673-CBU. -- [[User:JanTopinski|Jan Topinski]], 18 September 2006 &lt;br /&gt;
&lt;br /&gt;
And it worked for me too on a X31 type 2672-CXU, very useful. -- [[User:TheAnarcat|TheAnarcat]] 16:21, 7 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
Same here (worked) on a X31 type 2673-58G --[[User:FaUl|FaUl]] 15:53, 20 June 2007 (UTC)FaUl&lt;br /&gt;
&lt;br /&gt;
Works well on a X31 type 2672-PG9, but with a big moment between starting update and the updating window -- [[User:Starox|Starox]] 22 Jul 2007&lt;br /&gt;
&lt;br /&gt;
And it worked for me on two X40 type 2371 -- [[User:Antialize|Jakob Truelsen]], 19 Jan 2007 -- BIOS: 2.07 1uuj21us.exe -- ECP: 1.62 1uhj10us.exe&lt;br /&gt;
&lt;br /&gt;
Not working for me on T43 type 2668-F7G -- [[User:Maus3273|Maus3273]] 20:48, 30 January 2007 (CET) -- BIOS: 1.29 1YUJ18US.IMG -- I got into the bios program, but the machine never restarts after initiating the upgrade.&lt;br /&gt;
&lt;br /&gt;
X41 type 2525-F8G -- [[User:ladoga|Lauri Koponen]], 11:08 16 Apr 2007&amp;lt;br&amp;gt; &lt;br /&gt;
BIOS: 2.09 (74UJ15US.IMG), is no go. (hangs while initialising the actual flashing process) I tried with 2.07 (74UJ13US.IMG) and 2.06 (74UJ12US.IMG) aswell and they all failed in the very same fashion.&amp;lt;br&amp;gt;&lt;br /&gt;
ECP: 1.02 74HJ03US.IMG, works.&lt;br /&gt;
&lt;br /&gt;
It works fine on R30 type 2656-64g, BIOS v.1.40 -- [[User:english.voodoo|Yuri Spirin]], 10 May 2007.&lt;br /&gt;
&lt;br /&gt;
==Updating with Network Boot Image==&lt;br /&gt;
&lt;br /&gt;
BIOS, Embedded Controller (EC), CD/DVD and Harddisk firmware disks can be booted&lt;br /&gt;
over the network with [http://syslinux.zytor.com/pxe.php PXELINUX] as part of the [http://syslinux.zytor.com/ SYSLINUX] package.&lt;br /&gt;
&lt;br /&gt;
This requires that you have a DHCP and tftp server configured and setup properly on&lt;br /&gt;
your network, and is probably not for the faint of heart.&lt;br /&gt;
&lt;br /&gt;
Make sure the firmware bootdisk is in linux 'dd' format, as the self-extracting .exe disks&lt;br /&gt;
from the IBM website cannot be booted directly as such.&lt;br /&gt;
&lt;br /&gt;
This worked on the {{R31}}, {{X22}}, {{T21}}, {{T30}} and {{T41p}} with various firmware updates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On {{X22}}, works with EC 1.30 but NOT with BIOS 1.32&lt;br /&gt;
&lt;br /&gt;
==Updating via &amp;quot;IBM Predesktop area&amp;quot;, suitable for model X (not have CDROM and floppy)==&lt;br /&gt;
It's so difficult to update BIOS and ECP without cdrom, floppy disk.&lt;br /&gt;
Don't know the reason why I couldn't update BIOS and ECP(1QHJ08US and 1QUJ19US) for my IBM Thinkpad X31.Hmm, may be cause of the dividing partition on my hard disk, that is: 	&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Primary: ext3, ext3, ntfs&lt;br /&gt;
Extended: Ntsf, fat32&lt;br /&gt;
Bootloader: GRUB&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No problem, you can use this way to do it:&lt;br /&gt;
* First, config in BIOS&lt;br /&gt;
In Security part:&lt;br /&gt;
# Remove all password of Subpervisor and Power on password&lt;br /&gt;
# Set Access IBM Predesktop Area to Normal&lt;br /&gt;
# Choose Enable &amp;quot;Flash BIOS updating by End User&amp;quot; in BIOS update Option.&lt;br /&gt;
&lt;br /&gt;
In Config part:&lt;br /&gt;
# Choose Enable for Network flash over Lan&lt;br /&gt;
&lt;br /&gt;
* Second, download the newest version of BIOS update and ECP update &lt;br /&gt;
Running: The program extract all files to the folder. There is a .img file (1QUJ19US.IMG, 1QUJ08US.IMG) in each folder.&lt;br /&gt;
Copy the imformation content in that img file and paste it to one FAT partition(using winimage or TotalCmd to extract) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
as seen All files in 1QUJ19US.IMG is extracted to D:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
695,764  $018E000.FL1&lt;br /&gt;
163      0691.HSH&lt;br /&gt;
2,049    0691.PAT&lt;br /&gt;
163      0694.HSH&lt;br /&gt;
2,049    0694.PAT&lt;br /&gt;
163      0695.HSH&lt;br /&gt;
2,049    0695.PAT&lt;br /&gt;
2,049    06D0.PAT&lt;br /&gt;
163      06D1.HSH&lt;br /&gt;
2,049    06D1.PAT&lt;br /&gt;
163      06D2.HSH&lt;br /&gt;
2,049    06D2.PAT&lt;br /&gt;
163      06D6.HSH&lt;br /&gt;
2,049    06D6.PAT&lt;br /&gt;
2,049    06D8.PAT&lt;br /&gt;
697      CHKBMP.EXE&lt;br /&gt;
8,128    COMMAND.COM&lt;br /&gt;
26       CONFIG.SYS&lt;br /&gt;
24,860   FLASH2.EXE&lt;br /&gt;
26       LCREFLSH.BAT&lt;br /&gt;
170      LOGO.BAT&lt;br /&gt;
330      LOGO.SCR&lt;br /&gt;
111,925  PHLASH16.EXE&lt;br /&gt;
91,648   PREPARE.EXE&lt;br /&gt;
45       PROD.DAT&lt;br /&gt;
22,252   QKFLASH.EXE&lt;br /&gt;
9,923    README.TXT&lt;br /&gt;
4,260    TPCHKS.EXE&lt;br /&gt;
39,666   UPDTFLSH.EXE&lt;br /&gt;
6,958    UPDTMN.EXE&lt;br /&gt;
12,501   USERINT.EXE&lt;br /&gt;
15,254   UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And all files in 1QUJ08US.IMG are: D:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
315,404 $018E000.FL2&lt;br /&gt;
8,000   COMMAND.COM&lt;br /&gt;
36      CONFIG.SYS&lt;br /&gt;
16,910  ECFLASH2.EXE&lt;br /&gt;
45      PROD.DAT&lt;br /&gt;
17,812  QKFLASH.EXE&lt;br /&gt;
990     README.TXT&lt;br /&gt;
4,260   TPCHKS.EXE&lt;br /&gt;
89,738  UPDTEC.EXE&lt;br /&gt;
31,134  UPDTFLSH.EXE&lt;br /&gt;
12,501  USERINT.EXE&lt;br /&gt;
15,226  UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Okie, now plug AC Adapter, charge full battery to your laptop and continue third step:&lt;br /&gt;
&lt;br /&gt;
** '''Flash BIOS first,'''&lt;br /&gt;
1. Power On, press blue button on keyboard: '''Access IBM'''&lt;br /&gt;
&lt;br /&gt;
2. On &amp;quot;Utilities&amp;quot;, double click &amp;quot; Diagnostic disk&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Your laptop will start PC-DOS, wait when this message appear:&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Please insert the first floppy diskette and&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Press Ctrl + Break, you will see :&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;Terminate batch job (Y/N) ?&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Okie, press Y, you will get DOS prompt like D:\&lt;br /&gt;
{{NOTE|D:\ is my RAMDISK, C:\ is my disk format as FAT.!}}&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\BIOS&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run FLASH2.EXE /u $018E000.FL1&lt;br /&gt;
&lt;br /&gt;
8. Wait flash progress compelete and reboot.&lt;br /&gt;
** '''Flash ECP'''&lt;br /&gt;
Follow above instruction from step 1 to 5&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\ECP&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. run UPDTFLSH.EXE $018E000.FL2&lt;br /&gt;
&lt;br /&gt;
8. Follow UPDTFLSH's instructions&lt;br /&gt;
&lt;br /&gt;
9. Wait flash complete and auto turn off computer.&lt;br /&gt;
&lt;br /&gt;
I done it on my IBM Thinkpad X31.&lt;br /&gt;
&lt;br /&gt;
Enjoy,&lt;br /&gt;
&lt;br /&gt;
Tested by nm.&lt;br /&gt;
&lt;br /&gt;
==Check List==&lt;br /&gt;
&lt;br /&gt;
The following is important to remember:&lt;br /&gt;
# You must update '''both''' the Control Program and the BIOS at the same time if your current Control Program is not compatible with the new BIOS (see below)&lt;br /&gt;
# You must find versions of the Control Program and BIOS that are compatible.  Not all of them are, so follow the readmes on the IBM website carefully to determine which are.&lt;br /&gt;
# You must update the Control Program '''before''' you update the BIOS&lt;br /&gt;
&lt;br /&gt;
When the Control Program '''and''' the BIOS need updating, have both update disks or CDs ready. Update the Control Program first and the system should switch itself off when finished. Insert the BIOS update disk and proceed to update the BIOS. When it's all finished, enter setup, reset the settings to their defaults and reboot. Enter setup again and tweak the settings as necessary.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34408</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=34408"/>
		<updated>2007-11-11T15:18:54Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: Moved X series instructions to a new page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. The CD images provided by Lenovo can be modified such that they contain drivers for USB CD drives. I tested the following with a Thinkpad {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
The idea is to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something. Therefore, before starting the update process the CD contents have to be copied to a RAM disk. I will describe the procedure step by step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Alternative method using a USB stick===&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
===Comments===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Alternative method to the above &amp;quot;alternative method&amp;quot;===&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to HPUSBF\ (using WinRAR).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW utility, selecting the location of system files as C:\DriveKey\HPUSBF, and format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=29556</id>
		<title>BIOS Upgrade</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=29556"/>
		<updated>2007-04-29T16:52:32Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: /* Updating Thinkpad X Series */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
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 IBM website.&lt;br /&gt;
&lt;br /&gt;
{{NOTE| In one case ([[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.}}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==Before You Begin==&lt;br /&gt;
Updating the BIOS in Linux (with few exceptions) '''is not officially supported''' by IBM.  However there are work arounds.&lt;br /&gt;
&lt;br /&gt;
{{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 unfixable problems.&lt;br /&gt;
&lt;br /&gt;
'''Proceed at your own risk!'''&lt;br /&gt;
&lt;br /&gt;
It is also '''important''' to understand that all newer thinkpads have 2 seperate firmwares, the BIOS and the Control Program. A specific version of the Control Program will only work with specific versions of the BIOS.  The IBM documentation is sometimes confusing about the order of update.  Updating the Control Program first, then the BIOS seems to be the correct order.  Make sure to do the updates immediately following each other, otherwise you risk turning your thinkpad into a very nice paper weight.}}&lt;br /&gt;
&lt;br /&gt;
==BIOS Upgrade Paths==&lt;br /&gt;
&lt;br /&gt;
For every firmware (either BIOS or Control Program) update on the IBM site there are two different firmware update programs provided.  A list of links to firmware downloads can be found at [[BIOS Upgrade Downloads]] for nearly all Thinkpad Models.&lt;br /&gt;
&lt;br /&gt;
===The Diskette Updater===&lt;br /&gt;
&lt;br /&gt;
This installer appears to be a 16bit dos program which asks you to accept a license agreement.  It will run in Windows, DOS, OS/2, or [http://dosemu.sf.net Dosemu] perfectly, but requires a real floppy disk attached via a real floppy control.  The USB Floppy Drive to the new Thinkpads doesn't count.&lt;br /&gt;
&lt;br /&gt;
===The Non Diskette Updater===&lt;br /&gt;
{{WARN|Though this process was successfully tested on one version of .exe files found on IBMs website this doesn't mean it will work for all of them.  Use at your own risk.}}&lt;br /&gt;
&lt;br /&gt;
This installer appears to be a 32bit windows exe which is designed for updating the BIOS directly from a running Windows OS.  It turns out that the .exe is really a wrapper license program arround windows .cab files (this information is in [[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 files directly.  Run the following:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|cabextract FILENAME.exe}}&lt;br /&gt;
&lt;br /&gt;
You will get 8 files in the current directory.  One of them will be FILENAME.img.  You can test that this is really a floppy image by running:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|mkdir mntfloppy}}&lt;br /&gt;
:{{cmdroot|mount -o loop FILENAME.img mntfloppy}}&lt;br /&gt;
:{{cmdroot|ls -la mntfloppy}}&lt;br /&gt;
&lt;br /&gt;
If the results of {{cmdroot|ls -la mntfloppy}} look like a dos floppy, and no read errors were displayed, you have a pretty good chance that the floppy image is usable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you were able to create the boot floppy per the Diskette update method, and you have a Floppy with your Thinkpad, the update should be simple.&lt;br /&gt;
&lt;br /&gt;
== Updating Thinkpad X Series ==&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. The CD images provided by Lenovo can be modified such that they contain drivers for USB CD drives. I tested the following with a Thinkpad X60s.&lt;br /&gt;
&lt;br /&gt;
The idea is to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something. Therefore, before starting the update process the CD contents have to be copied to a RAM disk. I will describe the procedure step by step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Updating via CD/DVD Drive==&lt;br /&gt;
&lt;br /&gt;
The whole thing gets more complicated if you neither have Windows nor a floppy drive installed. This is what this page is intended to describe.&lt;br /&gt;
&lt;br /&gt;
Another possibility which works even without a CD-drive or network is to boot the disk image via the grub initrd mechanism.&lt;br /&gt;
&lt;br /&gt;
Be aware that IBM officially does '''not''' support this! The official statement to my support request was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
I'm afraid we only support the options listed on our web page and no you&lt;br /&gt;
can't burn a CD/DVD, however you can try to use an external USB FDD&lt;br /&gt;
(floppy) drive. The experts recommend a IBM USB FDD, however they have also&lt;br /&gt;
tested it with a Sony USB FDD drive.&lt;br /&gt;
&lt;br /&gt;
In order to make sure the drive is recognised you can boot up the FDD with&lt;br /&gt;
a bootable dos diskette for w98&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But it seems to be possible as Mathias Dalheimer describes this [http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html here].&lt;br /&gt;
&lt;br /&gt;
Another indication that it should work is that IBM uses PHLASH16.EXE (at least on T4x/p systems) to flash the BIOS into the chip. The same tool is used by [http://www.samsungpc.com/gb/support/p35/bios/bios-instructions.html other vendors] to flash the BIOS from bootable CD-ROMs.&lt;br /&gt;
{{WARN|Do '''not''' use the [http://syslinux.zytor.com/ SYSLINUX] image-loader [http://syslinux.zytor.com/memdisk.php MEMDISK] to boot the images! Some flash tools crash in that situation!}}&lt;br /&gt;
&lt;br /&gt;
Some interesting but very technical information about the used flash tool can be found [http://www.paul.sladen.org/thinkpad-r31/wifi-card-pci-ids.html here].&lt;br /&gt;
&lt;br /&gt;
===Creating a Floppy Image===&lt;br /&gt;
If you have created a boot floppy on another machine, you need to create an image file of that floppy. This can be easily done in linux by running a command line:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|1=dd bs=2x80x18b if=/dev/fd0 of=/tmp/floppy.img}}&lt;br /&gt;
&lt;br /&gt;
You can also create a floppy image by using Ken Kato's [http://chitchat.at.infoseek.co.jp/vmware/vfd.html VMware's back]. It is a free Windoze tool that creates a virtual floppy drive and allows you to produce an image file ready to be ISO'ed. Note: you might have to 'manually' (through application's interface) assign the virtual drive a volume letter in order to be seen by IBM's application (as, by default, it seems not to do it).&lt;br /&gt;
&lt;br /&gt;
You should verify this {{path|floppy.img}} as explained above.&lt;br /&gt;
&lt;br /&gt;
===Creating a Bootable CD from a Floppy Image===&lt;br /&gt;
Once you have your floppy image, either from imaging a real floppy, or from extracting them via the cabextract method above, you need to make a boot CD out of it.&lt;br /&gt;
&lt;br /&gt;
The eltorito bootable CD standard is a wonderful thing.  What this means is that a bootable CD can be made with a bootable floppy 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.&lt;br /&gt;
&lt;br /&gt;
It is very easy to create such a bootable CD ISO image in Linux using the mkisofs tool.  To do this run a command as follows:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|mkisofs -b bootfloppy.img -o bootcd.iso bootfloppy.img}}&lt;br /&gt;
&lt;br /&gt;
Note: You don't strictly need the last {{path|bootfloppy.img}}, however some versions of mkisofs get confused about why you would want to create an iso with no contents, and thus won't let you.  You don't actually care about the contents of the CD, you only care that the &amp;lt;tt&amp;gt;-b &amp;lt;boot image&amp;gt;&amp;lt;/tt&amp;gt; is applied to the CD.  For more info on this read {{cmduser|man mkisofs}}.&lt;br /&gt;
&lt;br /&gt;
You can now burn the {{path|bootcd.iso}} in your favorite CD burning program.&lt;br /&gt;
&lt;br /&gt;
To get an overview which models have been tested with this version, here is a list:&lt;br /&gt;
&lt;br /&gt;
===Does work:===&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
| '''Model''' || '''Tested by'''&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{600X}} (2645) ||&lt;br /&gt;
*Jonathan Byrne &amp;lt;jonathan@RemoveThisToMailMe.yamame.org&amp;gt;. BIOS 1.11 from spsuit55.exe worked perfectly using cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A20p}} (2629-6VU) ||&lt;br /&gt;
*Chris Pickett http://www.sable.mcgill.ca/~cpicke/. BIOS 1.11 flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A21e}} (2628-JXU) ||&lt;br /&gt;
*Amit Gurdasani &amp;lt;gurdasani at yahoo dot com&amp;gt;. 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 &amp;quot;do not shut down the laptop&amp;quot; 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.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A31p}} (2653) ||&lt;br /&gt;
*Matthias Meinke largeeddy@gmx.at, BIOS 1.09 1NET15WW flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A31}} (2652) ||&lt;br /&gt;
*[[User:Wnoise|Aaron Denney]], BIOS 1.13 flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{R31}} ||&lt;br /&gt;
*[http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html Mathias Dalheimer]&lt;br /&gt;
*Sebastian Sauer (with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R40}} ||&lt;br /&gt;
*Matthew Lambie, http://lambie.org&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R50}} (1836-3SU) ||&lt;br /&gt;
*jlbartos &amp;lt;jlbartos at hotmail dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R50e}} (1834-PTG) ||&lt;br /&gt;
*item &amp;lt;item at freemail dot hu&amp;gt; : successfully finished with cabextract/CD method for &amp;quot;1wuj25us.exe&amp;quot; (BIOS version 1WET90WW (2.10), Release Date: 2006/12/22)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (1829) ||&lt;br /&gt;
*Robert Uhl &amp;lt;rob dot uhl at gmx dot de&amp;gt;, Jellby &amp;lt;jellby at yahoo dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (1830-RM7) ||&lt;br /&gt;
*Will Parker &amp;lt;stardotstar at sourcepoint dot com dot au&amp;gt; successfully flashed 3.20 using existing 3.04 ECP and retained custom boot splash.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (2887) ||&lt;br /&gt;
*Ingo van Lil &amp;lt;inguin at gmx dot de&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R52}} (1858) ||&lt;br /&gt;
*Stuart McCord &amp;lt;stuart dot mccord at gmail dot com&amp;gt;  flashed both BIOS and ECP using cabextract, BIOS flashed first as on IBM website&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T20}} ||&lt;br /&gt;
*Franz Hassels &amp;lt;fhassel at suse dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T22}} ||&lt;br /&gt;
*Daniel Maier &amp;lt;nusse teamidiot de&amp;gt;&lt;br /&gt;
*Mathias Behrle (with cabextract/CD method, Version 1.07 =&amp;gt; 1.12) --[[User:Mathiasb|Mathiasb]] 11:58, 14 December 2006 (CET)&lt;br /&gt;
*Bob Skaroff (cabextract/CD), 1.06 =&amp;gt; 1.12&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T23}} ||&lt;br /&gt;
*Bart Snapp &amp;lt;snapp at uiuc dot edu&amp;gt; Note: I followed IBM's instructions to flash the BIOS *first* and the Embedded Controller *second*.&lt;br /&gt;
*Moy Easwaran: BIOS 1.18 / EC 1.06a via cabextract and CD-boot.  The BIOS-update exe generated errors in Windows 2000.&lt;br /&gt;
*Joe Renes: BIOS 1.18 / EC 1.06a on 2006-03-20 via cabextract and CD-boot. Piece of cake.&lt;br /&gt;
*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&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T30}} ||&lt;br /&gt;
*Martin GÃ¼hring &amp;lt;guehring at gmail.com&amp;gt; BIOS 2.10 via cabextract the Non-Diskette BIOS -&amp;gt; mkisofs '''in the directory the exe was extracted''' to generate the iso -&amp;gt; burn the iso -&amp;gt; boot the CD&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{T40}} ||&lt;br /&gt;
*Sean Dague, http://dague.net&lt;br /&gt;
*Justin Mason, http://jmason.org&lt;br /&gt;
*Ivanhoe (Bios 3.19)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T40p}} ||&lt;br /&gt;
*Lukas KrÃ¤henbÃ¼hl, ismo at pop dot agri dot ch&lt;br /&gt;
*Thomas Achtemichuk, tom at tomchuk dot com. BIOS 3.15 flashed fine with cabextract/CD method&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{T41}} ||&lt;br /&gt;
*Lev Givon (Bios 3.15 / EC 3.04) &amp;lt;lev at columbia dot edu&amp;gt;&lt;br /&gt;
*Ernesto HernÃ¡ndez-Novich (Bios 3.19 / CP 3.04) &amp;lt; emhn at usb dot ve &amp;gt;&lt;br /&gt;
*[http://maebmij.org James Ballantine] (Bios 3.21 / CP 3.04) using nondisk/cabextract/CDRW&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T41p}} ||&lt;br /&gt;
*Nils Newman, work great. (Version: Bios 3.14 / Embedded Controller 3.04)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T42}} ||&lt;br /&gt;
*Dan (BIOS 3.20 / EC 3.04, cabextract/CD method) &amp;lt;tronic171 at evilphb.org&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T42p}} ||&lt;br /&gt;
*Robert Schiele &amp;lt;rschiele@uni-mannheim.de&amp;gt;, Joern Heissler &amp;lt;joern@heissler.de&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T43}}  ||&lt;br /&gt;
*Conrad Rentsch &amp;lt;Conrad dot Rentsch at t-online dot de&amp;gt; (Version: Bios 1.29 / Embedded Controller 1.06)&lt;br /&gt;
*Tom Heady &amp;lt;tom-thinkwiki.org@punch.net&amp;gt;&lt;br /&gt;
*Florian Boucault &amp;lt;florian at boucault dot ath dot cx&amp;gt; (Model : 1871-W34 &amp;amp; Version: Bios 1.23 / Embedded Controller 1.03)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X20}}  ||&lt;br /&gt;
*Neil Caunt &amp;lt;retardis at gmail dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X21}}  ||&lt;br /&gt;
*Patrick Leickner &amp;lt;ranma at web dot de&amp;gt;, (BIOS 2.21-&amp;gt;2.25 / EC 1.31-&amp;gt;1.36) via non-disk/cabextract/mkisofs/cdrecord&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X22}}  ||&lt;br /&gt;
*David Emery &amp;lt;dave at skiddlydee dot com&amp;gt;,  (EC 1.30, BIOS 1.32 using non-disk/cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X23}}  ||&lt;br /&gt;
*Nils Faerber &amp;lt;nils dot faerber at kernelconcepts dot de&amp;gt; (Embedded Controller 1.30, BIOS 1.32 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X30}}  ||&lt;br /&gt;
*Hella Breitkopf, [http://www.unixwitch.de/ www]  (Embedded Controller 1.04, BIOS 1.07 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X31}}  ||&lt;br /&gt;
*Grzegorz KuÅ›nierz &amp;lt;koniu at sheket dot org&amp;gt;  (Embedded Controller 1.08, BIOS 3.01 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X40}}  ||&lt;br /&gt;
*Robbie Stone &amp;lt;robbie@serendipity.cx&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{Z60m}}  ||&lt;br /&gt;
*[[User:Morle|Morle]] 13:09, 20 May 2006 (CEST),  (Embedded Controller 1.14 with cabextract/CD method)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Does not work:===&lt;br /&gt;
{|&lt;br /&gt;
| '''Model''' || '''Tested by'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Please note that testing this is '''at your own risk'''!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating via Grub and a Floppy Image==&lt;br /&gt;
&lt;br /&gt;
{{WARN|Many have warned '''not''' to use the [http://syslinux.zytor.com/ SYSLINUX] image-loader [http://syslinux.zytor.com/memdisk.php MEMDISK] to boot the images! Some flash tools may crash in that situation!  Proceed at your own risk!}}&lt;br /&gt;
&lt;br /&gt;
Floppy images may be booted from Grub via a utility called [http://syslinux.zytor.com/memdisk.php MEMDISK], which may be compiled from the [http://www.kernel.org/pub/linux/utils/boot/syslinux/ '''SYSLINUX source'''].  Copy the compiled memdisk image and the floppy image to your boot directory and configure grub as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
title     Bios Flash&lt;br /&gt;
kernel    /boot/memdisk&lt;br /&gt;
initrd    /boot/FILENAME.img&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, proceed at your own risk.  This was tested on an R51 type 2888.&lt;br /&gt;
&lt;br /&gt;
This also worked for me on a T41p type 2373. -- [[User:MrStaticVoid|James Lee]] 20:55, 8 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
And it worked for me on a X31 type 2673-CBU. -- [[User:JanTopinski|Jan Topinski]], 18 September 2006 &lt;br /&gt;
&lt;br /&gt;
And it worked for me too on a X31 type 2672-CXU, very useful. -- [[User:TheAnarcat|TheAnarcat]] 16:21, 7 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
And it worked for me on two X40 type 2371 -- [[User:Antialize|Jakob Truelsen]], 19 Jan 2007 -- BIOS: 2.07 1uuj21us.exe -- ECP: 1.62 1uhj10us.exe&lt;br /&gt;
&lt;br /&gt;
Not working for me on T43 type 2668-F7G -- [[User:Maus3273|Maus3273]] 20:48, 30 January 2007 (CET) -- BIOS: 1.29 1YUJ18US.IMG -- I got into the bios program, but the machine never restarts after initiating the upgrade.&lt;br /&gt;
&lt;br /&gt;
X41 type 2525-F8G -- [[User:ladoga|Lauri Koponen]], 11:08 16 Apr 2007&amp;lt;br&amp;gt; &lt;br /&gt;
BIOS: 2.09 (74UJ15US.IMG), is no go. (hangs while initialising the actual flashing process) I tried with 2.07 (74UJ13US.IMG) and 2.06 (74UJ12US.IMG) aswell and they all failed in the very same fashion.&amp;lt;br&amp;gt;&lt;br /&gt;
ECP: 1.02 74HJ03US.IMG, works.&lt;br /&gt;
&lt;br /&gt;
==Updating with Network Boot Image==&lt;br /&gt;
&lt;br /&gt;
BIOS, Embedded Controller (EC), CD/DVD and Harddisk firmware disks can be booted&lt;br /&gt;
over the network with [http://syslinux.zytor.com/pxe.php PXELINUX] as part of the [http://syslinux.zytor.com/ SYSLINUX] package.&lt;br /&gt;
&lt;br /&gt;
This requires that you have a DHCP and tftp server configured and setup properly on&lt;br /&gt;
your network, and is probably not for the faint of heart.&lt;br /&gt;
&lt;br /&gt;
Make sure the firmware bootdisk is in linux 'dd' format, as the self-extracting .exe disks&lt;br /&gt;
from the IBM website cannot be booted directly as such.&lt;br /&gt;
&lt;br /&gt;
This worked on the {{R31}}, {{X22}}, {{T21}}, {{T30}} and {{T41p}} with various firmware updates.&lt;br /&gt;
&lt;br /&gt;
==Updating via &amp;quot;IBM Predesktop area&amp;quot;, suitable for model X (not have CDROM and floppy)==&lt;br /&gt;
It's so difficult to update BIOS and ECP without cdrom, floppy disk.&lt;br /&gt;
Don't know the reason why I couldn't update BIOS and ECP(1QHJ08US and 1QUJ19US) for my IBM Thinkpad X31.Hmm, may be cause of the dividing partition on my hard disk, that is: 	&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Primary: ext3, ext3, ntfs&lt;br /&gt;
Extended: Ntsf, fat32&lt;br /&gt;
Bootloader: GRUB&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No problem, you can use this way to do it:&lt;br /&gt;
* First, config in BIOS&lt;br /&gt;
In Security part:&lt;br /&gt;
# Remove all password of Subpervisor and Power on password&lt;br /&gt;
# Set Access IBM Predesktop Area to Normal&lt;br /&gt;
# Choose Enable &amp;quot;Flash BIOS updating by End User&amp;quot; in BIOS update Option.&lt;br /&gt;
&lt;br /&gt;
In Config part:&lt;br /&gt;
# Choose Enable for Network flash over Lan&lt;br /&gt;
&lt;br /&gt;
* Second, download the newest version of BIOS update and ECP update &lt;br /&gt;
Running: The program extract all files to the folder. There is a .img file (1QUJ19US.IMG, 1QUJ08US.IMG) in each folder.&lt;br /&gt;
Copy the imformation content in that img file and paste it to one FAT partition(using winimage or TotalCmd to extract) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
as seen All files in 1QUJ19US.IMG is extracted to D:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
695,764  $018E000.FL1&lt;br /&gt;
163      0691.HSH&lt;br /&gt;
2,049    0691.PAT&lt;br /&gt;
163      0694.HSH&lt;br /&gt;
2,049    0694.PAT&lt;br /&gt;
163      0695.HSH&lt;br /&gt;
2,049    0695.PAT&lt;br /&gt;
2,049    06D0.PAT&lt;br /&gt;
163      06D1.HSH&lt;br /&gt;
2,049    06D1.PAT&lt;br /&gt;
163      06D2.HSH&lt;br /&gt;
2,049    06D2.PAT&lt;br /&gt;
163      06D6.HSH&lt;br /&gt;
2,049    06D6.PAT&lt;br /&gt;
2,049    06D8.PAT&lt;br /&gt;
697      CHKBMP.EXE&lt;br /&gt;
8,128    COMMAND.COM&lt;br /&gt;
26       CONFIG.SYS&lt;br /&gt;
24,860   FLASH2.EXE&lt;br /&gt;
26       LCREFLSH.BAT&lt;br /&gt;
170      LOGO.BAT&lt;br /&gt;
330      LOGO.SCR&lt;br /&gt;
111,925  PHLASH16.EXE&lt;br /&gt;
91,648   PREPARE.EXE&lt;br /&gt;
45       PROD.DAT&lt;br /&gt;
22,252   QKFLASH.EXE&lt;br /&gt;
9,923    README.TXT&lt;br /&gt;
4,260    TPCHKS.EXE&lt;br /&gt;
39,666   UPDTFLSH.EXE&lt;br /&gt;
6,958    UPDTMN.EXE&lt;br /&gt;
12,501   USERINT.EXE&lt;br /&gt;
15,254   UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And all files in 1QUJ08US.IMG are: D:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
315,404 $018E000.FL2&lt;br /&gt;
8,000   COMMAND.COM&lt;br /&gt;
36      CONFIG.SYS&lt;br /&gt;
16,910  ECFLASH2.EXE&lt;br /&gt;
45      PROD.DAT&lt;br /&gt;
17,812  QKFLASH.EXE&lt;br /&gt;
990     README.TXT&lt;br /&gt;
4,260   TPCHKS.EXE&lt;br /&gt;
89,738  UPDTEC.EXE&lt;br /&gt;
31,134  UPDTFLSH.EXE&lt;br /&gt;
12,501  USERINT.EXE&lt;br /&gt;
15,226  UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Okie, now plug AC Adapter, charge full battery to your laptop and continue third step:&lt;br /&gt;
&lt;br /&gt;
** '''Flash BIOS first,'''&lt;br /&gt;
1. Power On, press blue button on keyboard: '''Access IBM'''&lt;br /&gt;
&lt;br /&gt;
2. On &amp;quot;Utilities&amp;quot;, double click &amp;quot; Diagnostic disk&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Your laptop will start PC-DOS, wait when this message appear:&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Please insert the first floppy diskette and&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Press Ctrl + Break, you will see :&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;Terminate batch job (Y/N) ?&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Okie, press Y, you will get DOS prompt like D:\&lt;br /&gt;
{{NOTE|D:\ is my RAMDISK, C:\ is my disk format as FAT.!}}&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\BIOS&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run FLASH2.EXE /u $018E000.FL1&lt;br /&gt;
&lt;br /&gt;
8. Wait flash progress compelete and reboot.&lt;br /&gt;
** '''Flash ECP'''&lt;br /&gt;
Follow above instruction from step 1 to 5&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\ECP&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. run UPDTFLSH.EXE $018E000.FL2&lt;br /&gt;
&lt;br /&gt;
8. Follow UPDTFLSH's instructions&lt;br /&gt;
&lt;br /&gt;
9. Wait flash complete and auto turn off computer.&lt;br /&gt;
&lt;br /&gt;
I done it on my IBM Thinkpad X31.&lt;br /&gt;
&lt;br /&gt;
Enjoy,&lt;br /&gt;
&lt;br /&gt;
Tested by nm.&lt;br /&gt;
&lt;br /&gt;
==Check List==&lt;br /&gt;
&lt;br /&gt;
The following is important to remember:&lt;br /&gt;
# You must update '''both''' the Control Program and the BIOS at the same time if your current Control Program is not compatible with the new BIOS (see below)&lt;br /&gt;
# You must find versions of the Control Program and BIOS that are compatible.  Not all of them are, so follow the readmes on the IBM website carefully to determine which are.&lt;br /&gt;
# You must update the Control Program '''before''' you update the BIOS&lt;br /&gt;
&lt;br /&gt;
When the Control Program '''and''' the BIOS need updating, have both update disks or CDs ready. Update the Control Program first and the system should switch itself off when finished. Insert the BIOS update disk and proceed to update the BIOS. When it's all finished, enter setup, reset the settings to their defaults and reboot. Enter setup again and tweak the settings as necessary.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=29431</id>
		<title>BIOS Upgrade</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=29431"/>
		<updated>2007-04-22T17:45:16Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: /* Updating Thinkpad X Series */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
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 IBM website.&lt;br /&gt;
&lt;br /&gt;
{{NOTE| In one case ([[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.}}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==Before You Begin==&lt;br /&gt;
Updating the BIOS in Linux (with few exceptions) '''is not officially supported''' by IBM.  However there are work arounds.&lt;br /&gt;
&lt;br /&gt;
{{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 unfixable problems.&lt;br /&gt;
&lt;br /&gt;
'''Proceed at your own risk!'''&lt;br /&gt;
&lt;br /&gt;
It is also '''important''' to understand that all newer thinkpads have 2 seperate firmwares, the BIOS and the Control Program. A specific version of the Control Program will only work with specific versions of the BIOS.  The IBM documentation is sometimes confusing about the order of update.  Updating the Control Program first, then the BIOS seems to be the correct order.  Make sure to do the updates immediately following each other, otherwise you risk turning your thinkpad into a very nice paper weight.}}&lt;br /&gt;
&lt;br /&gt;
==BIOS Upgrade Paths==&lt;br /&gt;
&lt;br /&gt;
For every firmware (either BIOS or Control Program) update on the IBM site there are two different firmware update programs provided.  A list of links to firmware downloads can be found at [[BIOS Upgrade Downloads]] for nearly all Thinkpad Models.&lt;br /&gt;
&lt;br /&gt;
===The Diskette Updater===&lt;br /&gt;
&lt;br /&gt;
This installer appears to be a 16bit dos program which asks you to accept a license agreement.  It will run in Windows, DOS, OS/2, or [http://dosemu.sf.net Dosemu] perfectly, but requires a real floppy disk attached via a real floppy control.  The USB Floppy Drive to the new Thinkpads doesn't count.&lt;br /&gt;
&lt;br /&gt;
===The Non Diskette Updater===&lt;br /&gt;
{{WARN|Though this process was successfully tested on one version of .exe files found on IBMs website this doesn't mean it will work for all of them.  Use at your own risk.}}&lt;br /&gt;
&lt;br /&gt;
This installer appears to be a 32bit windows exe which is designed for updating the BIOS directly from a running Windows OS.  It turns out that the .exe is really a wrapper license program arround windows .cab files (this information is in [[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 files directly.  Run the following:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|cabextract FILENAME.exe}}&lt;br /&gt;
&lt;br /&gt;
You will get 8 files in the current directory.  One of them will be FILENAME.img.  You can test that this is really a floppy image by running:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|mkdir mntfloppy}}&lt;br /&gt;
:{{cmdroot|mount -o loop FILENAME.img mntfloppy}}&lt;br /&gt;
:{{cmdroot|ls -la mntfloppy}}&lt;br /&gt;
&lt;br /&gt;
If the results of {{cmdroot|ls -la mntfloppy}} look like a dos floppy, and no read errors were displayed, you have a pretty good chance that the floppy image is usable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you were able to create the boot floppy per the Diskette update method, and you have a Floppy with your Thinkpad, the update should be simple.&lt;br /&gt;
&lt;br /&gt;
== Updating Thinkpad X Series ==&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. The CD images provided by Lenovo can be modified such that they contain drivers for USB CD drives. I tested the following with a Thinkpad X60s.&lt;br /&gt;
&lt;br /&gt;
The idea is to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something. Therefore, before starting the update process the CD contents have to be copied to a RAM disk. I will describe the procedure step by step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Updating via CD/DVD Drive==&lt;br /&gt;
&lt;br /&gt;
The whole thing gets more complicated if you neither have Windows nor a floppy drive installed. This is what this page is intended to describe.&lt;br /&gt;
&lt;br /&gt;
Another possibility which works even without a CD-drive or network is to boot the disk image via the grub initrd mechanism.&lt;br /&gt;
&lt;br /&gt;
Be aware that IBM officially does '''not''' support this! The official statement to my support request was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
I'm afraid we only support the options listed on our web page and no you&lt;br /&gt;
can't burn a CD/DVD, however you can try to use an external USB FDD&lt;br /&gt;
(floppy) drive. The experts recommend a IBM USB FDD, however they have also&lt;br /&gt;
tested it with a Sony USB FDD drive.&lt;br /&gt;
&lt;br /&gt;
In order to make sure the drive is recognised you can boot up the FDD with&lt;br /&gt;
a bootable dos diskette for w98&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But it seems to be possible as Mathias Dalheimer describes this [http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html here].&lt;br /&gt;
&lt;br /&gt;
Another indication that it should work is that IBM uses PHLASH16.EXE (at least on T4x/p systems) to flash the BIOS into the chip. The same tool is used by [http://www.samsungpc.com/gb/support/p35/bios/bios-instructions.html other vendors] to flash the BIOS from bootable CD-ROMs.&lt;br /&gt;
{{WARN|Do '''not''' use the [http://syslinux.zytor.com/ SYSLINUX] image-loader [http://syslinux.zytor.com/memdisk.php MEMDISK] to boot the images! Some flash tools crash in that situation!}}&lt;br /&gt;
&lt;br /&gt;
Some interesting but very technical information about the used flash tool can be found [http://www.paul.sladen.org/thinkpad-r31/wifi-card-pci-ids.html here].&lt;br /&gt;
&lt;br /&gt;
===Creating a Floppy Image===&lt;br /&gt;
If you have created a boot floppy on another machine, you need to create an image file of that floppy. This can be easily done in linux by running a command line:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|1=dd bs=2x80x18b if=/dev/fd0 of=/tmp/floppy.img}}&lt;br /&gt;
&lt;br /&gt;
You can also create a floppy image by using Ken Kato's [http://chitchat.at.infoseek.co.jp/vmware/vfd.html VMware's back]. It is a free Windoze tool that creates a virtual floppy drive and allows you to produce an image file ready to be ISO'ed. Note: you might have to 'manually' (through application's interface) assign the virtual drive a volume letter in order to be seen by IBM's application (as, by default, it seems not to do it).&lt;br /&gt;
&lt;br /&gt;
You should verify this {{path|floppy.img}} as explained above.&lt;br /&gt;
&lt;br /&gt;
===Creating a Bootable CD from a Floppy Image===&lt;br /&gt;
Once you have your floppy image, either from imaging a real floppy, or from extracting them via the cabextract method above, you need to make a boot CD out of it.&lt;br /&gt;
&lt;br /&gt;
The eltorito bootable CD standard is a wonderful thing.  What this means is that a bootable CD can be made with a bootable floppy 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.&lt;br /&gt;
&lt;br /&gt;
It is very easy to create such a bootable CD ISO image in Linux using the mkisofs tool.  To do this run a command as follows:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|mkisofs -b bootfloppy.img -o bootcd.iso bootfloppy.img}}&lt;br /&gt;
&lt;br /&gt;
Note: You don't strictly need the last {{path|bootfloppy.img}}, however some versions of mkisofs get confused about why you would want to create an iso with no contents, and thus won't let you.  You don't actually care about the contents of the CD, you only care that the &amp;lt;tt&amp;gt;-b &amp;lt;boot image&amp;gt;&amp;lt;/tt&amp;gt; is applied to the CD.  For more info on this read {{cmduser|man mkisofs}}.&lt;br /&gt;
&lt;br /&gt;
You can now burn the {{path|bootcd.iso}} in your favorite CD burning program.&lt;br /&gt;
&lt;br /&gt;
To get an overview which models have been tested with this version, here is a list:&lt;br /&gt;
&lt;br /&gt;
===Does work:===&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
| '''Model''' || '''Tested by'''&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{600X}} (2645) ||&lt;br /&gt;
*Jonathan Byrne &amp;lt;jonathan@RemoveThisToMailMe.yamame.org&amp;gt;. BIOS 1.11 from spsuit55.exe worked perfectly using cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A20p}} (2629-6VU) ||&lt;br /&gt;
*Chris Pickett http://www.sable.mcgill.ca/~cpicke/. BIOS 1.11 flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A21e}} (2628-JXU) ||&lt;br /&gt;
*Amit Gurdasani &amp;lt;gurdasani at yahoo dot com&amp;gt;. 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 &amp;quot;do not shut down the laptop&amp;quot; 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.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A31p}} (2653) ||&lt;br /&gt;
*Matthias Meinke largeeddy@gmx.at, BIOS 1.09 1NET15WW flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A31}} (2652) ||&lt;br /&gt;
*[[User:Wnoise|Aaron Denney]], BIOS 1.13 flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{R31}} ||&lt;br /&gt;
*[http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html Mathias Dalheimer]&lt;br /&gt;
*Sebastian Sauer (with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R40}} ||&lt;br /&gt;
*Matthew Lambie, http://lambie.org&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R50}} (1836-3SU) ||&lt;br /&gt;
*jlbartos &amp;lt;jlbartos at hotmail dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R50e}} (1834-PTG) ||&lt;br /&gt;
*item &amp;lt;item at freemail dot hu&amp;gt; : successfully finished with cabextract/CD method for &amp;quot;1wuj25us.exe&amp;quot; (BIOS version 1WET90WW (2.10), Release Date: 2006/12/22)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (1829) ||&lt;br /&gt;
*Robert Uhl &amp;lt;rob dot uhl at gmx dot de&amp;gt;, Jellby &amp;lt;jellby at yahoo dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (1830-RM7) ||&lt;br /&gt;
*Will Parker &amp;lt;stardotstar at sourcepoint dot com dot au&amp;gt; successfully flashed 3.20 using existing 3.04 ECP and retained custom boot splash.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (2887) ||&lt;br /&gt;
*Ingo van Lil &amp;lt;inguin at gmx dot de&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R52}} (1858) ||&lt;br /&gt;
*Stuart McCord &amp;lt;stuart dot mccord at gmail dot com&amp;gt;  flashed both BIOS and ECP using cabextract, BIOS flashed first as on IBM website&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T20}} ||&lt;br /&gt;
*Franz Hassels &amp;lt;fhassel at suse dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T22}} ||&lt;br /&gt;
*Daniel Maier &amp;lt;nusse teamidiot de&amp;gt;&lt;br /&gt;
*Mathias Behrle (with cabextract/CD method, Version 1.07 =&amp;gt; 1.12) --[[User:Mathiasb|Mathiasb]] 11:58, 14 December 2006 (CET)&lt;br /&gt;
*Bob Skaroff (cabextract/CD), 1.06 =&amp;gt; 1.12&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T23}} ||&lt;br /&gt;
*Bart Snapp &amp;lt;snapp at uiuc dot edu&amp;gt; Note: I followed IBM's instructions to flash the BIOS *first* and the Embedded Controller *second*.&lt;br /&gt;
*Moy Easwaran: BIOS 1.18 / EC 1.06a via cabextract and CD-boot.  The BIOS-update exe generated errors in Windows 2000.&lt;br /&gt;
*Joe Renes: BIOS 1.18 / EC 1.06a on 2006-03-20 via cabextract and CD-boot. Piece of cake.&lt;br /&gt;
*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&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T30}} ||&lt;br /&gt;
*Martin GÃ¼hring &amp;lt;guehring at gmail.com&amp;gt; BIOS 2.10 via cabextract the Non-Diskette BIOS -&amp;gt; mkisofs '''in the directory the exe was extracted''' to generate the iso -&amp;gt; burn the iso -&amp;gt; boot the CD&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{T40}} ||&lt;br /&gt;
*Sean Dague, http://dague.net&lt;br /&gt;
*Justin Mason, http://jmason.org&lt;br /&gt;
*Ivanhoe (Bios 3.19)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T40p}} ||&lt;br /&gt;
*Lukas KrÃ¤henbÃ¼hl, ismo at pop dot agri dot ch&lt;br /&gt;
*Thomas Achtemichuk, tom at tomchuk dot com. BIOS 3.15 flashed fine with cabextract/CD method&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{T41}} ||&lt;br /&gt;
*Lev Givon (Bios 3.15 / EC 3.04) &amp;lt;lev at columbia dot edu&amp;gt;&lt;br /&gt;
*Ernesto HernÃ¡ndez-Novich (Bios 3.19 / CP 3.04) &amp;lt; emhn at usb dot ve &amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T41p}} ||&lt;br /&gt;
*Nils Newman, work great. (Version: Bios 3.14 / Embedded Controller 3.04)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T42}} ||&lt;br /&gt;
*Dan (BIOS 3.20 / EC 3.04, cabextract/CD method) &amp;lt;tronic171 at evilphb.org&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T42p}} ||&lt;br /&gt;
*Robert Schiele &amp;lt;rschiele@uni-mannheim.de&amp;gt;, Joern Heissler &amp;lt;joern@heissler.de&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T43}}  ||&lt;br /&gt;
*Conrad Rentsch &amp;lt;Conrad dot Rentsch at t-online dot de&amp;gt; (Version: Bios 1.29 / Embedded Controller 1.06)&lt;br /&gt;
*Tom Heady &amp;lt;tom-thinkwiki.org@punch.net&amp;gt;&lt;br /&gt;
*Florian Boucault &amp;lt;florian at boucault dot ath dot cx&amp;gt; (Model : 1871-W34 &amp;amp; Version: Bios 1.23 / Embedded Controller 1.03)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X20}}  ||&lt;br /&gt;
*Neil Caunt &amp;lt;retardis at gmail dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X21}}  ||&lt;br /&gt;
*Patrick Leickner &amp;lt;ranma at web dot de&amp;gt;, (BIOS 2.21-&amp;gt;2.25 / EC 1.31-&amp;gt;1.36) via non-disk/cabextract/mkisofs/cdrecord&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X22}}  ||&lt;br /&gt;
*David Emery &amp;lt;dave at skiddlydee dot com&amp;gt;,  (EC 1.30, BIOS 1.32 using non-disk/cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X23}}  ||&lt;br /&gt;
*Nils Faerber &amp;lt;nils dot faerber at kernelconcepts dot de&amp;gt; (Embedded Controller 1.30, BIOS 1.32 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X30}}  ||&lt;br /&gt;
*Hella Breitkopf, [http://www.unixwitch.de/ www]  (Embedded Controller 1.04, BIOS 1.07 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X31}}  ||&lt;br /&gt;
*Grzegorz KuÅ›nierz &amp;lt;koniu at sheket dot org&amp;gt;  (Embedded Controller 1.08, BIOS 3.01 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X40}}  ||&lt;br /&gt;
*Robbie Stone &amp;lt;robbie@serendipity.cx&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{Z60m}}  ||&lt;br /&gt;
*[[User:Morle|Morle]] 13:09, 20 May 2006 (CEST),  (Embedded Controller 1.14 with cabextract/CD method)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Does not work:===&lt;br /&gt;
{|&lt;br /&gt;
| '''Model''' || '''Tested by'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Please note that testing this is '''at your own risk'''!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating via Grub and a Floppy Image==&lt;br /&gt;
&lt;br /&gt;
{{WARN|Many have warned '''not''' to use the [http://syslinux.zytor.com/ SYSLINUX] image-loader [http://syslinux.zytor.com/memdisk.php MEMDISK] to boot the images! Some flash tools may crash in that situation!  Proceed at your own risk!}}&lt;br /&gt;
&lt;br /&gt;
Floppy images may be booted from Grub via a utility called [http://syslinux.zytor.com/memdisk.php MEMDISK], which may be compiled from the [http://www.kernel.org/pub/linux/utils/boot/syslinux/ '''SYSLINUX source'''].  Copy the compiled memdisk image and the floppy image to your boot directory and configure grub as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
title     Bios Flash&lt;br /&gt;
kernel    /boot/memdisk&lt;br /&gt;
initrd    /boot/FILENAME.img&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, proceed at your own risk.  This was tested on an R51 type 2888.&lt;br /&gt;
&lt;br /&gt;
This also worked for me on a T41p type 2373. -- [[User:MrStaticVoid|James Lee]] 20:55, 8 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
And it worked for me on a X31 type 2673-CBU. -- [[User:JanTopinski|Jan Topinski]], 18 September 2006 &lt;br /&gt;
&lt;br /&gt;
And it worked for me too on a X31 type 2672-CXU, very useful. -- [[User:TheAnarcat|TheAnarcat]] 16:21, 7 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
And it worked for me on two X40 type 2371 -- [[User:Antialize|Jakob Truelsen]], 19 Jan 2007 -- BIOS: 2.07 1uuj21us.exe -- ECP: 1.62 1uhj10us.exe&lt;br /&gt;
&lt;br /&gt;
Not working for me on T43 type 2668-F7G -- [[User:Maus3273|Maus3273]] 20:48, 30 January 2007 (CET) -- BIOS: 1.29 1YUJ18US.IMG -- I got into the bios program, but the machine never restarts after initiating the upgrade.&lt;br /&gt;
&lt;br /&gt;
X41 type 2525-F8G -- [[User:ladoga|Lauri Koponen]], 11:08 16 Apr 2007&amp;lt;br&amp;gt; &lt;br /&gt;
BIOS: 2.09 (74UJ15US.IMG), is no go. (hangs while initialising the actual flashing process) I tried with 2.07 (74UJ13US.IMG) and 2.06 (74UJ12US.IMG) aswell and they all failed in the very same fashion.&amp;lt;br&amp;gt;&lt;br /&gt;
ECP: 1.02 74HJ03US.IMG, works.&lt;br /&gt;
&lt;br /&gt;
==Updating with Network Boot Image==&lt;br /&gt;
&lt;br /&gt;
BIOS, Embedded Controller (EC), CD/DVD and Harddisk firmware disks can be booted&lt;br /&gt;
over the network with [http://syslinux.zytor.com/pxe.php PXELINUX] as part of the [http://syslinux.zytor.com/ SYSLINUX] package.&lt;br /&gt;
&lt;br /&gt;
This requires that you have a DHCP and tftp server configured and setup properly on&lt;br /&gt;
your network, and is probably not for the faint of heart.&lt;br /&gt;
&lt;br /&gt;
Make sure the firmware bootdisk is in linux 'dd' format, as the self-extracting .exe disks&lt;br /&gt;
from the IBM website cannot be booted directly as such.&lt;br /&gt;
&lt;br /&gt;
This worked on the {{R31}}, {{X22}}, {{T21}}, {{T30}} and {{T41p}} with various firmware updates.&lt;br /&gt;
&lt;br /&gt;
==Updating via &amp;quot;IBM Predesktop area&amp;quot;, suitable for model X (not have CDROM and floppy)==&lt;br /&gt;
It's so difficult to update BIOS and ECP without cdrom, floppy disk.&lt;br /&gt;
Don't know the reason why I couldn't update BIOS and ECP(1QHJ08US and 1QUJ19US) for my IBM Thinkpad X31.Hmm, may be cause of the dividing partition on my hard disk, that is: 	&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Primary: ext3, ext3, ntfs&lt;br /&gt;
Extended: Ntsf, fat32&lt;br /&gt;
Bootloader: GRUB&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No problem, you can use this way to do it:&lt;br /&gt;
* First, config in BIOS&lt;br /&gt;
In Security part:&lt;br /&gt;
# Remove all password of Subpervisor and Power on password&lt;br /&gt;
# Set Access IBM Predesktop Area to Normal&lt;br /&gt;
# Choose Enable &amp;quot;Flash BIOS updating by End User&amp;quot; in BIOS update Option.&lt;br /&gt;
&lt;br /&gt;
In Config part:&lt;br /&gt;
# Choose Enable for Network flash over Lan&lt;br /&gt;
&lt;br /&gt;
* Second, download the newest version of BIOS update and ECP update &lt;br /&gt;
Running: The program extract all files to the folder. There is a .img file (1QUJ19US.IMG, 1QUJ08US.IMG) in each folder.&lt;br /&gt;
Copy the imformation content in that img file and paste it to one FAT partition(using winimage or TotalCmd to extract) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
as seen All files in 1QUJ19US.IMG is extracted to D:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
695,764  $018E000.FL1&lt;br /&gt;
163      0691.HSH&lt;br /&gt;
2,049    0691.PAT&lt;br /&gt;
163      0694.HSH&lt;br /&gt;
2,049    0694.PAT&lt;br /&gt;
163      0695.HSH&lt;br /&gt;
2,049    0695.PAT&lt;br /&gt;
2,049    06D0.PAT&lt;br /&gt;
163      06D1.HSH&lt;br /&gt;
2,049    06D1.PAT&lt;br /&gt;
163      06D2.HSH&lt;br /&gt;
2,049    06D2.PAT&lt;br /&gt;
163      06D6.HSH&lt;br /&gt;
2,049    06D6.PAT&lt;br /&gt;
2,049    06D8.PAT&lt;br /&gt;
697      CHKBMP.EXE&lt;br /&gt;
8,128    COMMAND.COM&lt;br /&gt;
26       CONFIG.SYS&lt;br /&gt;
24,860   FLASH2.EXE&lt;br /&gt;
26       LCREFLSH.BAT&lt;br /&gt;
170      LOGO.BAT&lt;br /&gt;
330      LOGO.SCR&lt;br /&gt;
111,925  PHLASH16.EXE&lt;br /&gt;
91,648   PREPARE.EXE&lt;br /&gt;
45       PROD.DAT&lt;br /&gt;
22,252   QKFLASH.EXE&lt;br /&gt;
9,923    README.TXT&lt;br /&gt;
4,260    TPCHKS.EXE&lt;br /&gt;
39,666   UPDTFLSH.EXE&lt;br /&gt;
6,958    UPDTMN.EXE&lt;br /&gt;
12,501   USERINT.EXE&lt;br /&gt;
15,254   UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And all files in 1QUJ08US.IMG are: D:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
315,404 $018E000.FL2&lt;br /&gt;
8,000   COMMAND.COM&lt;br /&gt;
36      CONFIG.SYS&lt;br /&gt;
16,910  ECFLASH2.EXE&lt;br /&gt;
45      PROD.DAT&lt;br /&gt;
17,812  QKFLASH.EXE&lt;br /&gt;
990     README.TXT&lt;br /&gt;
4,260   TPCHKS.EXE&lt;br /&gt;
89,738  UPDTEC.EXE&lt;br /&gt;
31,134  UPDTFLSH.EXE&lt;br /&gt;
12,501  USERINT.EXE&lt;br /&gt;
15,226  UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Okie, now plug AC Adapter, charge full battery to your laptop and continue third step:&lt;br /&gt;
&lt;br /&gt;
** '''Flash BIOS first,'''&lt;br /&gt;
1. Power On, press blue button on keyboard: '''Access IBM'''&lt;br /&gt;
&lt;br /&gt;
2. On &amp;quot;Utilities&amp;quot;, double click &amp;quot; Diagnostic disk&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Your laptop will start PC-DOS, wait when this message appear:&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Please insert the first floppy diskette and&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Press Ctrl + Break, you will see :&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;Terminate batch job (Y/N) ?&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Okie, press Y, you will get DOS prompt like D:\&lt;br /&gt;
{{NOTE|D:\ is my RAMDISK, C:\ is my disk format as FAT.!}}&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\BIOS&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run FLASH2.EXE /u $018E000.FL1&lt;br /&gt;
&lt;br /&gt;
8. Wait flash progress compelete and reboot.&lt;br /&gt;
** '''Flash ECP'''&lt;br /&gt;
Follow above instruction from step 1 to 5&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\ECP&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. run UPDTFLSH.EXE $018E000.FL2&lt;br /&gt;
&lt;br /&gt;
8. Follow UPDTFLSH's instructions&lt;br /&gt;
&lt;br /&gt;
9. Wait flash complete and auto turn off computer.&lt;br /&gt;
&lt;br /&gt;
I done it on my IBM Thinkpad X31.&lt;br /&gt;
&lt;br /&gt;
Enjoy,&lt;br /&gt;
&lt;br /&gt;
Tested by nm.&lt;br /&gt;
&lt;br /&gt;
==Check List==&lt;br /&gt;
&lt;br /&gt;
The following is important to remember:&lt;br /&gt;
# You must update '''both''' the Control Program and the BIOS at the same time if your current Control Program is not compatible with the new BIOS (see below)&lt;br /&gt;
# You must find versions of the Control Program and BIOS that are compatible.  Not all of them are, so follow the readmes on the IBM website carefully to determine which are.&lt;br /&gt;
# You must update the Control Program '''before''' you update the BIOS&lt;br /&gt;
&lt;br /&gt;
When the Control Program '''and''' the BIOS need updating, have both update disks or CDs ready. Update the Control Program first and the system should switch itself off when finished. Insert the BIOS update disk and proceed to update the BIOS. When it's all finished, enter setup, reset the settings to their defaults and reboot. Enter setup again and tweak the settings as necessary.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=29137</id>
		<title>BIOS Upgrade</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=29137"/>
		<updated>2007-04-07T18:15:10Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: /* Updating Thinkpad X Series */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
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 IBM website.&lt;br /&gt;
&lt;br /&gt;
{{NOTE| In one case ([[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.}}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==Before You Begin==&lt;br /&gt;
Updating the BIOS in Linux (with few exceptions) '''is not officially supported''' by IBM.  However there are work arounds.&lt;br /&gt;
&lt;br /&gt;
{{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 unfixable problems.&lt;br /&gt;
&lt;br /&gt;
'''Proceed at your own risk!'''&lt;br /&gt;
&lt;br /&gt;
It is also '''important''' to understand that all newer thinkpads have 2 seperate firmwares, the BIOS and the Control Program. A specific version of the Control Program will only work with specific versions of the BIOS.  The IBM documentation is sometimes confusing about the order of update.  Updating the Control Program first, then the BIOS seems to be the correct order.  Make sure to do the updates immediately following each other, otherwise you risk turning your thinkpad into a very nice paper weight.}}&lt;br /&gt;
&lt;br /&gt;
==BIOS Upgrade Paths==&lt;br /&gt;
&lt;br /&gt;
For every firmware (either BIOS or Control Program) update on the IBM site there are two different firmware update programs provided.  A list of links to firmware downloads can be found at [[BIOS Upgrade Downloads]] for nearly all Thinkpad Models.&lt;br /&gt;
&lt;br /&gt;
===The Diskette Updater===&lt;br /&gt;
&lt;br /&gt;
This installer appears to be a 16bit dos program which asks you to accept a license agreement.  It will run in Windows, DOS, OS/2, or [http://dosemu.sf.net Dosemu] perfectly, but requires a real floppy disk attached via a real floppy control.  The USB Floppy Drive to the new Thinkpads doesn't count.&lt;br /&gt;
&lt;br /&gt;
===The Non Diskette Updater===&lt;br /&gt;
{{WARN|Though this process was successfully tested on one version of .exe files found on IBMs website this doesn't mean it will work for all of them.  Use at your own risk.}}&lt;br /&gt;
&lt;br /&gt;
This installer appears to be a 32bit windows exe which is designed for updating the BIOS directly from a running Windows OS.  It turns out that the .exe is really a wrapper license program arround windows .cab files (this information is in [[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 files directly.  Run the following:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|cabextract FILENAME.exe}}&lt;br /&gt;
&lt;br /&gt;
You will get 8 files in the current directory.  One of them will be FILENAME.img.  You can test that this is really a floppy image by running:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|mkdir mntfloppy}}&lt;br /&gt;
:{{cmdroot|mount -o loop FILENAME.img mntfloppy}}&lt;br /&gt;
:{{cmdroot|ls -la mntfloppy}}&lt;br /&gt;
&lt;br /&gt;
If the results of {{cmdroot|ls -la mntfloppy}} look like a dos floppy, and no read errors were displayed, you have a pretty good chance that the floppy image is usable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you were able to create the boot floppy per the Diskette update method, and you have a Floppy with your Thinkpad, the update should be simple.&lt;br /&gt;
&lt;br /&gt;
== Updating Thinkpad X Series ==&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. The CD images provided by Lenovo can be modified such that they contain drivers for USB CD drives. I tested the following with a Thinkpad X60s.&lt;br /&gt;
&lt;br /&gt;
The idea is to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something. Therefore, before starting the update process the CD contents have to be copied to a RAM disk. I will describe the procedure step by step.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task. Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Updating via CD/DVD Drive==&lt;br /&gt;
&lt;br /&gt;
The whole thing gets more complicated if you neither have Windows nor a floppy drive installed. This is what this page is intended to describe.&lt;br /&gt;
&lt;br /&gt;
Another possibility which works even without a CD-drive or network is to boot the disk image via the grub initrd mechanism.&lt;br /&gt;
&lt;br /&gt;
Be aware that IBM officially does '''not''' support this! The official statement to my support request was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
I'm afraid we only support the options listed on our web page and no you&lt;br /&gt;
can't burn a CD/DVD, however you can try to use an external USB FDD&lt;br /&gt;
(floppy) drive. The experts recommend a IBM USB FDD, however they have also&lt;br /&gt;
tested it with a Sony USB FDD drive.&lt;br /&gt;
&lt;br /&gt;
In order to make sure the drive is recognised you can boot up the FDD with&lt;br /&gt;
a bootable dos diskette for w98&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But it seems to be possible as Mathias Dalheimer describes this [http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html here].&lt;br /&gt;
&lt;br /&gt;
Another indication that it should work is that IBM uses PHLASH16.EXE (at least on T4x/p systems) to flash the BIOS into the chip. The same tool is used by [http://www.samsungpc.com/gb/support/p35/bios/bios-instructions.html other vendors] to flash the BIOS from bootable CD-ROMs.&lt;br /&gt;
{{WARN|Do '''not''' use the [http://syslinux.zytor.com/ SYSLINUX] image-loader [http://syslinux.zytor.com/memdisk.php MEMDISK] to boot the images! Some flash tools crash in that situation!}}&lt;br /&gt;
&lt;br /&gt;
Some interesting but very technical information about the used flash tool can be found [http://www.paul.sladen.org/thinkpad-r31/wifi-card-pci-ids.html here].&lt;br /&gt;
&lt;br /&gt;
===Creating a Floppy Image===&lt;br /&gt;
If you have created a boot floppy on another machine, you need to create an image file of that floppy. This can be easily done in linux by running a command line:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|1=dd bs=2x80x18b if=/dev/fd0 of=/tmp/floppy.img}}&lt;br /&gt;
&lt;br /&gt;
You can also create a floppy image by using Ken Kato's [http://chitchat.at.infoseek.co.jp/vmware/vfd.html VMware's back]. It is a free Windoze tool that creates a virtual floppy drive and allows you to produce an image file ready to be ISO'ed. Note: you might have to 'manually' (through application's interface) assign the virtual drive a volume letter in order to be seen by IBM's application (as, by default, it seems not to do it).&lt;br /&gt;
&lt;br /&gt;
You should verify this {{path|floppy.img}} as explained above.&lt;br /&gt;
&lt;br /&gt;
===Creating a Bootable CD from a Floppy Image===&lt;br /&gt;
Once you have your floppy image, either from imaging a real floppy, or from extracting them via the cabextract method above, you need to make a boot CD out of it.&lt;br /&gt;
&lt;br /&gt;
The eltorito bootable CD standard is a wonderful thing.  What this means is that a bootable CD can be made with a bootable floppy 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.&lt;br /&gt;
&lt;br /&gt;
It is very easy to create such a bootable CD ISO image in Linux using the mkisofs tool.  To do this run a command as follows:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|mkisofs -b bootfloppy.img -o bootcd.iso bootfloppy.img}}&lt;br /&gt;
&lt;br /&gt;
Note: You don't strictly need the last {{path|bootfloppy.img}}, however some versions of mkisofs get confused about why you would want to create an iso with no contents, and thus won't let you.  You don't actually care about the contents of the CD, you only care that the &amp;lt;tt&amp;gt;-b &amp;lt;boot image&amp;gt;&amp;lt;/tt&amp;gt; is applied to the CD.  For more info on this read {{cmduser|man mkisofs}}.&lt;br /&gt;
&lt;br /&gt;
You can now burn the {{path|bootcd.iso}} in your favorite CD burning program.&lt;br /&gt;
&lt;br /&gt;
To get an overview which models have been tested with this version, here is a list:&lt;br /&gt;
&lt;br /&gt;
===Does work:===&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
| '''Model''' || '''Tested by'''&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{600X}} (2645) ||&lt;br /&gt;
*Jonathan Byrne &amp;lt;jonathan@RemoveThisToMailMe.yamame.org&amp;gt;. BIOS 1.11 from spsuit55.exe worked perfectly using cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A20p}} (2629-6VU) ||&lt;br /&gt;
*Chris Pickett http://www.sable.mcgill.ca/~cpicke/. BIOS 1.11 flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A21e}} (2628-JXU) ||&lt;br /&gt;
*Amit Gurdasani &amp;lt;gurdasani at yahoo dot com&amp;gt;. 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 &amp;quot;do not shut down the laptop&amp;quot; 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.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A31p}} (2653) ||&lt;br /&gt;
*Matthias Meinke largeeddy@gmx.at, BIOS 1.09 1NET15WW flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A31}} (2652) ||&lt;br /&gt;
*[[User:Wnoise|Aaron Denney]], BIOS 1.13 flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{R31}} ||&lt;br /&gt;
*[http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html Mathias Dalheimer]&lt;br /&gt;
*Sebastian Sauer (with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R40}} ||&lt;br /&gt;
*Matthew Lambie, http://lambie.org&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R50}} (1836-3SU) ||&lt;br /&gt;
*jlbartos &amp;lt;jlbartos at hotmail dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R50e}} (1834-PTG) ||&lt;br /&gt;
*item &amp;lt;item at freemail dot hu&amp;gt; : successfully finished with cabextract/CD method for &amp;quot;1wuj25us.exe&amp;quot; (BIOS version 1WET90WW (2.10), Release Date: 2006/12/22)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (1829) ||&lt;br /&gt;
*Robert Uhl &amp;lt;rob dot uhl at gmx dot de&amp;gt;, Jellby &amp;lt;jellby at yahoo dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (1830-RM7) ||&lt;br /&gt;
*Will Parker &amp;lt;stardotstar at sourcepoint dot com dot au&amp;gt; successfully flashed 3.20 using existing 3.04 ECP and retained custom boot splash.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (2887) ||&lt;br /&gt;
*Ingo van Lil &amp;lt;inguin at gmx dot de&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R52}} (1858) ||&lt;br /&gt;
*Stuart McCord &amp;lt;stuart dot mccord at gmail dot com&amp;gt;  flashed both BIOS and ECP using cabextract, BIOS flashed first as on IBM website&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T20}} ||&lt;br /&gt;
*Franz Hassels &amp;lt;fhassel at suse dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T22}} ||&lt;br /&gt;
*Daniel Maier &amp;lt;nusse teamidiot de&amp;gt;&lt;br /&gt;
*Mathias Behrle (with cabextract/CD method, Version 1.07 =&amp;gt; 1.12) --[[User:Mathiasb|Mathiasb]] 11:58, 14 December 2006 (CET)&lt;br /&gt;
*Bob Skaroff (cabextract/CD), 1.06 =&amp;gt; 1.12&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T23}} ||&lt;br /&gt;
*Bart Snapp &amp;lt;snapp at uiuc dot edu&amp;gt; Note: I followed IBM's instructions to flash the BIOS *first* and the Embedded Controller *second*.&lt;br /&gt;
*Moy Easwaran: BIOS 1.18 / EC 1.06a via cabextract and CD-boot.  The BIOS-update exe generated errors in Windows 2000.&lt;br /&gt;
*Joe Renes: BIOS 1.18 / EC 1.06a on 2006-03-20 via cabextract and CD-boot. Piece of cake.&lt;br /&gt;
*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&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T30}} ||&lt;br /&gt;
*Martin GÃ¼hring &amp;lt;guehring at gmail.com&amp;gt; BIOS 2.10 via cabextract the Non-Diskette BIOS -&amp;gt; mkisofs '''in the directory the exe was extracted''' to generate the iso -&amp;gt; burn the iso -&amp;gt; boot the CD&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{T40}} ||&lt;br /&gt;
*Sean Dague, http://dague.net&lt;br /&gt;
*Justin Mason, http://jmason.org&lt;br /&gt;
*Ivanhoe (Bios 3.19)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T40p}} ||&lt;br /&gt;
*Lukas KrÃ¤henbÃ¼hl, ismo at pop dot agri dot ch&lt;br /&gt;
*Thomas Achtemichuk, tom at tomchuk dot com. BIOS 3.15 flashed fine with cabextract/CD method&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{T41}} ||&lt;br /&gt;
*Lev Givon (Bios 3.15 / EC 3.04) &amp;lt;lev at columbia dot edu&amp;gt;&lt;br /&gt;
*Ernesto HernÃ¡ndez-Novich (Bios 3.19 / CP 3.04) &amp;lt; emhn at usb dot ve &amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T41p}} ||&lt;br /&gt;
*Nils Newman, work great. (Version: Bios 3.14 / Embedded Controller 3.04)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T42}} ||&lt;br /&gt;
*Dan (BIOS 3.20 / EC 3.04, cabextract/CD method) &amp;lt;tronic171 at evilphb.org&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T42p}} ||&lt;br /&gt;
*Robert Schiele &amp;lt;rschiele@uni-mannheim.de&amp;gt;, Joern Heissler &amp;lt;joern@heissler.de&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T43}}  ||&lt;br /&gt;
*Conrad Rentsch &amp;lt;Conrad dot Rentsch at t-online dot de&amp;gt; (Version: Bios 1.29 / Embedded Controller 1.06)&lt;br /&gt;
*Tom Heady &amp;lt;tom-thinkwiki.org@punch.net&amp;gt;&lt;br /&gt;
*Florian Boucault &amp;lt;florian at boucault dot ath dot cx&amp;gt; (Model : 1871-W34 &amp;amp; Version: Bios 1.23 / Embedded Controller 1.03)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X20}}  ||&lt;br /&gt;
*Neil Caunt &amp;lt;retardis at gmail dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X21}}  ||&lt;br /&gt;
*Patrick Leickner &amp;lt;ranma at web dot de&amp;gt;, (BIOS 2.21-&amp;gt;2.25 / EC 1.31-&amp;gt;1.36) via non-disk/cabextract/mkisofs/cdrecord&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X22}}  ||&lt;br /&gt;
*David Emery &amp;lt;dave at skiddlydee dot com&amp;gt;,  (EC 1.30, BIOS 1.32 using non-disk/cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X23}}  ||&lt;br /&gt;
*Nils Faerber &amp;lt;nils dot faerber at kernelconcepts dot de&amp;gt; (Embedded Controller 1.30, BIOS 1.32 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X30}}  ||&lt;br /&gt;
*Hella Breitkopf, [http://www.unixwitch.de/ www]  (Embedded Controller 1.04, BIOS 1.07 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X31}}  ||&lt;br /&gt;
*Grzegorz KuÅ›nierz &amp;lt;koniu at sheket dot org&amp;gt;  (Embedded Controller 1.08, BIOS 3.01 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X40}}  ||&lt;br /&gt;
*Robbie Stone &amp;lt;robbie@serendipity.cx&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{Z60m}}  ||&lt;br /&gt;
*[[User:Morle|Morle]] 13:09, 20 May 2006 (CEST),  (Embedded Controller 1.14 with cabextract/CD method)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Does not work:===&lt;br /&gt;
{|&lt;br /&gt;
| '''Model''' || '''Tested by'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Please note that testing this is '''at your own risk'''!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating via Grub and a Floppy Image==&lt;br /&gt;
&lt;br /&gt;
{{WARN|Many have warned '''not''' to use the [http://syslinux.zytor.com/ SYSLINUX] image-loader [http://syslinux.zytor.com/memdisk.php MEMDISK] to boot the images! Some flash tools may crash in that situation!  Proceed at your own risk!}}&lt;br /&gt;
&lt;br /&gt;
Floppy images may be booted from Grub via a utility called [http://syslinux.zytor.com/memdisk.php MEMDISK], which may be compiled from the [http://www.kernel.org/pub/linux/utils/boot/syslinux/ '''SYSLINUX source'''].  Copy the compiled memdisk image and the floppy image to your boot directory and configure grub as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
title     Bios Flash&lt;br /&gt;
kernel    /boot/memdisk&lt;br /&gt;
initrd    /boot/FILENAME.img&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, proceed at your own risk.  This was tested on an R51 type 2888.&lt;br /&gt;
&lt;br /&gt;
This also worked for me on a T41p type 2373. -- [[User:MrStaticVoid|James Lee]] 20:55, 8 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
And it worked for me on a X31 type 2673-CBU. -- [[User:JanTopinski|Jan Topinski]], 18 September 2006 &lt;br /&gt;
&lt;br /&gt;
And it worked for me too on a X31 type 2672-CXU, very useful. -- [[User:TheAnarcat|TheAnarcat]] 16:21, 7 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
And it worked for me on two X40 type 2371 -- [[User:Antialize|Jakob Truelsen]], 19 Jan 2007 -- BIOS: 2.07 1uuj21us.exe -- ECP: 1.62 1uhj10us.exe&lt;br /&gt;
&lt;br /&gt;
Not working for me on T43 type 2668-F7G -- [[User:Maus3273|Maus3273]] 20:48, 30 January 2007 (CET) -- BIOS: 1.29 1YUJ18US.IMG -- I got into the bios program, but the machine never restarts after initiating the upgrade.&lt;br /&gt;
&lt;br /&gt;
==Updating with Network Boot Image==&lt;br /&gt;
&lt;br /&gt;
BIOS, Embedded Controller (EC), CD/DVD and Harddisk firmware disks can be booted&lt;br /&gt;
over the network with [http://syslinux.zytor.com/pxe.php PXELINUX] as part of the [http://syslinux.zytor.com/ SYSLINUX] package.&lt;br /&gt;
&lt;br /&gt;
This requires that you have a DHCP and tftp server configured and setup properly on&lt;br /&gt;
your network, and is probably not for the faint of heart.&lt;br /&gt;
&lt;br /&gt;
Make sure the firmware bootdisk is in linux 'dd' format, as the self-extracting .exe disks&lt;br /&gt;
from the IBM website cannot be booted directly as such.&lt;br /&gt;
&lt;br /&gt;
This worked on the {{R31}}, {{X22}}, {{T21}}, {{T30}} and {{T41p}} with various firmware updates.&lt;br /&gt;
&lt;br /&gt;
==Updating via &amp;quot;IBM Predesktop area&amp;quot;, suitable for model X (not have CDROM and floppy)==&lt;br /&gt;
It's so difficult to update BIOS and ECP without cdrom, floppy disk.&lt;br /&gt;
Don't know the reason why I couldn't update BIOS and ECP(1QHJ08US and 1QUJ19US) for my IBM Thinkpad X31.Hmm, may be cause of the dividing partition on my hard disk, that is: 	&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Primary: ext3, ext3, ntfs&lt;br /&gt;
Extended: Ntsf, fat32&lt;br /&gt;
Bootloader: GRUB&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No problem, you can use this way to do it:&lt;br /&gt;
* First, config in BIOS&lt;br /&gt;
In Security part:&lt;br /&gt;
# Remove all password of Subpervisor and Power on password&lt;br /&gt;
# Set Access IBM Predesktop Area to Normal&lt;br /&gt;
# Choose Enable &amp;quot;Flash BIOS updating by End User&amp;quot; in BIOS update Option.&lt;br /&gt;
&lt;br /&gt;
In Config part:&lt;br /&gt;
# Choose Enable for Network flash over Lan&lt;br /&gt;
&lt;br /&gt;
* Second, download the newest version of BIOS update and ECP update &lt;br /&gt;
Running: The program extract all files to the folder. There is a .img file (1QUJ19US.IMG, 1QUJ08US.IMG) in each folder.&lt;br /&gt;
Copy the imformation content in that img file and paste it to one FAT partition(using winimage or TotalCmd to extract) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
as seen All files in 1QUJ19US.IMG is extracted to D:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
695,764  $018E000.FL1&lt;br /&gt;
163      0691.HSH&lt;br /&gt;
2,049    0691.PAT&lt;br /&gt;
163      0694.HSH&lt;br /&gt;
2,049    0694.PAT&lt;br /&gt;
163      0695.HSH&lt;br /&gt;
2,049    0695.PAT&lt;br /&gt;
2,049    06D0.PAT&lt;br /&gt;
163      06D1.HSH&lt;br /&gt;
2,049    06D1.PAT&lt;br /&gt;
163      06D2.HSH&lt;br /&gt;
2,049    06D2.PAT&lt;br /&gt;
163      06D6.HSH&lt;br /&gt;
2,049    06D6.PAT&lt;br /&gt;
2,049    06D8.PAT&lt;br /&gt;
697      CHKBMP.EXE&lt;br /&gt;
8,128    COMMAND.COM&lt;br /&gt;
26       CONFIG.SYS&lt;br /&gt;
24,860   FLASH2.EXE&lt;br /&gt;
26       LCREFLSH.BAT&lt;br /&gt;
170      LOGO.BAT&lt;br /&gt;
330      LOGO.SCR&lt;br /&gt;
111,925  PHLASH16.EXE&lt;br /&gt;
91,648   PREPARE.EXE&lt;br /&gt;
45       PROD.DAT&lt;br /&gt;
22,252   QKFLASH.EXE&lt;br /&gt;
9,923    README.TXT&lt;br /&gt;
4,260    TPCHKS.EXE&lt;br /&gt;
39,666   UPDTFLSH.EXE&lt;br /&gt;
6,958    UPDTMN.EXE&lt;br /&gt;
12,501   USERINT.EXE&lt;br /&gt;
15,254   UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And all files in 1QUJ08US.IMG are: D:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
315,404 $018E000.FL2&lt;br /&gt;
8,000   COMMAND.COM&lt;br /&gt;
36      CONFIG.SYS&lt;br /&gt;
16,910  ECFLASH2.EXE&lt;br /&gt;
45      PROD.DAT&lt;br /&gt;
17,812  QKFLASH.EXE&lt;br /&gt;
990     README.TXT&lt;br /&gt;
4,260   TPCHKS.EXE&lt;br /&gt;
89,738  UPDTEC.EXE&lt;br /&gt;
31,134  UPDTFLSH.EXE&lt;br /&gt;
12,501  USERINT.EXE&lt;br /&gt;
15,226  UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Okie, now plug AC Adapter, charge full battery to your laptop and continue third step:&lt;br /&gt;
&lt;br /&gt;
** '''Flash BIOS first,'''&lt;br /&gt;
1. Power On, press blue button on keyboard: '''Access IBM'''&lt;br /&gt;
&lt;br /&gt;
2. On &amp;quot;Utilities&amp;quot;, double click &amp;quot; Diagnostic disk&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Your laptop will start PC-DOS, wait when this message appear:&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Please insert the first floppy diskette and&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Press Ctrl + Break, you will see :&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;Terminate batch job (Y/N) ?&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Okie, press Y, you will get DOS prompt like D:\&lt;br /&gt;
{{NOTE|D:\ is my RAMDISK, C:\ is my disk format as FAT.!}}&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\BIOS&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run FLASH2.EXE /u $018E000.FL1&lt;br /&gt;
&lt;br /&gt;
8. Wait flash progress compelete and reboot.&lt;br /&gt;
** '''Flash ECP'''&lt;br /&gt;
Follow above instruction from step 1 to 5&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\ECP&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. run UPDTFLSH.EXE $018E000.FL2&lt;br /&gt;
&lt;br /&gt;
8. Follow UPDTFLSH's instructions&lt;br /&gt;
&lt;br /&gt;
9. Wait flash complete and auto turn off computer.&lt;br /&gt;
&lt;br /&gt;
I done it on my IBM Thinkpad X31.&lt;br /&gt;
&lt;br /&gt;
Enjoy,&lt;br /&gt;
&lt;br /&gt;
Tested by nm.&lt;br /&gt;
&lt;br /&gt;
==Check List==&lt;br /&gt;
&lt;br /&gt;
The following is important to remember:&lt;br /&gt;
# You must update '''both''' the Control Program and the BIOS at the same time if your current Control Program is not compatible with the new BIOS (see below)&lt;br /&gt;
# You must find versions of the Control Program and BIOS that are compatible.  Not all of them are, so follow the readmes on the IBM website carefully to determine which are.&lt;br /&gt;
# You must update the Control Program '''before''' you update the BIOS&lt;br /&gt;
&lt;br /&gt;
When the Control Program '''and''' the BIOS need updating, have both update disks or CDs ready. Update the Control Program first and the system should switch itself off when finished. Insert the BIOS update disk and proceed to update the BIOS. When it's all finished, enter setup, reset the settings to their defaults and reboot. Enter setup again and tweak the settings as necessary.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=29136</id>
		<title>BIOS Upgrade</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade&amp;diff=29136"/>
		<updated>2007-04-07T16:02:59Z</updated>

		<summary type="html">&lt;p&gt;Joachim Selke: The method described does not work anymore. Detailed description of the problem added.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
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 IBM website.&lt;br /&gt;
&lt;br /&gt;
{{NOTE| In one case ([[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.}}&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==Before You Begin==&lt;br /&gt;
Updating the BIOS in Linux (with few exceptions) '''is not officially supported''' by IBM.  However there are work arounds.&lt;br /&gt;
&lt;br /&gt;
{{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 unfixable problems.&lt;br /&gt;
&lt;br /&gt;
'''Proceed at your own risk!'''&lt;br /&gt;
&lt;br /&gt;
It is also '''important''' to understand that all newer thinkpads have 2 seperate firmwares, the BIOS and the Control Program. A specific version of the Control Program will only work with specific versions of the BIOS.  The IBM documentation is sometimes confusing about the order of update.  Updating the Control Program first, then the BIOS seems to be the correct order.  Make sure to do the updates immediately following each other, otherwise you risk turning your thinkpad into a very nice paper weight.}}&lt;br /&gt;
&lt;br /&gt;
==BIOS Upgrade Paths==&lt;br /&gt;
&lt;br /&gt;
For every firmware (either BIOS or Control Program) update on the IBM site there are two different firmware update programs provided.  A list of links to firmware downloads can be found at [[BIOS Upgrade Downloads]] for nearly all Thinkpad Models.&lt;br /&gt;
&lt;br /&gt;
===The Diskette Updater===&lt;br /&gt;
&lt;br /&gt;
This installer appears to be a 16bit dos program which asks you to accept a license agreement.  It will run in Windows, DOS, OS/2, or [http://dosemu.sf.net Dosemu] perfectly, but requires a real floppy disk attached via a real floppy control.  The USB Floppy Drive to the new Thinkpads doesn't count.&lt;br /&gt;
&lt;br /&gt;
===The Non Diskette Updater===&lt;br /&gt;
{{WARN|Though this process was successfully tested on one version of .exe files found on IBMs website this doesn't mean it will work for all of them.  Use at your own risk.}}&lt;br /&gt;
&lt;br /&gt;
This installer appears to be a 32bit windows exe which is designed for updating the BIOS directly from a running Windows OS.  It turns out that the .exe is really a wrapper license program arround windows .cab files (this information is in [[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 files directly.  Run the following:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|cabextract FILENAME.exe}}&lt;br /&gt;
&lt;br /&gt;
You will get 8 files in the current directory.  One of them will be FILENAME.img.  You can test that this is really a floppy image by running:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|mkdir mntfloppy}}&lt;br /&gt;
:{{cmdroot|mount -o loop FILENAME.img mntfloppy}}&lt;br /&gt;
:{{cmdroot|ls -la mntfloppy}}&lt;br /&gt;
&lt;br /&gt;
If the results of {{cmdroot|ls -la mntfloppy}} look like a dos floppy, and no read errors were displayed, you have a pretty good chance that the floppy image is usable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you were able to create the boot floppy per the Diskette update method, and you have a Floppy with your Thinkpad, the update should be simple.&lt;br /&gt;
&lt;br /&gt;
== Updating Thinkpad X Series ==&lt;br /&gt;
&lt;br /&gt;
X Series ThinkPads do not have an internal drive. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. Since a while Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update file are that large, they do not fit on such a floppy image. Thus, they must be stored on the CD outside the virtual floppy image. To access these files a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. The CD images provided by Lenovo can be modified such that they contain drivers for USB CD drives. (I will decribe later how exactly this works.)&lt;br /&gt;
&lt;br /&gt;
The following section contains old information. The procedure described there should not work anymore.&lt;br /&gt;
&lt;br /&gt;
===Build a bootable CD with USB support===&lt;br /&gt;
Get the ISO Image style BIOS upgrade, and the freedos floppy (http://www.ankreuzen.de/freedos/files/fd9sr1/fdos1440.zip)&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|su # get root}}&lt;br /&gt;
:{{cmdroot|mkdir /tmp/iso}}&lt;br /&gt;
:{{cmdroot|mkdir /tmp/cdimage}}&lt;br /&gt;
:{{cmdroot|mount -o loop &amp;lt;iso-bios-file&amp;gt; /tmp/iso}}&lt;br /&gt;
:{{cmdroot|cp /tmp/iso/* /tmp/cdimage}}&lt;br /&gt;
:{{cmdroot|cp &amp;lt;freedos-disk-image&amp;gt; /tmp/cdimage/floppy.img}}&lt;br /&gt;
:{{cmdroot|mkisofs -b floppy.img -o bootcd.iso /tmp/cdimage}}&lt;br /&gt;
&lt;br /&gt;
finished.. now boot from cd and flash.&lt;br /&gt;
&lt;br /&gt;
==Updating via CD/DVD Drive==&lt;br /&gt;
&lt;br /&gt;
The whole thing gets more complicated if you neither have Windows nor a floppy drive installed. This is what this page is intended to describe.&lt;br /&gt;
&lt;br /&gt;
Another possibility which works even without a CD-drive or network is to boot the disk image via the grub initrd mechanism.&lt;br /&gt;
&lt;br /&gt;
Be aware that IBM officially does '''not''' support this! The official statement to my support request was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
I'm afraid we only support the options listed on our web page and no you&lt;br /&gt;
can't burn a CD/DVD, however you can try to use an external USB FDD&lt;br /&gt;
(floppy) drive. The experts recommend a IBM USB FDD, however they have also&lt;br /&gt;
tested it with a Sony USB FDD drive.&lt;br /&gt;
&lt;br /&gt;
In order to make sure the drive is recognised you can boot up the FDD with&lt;br /&gt;
a bootable dos diskette for w98&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But it seems to be possible as Mathias Dalheimer describes this [http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html here].&lt;br /&gt;
&lt;br /&gt;
Another indication that it should work is that IBM uses PHLASH16.EXE (at least on T4x/p systems) to flash the BIOS into the chip. The same tool is used by [http://www.samsungpc.com/gb/support/p35/bios/bios-instructions.html other vendors] to flash the BIOS from bootable CD-ROMs.&lt;br /&gt;
{{WARN|Do '''not''' use the [http://syslinux.zytor.com/ SYSLINUX] image-loader [http://syslinux.zytor.com/memdisk.php MEMDISK] to boot the images! Some flash tools crash in that situation!}}&lt;br /&gt;
&lt;br /&gt;
Some interesting but very technical information about the used flash tool can be found [http://www.paul.sladen.org/thinkpad-r31/wifi-card-pci-ids.html here].&lt;br /&gt;
&lt;br /&gt;
===Creating a Floppy Image===&lt;br /&gt;
If you have created a boot floppy on another machine, you need to create an image file of that floppy. This can be easily done in linux by running a command line:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|1=dd bs=2x80x18b if=/dev/fd0 of=/tmp/floppy.img}}&lt;br /&gt;
&lt;br /&gt;
You can also create a floppy image by using Ken Kato's [http://chitchat.at.infoseek.co.jp/vmware/vfd.html VMware's back]. It is a free Windoze tool that creates a virtual floppy drive and allows you to produce an image file ready to be ISO'ed. Note: you might have to 'manually' (through application's interface) assign the virtual drive a volume letter in order to be seen by IBM's application (as, by default, it seems not to do it).&lt;br /&gt;
&lt;br /&gt;
You should verify this {{path|floppy.img}} as explained above.&lt;br /&gt;
&lt;br /&gt;
===Creating a Bootable CD from a Floppy Image===&lt;br /&gt;
Once you have your floppy image, either from imaging a real floppy, or from extracting them via the cabextract method above, you need to make a boot CD out of it.&lt;br /&gt;
&lt;br /&gt;
The eltorito bootable CD standard is a wonderful thing.  What this means is that a bootable CD can be made with a bootable floppy 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.&lt;br /&gt;
&lt;br /&gt;
It is very easy to create such a bootable CD ISO image in Linux using the mkisofs tool.  To do this run a command as follows:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|mkisofs -b bootfloppy.img -o bootcd.iso bootfloppy.img}}&lt;br /&gt;
&lt;br /&gt;
Note: You don't strictly need the last {{path|bootfloppy.img}}, however some versions of mkisofs get confused about why you would want to create an iso with no contents, and thus won't let you.  You don't actually care about the contents of the CD, you only care that the &amp;lt;tt&amp;gt;-b &amp;lt;boot image&amp;gt;&amp;lt;/tt&amp;gt; is applied to the CD.  For more info on this read {{cmduser|man mkisofs}}.&lt;br /&gt;
&lt;br /&gt;
You can now burn the {{path|bootcd.iso}} in your favorite CD burning program.&lt;br /&gt;
&lt;br /&gt;
To get an overview which models have been tested with this version, here is a list:&lt;br /&gt;
&lt;br /&gt;
===Does work:===&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
| '''Model''' || '''Tested by'''&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{600X}} (2645) ||&lt;br /&gt;
*Jonathan Byrne &amp;lt;jonathan@RemoveThisToMailMe.yamame.org&amp;gt;. BIOS 1.11 from spsuit55.exe worked perfectly using cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A20p}} (2629-6VU) ||&lt;br /&gt;
*Chris Pickett http://www.sable.mcgill.ca/~cpicke/. BIOS 1.11 flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A21e}} (2628-JXU) ||&lt;br /&gt;
*Amit Gurdasani &amp;lt;gurdasani at yahoo dot com&amp;gt;. 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 &amp;quot;do not shut down the laptop&amp;quot; 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.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A31p}} (2653) ||&lt;br /&gt;
*Matthias Meinke largeeddy@gmx.at, BIOS 1.09 1NET15WW flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{A31}} (2652) ||&lt;br /&gt;
*[[User:Wnoise|Aaron Denney]], BIOS 1.13 flashed fine with cabextract/CD method.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{R31}} ||&lt;br /&gt;
*[http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/1998-January/009743.html Mathias Dalheimer]&lt;br /&gt;
*Sebastian Sauer (with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R40}} ||&lt;br /&gt;
*Matthew Lambie, http://lambie.org&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R50}} (1836-3SU) ||&lt;br /&gt;
*jlbartos &amp;lt;jlbartos at hotmail dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R50e}} (1834-PTG) ||&lt;br /&gt;
*item &amp;lt;item at freemail dot hu&amp;gt; : successfully finished with cabextract/CD method for &amp;quot;1wuj25us.exe&amp;quot; (BIOS version 1WET90WW (2.10), Release Date: 2006/12/22)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (1829) ||&lt;br /&gt;
*Robert Uhl &amp;lt;rob dot uhl at gmx dot de&amp;gt;, Jellby &amp;lt;jellby at yahoo dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (1830-RM7) ||&lt;br /&gt;
*Will Parker &amp;lt;stardotstar at sourcepoint dot com dot au&amp;gt; successfully flashed 3.20 using existing 3.04 ECP and retained custom boot splash.&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R51}} (2887) ||&lt;br /&gt;
*Ingo van Lil &amp;lt;inguin at gmx dot de&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{R52}} (1858) ||&lt;br /&gt;
*Stuart McCord &amp;lt;stuart dot mccord at gmail dot com&amp;gt;  flashed both BIOS and ECP using cabextract, BIOS flashed first as on IBM website&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T20}} ||&lt;br /&gt;
*Franz Hassels &amp;lt;fhassel at suse dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T22}} ||&lt;br /&gt;
*Daniel Maier &amp;lt;nusse teamidiot de&amp;gt;&lt;br /&gt;
*Mathias Behrle (with cabextract/CD method, Version 1.07 =&amp;gt; 1.12) --[[User:Mathiasb|Mathiasb]] 11:58, 14 December 2006 (CET)&lt;br /&gt;
*Bob Skaroff (cabextract/CD), 1.06 =&amp;gt; 1.12&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T23}} ||&lt;br /&gt;
*Bart Snapp &amp;lt;snapp at uiuc dot edu&amp;gt; Note: I followed IBM's instructions to flash the BIOS *first* and the Embedded Controller *second*.&lt;br /&gt;
*Moy Easwaran: BIOS 1.18 / EC 1.06a via cabextract and CD-boot.  The BIOS-update exe generated errors in Windows 2000.&lt;br /&gt;
*Joe Renes: BIOS 1.18 / EC 1.06a on 2006-03-20 via cabextract and CD-boot. Piece of cake.&lt;br /&gt;
*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&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T30}} ||&lt;br /&gt;
*Martin GÃ¼hring &amp;lt;guehring at gmail.com&amp;gt; BIOS 2.10 via cabextract the Non-Diskette BIOS -&amp;gt; mkisofs '''in the directory the exe was extracted''' to generate the iso -&amp;gt; burn the iso -&amp;gt; boot the CD&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{T40}} ||&lt;br /&gt;
*Sean Dague, http://dague.net&lt;br /&gt;
*Justin Mason, http://jmason.org&lt;br /&gt;
*Ivanhoe (Bios 3.19)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T40p}} ||&lt;br /&gt;
*Lukas KrÃ¤henbÃ¼hl, ismo at pop dot agri dot ch&lt;br /&gt;
*Thomas Achtemichuk, tom at tomchuk dot com. BIOS 3.15 flashed fine with cabextract/CD method&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; | {{T41}} ||&lt;br /&gt;
*Lev Givon (Bios 3.15 / EC 3.04) &amp;lt;lev at columbia dot edu&amp;gt;&lt;br /&gt;
*Ernesto HernÃ¡ndez-Novich (Bios 3.19 / CP 3.04) &amp;lt; emhn at usb dot ve &amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T41p}} ||&lt;br /&gt;
*Nils Newman, work great. (Version: Bios 3.14 / Embedded Controller 3.04)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T42}} ||&lt;br /&gt;
*Dan (BIOS 3.20 / EC 3.04, cabextract/CD method) &amp;lt;tronic171 at evilphb.org&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T42p}} ||&lt;br /&gt;
*Robert Schiele &amp;lt;rschiele@uni-mannheim.de&amp;gt;, Joern Heissler &amp;lt;joern@heissler.de&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{T43}}  ||&lt;br /&gt;
*Conrad Rentsch &amp;lt;Conrad dot Rentsch at t-online dot de&amp;gt; (Version: Bios 1.29 / Embedded Controller 1.06)&lt;br /&gt;
*Tom Heady &amp;lt;tom-thinkwiki.org@punch.net&amp;gt;&lt;br /&gt;
*Florian Boucault &amp;lt;florian at boucault dot ath dot cx&amp;gt; (Model : 1871-W34 &amp;amp; Version: Bios 1.23 / Embedded Controller 1.03)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X20}}  ||&lt;br /&gt;
*Neil Caunt &amp;lt;retardis at gmail dot com&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X21}}  ||&lt;br /&gt;
*Patrick Leickner &amp;lt;ranma at web dot de&amp;gt;, (BIOS 2.21-&amp;gt;2.25 / EC 1.31-&amp;gt;1.36) via non-disk/cabextract/mkisofs/cdrecord&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X22}}  ||&lt;br /&gt;
*David Emery &amp;lt;dave at skiddlydee dot com&amp;gt;,  (EC 1.30, BIOS 1.32 using non-disk/cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X23}}  ||&lt;br /&gt;
*Nils Faerber &amp;lt;nils dot faerber at kernelconcepts dot de&amp;gt; (Embedded Controller 1.30, BIOS 1.32 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X30}}  ||&lt;br /&gt;
*Hella Breitkopf, [http://www.unixwitch.de/ www]  (Embedded Controller 1.04, BIOS 1.07 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X31}}  ||&lt;br /&gt;
*Grzegorz KuÅ›nierz &amp;lt;koniu at sheket dot org&amp;gt;  (Embedded Controller 1.08, BIOS 3.01 with cabextract/CD method)&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{X40}}  ||&lt;br /&gt;
*Robbie Stone &amp;lt;robbie@serendipity.cx&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align:top;&amp;quot; |  {{Z60m}}  ||&lt;br /&gt;
*[[User:Morle|Morle]] 13:09, 20 May 2006 (CEST),  (Embedded Controller 1.14 with cabextract/CD method)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Does not work:===&lt;br /&gt;
{|&lt;br /&gt;
| '''Model''' || '''Tested by'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Please note that testing this is '''at your own risk'''!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating via Grub and a Floppy Image==&lt;br /&gt;
&lt;br /&gt;
{{WARN|Many have warned '''not''' to use the [http://syslinux.zytor.com/ SYSLINUX] image-loader [http://syslinux.zytor.com/memdisk.php MEMDISK] to boot the images! Some flash tools may crash in that situation!  Proceed at your own risk!}}&lt;br /&gt;
&lt;br /&gt;
Floppy images may be booted from Grub via a utility called [http://syslinux.zytor.com/memdisk.php MEMDISK], which may be compiled from the [http://www.kernel.org/pub/linux/utils/boot/syslinux/ '''SYSLINUX source'''].  Copy the compiled memdisk image and the floppy image to your boot directory and configure grub as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
title     Bios Flash&lt;br /&gt;
kernel    /boot/memdisk&lt;br /&gt;
initrd    /boot/FILENAME.img&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, proceed at your own risk.  This was tested on an R51 type 2888.&lt;br /&gt;
&lt;br /&gt;
This also worked for me on a T41p type 2373. -- [[User:MrStaticVoid|James Lee]] 20:55, 8 May 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
And it worked for me on a X31 type 2673-CBU. -- [[User:JanTopinski|Jan Topinski]], 18 September 2006 &lt;br /&gt;
&lt;br /&gt;
And it worked for me too on a X31 type 2672-CXU, very useful. -- [[User:TheAnarcat|TheAnarcat]] 16:21, 7 March 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
And it worked for me on two X40 type 2371 -- [[User:Antialize|Jakob Truelsen]], 19 Jan 2007 -- BIOS: 2.07 1uuj21us.exe -- ECP: 1.62 1uhj10us.exe&lt;br /&gt;
&lt;br /&gt;
Not working for me on T43 type 2668-F7G -- [[User:Maus3273|Maus3273]] 20:48, 30 January 2007 (CET) -- BIOS: 1.29 1YUJ18US.IMG -- I got into the bios program, but the machine never restarts after initiating the upgrade.&lt;br /&gt;
&lt;br /&gt;
==Updating with Network Boot Image==&lt;br /&gt;
&lt;br /&gt;
BIOS, Embedded Controller (EC), CD/DVD and Harddisk firmware disks can be booted&lt;br /&gt;
over the network with [http://syslinux.zytor.com/pxe.php PXELINUX] as part of the [http://syslinux.zytor.com/ SYSLINUX] package.&lt;br /&gt;
&lt;br /&gt;
This requires that you have a DHCP and tftp server configured and setup properly on&lt;br /&gt;
your network, and is probably not for the faint of heart.&lt;br /&gt;
&lt;br /&gt;
Make sure the firmware bootdisk is in linux 'dd' format, as the self-extracting .exe disks&lt;br /&gt;
from the IBM website cannot be booted directly as such.&lt;br /&gt;
&lt;br /&gt;
This worked on the {{R31}}, {{X22}}, {{T21}}, {{T30}} and {{T41p}} with various firmware updates.&lt;br /&gt;
&lt;br /&gt;
==Updating via &amp;quot;IBM Predesktop area&amp;quot;, suitable for model X (not have CDROM and floppy)==&lt;br /&gt;
It's so difficult to update BIOS and ECP without cdrom, floppy disk.&lt;br /&gt;
Don't know the reason why I couldn't update BIOS and ECP(1QHJ08US and 1QUJ19US) for my IBM Thinkpad X31.Hmm, may be cause of the dividing partition on my hard disk, that is: 	&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Primary: ext3, ext3, ntfs&lt;br /&gt;
Extended: Ntsf, fat32&lt;br /&gt;
Bootloader: GRUB&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No problem, you can use this way to do it:&lt;br /&gt;
* First, config in BIOS&lt;br /&gt;
In Security part:&lt;br /&gt;
# Remove all password of Subpervisor and Power on password&lt;br /&gt;
# Set Access IBM Predesktop Area to Normal&lt;br /&gt;
# Choose Enable &amp;quot;Flash BIOS updating by End User&amp;quot; in BIOS update Option.&lt;br /&gt;
&lt;br /&gt;
In Config part:&lt;br /&gt;
# Choose Enable for Network flash over Lan&lt;br /&gt;
&lt;br /&gt;
* Second, download the newest version of BIOS update and ECP update &lt;br /&gt;
Running: The program extract all files to the folder. There is a .img file (1QUJ19US.IMG, 1QUJ08US.IMG) in each folder.&lt;br /&gt;
Copy the imformation content in that img file and paste it to one FAT partition(using winimage or TotalCmd to extract) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
as seen All files in 1QUJ19US.IMG is extracted to D:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
695,764  $018E000.FL1&lt;br /&gt;
163      0691.HSH&lt;br /&gt;
2,049    0691.PAT&lt;br /&gt;
163      0694.HSH&lt;br /&gt;
2,049    0694.PAT&lt;br /&gt;
163      0695.HSH&lt;br /&gt;
2,049    0695.PAT&lt;br /&gt;
2,049    06D0.PAT&lt;br /&gt;
163      06D1.HSH&lt;br /&gt;
2,049    06D1.PAT&lt;br /&gt;
163      06D2.HSH&lt;br /&gt;
2,049    06D2.PAT&lt;br /&gt;
163      06D6.HSH&lt;br /&gt;
2,049    06D6.PAT&lt;br /&gt;
2,049    06D8.PAT&lt;br /&gt;
697      CHKBMP.EXE&lt;br /&gt;
8,128    COMMAND.COM&lt;br /&gt;
26       CONFIG.SYS&lt;br /&gt;
24,860   FLASH2.EXE&lt;br /&gt;
26       LCREFLSH.BAT&lt;br /&gt;
170      LOGO.BAT&lt;br /&gt;
330      LOGO.SCR&lt;br /&gt;
111,925  PHLASH16.EXE&lt;br /&gt;
91,648   PREPARE.EXE&lt;br /&gt;
45       PROD.DAT&lt;br /&gt;
22,252   QKFLASH.EXE&lt;br /&gt;
9,923    README.TXT&lt;br /&gt;
4,260    TPCHKS.EXE&lt;br /&gt;
39,666   UPDTFLSH.EXE&lt;br /&gt;
6,958    UPDTMN.EXE&lt;br /&gt;
12,501   USERINT.EXE&lt;br /&gt;
15,254   UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And all files in 1QUJ08US.IMG are: D:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
315,404 $018E000.FL2&lt;br /&gt;
8,000   COMMAND.COM&lt;br /&gt;
36      CONFIG.SYS&lt;br /&gt;
16,910  ECFLASH2.EXE&lt;br /&gt;
45      PROD.DAT&lt;br /&gt;
17,812  QKFLASH.EXE&lt;br /&gt;
990     README.TXT&lt;br /&gt;
4,260   TPCHKS.EXE&lt;br /&gt;
89,738  UPDTEC.EXE&lt;br /&gt;
31,134  UPDTFLSH.EXE&lt;br /&gt;
12,501  USERINT.EXE&lt;br /&gt;
15,226  UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Okie, now plug AC Adapter, charge full battery to your laptop and continue third step:&lt;br /&gt;
&lt;br /&gt;
** '''Flash BIOS first,'''&lt;br /&gt;
1. Power On, press blue button on keyboard: '''Access IBM'''&lt;br /&gt;
&lt;br /&gt;
2. On &amp;quot;Utilities&amp;quot;, double click &amp;quot; Diagnostic disk&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Your laptop will start PC-DOS, wait when this message appear:&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Please insert the first floppy diskette and&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Press Ctrl + Break, you will see :&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;Terminate batch job (Y/N) ?&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Okie, press Y, you will get DOS prompt like D:\&lt;br /&gt;
{{NOTE|D:\ is my RAMDISK, C:\ is my disk format as FAT.!}}&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\BIOS&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run FLASH2.EXE /u $018E000.FL1&lt;br /&gt;
&lt;br /&gt;
8. Wait flash progress compelete and reboot.&lt;br /&gt;
** '''Flash ECP'''&lt;br /&gt;
Follow above instruction from step 1 to 5&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\ECP&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. run UPDTFLSH.EXE $018E000.FL2&lt;br /&gt;
&lt;br /&gt;
8. Follow UPDTFLSH's instructions&lt;br /&gt;
&lt;br /&gt;
9. Wait flash complete and auto turn off computer.&lt;br /&gt;
&lt;br /&gt;
I done it on my IBM Thinkpad X31.&lt;br /&gt;
&lt;br /&gt;
Enjoy,&lt;br /&gt;
&lt;br /&gt;
Tested by nm.&lt;br /&gt;
&lt;br /&gt;
==Check List==&lt;br /&gt;
&lt;br /&gt;
The following is important to remember:&lt;br /&gt;
# You must update '''both''' the Control Program and the BIOS at the same time if your current Control Program is not compatible with the new BIOS (see below)&lt;br /&gt;
# You must find versions of the Control Program and BIOS that are compatible.  Not all of them are, so follow the readmes on the IBM website carefully to determine which are.&lt;br /&gt;
# You must update the Control Program '''before''' you update the BIOS&lt;br /&gt;
&lt;br /&gt;
When the Control Program '''and''' the BIOS need updating, have both update disks or CDs ready. Update the Control Program first and the system should switch itself off when finished. Insert the BIOS update disk and proceed to update the BIOS. When it's all finished, enter setup, reset the settings to their defaults and reboot. Enter setup again and tweak the settings as necessary.&lt;/div&gt;</summary>
		<author><name>Joachim Selke</name></author>
		
	</entry>
</feed>