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