Uwe Hermann | e8ba538 | 2009-05-22 11:37:27 +0000 | [diff] [blame] | 1 | .TH FLASHROM 8 "May 21, 2009" |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 2 | .SH NAME |
Uwe Hermann | 530cb2d | 2009-05-14 22:58:21 +0000 | [diff] [blame] | 3 | flashrom \- detect, read, write, verify and erase flash chips |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 4 | .SH SYNOPSIS |
Uwe Hermann | ea07f62 | 2009-06-24 17:31:08 +0000 | [diff] [blame] | 5 | .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] |
| 6 | [\fB\-m\fR [vendor:]part] [\fB\-l\fR file] [\fB\-i\fR image] [\fB\-p\fR programmer] |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 7 | .SH DESCRIPTION |
| 8 | .B flashrom |
Uwe Hermann | e8ba538 | 2009-05-22 11:37:27 +0000 | [diff] [blame] | 9 | is a utility for detecting, reading, writing, verifying and erasing flash |
Uwe Hermann | 530cb2d | 2009-05-14 22:58:21 +0000 | [diff] [blame] | 10 | chips. It's often used to flash BIOS/EFI/coreboot/firmware images in-system |
| 11 | using a supported mainboard, but it also supports flashing of network cards |
| 12 | (NICs), SATA controller cards, and other external devices which can program |
| 13 | flash chips. |
Uwe Hermann | e74b9f8 | 2009-04-10 14:41:29 +0000 | [diff] [blame] | 14 | .PP |
Uwe Hermann | d42009c | 2009-04-11 13:59:00 +0000 | [diff] [blame] | 15 | It supports a wide range of DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, and |
| 16 | TSOP40 chips, which use various protocols such as LPC, FWH, parallel flash, |
| 17 | or SPI. |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 18 | .SH OPTIONS |
Carl-Daniel Hailfinger | 5de9341 | 2009-05-01 10:53:49 +0000 | [diff] [blame] | 19 | Please note that the command line interface for flashrom will change before |
| 20 | flashrom 1.0. Do not use flashrom in scripts or other automated tools without |
Uwe Hermann | e8ba538 | 2009-05-22 11:37:27 +0000 | [diff] [blame] | 21 | checking that your flashrom version won't interpret options in a different way. |
Carl-Daniel Hailfinger | 5de9341 | 2009-05-01 10:53:49 +0000 | [diff] [blame] | 22 | .PP |
Uwe Hermann | 1432a60 | 2009-06-28 23:26:37 +0000 | [diff] [blame] | 23 | You can specify one of \-E, \-r, \-w, \-v or no operation. |
Carl-Daniel Hailfinger | 01d6aba | 2009-06-12 14:02:07 +0000 | [diff] [blame] | 24 | If no operation is specified, then all that happens |
Michael Karcher | 31fd825 | 2010-03-12 06:41:39 +0000 | [diff] [blame] | 25 | is that flash info is dumped and the flash chip is set to writable. It is |
| 26 | recommended that if you try flashrom the first time on a system, you run it |
| 27 | in probe only mode and check the output. Also you are advised to make a |
| 28 | backup of your current ROM contents with \-r before you try to write a new |
| 29 | image. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 30 | .TP |
Uwe Hermann | e74b9f8 | 2009-04-10 14:41:29 +0000 | [diff] [blame] | 31 | .B "\-r, \-\-read <file>" |
| 32 | Read flash ROM contents and save them into the given |
| 33 | .BR <file> . |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 34 | .TP |
Uwe Hermann | e74b9f8 | 2009-04-10 14:41:29 +0000 | [diff] [blame] | 35 | .B "\-w, \-\-write <file>" |
Uwe Hermann | 9d68080 | 2009-07-11 22:17:28 +0000 | [diff] [blame] | 36 | Write file into flash ROM. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 37 | .TP |
Uwe Hermann | ea07f62 | 2009-06-24 17:31:08 +0000 | [diff] [blame] | 38 | .B "\-n, \-\-noverify" |
| 39 | Do |
| 40 | .B not |
| 41 | verify the flash ROM contents after writing them to the chip. Using this |
| 42 | option is |
| 43 | .B not |
| 44 | recommended, you should only use it if you know what you are doing and you |
| 45 | feel that the time for verification takes too long. |
| 46 | .sp |
| 47 | Typical usage is: |
| 48 | .B "flashrom -wn file" |
| 49 | .sp |
| 50 | This option is only useful in combination with |
| 51 | .BR \-\-write . |
| 52 | .TP |
Uwe Hermann | e74b9f8 | 2009-04-10 14:41:29 +0000 | [diff] [blame] | 53 | .B "\-v, \-\-verify <file>" |
| 54 | Verify the flash ROM contents against the given |
| 55 | .BR <file> . |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 56 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 57 | .B "\-E, \-\-erase" |
Uwe Hermann | e74b9f8 | 2009-04-10 14:41:29 +0000 | [diff] [blame] | 58 | Erase the flash ROM chip. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 59 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 60 | .B "\-V, \-\-verbose" |
| 61 | More verbose output. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 62 | .TP |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 63 | .B "\-c, \-\-chip" <chipname> |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 64 | Probe only for specified flash ROM chip. |
Joerg Mayer | 645c6df | 2010-03-13 14:47:48 +0000 | [diff] [blame] | 65 | .TP |
| 66 | .B "\-m, \-\-mainboard" <[vendor:]part> |
| 67 | Override mainboard settings. |
| 68 | .sp |
| 69 | flashrom reads the coreboot table to determine the current mainboard. If no |
| 70 | coreboot table could be read or if you want to override these values, you can |
| 71 | specify \-m, e.g.: |
| 72 | .sp |
| 73 | .B " flashrom -w --mainboard AGAMI:ARUMA agami_aruma.rom" |
| 74 | .sp |
| 75 | See the 'Supported mainboards' section in the output of 'flashrom \-L' for |
| 76 | a list of boards which require the specification of the board name, if no |
| 77 | coreboot table is found. |
| 78 | .TP |
| 79 | .B "\-f, \-\-force" |
| 80 | Force write without checking whether the ROM image file is really meant |
| 81 | to be used on this board. |
| 82 | .sp |
| 83 | Note: This check only works while coreboot is running, and only for those |
| 84 | boards where the coreboot code supports it. |
| 85 | .TP |
| 86 | .B "\-l, \-\-layout <file>" |
| 87 | Read ROM layout from |
| 88 | .BR <file> . |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 89 | .sp |
| 90 | flashrom supports ROM layouts. This allows you to flash certain parts of |
| 91 | the flash chip only. A ROM layout file looks like follows: |
| 92 | .sp |
| 93 | 00000000:00008fff gfxrom |
| 94 | 00009000:0003ffff normal |
| 95 | 00040000:0007ffff fallback |
| 96 | .sp |
| 97 | i.e.: |
| 98 | startaddr:endaddr name |
| 99 | .sp |
| 100 | All addresses are offsets within the file, not absolute addresses! |
| 101 | If you only want to update the normal image in a ROM you can say: |
| 102 | .sp |
| 103 | .B " flashrom -w --layout rom.layout --image normal agami_aruma.rom" |
| 104 | .sp |
| 105 | To update normal and fallback but leave the VGA BIOS alone, say: |
| 106 | .sp |
| 107 | .B " flashrom -w -l rom.layout -i normal \" |
| 108 | .br |
| 109 | .B " -i fallback agami_aruma.rom" |
| 110 | .sp |
| 111 | Currently overlapping sections are not supported. |
| 112 | .sp |
Uwe Hermann | e8ba538 | 2009-05-22 11:37:27 +0000 | [diff] [blame] | 113 | ROM layouts should replace the \-s and \-e option since they are more |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 114 | flexible and they should lead to a ROM update file format with the |
| 115 | ROM layout and the ROM image in one file (cpio, zip or something?). |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 116 | .TP |
Uwe Hermann | e74b9f8 | 2009-04-10 14:41:29 +0000 | [diff] [blame] | 117 | .B "\-i, \-\-image <name>" |
Uwe Hermann | 67808fe | 2007-10-18 00:29:05 +0000 | [diff] [blame] | 118 | Only flash image |
| 119 | .B <name> |
| 120 | from flash layout. |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 121 | .TP |
Uwe Hermann | e5ac164 | 2008-03-12 11:54:51 +0000 | [diff] [blame] | 122 | .B "\-L, \-\-list\-supported" |
Uwe Hermann | e8ba538 | 2009-05-22 11:37:27 +0000 | [diff] [blame] | 123 | List the flash chips, chipsets, mainboards, and PCI card "programmers" |
| 124 | supported by flashrom. |
Uwe Hermann | e5ac164 | 2008-03-12 11:54:51 +0000 | [diff] [blame] | 125 | .sp |
Uwe Hermann | e8ba538 | 2009-05-22 11:37:27 +0000 | [diff] [blame] | 126 | There are many unlisted boards which will work out of the box, without |
| 127 | special support in flashrom. Please let us know if you can verify that |
| 128 | other boards work or do not work out of the box. For verification you have |
| 129 | to test an ERASE and/or WRITE operation, so make sure you only do that |
| 130 | if you have proper means to recover from failure! |
Uwe Hermann | e5ac164 | 2008-03-12 11:54:51 +0000 | [diff] [blame] | 131 | .TP |
Uwe Hermann | 20a293f | 2009-06-19 10:42:43 +0000 | [diff] [blame] | 132 | .B "\-z, \-\-list\-supported-wiki" |
| 133 | Same as |
| 134 | .BR \-\-list\-supported , |
| 135 | but outputs the supported hardware in MediaWiki syntax, so that it can be |
Stefan Reinauer | 22ea8cd | 2009-07-30 13:32:26 +0000 | [diff] [blame] | 136 | easily pasted into the wiki page at http://www.flashrom.org/. |
Uwe Hermann | 20a293f | 2009-06-19 10:42:43 +0000 | [diff] [blame] | 137 | .TP |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 138 | .B "\-p, \-\-programmer <name>[:parameters]" |
Carl-Daniel Hailfinger | ce98677 | 2009-05-09 00:27:07 +0000 | [diff] [blame] | 139 | Specify the programmer device. Currently supported are: |
| 140 | .sp |
Uwe Hermann | 530cb2d | 2009-05-14 22:58:21 +0000 | [diff] [blame] | 141 | .BR "* internal" " (default, for in-system flashing in the mainboard)" |
| 142 | .sp |
Uwe Hermann | c7e8a0c | 2009-05-19 14:14:21 +0000 | [diff] [blame] | 143 | .BR "* dummy" " (just prints all operations and accesses)" |
| 144 | .sp |
Uwe Hermann | 530cb2d | 2009-05-14 22:58:21 +0000 | [diff] [blame] | 145 | .BR "* nic3com" " (for flash ROMs on 3COM network cards)" |
| 146 | .sp |
Uwe Hermann | 2bc98f6 | 2009-09-30 18:29:55 +0000 | [diff] [blame] | 147 | .BR "* gfxnvidia" " (for flash ROMs on NVIDIA graphics cards)" |
| 148 | .sp |
TURBO J | b0912c0 | 2009-09-02 23:00:46 +0000 | [diff] [blame] | 149 | .BR "* drkaiser" " (for flash ROMs on Dr. Kaiser PC-Waechter PCI cards)" |
| 150 | .sp |
Uwe Hermann | c7e8a0c | 2009-05-19 14:14:21 +0000 | [diff] [blame] | 151 | .BR "* satasii" " (for flash ROMs on Silicon Image SATA/IDE controllers)" |
| 152 | .sp |
Uwe Hermann | ddd5c9e | 2010-02-21 21:17:00 +0000 | [diff] [blame] | 153 | .BR "* atahpt" " (for flash ROMs on Highpoint ATA/RAID controllers)" |
| 154 | .sp |
Uwe Hermann | e9d04d4 | 2009-06-02 19:54:22 +0000 | [diff] [blame] | 155 | .BR "* it87spi" " (for flash ROMs behind an ITE IT87xx Super I/O LPC/SPI translation unit)" |
Carl-Daniel Hailfinger | b8afecd | 2009-05-31 18:00:57 +0000 | [diff] [blame] | 156 | .sp |
Paul Fox | 05dfbe6 | 2009-06-16 21:08:06 +0000 | [diff] [blame] | 157 | .BR "* ft2232spi" " (for flash ROMs attached to a FT2232H/FT4232H based USB SPI programmer)" |
| 158 | .sp |
Carl-Daniel Hailfinger | dfade10 | 2009-08-18 23:51:22 +0000 | [diff] [blame] | 159 | .BR "* serprog" " (for flash ROMs attached to Urja's AVR programmer)" |
| 160 | .sp |
Carl-Daniel Hailfinger | d5b28fa | 2009-11-24 18:27:10 +0000 | [diff] [blame] | 161 | .BR "* buspiratespi" " (for flash ROMs attached to a Bus Pirate)" |
| 162 | .sp |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 163 | Some programmers have optional or mandatory parameters which are described |
| 164 | in detail in the |
| 165 | .B PROGRAMMER SPECIFIC INFO |
| 166 | section. Support for some programmers can be disabled at compile time. |
| 167 | .B "flashrom -h" |
| 168 | lists all supported programmers. |
| 169 | .TP |
| 170 | .B "\-h, \-\-help" |
| 171 | Show a help text and exit. |
| 172 | .TP |
| 173 | .B "\-R, \-\-version" |
| 174 | Show version information and exit. |
| 175 | .SH PROGRAMMER SPECIFIC INFO |
| 176 | Some programmer drivers accept further parameters to set programmer-specific |
| 177 | parameters. These parameters are seperated from the programmer name by a |
| 178 | colon. While some programmers take arguments at fixed positions, other |
| 179 | programmers use a key/value interface in which the key and value is separated |
| 180 | by an equal sign and different pairs are separated by a comma or a colon. |
| 181 | .TP |
Michael Karcher | 7f0c3ec | 2010-03-07 22:29:28 +0000 | [diff] [blame] | 182 | .BR "internal " programmer |
| 183 | Some mainboards require to run mainboard specific code to enable flash erase |
| 184 | and write support (and probe support on old systems with parallel flash). |
| 185 | The mainboard brand and model (if it requires specific code) is usually |
| 186 | autodetected using one of the following mechanisms: If your system is |
| 187 | running coreboot, the mainboard type is determined from the coreboot table, |
| 188 | otherwise, the mainboard is detected by examining the onboard PCI devices |
| 189 | and possibly DMI info. If PCI and DMI do not contain information to uniquely |
| 190 | identify the mainboard (which is the exception), it might be necessary to |
| 191 | specify the mainboard using the \-m switch (see above). |
| 192 | .sp |
| 193 | Some of these board-specific flash enabling functions (called board enables) |
| 194 | in flashrom have not yet been tested. If your mainboard is detected needing |
| 195 | an untested board enable function, a warning message is printed and the |
| 196 | board enable is not executed, because a wrong board enable function might |
| 197 | cause the system to behave erratically, as board enable functions touch the |
| 198 | low-level internals of a mainboard. Not executing a board enable function |
| 199 | (if one is needed) might cause detection or erasing failure. If your board |
| 200 | protects only part of the flash (commonly the top end, called boot block), |
| 201 | flashrom might encounter an error only after erasing the unprotected part, |
| 202 | so running without the board-enable function might be dangerous for erase |
| 203 | and write (which includes erase). |
| 204 | .sp |
| 205 | The suggested procedure for a mainboard with untested board specific code is |
| 206 | to first try to probe the ROM (just invoke flashrom and check that it |
| 207 | detects your flash chip type) without running the board enable code (i.e. |
| 208 | without any parameters). If it finds your chip, fine, otherwise, retry |
| 209 | probing your chip with the board-enable code running, using |
| 210 | .sp |
| 211 | .B "flashrom -p internal:boardenable=force" |
| 212 | .sp |
| 213 | If your chip is still not detected, the board enable code seems to be broken |
| 214 | or the flash chip unsupported. Otherwise, make a backup of your current ROM |
| 215 | contents (using \-r) and store it to a medium outside of your computer, like |
| 216 | an USB drive or a network share. If you needed to run the board enable code |
| 217 | already for probing, use it for reading too. Now you can try to write the |
| 218 | new image. You should enable the board enable code in any case now, as it |
| 219 | has been written because it is known that writing/erasing without the board |
| 220 | enable is going to fail. In any case (success or failure), please report to |
| 221 | the flashrom mailing list, see below. |
| 222 | .sp |
Carl-Daniel Hailfinger | 01f3ef4 | 2010-03-25 02:50:40 +0000 | [diff] [blame^] | 223 | If your mainboard uses an ITE IT87 series Super I/O for LPC<->SPI flash bus |
| 224 | translation, flashrom should autodetect that configuration. You can use |
| 225 | .B "flashrom -p internal:it87spiport=portnum" |
| 226 | syntax as explained in the |
| 227 | .B it87spi |
| 228 | programmer section to use a non-default port for controlling the IT87 series |
| 229 | Super I/O. In the unlikely case flashrom doesn't detect an active IT87 LPC<->SPI |
| 230 | bridge, you can try to force recognition by using the it87spi programmer. |
| 231 | .TP |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 232 | .BR "dummy " programmer |
| 233 | An optional parameter specifies the bus types it |
Carl-Daniel Hailfinger | 3504b53 | 2009-06-01 00:02:11 +0000 | [diff] [blame] | 234 | should support. For that you have to use the |
Carl-Daniel Hailfinger | 664e7ad | 2009-08-19 15:03:28 +0000 | [diff] [blame] | 235 | .B "flashrom -p dummy:type" |
Carl-Daniel Hailfinger | 3504b53 | 2009-06-01 00:02:11 +0000 | [diff] [blame] | 236 | syntax where |
| 237 | .B type |
| 238 | can be any comma-separated combination of |
| 239 | .B parallel lpc fwh spi all |
| 240 | in any order. |
| 241 | .sp |
| 242 | Example: |
Carl-Daniel Hailfinger | 664e7ad | 2009-08-19 15:03:28 +0000 | [diff] [blame] | 243 | .B "flashrom -p dummy:lpc,fwh" |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 244 | .TP |
Carl-Daniel Hailfinger | 01f3ef4 | 2010-03-25 02:50:40 +0000 | [diff] [blame^] | 245 | .BR "nic3com" , " gfxnvidia" , " satasii " and " atahpt " programmers |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 246 | These programmers have an option to specify the PCI address of the card |
| 247 | your want to use, which must be specified if more than one card supported |
| 248 | by the selected programmer is installed in your system. The syntax is |
Carl-Daniel Hailfinger | 664e7ad | 2009-08-19 15:03:28 +0000 | [diff] [blame] | 249 | .B "flashrom -p xxxx:bb:dd.f" |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 250 | , where |
Uwe Hermann | c7e8a0c | 2009-05-19 14:14:21 +0000 | [diff] [blame] | 251 | .B xxxx |
| 252 | is the name of the programmer |
Uwe Hermann | 530cb2d | 2009-05-14 22:58:21 +0000 | [diff] [blame] | 253 | .B bb |
| 254 | is the PCI bus number, |
| 255 | .B dd |
| 256 | is the PCI device number, and |
| 257 | .B f |
| 258 | is the PCI function number of the desired NIC. |
| 259 | .sp |
| 260 | Example: |
Carl-Daniel Hailfinger | 664e7ad | 2009-08-19 15:03:28 +0000 | [diff] [blame] | 261 | .B "flashrom -p nic3com:05:04.0" |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 262 | .TP |
| 263 | .BR "it87spi " programmer |
| 264 | An optional parameter sets the I/O base port of the IT87* SPI controller |
| 265 | interface to the port specified in the parameter instead of using the port |
| 266 | address set by the BIOS. For that you have to use the |
Carl-Daniel Hailfinger | 01f3ef4 | 2010-03-25 02:50:40 +0000 | [diff] [blame^] | 267 | .B "flashrom -p it87spi:it87spiport=portnum" |
Carl-Daniel Hailfinger | bb297f7 | 2009-07-11 18:05:42 +0000 | [diff] [blame] | 268 | syntax where |
| 269 | .B portnum |
| 270 | is an I/O port number which must be a multiple of 8. |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 271 | .TP |
| 272 | .BR "ft2232spi " programmer |
| 273 | An optional parameter species the controller |
Carl-Daniel Hailfinger | dfade10 | 2009-08-18 23:51:22 +0000 | [diff] [blame] | 274 | type and interface/port it should support. For that you have to use the |
Carl-Daniel Hailfinger | 664e7ad | 2009-08-19 15:03:28 +0000 | [diff] [blame] | 275 | .B "flashrom -p ft2232spi:model,port=interface" |
Carl-Daniel Hailfinger | feea272 | 2009-07-01 00:02:23 +0000 | [diff] [blame] | 276 | syntax where |
| 277 | .B model |
| 278 | can be any of |
| 279 | .B 2232H 4232H |
| 280 | and |
| 281 | .B interface |
| 282 | can be any of |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 283 | .BR "A B" . |
Carl-Daniel Hailfinger | feea272 | 2009-07-01 00:02:23 +0000 | [diff] [blame] | 284 | The default model is |
| 285 | .B 4232H |
| 286 | and the default interface is |
| 287 | .BR B . |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 288 | .TP |
| 289 | .BR "serprog " programmer |
| 290 | A mandatory parameter specifies either a serial |
Carl-Daniel Hailfinger | dfade10 | 2009-08-18 23:51:22 +0000 | [diff] [blame] | 291 | device/baud combination or an IP/port combination for communication with the |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 292 | programmer. In the device/baud combination, the device has to start with a |
| 293 | slash. For serial, you have to use the |
Carl-Daniel Hailfinger | 664e7ad | 2009-08-19 15:03:28 +0000 | [diff] [blame] | 294 | .B "flashrom -p serprog:/dev/device:baud" |
Carl-Daniel Hailfinger | dfade10 | 2009-08-18 23:51:22 +0000 | [diff] [blame] | 295 | syntax and for IP, you have to use |
Carl-Daniel Hailfinger | 664e7ad | 2009-08-19 15:03:28 +0000 | [diff] [blame] | 296 | .B "flashrom -p serprog:ip:port" |
Carl-Daniel Hailfinger | dfade10 | 2009-08-18 23:51:22 +0000 | [diff] [blame] | 297 | instead. More information about serprog is available in serprog-protocol.txt in |
| 298 | the source distribution. |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 299 | .TP |
| 300 | .BR "buspiratespi " programmer |
| 301 | A required dev parameter specifyies the Bus Pirate device node and an optional |
| 302 | spispeed parameter specifyies the frequency of the SPI bus. The parameter |
| 303 | delimiter is a comma. Syntax is |
Carl-Daniel Hailfinger | dfade10 | 2009-08-18 23:51:22 +0000 | [diff] [blame] | 304 | .sp |
Carl-Daniel Hailfinger | d5b28fa | 2009-11-24 18:27:10 +0000 | [diff] [blame] | 305 | .B "flashrom -p buspiratespi:dev=/dev/device,spispeed=frequency" |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 306 | .sp |
Carl-Daniel Hailfinger | d5b28fa | 2009-11-24 18:27:10 +0000 | [diff] [blame] | 307 | where |
| 308 | .B frequency |
| 309 | can be any of |
| 310 | .B 30k 125k 250k 1M 2M 2.6M 4M 8M |
Michael Karcher | e5eafb2 | 2010-03-07 12:11:08 +0000 | [diff] [blame] | 311 | (in Hz). The default is the maximum frequency of 8 MHz. |
Peter Stuge | 42688e5 | 2009-01-26 02:20:56 +0000 | [diff] [blame] | 312 | .SH EXIT STATUS |
| 313 | flashrom exits with 0 on success, 1 on most failures but with 2 if /dev/mem |
| 314 | (/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] | 315 | .SH BUGS |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 316 | Please report any bugs at |
Stefan Reinauer | 22ea8cd | 2009-07-30 13:32:26 +0000 | [diff] [blame] | 317 | .BR http://www.flashrom.org/trac/flashrom/newticket "," |
| 318 | or on the flashrom mailing list |
| 319 | .RB "(" http://www.flashrom.org/mailman/listinfo/flashrom ")." |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 320 | .SH LICENCE |
| 321 | .B flashrom |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 322 | is covered by the GNU General Public License (GPL), version 2. Some files are |
| 323 | additionally available under the GPL (version 2, or any later version). |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 324 | .SH COPYRIGHT |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 325 | .br |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 326 | Please see the individual files. |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 327 | .SH AUTHORS |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 328 | Carl-Daniel Hailfinger |
| 329 | .br |
| 330 | Claus Gindhart <claus.gindhart@kontron.com> |
| 331 | .br |
| 332 | Dominik Geyer <dominik.geyer@kontron.com> |
| 333 | .br |
Stefan Reinauer | edc6188 | 2010-01-03 14:40:30 +0000 | [diff] [blame] | 334 | Eric Biederman |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 335 | .br |
| 336 | Giampiero Giancipoli <gianci@email.it> |
| 337 | .br |
| 338 | Joe Bao <Zheng.Bao@amd.com> |
| 339 | .br |
| 340 | Luc Verhaegen <libv@skynet.be> |
| 341 | .br |
Carl-Daniel Hailfinger | 451dc80 | 2009-05-01 11:00:39 +0000 | [diff] [blame] | 342 | Li-Ta Lo |
| 343 | .br |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 344 | Markus Boas <ryven@ryven.de> |
| 345 | .br |
| 346 | Nikolay Petukhov <nikolay.petukhov@gmail.com> |
| 347 | .br |
| 348 | Peter Stuge <peter@stuge.se> |
| 349 | .br |
| 350 | Reinder E.N. de Haan <lb_reha@mveas.com> |
| 351 | .br |
| 352 | Ronald G. Minnich <rminnich@gmail.com> |
| 353 | .br |
| 354 | Ronald Hoogenboom <ronald@zonnet.nl> |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 355 | .br |
| 356 | Stefan Reinauer <stepan@coresystems.de> |
| 357 | .br |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 358 | Stefan Wildemann <stefan.wildemann@kontron.com> |
| 359 | .br |
| 360 | Steven James <pyro@linuxlabs.com> |
| 361 | .br |
| 362 | Uwe Hermann <uwe@hermann-uwe.de> |
| 363 | .br |
Stefan Reinauer | edc6188 | 2010-01-03 14:40:30 +0000 | [diff] [blame] | 364 | Wang Qingpei |
Carl-Daniel Hailfinger | 851ecf2 | 2009-01-08 04:56:59 +0000 | [diff] [blame] | 365 | .br |
Stefan Reinauer | edc6188 | 2010-01-03 14:40:30 +0000 | [diff] [blame] | 366 | Yinghai Lu |
Stefan Reinauer | f8337dd | 2006-08-03 10:49:09 +0000 | [diff] [blame] | 367 | .br |
| 368 | some others |
Stefan Reinauer | 261144c | 2006-07-27 23:29:02 +0000 | [diff] [blame] | 369 | .PP |
Stefan Reinauer | de063bf | 2006-09-21 13:09:22 +0000 | [diff] [blame] | 370 | This manual page was written by Uwe Hermann <uwe@hermann-uwe.de>. |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 371 | It is licensed under the terms of the GNU GPL (version 2 or later). |