blob: d72f225acc1dbea3544d6f2ed7f37abcd2983811 [file] [log] [blame]
Uwe Hermann2dc5f422006-11-20 20:32:35 +00001-------------------------------------------------------------------------------
Peter Stuge44dd3042009-04-20 12:34:30 +00002flashrom README
Uwe Hermann2dc5f422006-11-20 20:32:35 +00003-------------------------------------------------------------------------------
Ronald G. Minnich1e5003f2002-04-10 18:02:07 +00004
Peter Stuge261cafa2009-05-01 14:52:50 +00005flashrom is a utility for reading, writing, verifying and erasing flash ROM
Uwe Hermann87c07932009-05-05 16:15:46 +00006chips. It's often used to flash BIOS/coreboot/firmware images.
Uwe Hermanne74b9f82009-04-10 14:41:29 +00007
Uwe Hermannd42009c2009-04-11 13:59:00 +00008It supports a wide range of DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, and
9TSOP40 chips, which use various protocols such as LPC, FWH, parallel flash,
10or SPI.
Uwe Hermann42eb17f2008-01-18 17:48:51 +000011
12(see http://coreboot.org for details on coreboot)
13
Uwe Hermann2dc5f422006-11-20 20:32:35 +000014
15Build Requirements
Stefan Reinauer06b2c4d2005-12-01 10:51:08 +000016------------------
17
Uwe Hermann87c07932009-05-05 16:15:46 +000018To build flashrom you need to install the following packages or ports:
Stefan Reinauer06b2c4d2005-12-01 10:51:08 +000019
Idwer Vollering5e410de2009-05-03 23:33:05 +000020Linux et al:
Uwe Hermann87c07932009-05-05 16:15:46 +000021
22 * pciutils
23 * pciutils-devel / pciutils-dev / libpci-dev
24 * zlib-devel / zlib1g-dev
Stefan Reinauer06b2c4d2005-12-01 10:51:08 +000025
Idwer Vollering5e410de2009-05-03 23:33:05 +000026On FreeBSD, you need the following ports:
Idwer Vollering5e410de2009-05-03 23:33:05 +000027
Uwe Hermann87c07932009-05-05 16:15:46 +000028 * devel/gmake
29 * devel/libpci
Idwer Vollering5e410de2009-05-03 23:33:05 +000030
Uwe Hermann87c07932009-05-05 16:15:46 +000031To compile on Linux, use:
Carl-Daniel Hailfinger9abf5292009-05-01 16:34:32 +000032
Uwe Hermann87c07932009-05-05 16:15:46 +000033 make
34
35To compile on FreeBSD, use:
36
37 gmake
38
39To compile on Solaris, use:
40
41 gmake LDFLAGS="-L$pathtolibpci -lpci -lz" CC="gcc -I$pathtopciheaders" \
42 CFLAGS=-O2
43
44To compile on DragonFly BSD, use:
45
46 ln -s /usr/pkg/include/pciutils pci
47 gmake CFLAGS=-I. LDFLAGS="-L/usr/pkg/lib -lpci -lz"
Carl-Daniel Hailfinger9abf5292009-05-01 16:34:32 +000048
49To compile and run on Darwin/Mac OS X:
Uwe Hermann87c07932009-05-05 16:15:46 +000050
51 Install DirectIO from coresystems GmbH.
52 DirectIO is available at http://www.coresystems.de/en/directio.
Carl-Daniel Hailfinger9abf5292009-05-01 16:34:32 +000053
Stefan Reinauer06b2c4d2005-12-01 10:51:08 +000054
Uwe Hermann3d5f96c2009-04-23 14:57:55 +000055Usage / Options
56---------------
Stefan Reinauer06b2c4d2005-12-01 10:51:08 +000057
Uwe Hermann3d5f96c2009-04-23 14:57:55 +000058Please see the flashrom(8) manpage.
Ronald G. Minnich5e5f75e2002-01-29 18:21:41 +000059
Ronald G. Minnich5e5f75e2002-01-29 18:21:41 +000060
Peter Stuge42688e52009-01-26 02:20:56 +000061Exit status
62-----------
Uwe Hermanne74b9f82009-04-10 14:41:29 +000063
Uwe Hermann87c07932009-05-05 16:15:46 +000064Please see the flashrom(8) manpage.
Peter Stuge42688e52009-01-26 02:20:56 +000065
66
Stefan Reinauere3f3e2e2008-01-18 15:33:10 +000067coreboot Table and Mainboard Identification
Ollie Lho184a4042005-11-26 21:55:36 +000068--------------------------------------------
Ronald G. Minnich5e5f75e2002-01-29 18:21:41 +000069
Uwe Hermann87c07932009-05-05 16:15:46 +000070Please see the flashrom(8) manpage.
Uwe Hermann67808fe2007-10-18 00:29:05 +000071
Ollie Lho184a4042005-11-26 21:55:36 +000072
Uwe Hermann2dc5f422006-11-20 20:32:35 +000073ROM Layout Support
Ollie Lho184a4042005-11-26 21:55:36 +000074------------------
75
Uwe Hermann87c07932009-05-05 16:15:46 +000076Please see the flashrom(8) manpage.
Ollie Lho184a4042005-11-26 21:55:36 +000077
78
Uwe Hermannf8a49fe2008-06-22 18:50:25 +000079Supported Flash Chips / Chipsets / Mainboards
80---------------------------------------------
Uwe Hermannb6d28322006-12-04 08:15:47 +000081
Uwe Hermannf8a49fe2008-06-22 18:50:25 +000082Please check the output of 'flashrom -L' for the list of supported
83flash chips, chipsets/southbridges, and mainboards.
Uwe Hermannb6d28322006-12-04 08:15:47 +000084
Uwe Hermannf8a49fe2008-06-22 18:50:25 +000085See also http://coreboot.org/Flashrom for more details.
Uwe Hermannb6d28322006-12-04 08:15:47 +000086