Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[bios update] - Possible from Gentoo? - (discussion)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Thu Apr 14, 2005 5:22 am    Post subject: [bios update] - Possible from Gentoo? - (discussion) Reply with quote

I wanted to know if someone managed to update his/her BIOS from within linux.

I know about projects like FreeDOS, which license is also GNU, so the thing is not that I'm worried about having to use a propietary system just to update my firmware, but I'm just curious about this thing.

I thougt many times about using dosemu or something like that to run the relevant DOS flashers to reprogram the BIOS, but never tried myself. I wonder also if there is a way to do so using some linux ancient tool... Well, you know, any advice will be greatly appreciated.

In case anyone got success with such a thing I'd also be pleased if you put the model (at least the manufacturer of the BIOS chip itself) and model of the mobo. :wink:
Back to top
View user's profile Send private message
Qdot
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2005
Posts: 127

PostPosted: Thu Apr 14, 2005 6:42 am    Post subject: Re: [bios update] - Possible from Gentoo? - (discussion) Reply with quote

6thpink wrote:
I wanted to know if someone managed to update his/her BIOS from within linux.

I know about projects like FreeDOS, which license is also GNU, so the thing is not that I'm worried about having to use a propietary system just to update my firmware, but I'm just curious about this thing.

I thougt many times about using dosemu or something like that to run the relevant DOS flashers to reprogram the BIOS, but never tried myself. I wonder also if there is a way to do so using some linux ancient tool... Well, you know, any advice will be greatly appreciated.

In case anyone got success with such a thing I'd also be pleased if you put the model (at least the manufacturer of the BIOS chip itself) and model of the mobo. :wink:

Dosemu will not work (neither will dosbox, vmware, qemu) - it emulates the CPU, and it will likely crash and do nothing.

I remember there was a program to edit ROM code for AWARD bioses in P1 class computers... Anyway, flashing BIOS is bad thing to do from preemptible OS - you have to ensure your program will not be interrupted by scheduler.. so rather look for kernel threads/modules.
Back to top
View user's profile Send private message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Thu Apr 14, 2005 3:17 pm    Post subject: Reply with quote

Usually flash utilities and roms are small enough to fit on a floppy or usb stick (if you can boot from that).
Download a boot floppy image from http://www.bootdisk.com/, and use that to boot. Then, use the DOS utils to flash it.

Always done it this way, and never failed once.
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Thu Apr 14, 2005 10:19 pm    Post subject: Re: [bios update] - Possible from Gentoo? - (discussion) Reply with quote

Qdot wrote:
6thpink wrote:
I wanted to know if someone managed to update his/her BIOS from within linux.

I know about projects like FreeDOS, which license is also GNU, so the thing is not that I'm worried about having to use a propietary system just to update my firmware, but I'm just curious about this thing.

I thougt many times about using dosemu or something like that to run the relevant DOS flashers to reprogram the BIOS, but never tried myself. I wonder also if there is a way to do so using some linux ancient tool... Well, you know, any advice will be greatly appreciated.

In case anyone got success with such a thing I'd also be pleased if you put the model (at least the manufacturer of the BIOS chip itself) and model of the mobo. :wink:

Dosemu will not work (neither will dosbox, vmware, qemu) - it emulates the CPU, and it will likely crash and do nothing.

I remember there was a program to edit ROM code for AWARD bioses in P1 class computers... Anyway, flashing BIOS is bad thing to do from preemptible OS - you have to ensure your program will not be interrupted by scheduler.. so rather look for kernel threads/modules.


Yeah! I think you have the point here, I did not thought of that. As you say the only solution from linux would be some kind of kernel patch to arrange the scheduler and a few more things. So this really looks something not so easy as I first thought.

lunarg wrote:

Usually flash utilities and roms are small enough to fit on a floppy or usb stick (if you can boot from that).
Download a boot floppy image from http://www.bootdisk.com/, and use that to boot. Then, use the DOS utils to flash it.
Always done it this way, and never failed once.

Yes, I know, but if you reread the initial post the point I was looking for was some way to do it from linux, and not from a DOS disk. But this seems something imposible for now on, as Qdot pointed above. Anyway thanks for pointing that, maybe will be usefull for anybody.
Back to top
View user's profile Send private message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Fri Apr 15, 2005 3:19 pm    Post subject: Re: [bios update] - Possible from Gentoo? - (discussion) Reply with quote

6thpink wrote:
Yes, I know, but if you reread the initial post the point I was looking for was some way to do it from linux, and not from a DOS disk. But this seems something imposible for now on, as Qdot pointed above. Anyway thanks for pointing that, maybe will be usefull for anybody.

For Toshiba laptops without legacy bios, it would theorically be possible to use the /dev nodes to read out the BIOS (if one compiles the proper kernel module). Not sure whether this includes writing.
And then again, such things are highly experimental, and doubt if it'll work properly.

My suggestion is to avoid linux, until someone figures out to write a decent flash tool for BIOSes.
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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