blob: 6adb0efcc3ebee991bbd0014498f6674d2498882 [file] [log] [blame]
uwe45a96702010-06-07 19:41:25 +00001.TH FLASHROM 8 "Jun 06, 2010"
stepanc7014b72006-07-27 23:29:02 +00002.SH NAME
uwe55569282009-05-14 22:58:21 +00003flashrom \- detect, read, write, verify and erase flash chips
stepanc7014b72006-07-27 23:29:02 +00004.SH SYNOPSIS
hailfinger74819ad2010-05-15 15:04:37 +00005.B flashrom \fR[\fB\-n\fR] [\fB\-V\fR] [\fB\-f\fR] [\fB\-h\fR|\fB\-R\fR|\
6\fB\-L\fR|\fB\-z\fR|\fB\-E\fR|\fB\-r\fR <file>|\fB\-w\fR <file>|\
7\fB\-v\fR <file>]
uwe45a96702010-06-07 19:41:25 +00008 [\fB\-c\fR <chipname>] [\fB\-m\fR [<vendor>:]<board>] \
hailfinger74819ad2010-05-15 15:04:37 +00009[\fB\-l\fR <file>]
10 [\fB\-i\fR <image>] [\fB\-p\fR <programmername>[:<parameters>]]
stepanc7014b72006-07-27 23:29:02 +000011.SH DESCRIPTION
12.B flashrom
oxygene4a497262009-05-22 11:37:27 +000013is a utility for detecting, reading, writing, verifying and erasing flash
uwe55569282009-05-14 22:58:21 +000014chips. It's often used to flash BIOS/EFI/coreboot/firmware images in-system
15using a supported mainboard, but it also supports flashing of network cards
16(NICs), SATA controller cards, and other external devices which can program
17flash chips.
uwedfe56032009-04-10 14:41:29 +000018.PP
uwe45a96702010-06-07 19:41:25 +000019It supports a wide range of DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, TSOP40,
20and TSOP48 chips, which use various protocols such as LPC, FWH, parallel flash,
uwed24972b2009-04-11 13:59:00 +000021or SPI.
stepanc7014b72006-07-27 23:29:02 +000022.SH OPTIONS
uwe45a96702010-06-07 19:41:25 +000023.B IMPORTANT:
hailfingerca7f01d2009-05-01 10:53:49 +000024Please note that the command line interface for flashrom will change before
25flashrom 1.0. Do not use flashrom in scripts or other automated tools without
oxygene4a497262009-05-22 11:37:27 +000026checking that your flashrom version won't interpret options in a different way.
hailfingerca7f01d2009-05-01 10:53:49 +000027.PP
uwe45a96702010-06-07 19:41:25 +000028You can specify one of
29.BR \-h ", " \-R ", " \-L ", " \-z ", " \-E ", " \-r ", " \-w ", " \-v
30or no operation.
hailfinger74819ad2010-05-15 15:04:37 +000031If no operation is specified, flashrom will only probe for flash chips. It is
mkarcherbd85b522010-03-12 06:41:39 +000032recommended that if you try flashrom the first time on a system, you run it
33in probe only mode and check the output. Also you are advised to make a
uwe45a96702010-06-07 19:41:25 +000034backup of your current ROM contents with
35.B \-r
36before you try to write a new image.
stepande9a4ac2006-09-21 13:09:22 +000037.TP
uwedfe56032009-04-10 14:41:29 +000038.B "\-r, \-\-read <file>"
39Read flash ROM contents and save them into the given
40.BR <file> .
stepande9a4ac2006-09-21 13:09:22 +000041.TP
uwedfe56032009-04-10 14:41:29 +000042.B "\-w, \-\-write <file>"
hailfinger74819ad2010-05-15 15:04:37 +000043Write
44.B <file>
uwe45a96702010-06-07 19:41:25 +000045into flash ROM. This will first automatically
46.B erase
47the chip, then write to it.
stepande9a4ac2006-09-21 13:09:22 +000048.TP
uwe889a4992009-06-24 17:31:08 +000049.B "\-n, \-\-noverify"
hailfinger74819ad2010-05-15 15:04:37 +000050Skip the automatic verification of flash ROM contents after writing. Using this
uwe889a4992009-06-24 17:31:08 +000051option is
52.B not
hailfinger74819ad2010-05-15 15:04:37 +000053recommended, you should only use it if you know what you are doing and if you
uwe889a4992009-06-24 17:31:08 +000054feel that the time for verification takes too long.
55.sp
56Typical usage is:
uwe45a96702010-06-07 19:41:25 +000057.B "flashrom \-n \-w <file>"
uwe889a4992009-06-24 17:31:08 +000058.sp
59This option is only useful in combination with
60.BR \-\-write .
61.TP
uwedfe56032009-04-10 14:41:29 +000062.B "\-v, \-\-verify <file>"
63Verify the flash ROM contents against the given
64.BR <file> .
stepande9a4ac2006-09-21 13:09:22 +000065.TP
stepanc7014b72006-07-27 23:29:02 +000066.B "\-E, \-\-erase"
uwedfe56032009-04-10 14:41:29 +000067Erase the flash ROM chip.
stepande9a4ac2006-09-21 13:09:22 +000068.TP
stepanc7014b72006-07-27 23:29:02 +000069.B "\-V, \-\-verbose"
uwe45a96702010-06-07 19:41:25 +000070More verbose output. This option can be supplied multiple times
71(max. 2 times, i.e.
72.BR \-VV )
73for even more debug output.
stepande9a4ac2006-09-21 13:09:22 +000074.TP
stepanc7014b72006-07-27 23:29:02 +000075.B "\-c, \-\-chip" <chipname>
uwe45a96702010-06-07 19:41:25 +000076Probe only for the specified flash ROM chip. This option takes the chip name as
hailfingerf4aaccc2010-04-28 15:22:14 +000077printed by
78.B "flashrom \-L"
uwe45a96702010-06-07 19:41:25 +000079without the vendor name as parameter. Please note that the chip name is
80case sensitive.
mkarcher72ef38f2010-03-13 14:47:48 +000081.TP
uwe45a96702010-06-07 19:41:25 +000082.B "\-m, \-\-mainboard" [<vendor>:]<board>
mkarcher72ef38f2010-03-13 14:47:48 +000083Override mainboard settings.
84.sp
85flashrom reads the coreboot table to determine the current mainboard. If no
86coreboot table could be read or if you want to override these values, you can
87specify \-m, e.g.:
88.sp
uwe45a96702010-06-07 19:41:25 +000089.B " flashrom \-\-mainboard AGAMI:ARUMA \-w agami_aruma.rom"
mkarcher72ef38f2010-03-13 14:47:48 +000090.sp
uwe45a96702010-06-07 19:41:25 +000091See the 'Known boards' or 'Known laptops' section in the output
92of 'flashrom \-L' for a list of boards which require the specification of
93the board name, if no coreboot table is found.
mkarcher72ef38f2010-03-13 14:47:48 +000094.TP
95.B "\-f, \-\-force"
hailfingerf4aaccc2010-04-28 15:22:14 +000096Force one or more of the following actions:
mkarcher72ef38f2010-03-13 14:47:48 +000097.sp
hailfingerf4aaccc2010-04-28 15:22:14 +000098* Force chip read and pretend the chip is there.
99.sp
David Hendricksc801adb2010-12-09 16:58:56 -0800100* Force chip access even if the chip is bigger than the maximum supported \
uwe45a96702010-06-07 19:41:25 +0000101size for the flash bus.
hailfingerf4aaccc2010-04-28 15:22:14 +0000102.sp
103* Force erase even if erase is known bad.
104.sp
105* Force write even if write is known bad.
mkarcher72ef38f2010-03-13 14:47:48 +0000106.TP
107.B "\-l, \-\-layout <file>"
108Read ROM layout from
109.BR <file> .
uwe9b1e61b2009-05-05 16:15:46 +0000110.sp
111flashrom supports ROM layouts. This allows you to flash certain parts of
112the flash chip only. A ROM layout file looks like follows:
113.sp
114 00000000:00008fff gfxrom
115 00009000:0003ffff normal
116 00040000:0007ffff fallback
117.sp
118 i.e.:
119 startaddr:endaddr name
120.sp
121All addresses are offsets within the file, not absolute addresses!
122If you only want to update the normal image in a ROM you can say:
123.sp
uwe45a96702010-06-07 19:41:25 +0000124.B " flashrom \-\-layout rom.layout \-\-image normal \-w agami_aruma.rom"
uwe9b1e61b2009-05-05 16:15:46 +0000125.sp
126To update normal and fallback but leave the VGA BIOS alone, say:
127.sp
uwe45a96702010-06-07 19:41:25 +0000128.B " flashrom \-l rom.layout \-i normal \"
uwe9b1e61b2009-05-05 16:15:46 +0000129.br
uwe45a96702010-06-07 19:41:25 +0000130.B " \-i fallback \-w agami_aruma.rom"
uwe9b1e61b2009-05-05 16:15:46 +0000131.sp
132Currently overlapping sections are not supported.
stepande9a4ac2006-09-21 13:09:22 +0000133.TP
uwedfe56032009-04-10 14:41:29 +0000134.B "\-i, \-\-image <name>"
uwe0b57b1f2007-10-18 00:29:05 +0000135Only flash image
136.B <name>
137from flash layout.
stepande9a4ac2006-09-21 13:09:22 +0000138.TP
uwe16f99092008-03-12 11:54:51 +0000139.B "\-L, \-\-list\-supported"
oxygene4a497262009-05-22 11:37:27 +0000140List the flash chips, chipsets, mainboards, and PCI card "programmers"
141supported by flashrom.
uwe16f99092008-03-12 11:54:51 +0000142.sp
oxygene4a497262009-05-22 11:37:27 +0000143There are many unlisted boards which will work out of the box, without
144special support in flashrom. Please let us know if you can verify that
uwe45a96702010-06-07 19:41:25 +0000145other boards work or do not work out of the box.
146.sp
147.B IMPORTANT:
148For verification you have
oxygene4a497262009-05-22 11:37:27 +0000149to test an ERASE and/or WRITE operation, so make sure you only do that
150if you have proper means to recover from failure!
uwe16f99092008-03-12 11:54:51 +0000151.TP
uwe8b452372009-06-19 10:42:43 +0000152.B "\-z, \-\-list\-supported-wiki"
153Same as
154.BR \-\-list\-supported ,
155but outputs the supported hardware in MediaWiki syntax, so that it can be
hailfinger74819ad2010-05-15 15:04:37 +0000156easily pasted into the wiki page at http://www.flashrom.org/. Please note
157that MediaWiki output is not compiled in by default.
uwe8b452372009-06-19 10:42:43 +0000158.TP
hailfingerf4aaccc2010-04-28 15:22:14 +0000159.B "\-p, \-\-programmer <name>[:parameter[,parameter[,parameter]]]"
hailfinger46bed042009-05-09 00:27:07 +0000160Specify the programmer device. Currently supported are:
161.sp
uwe55569282009-05-14 22:58:21 +0000162.BR "* internal" " (default, for in-system flashing in the mainboard)"
163.sp
uwe4475e902009-05-19 14:14:21 +0000164.BR "* dummy" " (just prints all operations and accesses)"
165.sp
uwe55569282009-05-14 22:58:21 +0000166.BR "* nic3com" " (for flash ROMs on 3COM network cards)"
167.sp
uweae6a69a2010-05-24 17:39:14 +0000168.BR "* nicrealtek" " (for flash ROMs on Realtek network cards)"
169.sp
170.BR "* nicsmc1211" " (for flash ROMs on RTL8139-compatible SMC2 network cards)"
171.sp
David Hendricksc801adb2010-12-09 16:58:56 -0800172.BR "* nicnatsemi" " (for flash ROMs on National Semiconductor DP838* network \
173cards)"
174.sp
uweff4576d2009-09-30 18:29:55 +0000175.BR "* gfxnvidia" " (for flash ROMs on NVIDIA graphics cards)"
176.sp
uwee2f95ef2009-09-02 23:00:46 +0000177.BR "* drkaiser" " (for flash ROMs on Dr. Kaiser PC-Waechter PCI cards)"
178.sp
uwe4475e902009-05-19 14:14:21 +0000179.BR "* satasii" " (for flash ROMs on Silicon Image SATA/IDE controllers)"
180.sp
uwe7e627c82010-02-21 21:17:00 +0000181.BR "* atahpt" " (for flash ROMs on Highpoint ATA/RAID controllers)"
182.sp
David Hendricks82fd8ae2010-08-04 14:34:54 -0700183.BR "* it87spi" " (for flash ROMs behind an ITE IT87xx Super I/O LPC/SPI \
uwe45a96702010-06-07 19:41:25 +0000184translation unit)"
hailfinger26e212b2009-05-31 18:00:57 +0000185.sp
David Hendricks82fd8ae2010-08-04 14:34:54 -0700186.BR "* ft2232_spi" " (for SPI flash ROMs attached to a FT2232H/FT4232H/JTAGkey \
187based USB SPI programmer)"
hailfingerf31da3d2009-06-16 21:08:06 +0000188.sp
David Hendricks82fd8ae2010-08-04 14:34:54 -0700189.BR "* serprog" " (for flash ROMs attached to a programmer speaking serprog)"
hailfinger0c24e602009-08-18 23:51:22 +0000190.sp
uwe45a96702010-06-07 19:41:25 +0000191.BR "* buspirate_spi" " (for SPI flash ROMs attached to a Bus Pirate)"
hailfinger6e5a52a2009-11-24 18:27:10 +0000192.sp
David Hendricksc801adb2010-12-09 16:58:56 -0800193.BR "* dediprog" " (for SPI flash ROMs attached to a Dediprog SF100)"
194.sp
David Hendricks82fd8ae2010-08-04 14:34:54 -0700195.BR "* rayer_spi" " (for SPI flash ROMs attached to a RayeR parport \
196based programmer)"
197.sp
David Hendricksc801adb2010-12-09 16:58:56 -0800198.BR "* nicintel_spi" " (for SPI flash ROMs attached to an Intel Gigabit \
199network cards)"
200.sp
David Hendricks668f29d2011-01-27 18:51:45 -0800201.BR "* ogp_spi" " (for SPI flash ROMs attached to an Open Graphics Project \
202graphics card)"
203.sp
mkarcher57423b12010-03-07 12:11:08 +0000204Some programmers have optional or mandatory parameters which are described
205in detail in the
206.B PROGRAMMER SPECIFIC INFO
207section. Support for some programmers can be disabled at compile time.
uwe45a96702010-06-07 19:41:25 +0000208.B "flashrom \-h"
mkarcher57423b12010-03-07 12:11:08 +0000209lists all supported programmers.
210.TP
211.B "\-h, \-\-help"
212Show a help text and exit.
213.TP
214.B "\-R, \-\-version"
215Show version information and exit.
216.SH PROGRAMMER SPECIFIC INFO
217Some programmer drivers accept further parameters to set programmer-specific
uwe3a3ab2f2010-03-25 23:18:41 +0000218parameters. These parameters are separated from the programmer name by a
mkarcher57423b12010-03-07 12:11:08 +0000219colon. While some programmers take arguments at fixed positions, other
220programmers use a key/value interface in which the key and value is separated
221by an equal sign and different pairs are separated by a comma or a colon.
222.TP
mkarcher29a80852010-03-07 22:29:28 +0000223.BR "internal " programmer
224Some mainboards require to run mainboard specific code to enable flash erase
225and write support (and probe support on old systems with parallel flash).
226The mainboard brand and model (if it requires specific code) is usually
227autodetected using one of the following mechanisms: If your system is
uwe45a96702010-06-07 19:41:25 +0000228running coreboot, the mainboard type is determined from the coreboot table.
229Otherwise, the mainboard is detected by examining the onboard PCI devices
mkarcher29a80852010-03-07 22:29:28 +0000230and possibly DMI info. If PCI and DMI do not contain information to uniquely
231identify the mainboard (which is the exception), it might be necessary to
uwe45a96702010-06-07 19:41:25 +0000232specify the mainboard using the
233.B \-m
234switch (see above).
mkarcher29a80852010-03-07 22:29:28 +0000235.sp
uwe45a96702010-06-07 19:41:25 +0000236Some of these board-specific flash enabling functions (called
237.BR "board enables" )
mkarcher29a80852010-03-07 22:29:28 +0000238in flashrom have not yet been tested. If your mainboard is detected needing
239an untested board enable function, a warning message is printed and the
240board enable is not executed, because a wrong board enable function might
241cause the system to behave erratically, as board enable functions touch the
242low-level internals of a mainboard. Not executing a board enable function
243(if one is needed) might cause detection or erasing failure. If your board
244protects only part of the flash (commonly the top end, called boot block),
245flashrom might encounter an error only after erasing the unprotected part,
246so running without the board-enable function might be dangerous for erase
247and write (which includes erase).
248.sp
249The suggested procedure for a mainboard with untested board specific code is
250to first try to probe the ROM (just invoke flashrom and check that it
251detects your flash chip type) without running the board enable code (i.e.
uwe45a96702010-06-07 19:41:25 +0000252without any parameters). If it finds your chip, fine. Otherwise, retry
mkarcher29a80852010-03-07 22:29:28 +0000253probing your chip with the board-enable code running, using
254.sp
uwe45a96702010-06-07 19:41:25 +0000255.B " flashrom \-p internal:boardenable=force"
mkarcher29a80852010-03-07 22:29:28 +0000256.sp
257If your chip is still not detected, the board enable code seems to be broken
258or the flash chip unsupported. Otherwise, make a backup of your current ROM
uwe45a96702010-06-07 19:41:25 +0000259contents (using
260.BR \-r )
261and store it to a medium outside of your computer, like
262a USB drive or a network share. If you needed to run the board enable code
mkarcher29a80852010-03-07 22:29:28 +0000263already for probing, use it for reading too. Now you can try to write the
264new image. You should enable the board enable code in any case now, as it
265has been written because it is known that writing/erasing without the board
266enable is going to fail. In any case (success or failure), please report to
267the flashrom mailing list, see below.
268.sp
hailfingerf4aaccc2010-04-28 15:22:14 +0000269On systems running coreboot, flashrom checks whether the desired image matches
270your mainboard. This needs some special board ID to be present in the image.
271If flashrom detects that the image you want to write and the current board
272do not match, it will refuse to write the image unless you specify
273.sp
uwe45a96702010-06-07 19:41:25 +0000274.B " flashrom \-p internal:boardmismatch=force"
hailfingerf4aaccc2010-04-28 15:22:14 +0000275.sp
hailfingerddd5d7b2010-03-25 02:50:40 +0000276If your mainboard uses an ITE IT87 series Super I/O for LPC<->SPI flash bus
uwe45a96702010-06-07 19:41:25 +0000277translation, flashrom should autodetect that configuration. You can use the
hailfinger74819ad2010-05-15 15:04:37 +0000278.sp
uwe45a96702010-06-07 19:41:25 +0000279.B " flashrom \-p internal:it87spiport=portnum"
280.sp
hailfingerddd5d7b2010-03-25 02:50:40 +0000281syntax as explained in the
282.B it87spi
283programmer section to use a non-default port for controlling the IT87 series
uwe45a96702010-06-07 19:41:25 +0000284Super I/O. In the unlikely case flashrom doesn't detect an active
285IT87 LPC<->SPI bridge, you can try to force recognition by using the
286.B it87spi
287programmer.
hailfingerf4aaccc2010-04-28 15:22:14 +0000288.sp
289Using flashrom on laptops is dangerous and may easily make your hardware
uwe45a96702010-06-07 19:41:25 +0000290unusable (see also the
291.B BUGS
292section). The embedded controller (EC) in these
293machines often interacts badly with flashing.
294.B http://www.flashrom.org/Laptops
hailfingerf4aaccc2010-04-28 15:22:14 +0000295has more information. If flash is shared with the EC, erase is guaranteed to
296brick your laptop and write is very likely to brick your laptop.
297Chip read and probe may irritate your EC and cause fan failure, backlight
298failure, sudden poweroff, and other nasty effects.
299flashrom will attempt to detect laptops and abort immediately for safety
300reasons.
301If you want to proceed anyway at your own risk, use
302.sp
uwe45a96702010-06-07 19:41:25 +0000303.B " flashrom \-p internal:laptop=force_I_want_a_brick"
hailfingerf4aaccc2010-04-28 15:22:14 +0000304.sp
305You have been warned.
306.sp
307We will not help you if you force flashing on a laptop because this is a really
308dumb idea.
hailfingerddd5d7b2010-03-25 02:50:40 +0000309.TP
mkarcher57423b12010-03-07 12:11:08 +0000310.BR "dummy " programmer
311An optional parameter specifies the bus types it
hailfinger668f3502009-06-01 00:02:11 +0000312should support. For that you have to use the
David Hendricks82fd8ae2010-08-04 14:34:54 -0700313.B "flashrom \-p dummy:bus=[type[+type[+type]]]"
hailfinger668f3502009-06-01 00:02:11 +0000314syntax where
315.B type
David Hendricks82fd8ae2010-08-04 14:34:54 -0700316can be any of
317.BR parallel ", " lpc ", " fwh ", " spi
318in any order. If you specify bus without type, all buses will be disabled.
319If you do not specify bus, all buses will be enabled.
hailfinger668f3502009-06-01 00:02:11 +0000320.sp
321Example:
David Hendricks82fd8ae2010-08-04 14:34:54 -0700322.B "flashrom \-p dummy:bus=lpc+fwh"
mkarcher57423b12010-03-07 12:11:08 +0000323.TP
David Hendricksc801adb2010-12-09 16:58:56 -0800324.BR "nic3com" , " nicrealtek" , " nicsmc1211" , " nicnatsemi" , " gfxnvidia\
325" , " satasii " and " atahpt " programmers
mkarcher57423b12010-03-07 12:11:08 +0000326These programmers have an option to specify the PCI address of the card
327your want to use, which must be specified if more than one card supported
328by the selected programmer is installed in your system. The syntax is
David Hendricks82fd8ae2010-08-04 14:34:54 -0700329.BR "flashrom \-p xxxx:pci=bb:dd.f" ,
uwe45a96702010-06-07 19:41:25 +0000330where
uwe4475e902009-05-19 14:14:21 +0000331.B xxxx
332is the name of the programmer
uwe55569282009-05-14 22:58:21 +0000333.B bb
334is the PCI bus number,
335.B dd
336is the PCI device number, and
337.B f
uwe45a96702010-06-07 19:41:25 +0000338is the PCI function number of the desired device.
uwe55569282009-05-14 22:58:21 +0000339.sp
340Example:
David Hendricks82fd8ae2010-08-04 14:34:54 -0700341.B "flashrom \-p nic3com:pci=05:04.0"
mkarcher57423b12010-03-07 12:11:08 +0000342.TP
343.BR "it87spi " programmer
uwe45a96702010-06-07 19:41:25 +0000344An optional
345.B it87spiport
346parameter sets the I/O base port of the IT87 series SPI controller
mkarcher57423b12010-03-07 12:11:08 +0000347interface to the port specified in the parameter instead of using the port
348address set by the BIOS. For that you have to use the
uwe45a96702010-06-07 19:41:25 +0000349.sp
350.B " flashrom \-p it87spi:it87spiport=portnum"
351.sp
hailfinger4500b082009-07-11 18:05:42 +0000352syntax where
353.B portnum
354is an I/O port number which must be a multiple of 8.
mkarcher57423b12010-03-07 12:11:08 +0000355.TP
hailfinger90c7d542010-05-31 15:27:27 +0000356.BR "ft2232_spi " programmer
uwe45a96702010-06-07 19:41:25 +0000357An optional parameter specifies the controller
hailfinger0c24e602009-08-18 23:51:22 +0000358type and interface/port it should support. For that you have to use the
uwe45a96702010-06-07 19:41:25 +0000359.sp
David Hendricks82fd8ae2010-08-04 14:34:54 -0700360.B " flashrom \-p ft2232_spi:type=model,port=interface"
uwe45a96702010-06-07 19:41:25 +0000361.sp
hailfingere98628b2009-07-01 00:02:23 +0000362syntax where
363.B model
364can be any of
David Hendricksc801adb2010-12-09 16:58:56 -0800365.BR 2232H ", " JTAGkey ", or " 4232H
hailfingere98628b2009-07-01 00:02:23 +0000366and
367.B interface
368can be any of
uwe45a96702010-06-07 19:41:25 +0000369.BR A ", or " B .
hailfingere98628b2009-07-01 00:02:23 +0000370The default model is
371.B 4232H
372and the default interface is
373.BR B .
mkarcher57423b12010-03-07 12:11:08 +0000374.TP
375.BR "serprog " programmer
376A mandatory parameter specifies either a serial
hailfinger0c24e602009-08-18 23:51:22 +0000377device/baud combination or an IP/port combination for communication with the
mkarcher57423b12010-03-07 12:11:08 +0000378programmer. In the device/baud combination, the device has to start with a
379slash. For serial, you have to use the
uwe45a96702010-06-07 19:41:25 +0000380.sp
David Hendricks82fd8ae2010-08-04 14:34:54 -0700381.B " flashrom \-p serprog:dev=/dev/device:baud"
uwe45a96702010-06-07 19:41:25 +0000382.sp
hailfinger0c24e602009-08-18 23:51:22 +0000383syntax and for IP, you have to use
uwe45a96702010-06-07 19:41:25 +0000384.sp
David Hendricks82fd8ae2010-08-04 14:34:54 -0700385.B " flashrom \-p serprog:ip=ipaddr:port"
uwe45a96702010-06-07 19:41:25 +0000386.sp
387instead. More information about serprog is available in
388.B serprog-protocol.txt
389in the source distribution.
mkarcher57423b12010-03-07 12:11:08 +0000390.TP
hailfinger90c7d542010-05-31 15:27:27 +0000391.BR "buspirate_spi " programmer
uwe45a96702010-06-07 19:41:25 +0000392A required
393.B dev
394parameter specifies the Bus Pirate device node and an optional
395.B spispeed
396parameter specifies the frequency of the SPI bus. The parameter
mkarcher57423b12010-03-07 12:11:08 +0000397delimiter is a comma. Syntax is
hailfinger0c24e602009-08-18 23:51:22 +0000398.sp
uwe45a96702010-06-07 19:41:25 +0000399.B "flashrom \-p buspirate_spi:dev=/dev/device,spispeed=frequency"
mkarcher57423b12010-03-07 12:11:08 +0000400.sp
hailfinger6e5a52a2009-11-24 18:27:10 +0000401where
402.B frequency
403can be any of
uwe45a96702010-06-07 19:41:25 +0000404.BR 30k ", " 125k ", " 250k ", " 1M ", " 2M ", " 2.6M ", " 4M ", " 8M
mkarcher57423b12010-03-07 12:11:08 +0000405(in Hz). The default is the maximum frequency of 8 MHz.
David Hendricks82fd8ae2010-08-04 14:34:54 -0700406.TP
David Hendricksc801adb2010-12-09 16:58:56 -0800407.BR "dediprog " programmer
408An optional
409.B voltage
410parameter specifies the voltage the Dediprog should use. The default unit is
411Volt if no unit is specified. You can use
412.BR mV ", " milliVolt ", " V " or " Volt
413as unit specifier. Syntax is
414.sp
415.B "flashrom \-p dediprog:voltage=value"
416.sp
417where
418.B value
419can be any of
420.BR 0V ", " 1.8V ", " 2.5V ", " 3.5V
421or the equivalent in mV.
422.TP
David Hendricks82fd8ae2010-08-04 14:34:54 -0700423.BR "rayer_spi " programmer
David Hendricksc801adb2010-12-09 16:58:56 -0800424The default I/O base address used for the parallel port is 0x378 and you can use
425the optional
426.B iobase
427parameter to specify an alternate base I/O address with the
428.sp
429.B " flashrom \-p rayer_spi:iobase=baseaddr"
430.sp
431syntax where
432.B baseaddr
433is base I/O port address of the parallel port, which must be a multiple of
434four. Make sure to not forget the "0x" prefix for hexadecimal port addresses.
435.sp
436More information about the hardware is available at
David Hendricks82fd8ae2010-08-04 14:34:54 -0700437http://rayer.ic.cz/elektro/spipgm.htm
David Hendricks668f29d2011-01-27 18:51:45 -0800438.TP
439.BR "ogp_spi " programmer
440The FLASH ROM chip to access must be specified with the
441.B rom
442parameter.
443.sp
444.B " flashrom \-p ogp_spi:rom=name"
445.sp
446Where
447.B name
448is either
449.B cprom
450or
451.B s3
452for the configuration ROM and
453.B bprom
454or
455.B bios
456for the BIOS ROM. If more than one card supported by the ogp_spi programmer
457is installed in your system, you have to specify the PCI address of the card
458you want to use with the
459.B pci=
460parameter as explained in the
461.B nic3com
462section above.
463.sp
464More information about the hardware is available at
465http://wiki.opengraphics.org
stuge973e9652009-01-26 02:20:56 +0000466.SH EXIT STATUS
467flashrom exits with 0 on success, 1 on most failures but with 2 if /dev/mem
468(/dev/xsvc on Solaris) can not be opened and with 3 if a call to mmap() fails.
David Hendricks82fd8ae2010-08-04 14:34:54 -0700469.SH REQUIREMENTS
470flashrom needs different access permissions for different programmers.
471.sp
472.B internal
473needs raw memory access, PCI configuration space access, raw I/O port
474access (x86) and MSR access (x86).
475.sp
476.B it87spi
477needs raw I/O port access (x86).
478.sp
479.BR nic3com ", " nicrealtek ", " nicsmc1211 " and " nicnatsemi "
480need PCI configuration space read access and raw I/O port access.
481.sp
482.B atahpt
483needs PCI configuration space access and raw I/O port access.
484.sp
485.BR gfxnvidia " and " drkaiser
486need PCI configuration space access and raw memory access.
487.sp
488.B rayer_spi
489needs raw I/O port access.
490.sp
491.B satasii
492needs PCI configuration space read access and raw memory access.
493.sp
494.B serprog
495needs TCP access to the network or userspace access to a serial port.
496.sp
497.B buspirate_spi
498needs userspace access to a serial port.
499.sp
500.BR dediprog " and " ft2232_spi
501need access to the USB device via libusb.
502.sp
503.B dummy
504needs no access permissions at all.
505.sp
506.BR internal ", " it87spi ", " nic3com ", " nicrealtek ", " nicsmc1211 ", "
507.BR nicnatsemi ", " "gfxnvidia" ", " drkaiser ", " satasii " and " atahpt
508have to be run as superuser/root, and need additional raw access permission.
509.sp
510.BR serprog ", " buspirate_spi ", " dediprog " and " ft2232_spi
511can be run as normal user on most operating systems if appropriate device
512permissions are set.
513.sp
David Hendricks668f29d2011-01-27 18:51:45 -0800514.B ogp
515needs PCI configuration space read access and raw memory access.
516.sp
David Hendricks82fd8ae2010-08-04 14:34:54 -0700517On OpenBSD, you can obtain raw access permission by setting
518securelevel=-1 in /etc/rc.securelevel and rebooting, or rebooting into single
519user mode.
stepanc7014b72006-07-27 23:29:02 +0000520.SH BUGS
uwe28add702008-01-18 17:48:51 +0000521Please report any bugs at
uwe45a96702010-06-07 19:41:25 +0000522.sp
523.B " http://www.flashrom.org/trac/flashrom/newticket"
524.sp
hailfingerf4aaccc2010-04-28 15:22:14 +0000525or on the flashrom mailing list at
David Hendricksc801adb2010-12-09 16:58:56 -0800526.B "<flashrom@flashrom.org>"
527.sp
528We recommend to subscribe first at
uwe45a96702010-06-07 19:41:25 +0000529.sp
530.B " http://www.flashrom.org/mailman/listinfo/flashrom"
hailfingerf4aaccc2010-04-28 15:22:14 +0000531.sp
532Using flashrom on laptops is dangerous and may easily make your hardware
533unusable unless you can desolder the flash chip and have a full flash chip
534backup. This is caused by the embedded controller (EC) present in many laptops,
535which interacts badly with any flash attempts. This is a hardware limitation
536and flashrom will attempt to detect it and abort immediately for safety reasons.
stepanc7014b72006-07-27 23:29:02 +0000537.SH LICENCE
538.B flashrom
hailfingerbf87f462009-01-08 04:56:59 +0000539is covered by the GNU General Public License (GPL), version 2. Some files are
540additionally available under the GPL (version 2, or any later version).
stepanc7014b72006-07-27 23:29:02 +0000541.SH COPYRIGHT
stepanc7014b72006-07-27 23:29:02 +0000542.br
hailfingerbf87f462009-01-08 04:56:59 +0000543Please see the individual files.
stepanc7014b72006-07-27 23:29:02 +0000544.SH AUTHORS
David Hendricksc801adb2010-12-09 16:58:56 -0800545Andrew Morgan
546.br
hailfingerbf87f462009-01-08 04:56:59 +0000547Carl-Daniel Hailfinger
548.br
David Hendricksc801adb2010-12-09 16:58:56 -0800549Claus Gindhart
hailfingerbf87f462009-01-08 04:56:59 +0000550.br
David Hendricksc801adb2010-12-09 16:58:56 -0800551David Borg
552.br
553David Hendricks
554.br
555Dominik Geyer
hailfingerbf87f462009-01-08 04:56:59 +0000556.br
stepanbeed17a2010-01-03 14:40:30 +0000557Eric Biederman
hailfingerbf87f462009-01-08 04:56:59 +0000558.br
David Hendricksc801adb2010-12-09 16:58:56 -0800559Giampiero Giancipoli
hailfingerbf87f462009-01-08 04:56:59 +0000560.br
David Hendricksc801adb2010-12-09 16:58:56 -0800561Helge Wagner
hailfingerbf87f462009-01-08 04:56:59 +0000562.br
David Hendricksc801adb2010-12-09 16:58:56 -0800563Idwer Vollering
564.br
565Joe Bao
566.br
567Jรถrg Fischer
568.br
569Joshua Roys
570.br
571Luc Verhaegen
hailfingerbf87f462009-01-08 04:56:59 +0000572.br
hailfinger2e9b94c2009-05-01 11:00:39 +0000573Li-Ta Lo
574.br
David Hendricks668f29d2011-01-27 18:51:45 -0800575Mark Marshall
576.br
David Hendricksc801adb2010-12-09 16:58:56 -0800577Markus Boas
hailfingerbf87f462009-01-08 04:56:59 +0000578.br
David Hendricksc801adb2010-12-09 16:58:56 -0800579Mattias Mattsson
hailfinger74819ad2010-05-15 15:04:37 +0000580.br
David Hendricksc801adb2010-12-09 16:58:56 -0800581Michael Karcher
hailfingerbf87f462009-01-08 04:56:59 +0000582.br
David Hendricksc801adb2010-12-09 16:58:56 -0800583Nikolay Petukhov
hailfingerbf87f462009-01-08 04:56:59 +0000584.br
David Hendricksc801adb2010-12-09 16:58:56 -0800585Patrick Georgi
hailfingerbf87f462009-01-08 04:56:59 +0000586.br
David Hendricksc801adb2010-12-09 16:58:56 -0800587Peter Lemenkov
hailfingerbf87f462009-01-08 04:56:59 +0000588.br
David Hendricksc801adb2010-12-09 16:58:56 -0800589Peter Stuge
stepanc7014b72006-07-27 23:29:02 +0000590.br
David Hendricksc801adb2010-12-09 16:58:56 -0800591Reinder E.N. de Haan
hailfinger74819ad2010-05-15 15:04:37 +0000592.br
David Hendricksc801adb2010-12-09 16:58:56 -0800593Ronald G. Minnich
stepanc7014b72006-07-27 23:29:02 +0000594.br
David Hendricksc801adb2010-12-09 16:58:56 -0800595Ronald Hoogenboom
hailfingerbf87f462009-01-08 04:56:59 +0000596.br
David Hendricksc801adb2010-12-09 16:58:56 -0800597Sean Nelson
hailfingerbf87f462009-01-08 04:56:59 +0000598.br
David Hendricksc801adb2010-12-09 16:58:56 -0800599Stefan Reinauer
600.br
601Stefan Wildemann
602.br
603Stephan Guilloux
604.br
605Steven James
606.br
607Uwe Hermann
hailfingerbf87f462009-01-08 04:56:59 +0000608.br
stepanbeed17a2010-01-03 14:40:30 +0000609Wang Qingpei
hailfingerbf87f462009-01-08 04:56:59 +0000610.br
stepanbeed17a2010-01-03 14:40:30 +0000611Yinghai Lu
stepanc211b472006-08-03 10:49:09 +0000612.br
David Hendricksc801adb2010-12-09 16:58:56 -0800613some others, please see the flashrom svn changelog for details.
614.br
615All authors can be reached via e-mail at <flashrom@flashrom.org>.
stepanc7014b72006-07-27 23:29:02 +0000616.PP
uwe45a96702010-06-07 19:41:25 +0000617This manual page was written by Uwe Hermann <uwe@hermann-uwe.de>
618and Carl-Daniel Hailfinger.
uwe28add702008-01-18 17:48:51 +0000619It is licensed under the terms of the GNU GPL (version 2 or later).