Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HowTo: Flash Bios NO floppy! NO DOS!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Hell-Razor
Guru
Guru


Joined: 10 Jun 2004
Posts: 458

PostPosted: Thu May 03, 2007 11:06 am    Post subject: HowTo: Flash Bios NO floppy! NO DOS! Reply with quote

I ran into this problem today actually. I found a little bug in my bio's and decided it was time to upgrade it. I looked around on the forums for a while and did not come up with anything so I joined the #linux irc channel. After talking to people there for about an hour I got my answer. And from there I decided there may be people looking for this same thing, so here is how I did it.

First of all i would like to thank notp for his help in hunting this problem down. Thank you

Step 1: Download FreeDOS boot disk floppy image
Second of all you are going to need a files called FDOEM. Thanks to the guys at FreeDos
Code:
wget http://www.fdos.org/bootdisks/autogen/FDOEM.144.gz


Time to gunzip this file, simply type in:
Code:
gunzip FDOEM.144.gz


Step 2: Copy your BIOS flash utility and new BIOS image to the mounted floppy disk image
This next step is going to require you to have vfat and loop support. To check run:
Code:
zcat /proc/config.gz | grep LOOP  #will return CONFIG_BLK_DEV_LOOP=y if enabled
zcat /proc/config.gz | grep VFAT #will return CONFIG_VFAT_FS=y if enabled


From here we need to use both the commands to "mount" the FDOEM image so we can edit it.
Make a temp directory (if needed) to house the image:
Code:
mkdir /mnt/image

Mount the FDOEM image:
Code:
mount -t vfat -o loop FDOEM.144 /mnt/image


If this step went without errors then everything is right on track. From here make sure to download your motherboard BIOS drivers and a motherboard flash utility (if need be. Mine required one so here is what I did).
Be sure to unzip them before moving them to the FDOEM image.
Code:
unzip  A8V-ASUS-Deluxe-1017.zip #BIOS IMAGE
unzip  AFUDOS.zip #BIOS FLASH UTILITY
cp  AFUDOS.exe A8V-ASUS-Deluxe-1017.ROM /mnt/image


Double check to make sure the files are not too big for our "floppy":
Code:
df -h /mnt/image


Then unmount:
Code:
umount /mnt/image


Step 3: Burn a bootable CD which will emulate floppy device for us
We need to make our "floppy" image bootable. There is a very easy way of doing this and that is to use mkisofs
Code:
mkisofs -o bootcd.iso -b FDOEM.144 FDOEM.144


From here you want to toss in a blank CD/DVD to burn to. In the last step you want to burn it using cdrecord:
Code:
cdrecord -v bootcd.iso


Step 4: Reboot, flash, reboot, enjoy your new BIOS
Enjoy!



Found at: http://www.linuxinsight.com/how-to-flash-motherboard-bios-from-linux-no-dos-windows-no-floppy-drive.html


Last edited by Hell-Razor on Fri May 18, 2007 5:45 am; edited 1 time in total
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Thu May 03, 2007 11:18 am    Post subject: Reply with quote

or... add the iso as a entry in GRUB,

nice writeup mind, I need to flash my BIOS
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
Hell-Razor
Guru
Guru


Joined: 10 Jun 2004
Posts: 458

PostPosted: Thu May 03, 2007 11:30 am    Post subject: Reply with quote

naib -- have that howto laying around somewhere? I can / will add it.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Thu May 03, 2007 11:45 am    Post subject: Reply with quote

mmm I might of been mistaken :(
grub can chainload a physical disk in floppy/cd as well as memtest.bin... can't find how to do an iso (pretty sure I saw it??)

if it cant, if there was a way todo like memtest then that would be sweet!
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Thu May 03, 2007 11:49 am    Post subject: Reply with quote

thought I saw it before

http://gentoo-wiki.com/TIP_Boot_Floppydisk_Image_without_Floppy_using_GRUB
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Thu May 03, 2007 12:02 pm    Post subject: Reply with quote

I remember doing a BIOS upgrade from a running Gentoo environment with LinuxBIOS (v2), on some VIA mobo. And it succeeded ;)

I think the utility was called flash_and_burn.
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
Hell-Razor
Guru
Guru


Joined: 10 Jun 2004
Posts: 458

PostPosted: Sat May 05, 2007 3:31 pm    Post subject: Reply with quote

naib--- this way requires noedit the grub AND it will work on any machine. I think this should be put as a sticky.
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Mon May 14, 2007 10:17 pm    Post subject: Reply with quote

awesome hell-razor, this is EXACTLY what I needed. Many thanks for sharing 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum