| View previous topic :: View next topic |
| Author |
Message |
deadstar Guru


Joined: 02 Nov 2004 Posts: 319 Location: England
|
Posted: Sat Apr 29, 2006 5:48 pm Post subject: Changing BIOS options from within the OS? |
|
|
Hi,
Is it possible to change BIOS options within linux, through some sexy scripts/hacks?
The idea came to me today when I built a machine at work with an expensive Asus board. The driver disc came with a utility for changing a few (limited) BIOS options like power management settings and fan speeds. And it's been possible for many years now to flash a BIOS with an update within Windows, and change the POST bitmap, etc.
Obviously, quite a dangerous thing to play around with, but it's just for experimentation on a PII box kept hidden away, only to be probed with some SSH love now and again.
Any thoughts? _________________ Hysteriagaming.co.uk is now DOT COM! New design, forum, articles, the works! http://www.hysteriagaming.com
(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination |
|
| Back to top |
|
 |
antik Apprentice


Joined: 01 Oct 2002 Posts: 212
|
Posted: Sat Apr 29, 2006 5:51 pm Post subject: Re: Changing BIOS options from within the OS? |
|
|
| deadstar wrote: | Hi,
Is it possible to change BIOS options within linux, through some sexy scripts/hacks?
The idea came to me today when I built a machine at work with an expensive Asus board. The driver disc came with a utility for changing a few (limited) BIOS options like power management settings and fan speeds. And it's been possible for many years now to flash a BIOS with an update within Windows, and change the POST bitmap, etc.
Obviously, quite a dangerous thing to play around with, but it's just for experimentation on a PII box kept hidden away, only to be probed with some SSH love now and again.
Any thoughts? |
How do you flash bios if you have write protection? _________________ "Yes, I know Linux runs faster, but they can do that because they have thrown out the weight of the airbag, collision frame and safety belt." —Poul-Henning Kamp |
|
| Back to top |
|
 |
deadstar Guru


Joined: 02 Nov 2004 Posts: 319 Location: England
|
Posted: Sat Apr 29, 2006 6:08 pm Post subject: Re: Changing BIOS options from within the OS? |
|
|
| antik wrote: | | deadstar wrote: | Hi,
Is it possible to change BIOS options within linux, through some sexy scripts/hacks?
The idea came to me today when I built a machine at work with an expensive Asus board. The driver disc came with a utility for changing a few (limited) BIOS options like power management settings and fan speeds. And it's been possible for many years now to flash a BIOS with an update within Windows, and change the POST bitmap, etc.
Obviously, quite a dangerous thing to play around with, but it's just for experimentation on a PII box kept hidden away, only to be probed with some SSH love now and again.
Any thoughts? |
How do you flash bios if you have write protection? |
You turn it off? _________________ Hysteriagaming.co.uk is now DOT COM! New design, forum, articles, the works! http://www.hysteriagaming.com
(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination |
|
| Back to top |
|
 |
antik Apprentice


Joined: 01 Oct 2002 Posts: 212
|
Posted: Sat Apr 29, 2006 6:19 pm Post subject: Re: Changing BIOS options from within the OS? |
|
|
| deadstar wrote: | | antik wrote: | | deadstar wrote: | Hi,
Is it possible to change BIOS options within linux, through some sexy scripts/hacks?
The idea came to me today when I built a machine at work with an expensive Asus board. The driver disc came with a utility for changing a few (limited) BIOS options like power management settings and fan speeds. And it's been possible for many years now to flash a BIOS with an update within Windows, and change the POST bitmap, etc.
Obviously, quite a dangerous thing to play around with, but it's just for experimentation on a PII box kept hidden away, only to be probed with some SSH love now and again.
Any thoughts? |
How do you flash bios if you have write protection? |
You turn it off? |
You have to reboot, then enable write, reboot again, change settings, reboot, turn on write protect.... this sucks. _________________ "Yes, I know Linux runs faster, but they can do that because they have thrown out the weight of the airbag, collision frame and safety belt." —Poul-Henning Kamp |
|
| Back to top |
|
 |
MikeRS n00b

Joined: 23 Apr 2005 Posts: 71
|
Posted: Sat Apr 29, 2006 6:27 pm Post subject: |
|
|
| There's a /dev/bios hack that can flash the BIOS of many motherboards... but I don't know anything about setting CMOS settings. |
|
| Back to top |
|
 |
Vanquirius Retired Dev


Joined: 14 Jun 2002 Posts: 1297 Location: Ethereal plains
|
Posted: Sat Apr 29, 2006 7:00 pm Post subject: |
|
|
Well, CPU frequency scaling has been working fine with my nforce2 motherboard for a long time now, for one... _________________ Hello. |
|
| Back to top |
|
 |
GNUtoo Veteran


Joined: 05 May 2005 Posts: 1919
|
Posted: Sat Apr 29, 2006 7:05 pm Post subject: |
|
|
yes you can flash bios from linux
it's part of the linuxbios installation
by the way i don't know if any linux uttilities exist but some advanced windows uttilities exist
they can change any settings such as pci register
some person wanting to improove their performance use them
they can change options that can't be changed inside the bios |
|
| Back to top |
|
 |
energyman76b Advocate


Joined: 26 Mar 2003 Posts: 2022 Location: Germany
|
Posted: Sun Apr 30, 2006 2:14 am Post subject: |
|
|
| new_to_non_X86 wrote: | yes you can flash bios from linux
it's part of the linuxbios installation
by the way i don't know if any linux uttilities exist but some advanced windows uttilities exist
they can change any settings such as pci register
some person wanting to improove their performance use them
they can change options that can't be changed inside the bios |
you mean something like this:
http://www.ocworkbench.com/ocwb/ultimatebb.php?/topic/30/6437/2.html
?
###
Brian Hall
Junior Member
Rate Member Icon 1 posted 03 April, 2006 06:27 PM Profile for Brian Hall Edit/Delete Post Reply With Quote
I figured it out myself by reading the "BIOS and Kernel Developers Guide for the AMD Athlon64 AMD Opteron Processors", otherwise known as 26094.PDF, available from amd.com. See sections 3.5.9 and 3.5.10. Once I knew what bits to set, I spent some time and converted that to setpci commands.
We have to use setpci to set some of the DRAM config bits since they aren't settable via BIOS.
I had previously used this Guide to figure out the command to enable 1T Command Rate, which is settable by the 939Dual-Sata2 BIOSes but not in the BIOS of my AMD64 PC (MSI K8T Neo FISR):
# -----------------------------------
# Set 1T Command Rate (adds 11% memory bandwidth)
setpci -s 0:18.2 93.B=8
# Set memory speed (disabled)
#setpci -s 0:18.2 94.B=05
# Reduce read-to-write delay (Trwt)
setpci -s 0:18.2 8C=14
# use 183 memory divider
setpci -s 0:18.2 96.B=6b
# -----------------------------------
BTW, I am running 2T with 2x512MB, I have found 1T to be unstable at any speed for long-term operation on the Asrock, even with Vdimm >3.0 (OCZ DDR Booster).
####
he wrote a correction some posts later, I won't copy it here, you should have a look there - and if you like it, give him a positive rating.
I have not tried it, but you can change a LOT of stuff without touching the bios. _________________
| AidanJT wrote: |
Libertardian denial of reality is wholly unimpressive and unconvincing, and simply serves to demonstrate what a bunch of delusional fools they all are.
|
Satan's got perfectly toned abs and rocks a c-cup. |
|
| Back to top |
|
 |
allucid Veteran

Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Sun Apr 30, 2006 7:12 am Post subject: Re: Changing BIOS options from within the OS? |
|
|
| deadstar wrote: | | The driver disc came with a utility for changing a few (limited) BIOS options like power management settings and fan speeds. |
Use ACPI instead of APM. |
|
| Back to top |
|
 |
GNUtoo Veteran


Joined: 05 May 2005 Posts: 1919
|
Posted: Mon May 01, 2006 7:55 pm Post subject: |
|
|
i was talking about WPCREDIT and WPCRSET
thanks a lot...while searching i have found a linux alternative: powertweek
and it's in portage |
|
| Back to top |
|
 |
SoylentGreen l33t


Joined: 19 Aug 2005 Posts: 904 Location: The Hostel
|
Posted: Mon May 01, 2006 8:06 pm Post subject: |
|
|
| new_to_non_X86 wrote: |
thanks a lot...while searching i have found a linux alternative: powertweek
|
if you would have spelled it correctly, i would have found it in the 1st place
thx anyway. powertweAk! |
|
| Back to top |
|
 |
GNUtoo Veteran


Joined: 05 May 2005 Posts: 1919
|
Posted: Mon May 01, 2006 8:12 pm Post subject: |
|
|
| new_to_non_X86 wrote: | i was talking about WPCREDIT and WPCRSET
thanks a lot...while searching i have found a linux alternative: powertweek
and it's in portage |
oops there are several program named powertweek... |
|
| Back to top |
|
 |
|