l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2006 Feb 20 12:58

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] [fwd] Creating a bootable CD from Linux to reflash yourBIOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] [fwd] Creating a bootable CD from Linux to reflash yourBIOS

Thought I'd pass this along, since it looks so useful!

----- Forwarded message from Richard Sharpe <rsharpe AT richardsharpe {dot} com> -----

Date: Sun, 19 Feb 2006 16:10:26 -0800 (PST)
From: Richard Sharpe
Subject: [svlug] Creating a bootable CD from Linux to reflash your BIOS


Here are the steps I used:

1. wget http://fdos.org/bootdisks/autogen/FDSTD.288.imz

I used the 2.88MB floppy image version to ensure there was enough space 
for the new BIOS and the flash utility.

2. Decompress it: zcat FDSTD.288.imz > FDSTD.288.img

3. Mount the image: mount -o loop -t msdos FDSTD.288.img /mnt

Note, you will have to ensure that you have fat.ko and msdos.ko loaded. 
You might have to build them in your kernel source tree and insmod them. 
There are other ways to ensure that they load as well.

4. Replace config.sys with something that is less likely to cause 
problems. You don't need himem.exe and other things loaded, and you don't 
need it prompting you if you want them loaded:

cat > /mnt/config.sys << EOF

5. If you need to do this from a serial console (COM1) because you don't 
have a graphics device, find and download the mode.com program:

wget http://www.coli.uni-saarland.de/~eric/stuff/soft/mode-205may12.zip

and extract mode.com and copy it to the fdos directory:

cp mode.com /mnt/fdos

If you have a graphics console, skip to step 6.

6. Copy your flashing program and BIOS image file to the floppy image:

cp phlash16.exe /mnt
cp pdsm4215.rom /mnt

Note, you might need to copy a different flash utility and ROM file.

7. Create an autoexec.bat file:

cat > /mnt/autoexec.bat << EOF
ECHO Welcome to FreeDOS (http://www.freedos.org)!
path fdos;.

8. If you need to flash your BIOS from COM1, add the following to 

cat >> /mnt/autoexec.bat << EOF
rem Setting up to switch to COM1
mode com1 9600,none,8,1
ctty aux

Note, you can do steps 7 and 8 together of you want to.

9. Unmount the floppy image

umount /mnt

10. Create the CD image

mkdir flashcd
mv FDSTD.288.img flashcd
mkisofs -r -b FDSTD.288.img -c boot.cat -o ./flashcd.iso ./flashcd

11. Burn your image to a CD.

You could put much of the above into a shell script if you want.

NOTE! These steps might need changing for your environment and might need 
some troubleshooting. It took me about 6 CDs before I got things right. 
YMMV. However, they are the steps.

Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com

----- End forwarded message -----

-bill!                                    Tux Paint 2006 wall calendar,
bill@newbreedsoftware.com                CDROM, bumper sticker & apparel
http://www.newbreedsoftware.com/       http://www.cafepress.com/newbreedsw
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.