blob: 21e9036aebbc392f2e6c1df3c8d5f17f17f2797d [file] [log] [blame]
Uwe Hermann42eb17f2008-01-18 17:48:51 +00001.TH FLASHROM 8 "January 18, 2008"
Stefan Reinauer261144c2006-07-27 23:29:02 +00002.SH NAME
Uwe Hermann42eb17f2008-01-18 17:48:51 +00003flashrom \- a universal BIOS/ROM/flash programming utility
Stefan Reinauer261144c2006-07-27 23:29:02 +00004.SH SYNOPSIS
Uwe Hermanne5ac1642008-03-12 11:54:51 +00005.B flashrom \fR[\fB\-rwvEVfLhR\fR] [\fB\-c\fR chipname] [\fB\-s\fR exclude_start] [\fB\-e\fR exclude_end]
Stefan Reinauerf8337dd2006-08-03 10:49:09 +00006 [\fB-m\fR vendor:part] [\fB-l\fR file.layout] [\fB-i\fR image_name] [file]
Stefan Reinauer261144c2006-07-27 23:29:02 +00007.SH DESCRIPTION
8.B flashrom
Uwe Hermann67808fe2007-10-18 00:29:05 +00009is a universal flash programming utility for DIP, PLCC, or SPI flash ROM
Stefan Reinauere3f3e2e2008-01-18 15:33:10 +000010chips. It can be used to flash BIOS/coreboot/firmware images, for example.
Uwe Hermanne5ac1642008-03-12 11:54:51 +000011.sp
Uwe Hermann42eb17f2008-01-18 17:48:51 +000012(see
13.B http://coreboot.org
14for details on coreboot)
Stefan Reinauer261144c2006-07-27 23:29:02 +000015.SH OPTIONS
16If no file is specified, then all that happens
17is that flash info is dumped and the flash chip is set to writable.
Stefan Reinauerde063bf2006-09-21 13:09:22 +000018.TP
Stefan Reinauer261144c2006-07-27 23:29:02 +000019.B "\-r, \-\-read"
Uwe Hermann42eb17f2008-01-18 17:48:51 +000020Read flash ROM contents and save them into the given file.
Stefan Reinauerde063bf2006-09-21 13:09:22 +000021.TP
Stefan Reinauer261144c2006-07-27 23:29:02 +000022.B "\-w, \-\-write"
Uwe Hermann42eb17f2008-01-18 17:48:51 +000023Write file into flash ROM (default when file is specified).
Stefan Reinauerde063bf2006-09-21 13:09:22 +000024.TP
Stefan Reinauer261144c2006-07-27 23:29:02 +000025.B "\-v, \-\-verify"
Uwe Hermann67808fe2007-10-18 00:29:05 +000026Verify the flash ROM contents against the given file.
Stefan Reinauerde063bf2006-09-21 13:09:22 +000027.TP
Stefan Reinauer261144c2006-07-27 23:29:02 +000028.B "\-E, \-\-erase"
Uwe Hermann42eb17f2008-01-18 17:48:51 +000029Erase the flash ROM device.
Stefan Reinauerde063bf2006-09-21 13:09:22 +000030.TP
Stefan Reinauer261144c2006-07-27 23:29:02 +000031.B "\-V, \-\-verbose"
32More verbose output.
Stefan Reinauerde063bf2006-09-21 13:09:22 +000033.TP
Stefan Reinauer261144c2006-07-27 23:29:02 +000034.B "\-c, \-\-chip" <chipname>
Uwe Hermann42eb17f2008-01-18 17:48:51 +000035Probe only for specified flash ROM chip.
Stefan Reinauerde063bf2006-09-21 13:09:22 +000036.TP
Stefan Reinauer261144c2006-07-27 23:29:02 +000037.B "\-s, \-\-estart" <addr>
Uwe Hermann42eb17f2008-01-18 17:48:51 +000038Exclude start position (obsolete).
Stefan Reinauerde063bf2006-09-21 13:09:22 +000039.TP
Stefan Reinauerf8337dd2006-08-03 10:49:09 +000040.B "\-e, \-\-eend" <addr>
Uwe Hermann42eb17f2008-01-18 17:48:51 +000041Exclude end postion (obsolete).
Stefan Reinauerde063bf2006-09-21 13:09:22 +000042.TP
Peter Stuge6b53fed2008-01-27 16:21:21 +000043.B "\-m, \-\-mainboard" <[vendor:]part>
Uwe Hermann67808fe2007-10-18 00:29:05 +000044Override mainboard settings. This option is needed for some mainboards,
45see the
46.B flashrom
Peter Stuge6b53fed2008-01-27 16:21:21 +000047README for a list. The vendor is not required when the board name is unique.
Stefan Reinauerde063bf2006-09-21 13:09:22 +000048.TP
Stefan Reinauer261144c2006-07-27 23:29:02 +000049.B "\-f, \-\-force"
Uwe Hermann67808fe2007-10-18 00:29:05 +000050Force write without checking whether the ROM image file is really meant
51to be used on this board.
52.sp
Stefan Reinauere3f3e2e2008-01-18 15:33:10 +000053Note: This check only works while coreboot is running, and only for those
54boards where the coreboot code supports it.
Stefan Reinauerde063bf2006-09-21 13:09:22 +000055.TP
Stefan Reinauerf8337dd2006-08-03 10:49:09 +000056.B "\-l, \-\-layout" <layout.file>
Stefan Reinauer261144c2006-07-27 23:29:02 +000057Read ROM layout from file.
Stefan Reinauerde063bf2006-09-21 13:09:22 +000058.TP
Stefan Reinauer261144c2006-07-27 23:29:02 +000059.B "\-i, \-\-image" <name>
Uwe Hermann67808fe2007-10-18 00:29:05 +000060Only flash image
61.B <name>
62from flash layout.
Stefan Reinauerde063bf2006-09-21 13:09:22 +000063.TP
Uwe Hermanne5ac1642008-03-12 11:54:51 +000064.B "\-L, \-\-list\-supported"
65List the ROM chips, chipsets, and mainboards supported by flashrom.
66The list of mainboards consists of those boards which need a special
67ROM write-enable function for flashrom to work.
68.sp
69There are many other boards which will work out of the box, without such
70special support in flashrom. Some of the known-good/known-bad and tested ones
71are listed at
72.BR http://coreboot.org/Flashrom#Supported_mainboards ,
73but the list is not exhaustive, of course.
74.TP
Stefan Reinauer261144c2006-07-27 23:29:02 +000075.B "\-h, \-\-help"
76Show a help text and exit.
Bernhard Walle201bde32008-01-21 15:24:22 +000077.TP
78.B "\-R, \-\-version"
79Show version information and exit.
Stefan Reinauer261144c2006-07-27 23:29:02 +000080.SH BUGS
Uwe Hermann42eb17f2008-01-18 17:48:51 +000081Please report any bugs at
82.BR http://tracker.coreboot.org/trac/coreboot/newticket ","
83or on the coreboot mailing list
84.RB "(" http://coreboot.org/Mailinglist ")."
Stefan Reinauer261144c2006-07-27 23:29:02 +000085.SH LICENCE
86.B flashrom
Stefan Reinauerde063bf2006-09-21 13:09:22 +000087is covered by the GNU General Public License (GPL), version 2 or later.
Stefan Reinauer261144c2006-07-27 23:29:02 +000088.SH COPYRIGHT
892000 Silicon Integrated System Corporation
90.br
Stefan Reinauerf8337dd2006-08-03 10:49:09 +0000912003 Niki W. Waibel
92.br
Stefan Reinauer261144c2006-07-27 23:29:02 +0000932004 Tyan Corp
94.br
Stefan Reinauer5380d512007-05-24 09:08:36 +0000952005-2007 coresystems GmbH
Stefan Reinauer261144c2006-07-27 23:29:02 +000096.SH AUTHORS
Stefan Reinauerf8337dd2006-08-03 10:49:09 +000097Yinghai Lu <yinghai.lu@amd.com>
Stefan Reinauer261144c2006-07-27 23:29:02 +000098.br
99Stefan Reinauer <stepan@coresystems.de>
100.br
101Niki W. Waibel <niki.waibel@gmx.net>
Stefan Reinauerf8337dd2006-08-03 10:49:09 +0000102.br
103some others
Stefan Reinauer261144c2006-07-27 23:29:02 +0000104.PP
Stefan Reinauerde063bf2006-09-21 13:09:22 +0000105This manual page was written by Uwe Hermann <uwe@hermann-uwe.de>.
Uwe Hermann42eb17f2008-01-18 17:48:51 +0000106It is licensed under the terms of the GNU GPL (version 2 or later).