Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 1 | .TH FLASHROM 8 "January 5, 2009" |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 2 | .SH NAME |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 3 | flashrom \- a universal BIOS/ROM/flash programming utility |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 4 | .SH SYNOPSIS |
Uwe Hermann | e5ac164 | 2008-03-12 11:54:51 +0000 | [diff] [blame] | 5 | .B flashrom \fR[\fB\-rwvEVfLhR\fR] [\fB\-c\fR chipname] [\fB\-s\fR exclude_start] [\fB\-e\fR exclude_end] |
Stefan Reinauer | f8337dd | 2006-08-03 10:49:09 +0000 | [diff] [blame] | 6 | [\fB-m\fR vendor:part] [\fB-l\fR file.layout] [\fB-i\fR image_name] [file] |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 7 | .SH DESCRIPTION |
| 8 | .B flashrom |
Uwe Hermann | 67808fe | 2007-10-18 00:29:05 +0000 | [diff] [blame] | 9 | is a universal flash programming utility for DIP, PLCC, or SPI flash ROM |
Stefan Reinauer | e3f3e2e | 2008-01-18 15:33:10 +0000 | [diff] [blame] | 10 | chips. It can be used to flash BIOS/coreboot/firmware images, for example. |
Uwe Hermann | e5ac164 | 2008-03-12 11:54:51 +0000 | [diff] [blame] | 11 | .sp |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 12 | (see |
| 13 | .B http://coreboot.org |
| 14 | for details on coreboot) |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 15 | .SH OPTIONS |
| 16 | If no file is specified, then all that happens |
| 17 | is that flash info is dumped and the flash chip is set to writable. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 18 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 19 | .B "\-r, \-\-read" |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 20 | Read flash ROM contents and save them into the given file. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 21 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 22 | .B "\-w, \-\-write" |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 23 | Write file into flash ROM (default when file is specified). |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 24 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 25 | .B "\-v, \-\-verify" |
Uwe Hermann | 67808fe | 2007-10-18 00:29:05 +0000 | [diff] [blame] | 26 | Verify the flash ROM contents against the given file. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 27 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 28 | .B "\-E, \-\-erase" |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 29 | Erase the flash ROM device. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 30 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 31 | .B "\-V, \-\-verbose" |
| 32 | More verbose output. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 33 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 34 | .B "\-c, \-\-chip" <chipname> |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 35 | Probe only for specified flash ROM chip. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 36 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 37 | .B "\-s, \-\-estart" <addr> |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 38 | Exclude start position (obsolete). |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 39 | .TP |
Stefan Reinauer | f8337dd | 2006-08-03 10:49:09 +0000 | [diff] [blame] | 40 | .B "\-e, \-\-eend" <addr> |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 41 | Exclude end postion (obsolete). |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 42 | .TP |
Peter Stuge | 6b53fed | 2008-01-27 16:21:21 +0000 | [diff] [blame] | 43 | .B "\-m, \-\-mainboard" <[vendor:]part> |
Uwe Hermann | 67808fe | 2007-10-18 00:29:05 +0000 | [diff] [blame] | 44 | Override mainboard settings. This option is needed for some mainboards, |
| 45 | see the |
Uwe Hermann | f8a49fe | 2008-06-22 18:50:25 +0000 | [diff] [blame] | 46 | .B "flashrom \-\-list\-supported" |
| 47 | output for a list. The vendor is not required when the board name is unique. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 48 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 49 | .B "\-f, \-\-force" |
Uwe Hermann | 67808fe | 2007-10-18 00:29:05 +0000 | [diff] [blame] | 50 | Force write without checking whether the ROM image file is really meant |
| 51 | to be used on this board. |
| 52 | .sp |
Stefan Reinauer | e3f3e2e | 2008-01-18 15:33:10 +0000 | [diff] [blame] | 53 | Note: This check only works while coreboot is running, and only for those |
| 54 | boards where the coreboot code supports it. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 55 | .TP |
Stefan Reinauer | f8337dd | 2006-08-03 10:49:09 +0000 | [diff] [blame] | 56 | .B "\-l, \-\-layout" <layout.file> |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 57 | Read ROM layout from file. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 58 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 59 | .B "\-i, \-\-image" <name> |
Uwe Hermann | 67808fe | 2007-10-18 00:29:05 +0000 | [diff] [blame] | 60 | Only flash image |
| 61 | .B <name> |
| 62 | from flash layout. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 63 | .TP |
Uwe Hermann | e5ac164 | 2008-03-12 11:54:51 +0000 | [diff] [blame] | 64 | .B "\-L, \-\-list\-supported" |
| 65 | List the ROM chips, chipsets, and mainboards supported by flashrom. |
| 66 | The list of mainboards consists of those boards which need a special |
| 67 | ROM write-enable function for flashrom to work. |
| 68 | .sp |
| 69 | There are many other boards which will work out of the box, without such |
| 70 | special support in flashrom. Some of the known-good/known-bad and tested ones |
| 71 | are listed at |
| 72 | .BR http://coreboot.org/Flashrom#Supported_mainboards , |
| 73 | but the list is not exhaustive, of course. |
| 74 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 75 | .B "\-h, \-\-help" |
| 76 | Show a help text and exit. |
Bernhard Walle | 201bde3 | 2008-01-21 15:24:22 +0000 | [diff] [blame] | 77 | .TP |
| 78 | .B "\-R, \-\-version" |
| 79 | Show version information and exit. |
Peter Stuge | 42688e5 | 2009-01-26 02:20:56 +0000 | [diff] [blame] | 80 | .SH EXIT STATUS |
| 81 | flashrom exits with 0 on success, 1 on most failures but with 2 if /dev/mem |
| 82 | (/dev/xsvc on Solaris) can not be opened and with 3 if a call to mmap() fails. |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 83 | .SH BUGS |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 84 | Please report any bugs at |
| 85 | .BR http://tracker.coreboot.org/trac/coreboot/newticket "," |
| 86 | or on the coreboot mailing list |
| 87 | .RB "(" http://coreboot.org/Mailinglist ")." |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 88 | .SH LICENCE |
| 89 | .B flashrom |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 90 | is covered by the GNU General Public License (GPL), version 2. Some files are |
| 91 | additionally available under the GPL (version 2, or any later version). |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 92 | .SH COPYRIGHT |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 93 | .br |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 94 | Please see the individual files. |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 95 | .SH AUTHORS |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 96 | Carl-Daniel Hailfinger |
| 97 | .br |
| 98 | Claus Gindhart <claus.gindhart@kontron.com> |
| 99 | .br |
| 100 | Dominik Geyer <dominik.geyer@kontron.com> |
| 101 | .br |
| 102 | Eric Biederman <ebiederman@lnxi.com> |
| 103 | .br |
| 104 | Giampiero Giancipoli <gianci@email.it> |
| 105 | .br |
| 106 | Joe Bao <Zheng.Bao@amd.com> |
| 107 | .br |
| 108 | Luc Verhaegen <libv@skynet.be> |
| 109 | .br |
| 110 | Markus Boas <ryven@ryven.de> |
| 111 | .br |
| 112 | Nikolay Petukhov <nikolay.petukhov@gmail.com> |
| 113 | .br |
| 114 | Peter Stuge <peter@stuge.se> |
| 115 | .br |
| 116 | Reinder E.N. de Haan <lb_reha@mveas.com> |
| 117 | .br |
| 118 | Ronald G. Minnich <rminnich@gmail.com> |
| 119 | .br |
| 120 | Ronald Hoogenboom <ronald@zonnet.nl> |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 121 | .br |
| 122 | Stefan Reinauer <stepan@coresystems.de> |
| 123 | .br |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 124 | Stefan Wildemann <stefan.wildemann@kontron.com> |
| 125 | .br |
| 126 | Steven James <pyro@linuxlabs.com> |
| 127 | .br |
| 128 | Uwe Hermann <uwe@hermann-uwe.de> |
| 129 | .br |
| 130 | Wang Qingpei <Qingpei.Wang@amd.com> |
| 131 | .br |
| 132 | Yinghai Lu <yinghai.lu@amd.com> |
Stefan Reinauer | f8337dd | 2006-08-03 10:49:09 +0000 | [diff] [blame] | 133 | .br |
| 134 | some others |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 135 | .PP |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 136 | This manual page was written by Uwe Hermann <uwe@hermann-uwe.de>. |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 137 | It is licensed under the terms of the GNU GPL (version 2 or later). |