Flashrom: Difference between revisions
Hailfinger (talk | contribs) |
Hailfinger (talk | contribs) (→Usage) |
||
Line 1,420: | Line 1,420: | ||
$ flashrom -r backup.bin | $ flashrom -r backup.bin | ||
Depening on the chip driver, you may have to erase the chip first: | |||
$ flashrom -E | |||
Write a BIOS image (proprietary or coreboot) on the ROM chip: | Write a BIOS image (proprietary or coreboot) on the ROM chip: | ||
Line 1,427: | Line 1,431: | ||
<div style="color: red">WARNING: This will overwrite your current BIOS! Make sure you know what you're doing!</div> | <div style="color: red">WARNING: This will overwrite your current BIOS! Make sure you know what you're doing!</div> | ||
For more documentation please see the [http://tracker.coreboot.org/trac/coreboot/browser/trunk/util/flashrom/README flashrom README] or the | For more documentation please see the [http://tracker.coreboot.org/trac/coreboot/browser/trunk/util/flashrom/README flashrom README] or the man page. | ||
== Fully testing flashrom chip/southbridge/mainboard support == | == Fully testing flashrom chip/southbridge/mainboard support == |
Revision as of 17:12, 21 January 2009
Flashrom is a utility which can be used to detect, read, erase, or write BIOS chips (DIP, PLCC, SPI).
Supported devices
Note: There are probably some flash ROM chips which are compatible to the ones listed below.
|
|
|
Supported chipsets
|
|
1 This includes the ICH, ICH0, ICH2, ICH2-M, ICH3-S, ICH3-M, ICH4/ICH4-L, ICH4-M, ICH5/ICH5R, ICH6/ICH6R, ICH6-M, ICH7DH, ICH7/ICH7R, ICH7M, ICH7MDH, ICH8/ICH8R, ICH8M-E, ICH8DH, ICH8DO, ICH8M, ICH9DH, ICH9DO, ICH9R, ICH9M-E, ICH9, ICH9M, ICH10DO, ICH10R, ICH10, ICH10D chipsets.
Supported mainboards
In general, it is very likely that flashrom works out of the box even if your mainboard is not listed below.
This is a list of mainboards where we have verified that they either do or do not need any special initialization to make flashrom work (given flashrom supports the respective southbridge and ROM chip), or that they do not yet work at all. If they do not work, support may or may not be added later.
Mainboards which don't appear in the list may or may not work (we don't know, someone has to give it a try). Please report any further verified mainboards on the mailing list or add them here directly.
Known-good
|
Known-good (continued)
|
Known-good (but special setup required)
Known-bad
|
1 Used in the IGEL WinNET III thin client.
2 Might also work for other CLE266 based EPIAs.
3 Interestingly flashrom does not work when the vendor BIOS is booted, but it does work flawlessly when the machine is booted with coreboot.
4 See http://www.coreboot.org/pipermail/coreboot/2007-September/025281.html.
5 Used in the IGEL-316 thin client.
6 See http://www.coreboot.org/pipermail/coreboot/2007-October/026496.html.
Installation
Requirements
Flashrom requires the pciutils and zlib and the respective development packages in order to be built.
In Debian unstable these development packages are called pciutils-dev/libpci-dev and zlib1g-dev. Most other distributions call them pciutils-devel and zlib-devel.
Manual Installation
$ svn co svn://coreboot.org/repos/trunk/util/flashrom $ cd flashrom $ make $ sudo make install
Debian
$ sudo aptitude install flashrom
Fedora
$ sudo yum install flashrom
Mandriva
$ urpmi flashrom
openSUSE
$ yast -i coreboot-utils
For distributions older than openSUSE Factory (11.0) you find "backports" in the openSUSE Build Service.
Windows
There is a Windows port of the flashrom utility. Download the latest version at http://google-summer-of-code-2007-coresystems.googlecode.com/files/DarmawanMappatutu_Salihun.tar.gz
Usage
Detect whether flashrom knows about your chipset/mainboard/BIOS chip:
$ flashrom
Read the current BIOS image into a file:
$ flashrom -r backup.bin
Depening on the chip driver, you may have to erase the chip first:
$ flashrom -E
Write a BIOS image (proprietary or coreboot) on the ROM chip:
$ flashrom -wv newbios.bin
For more documentation please see the flashrom README or the man page.
Fully testing flashrom chip/southbridge/mainboard support
See this page for instructions on how to test flashrom properly (this may be risky, make sure you have a working backup ROM chip).