<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Tom Moertel's Weblog: How to flash your BIOS when you don't have a floppy drive</title>
    <link>http://blog.moertel.com/articles/2006/02/17/how-to-flash-your-bios-when-you-dont-have-a-floppy-drive</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Quality rants on programming theory and stuff geeks like</description>
    <item>
      <title>How to flash your BIOS when you don't have a floppy drive</title>
      <description>&lt;p&gt;Tonight while building a new workstation, I needed to update the &lt;span class="caps"&gt;BIOS&lt;/span&gt;
on the motherboard, a &lt;a href="http://www.tyan.com/products/html/tomcatk8e.html"&gt;Tyan Tomcat
&lt;span class="caps"&gt;K8E&lt;/span&gt;&lt;/a&gt;.  Tyan, however,
offers only floppy-based &lt;span class="caps"&gt;BIOS&lt;/span&gt; flashing software to do the job.  Worse,
the software requires me to boot into &lt;span class="caps"&gt;DOS&lt;/span&gt; first, using a &lt;span class="caps"&gt;DOS&lt;/span&gt; boot
floppy that is neither provided nor lying around the office (I&amp;#8217;m
a Linux guy).&lt;/p&gt;


	&lt;p&gt;One more thing: it turns out that my new floppy drive is junk.&lt;/p&gt;


	&lt;p&gt;Thus we arrive at tonight&amp;#8217;s problem:  &lt;em&gt;If you do not have a floppy drive, how can you flash a motherboard&amp;#8217;s &lt;span class="caps"&gt;BIOS&lt;/span&gt; when its manufacturer provides only a &lt;span class="caps"&gt;DOS&lt;/span&gt;-floppy-based &lt;span class="caps"&gt;BIOS&lt;/span&gt; flasher?&lt;/em&gt;&lt;/p&gt;


	&lt;p&gt;Fortunately, the problem can be solved.  In case &lt;em&gt;you&lt;/em&gt; ever need
the solution, here it is.&lt;/p&gt;


&lt;div style="border: solid 1px red; margin: 1em; padding: 1em;"&gt;
&lt;strong&gt;Disclaimer:&lt;/strong&gt;  This recipe worked fine for me, but might not for you.  If you follow these instructions, you do so at your own risk and assume all responsibility for whatever happens, even if your computer catches on fire or your pants explode.  You have been warned.
&lt;/div&gt;

	&lt;p&gt;First, download a bootable floppy image from the &lt;a href="http://www.freedos.org/"&gt;FreeDOS
Project&lt;/a&gt;.  The one you want is the &lt;a href="http://odin.fdos.org/odin2005/odin2880.img"&gt;2.88-MB
&lt;span class="caps"&gt;ODIN&lt;/span&gt; image&lt;/a&gt; because it has
about 1.5 MB of free space, enough to hold the contents of the &lt;span class="caps"&gt;BIOS&lt;/span&gt;
flasher&amp;#8217;s floppy.&lt;/p&gt;


	&lt;p&gt;Second, mount the floppy image so that you can edit it:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;mkdir /tmp/image
mount -o loop /path/to/odin2880.img /tmp/image
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Third, copy the &lt;span class="caps"&gt;BIOS&lt;/span&gt; flasher and associated files into the mounted
floppy image.  I just unziped Tyan&amp;#8217;s archive directly into
the image:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;unzip /tmp/tyan_2865_301.zip -d /tmp/image
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Fourth, unmount the image.&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;umount -d /tmp/image
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Fifth, create a bootable CD-ROM from the floppy image.&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;cd /tmp
mkdir boot_cd
mv /path/to/odin2880.img boot_cd
mkisofs -o odin-cdrom.img -b odin2880.img -c boot.catalog boot_cd
cdrecord -v -eject odin-cdrom.img
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Finally, reboot your PC using the CD-ROM and flash away!  (Note:  If FreeDOS asks, you don&amp;#8217;t want to use extended memory or anything like that because &lt;span class="caps"&gt;BIOS&lt;/span&gt; flashers don&amp;#8217;t like it.  You want old 8086-style
unprotected memory.)&lt;/p&gt;</description>
      <pubDate>Fri, 17 Feb 2006 02:23:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:7afcd8064a6e0f2fd7f3c8da8eb6dbc5</guid>
      <author>Tom Moertel</author>
      <link>http://blog.moertel.com/articles/2006/02/17/how-to-flash-your-bios-when-you-dont-have-a-floppy-drive</link>
      <category>hardware</category>
      <category>hacks</category>
      <trackback:ping>http://blog.moertel.com/articles/trackback/54</trackback:ping>
    </item>
  </channel>
</rss>
