Linux BIOS flashing
Hi all,
I am new with the Linux + BIOS. I am currently trying to search a way to flash my BIOS through Linux command line and found flashrom from coreboot. I am not too sure that the flashrom is actually working. I got it flash successfully + verified successfully but, after reboot, nothing were changed & BIOS image verfication now failed to match the BIOS image I flash earlier. Who has experience with this? Please advice. Thanks, SY |
I recommend flashing the BIOS from a DOS boot disk like freedos. Or, even better, some mobos have a BIOS flashing app integrated into the BIOS itself, so check the manual.
Always be aware that a bad BIOS flash will brick your system, and it may be permanent. |
Hmm... The only choice I have now is that, either from Linux command line or throught ethernet so that I can make the process automated.
I am not sure if I can automated the process with the freedos. As I know that with feedos, we need extra USB, boot to the DOS and start the thing. Any recommandation? I cannot find anything about that in the manual. |
The only way to do it from the CLI is to use flashrom/coreboot like you did. However, you said it didn't work. Make sure to check the version of the BIOS in the BIOS options screen to be sure it didn't work.
|
(free)DOS has automation capabilities, called batch scripts. It is no problem at all to automate the process of BIOS flashing using DOS, you don't need USB for that and it can be done over PXE booting.
|
Quote:
After that, I wrie this created image to a unit with the HighSpeed BIOS setting to check out if the setting were changing - unfortunately not. Thanks. |
I am in big confusion now. Who can tell me what is BIOS software, where it stored? and where is BIOS setting and where it stored?
What is flashrom doing actually? it is flashing the BIOS software or the setting? Thanks in advance for explaining. |
BIOS is system firmware stored on a ROM somewhere on the mobo. The BIOS settings are stored on a CMOS, also on the mobo, and powered by the CMOS battery.
Flashrom is flashing the BIOS to the ROM. It is flashing BIOS firmware. You can set the BIOS settings by holding a certain key when the system POSTs, usually F2 or Delete, check the manual. Then you can see all the settings, set them, and save them or discard them. |
If you need a tool to deploy custom default settings on mainboards you can contact the mainboard manufacturer, they usually have tools that they hand out which will enable you to do that. I know that at least from ASUS, but I am not quite sure you only get those tools if you are an ASUS partner or if any OEM can get those.
|
Does flashrom support pages describe this exact chip as working?
When you boot to bios, do you see a choice to load all default settings? I am pretty sure that is what you will get when you reflash it, not any of your changes. |
Hi guys,
Thank you for explaining. I think the flashrom did flashed the BIOS ROM. But, I think I am wronged here. I should not flash the ROM but, I want to have the BIOS setting programmed. There surely have the default setting in the BIOS page but I need a method to set this through Linux command instead. Any comment for this? By the way, it is quite odd that I cannot reset the BIOS to default with removing the RTC battery - is this caused by a different chip used to keep the BIOS setting? Thanks, SY |
I don't know of any way to set the BIOS settings from the Linux CLI.
I recommend looking into what TobiSGD said about the settings deployment. You should be able to reset the BIOS settings from within the BIOS settings menu. The settings will also reset (along with the time) if you remove the CMOS battery and all other power sources for a while (minutes to hours). This is not recommended tho, because it will reset the time and you have to go inside the case, just the use the BIOS settings menu. |
Quote:
Utilities capable of saving and restoring timer chip CMOS RAM exists, and if the relevant BIOS setting happens to be stored in this area, you could use such a program to change that setting. However, as motherboards got increasingly more complex, BIOS manufacturers ran out of space in this small area and started using an area of the flash chip to store BIOS settings. So with most recent motherboards you need to do perform a motherboard/flash chip specific erase and rewrite to change BIOS settings, which also explains this: Quote:
|
What does the manual say for resetting bios to default? Most newer systems use a full power off jumper to reset numbers.
|
It did not says anything about the power off jumper - nothing on the manual except resetting the setting from the bios page - load optimal setting or load failsafe setting
|
Quote:
|
All times are GMT -5. The time now is 05:34 PM. |