path: root/flashrom.8
diff options
authorCarl-Daniel Hailfinger <>2010-05-15 15:04:37 +0000
committerCarl-Daniel Hailfinger <>2010-05-15 15:04:37 +0000
commit8841d3e703e3d3f7c7920b7f9439fc9333c15638 (patch)
tree6882ad326234c32f0af130afede47c17a910a181 /flashrom.8
parent316a29f33f7b4f549097c102cf2e56a30d7e3cac (diff)
Fix assorted documentation, frontend and printing bugs
Change the command line interface to make file names positional. Add more sanity checks to the command line parser. Corresponding to flashrom svn r998. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Michael Karcher <>
Diffstat (limited to 'flashrom.8')
1 files changed, 29 insertions, 23 deletions
diff --git a/flashrom.8 b/flashrom.8
index ab53ff8..5ca14fc 100644
--- a/flashrom.8
+++ b/flashrom.8
@@ -1,9 +1,13 @@
-.TH FLASHROM 8 "May 21, 2009"
+.TH FLASHROM 8 "Apr 29, 2010"
flashrom \- detect, read, write, verify and erase flash chips
-.B flashrom \fR[\fB\-VfLzhRn\fR] [\fB\-E\fR|\fB\-r\fR file|\fB\-w\fR file|\fB\-v\fR file] [\fB\-c\fR chipname]
- [\fB\-m\fR [vendor:]part] [\fB\-l\fR file] [\fB\-i\fR image] [\fB\-p\fR programmer]
+.B flashrom \fR[\fB\-n\fR] [\fB\-V\fR] [\fB\-f\fR] [\fB\-h\fR|\fB\-R\fR|\
+\fB\-L\fR|\fB\-z\fR|\fB\-E\fR|\fB\-r\fR <file>|\fB\-w\fR <file>|\
+\fB\-v\fR <file>]
+ [\fB\-c\fR <chipname>] [\fB\-m\fR [<vendor>:]<part>] \
+[\fB\-l\fR <file>]
+ [\fB\-i\fR <image>] [\fB\-p\fR <programmername>[:<parameters>]]
.B flashrom
is a utility for detecting, reading, writing, verifying and erasing flash
@@ -20,9 +24,8 @@ Please note that the command line interface for flashrom will change before
flashrom 1.0. Do not use flashrom in scripts or other automated tools without
checking that your flashrom version won't interpret options in a different way.
-You can specify one of \-E, \-r, \-w, \-v or no operation.
-If no operation is specified, then all that happens
-is that flash info is dumped and the flash chip is set to writable. It is
+You can specify one of \-h, \-R, \-L, \-z, \-E, \-r, \-w, \-v or no operation.
+If no operation is specified, flashrom will only probe for flash chips. It is
recommended that if you try flashrom the first time on a system, you run it
in probe only mode and check the output. Also you are advised to make a
backup of your current ROM contents with \-r before you try to write a new
@@ -33,19 +36,19 @@ Read flash ROM contents and save them into the given
.BR <file> .
.B "\-w, \-\-write <file>"
-Write file into flash ROM.
+.B <file>
+into flash ROM.
.B "\-n, \-\-noverify"
-.B not
-verify the flash ROM contents after writing them to the chip. Using this
+Skip the automatic verification of flash ROM contents after writing. Using this
option is
.B not
-recommended, you should only use it if you know what you are doing and you
+recommended, you should only use it if you know what you are doing and if you
feel that the time for verification takes too long.
Typical usage is:
-.B "flashrom -wn file"
+.B "flashrom -n -w file"
This option is only useful in combination with
.BR \-\-write .
@@ -66,14 +69,14 @@ printed by
.B "flashrom \-L"
without the vendor name. Please note that the chip name is case sensitive.
-.B "\-m, \-\-mainboard" <[vendor:]part>
+.B "\-m, \-\-mainboard" [<vendor>:]<part>
Override mainboard settings.
flashrom reads the coreboot table to determine the current mainboard. If no
coreboot table could be read or if you want to override these values, you can
specify \-m, e.g.:
-.B " flashrom -w --mainboard AGAMI:ARUMA agami_aruma.rom"
+.B " flashrom --mainboard AGAMI:ARUMA -w agami_aruma.rom"
See the 'Supported mainboards' section in the output of 'flashrom \-L' for
a list of boards which require the specification of the board name, if no
@@ -108,19 +111,15 @@ the flash chip only. A ROM layout file looks like follows:
All addresses are offsets within the file, not absolute addresses!
If you only want to update the normal image in a ROM you can say:
-.B " flashrom -w --layout rom.layout --image normal agami_aruma.rom"
+.B " flashrom --layout rom.layout --image normal -w agami_aruma.rom"
To update normal and fallback but leave the VGA BIOS alone, say:
-.B " flashrom -w -l rom.layout -i normal \"
+.B " flashrom -l rom.layout -i normal \"
-.B " -i fallback agami_aruma.rom"
+.B " -i fallback -w agami_aruma.rom"
Currently overlapping sections are not supported.
-ROM layouts should replace the \-s and \-e option since they are more
-flexible and they should lead to a ROM update file format with the
-ROM layout and the ROM image in one file (cpio, zip or something?).
.B "\-i, \-\-image <name>"
Only flash image
@@ -141,7 +140,8 @@ if you have proper means to recover from failure!
Same as
.BR \-\-list\-supported ,
but outputs the supported hardware in MediaWiki syntax, so that it can be
-easily pasted into the wiki page at
+easily pasted into the wiki page at Please note
+that MediaWiki output is not compiled in by default.
.B "\-p, \-\-programmer <name>[:parameter[,parameter[,parameter]]]"
Specify the programmer device. Currently supported are:
@@ -237,6 +237,7 @@ do not match, it will refuse to write the image unless you specify
If your mainboard uses an ITE IT87 series Super I/O for LPC<->SPI flash bus
translation, flashrom should autodetect that configuration. You can use
.B "flashrom -p internal:it87spiport=portnum"
syntax as explained in the
.B it87spi
@@ -382,6 +383,8 @@ Li-Ta Lo
Markus Boas <>
+Michael Karcher <>
Nikolay Petukhov <>
Peter Stuge <>
@@ -392,6 +395,8 @@ Ronald G. Minnich <>
Ronald Hoogenboom <>
+Sean Nelson <>
Stefan Reinauer <>
Stefan Wildemann <>
@@ -406,5 +411,6 @@ Yinghai Lu
some others
-This manual page was written by Uwe Hermann <>.
+This manual page was written by Uwe Hermann <> and Carl-Daniel
It is licensed under the terms of the GNU GPL (version 2 or later).
OpenPOWER on IntegriCloud