Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 1 | ------------------------------------------------------------------------------- |
Peter Stuge | 44dd304 | 2009-04-20 12:34:30 +0000 | [diff] [blame] | 2 | flashrom README |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 3 | ------------------------------------------------------------------------------- |
Ronald G. Minnich | 1e5003f | 2002-04-10 18:02:07 +0000 | [diff] [blame] | 4 | |
Peter Stuge | 261cafa | 2009-05-01 14:52:50 +0000 | [diff] [blame] | 5 | flashrom is a utility for reading, writing, verifying and erasing flash ROM |
Uwe Hermann | c7e8a0c | 2009-05-19 14:14:21 +0000 | [diff] [blame] | 6 | chips. It's often used to flash BIOS/EFI/coreboot/firmware images in-system |
| 7 | using a supported mainboard, but it also supports flashing of network |
| 8 | cards (NICs), SATA controller cards, and other external devices which can |
| 9 | program flash chips. |
Uwe Hermann | e74b9f8 | 2009-04-10 14:41:29 +0000 | [diff] [blame] | 10 | |
Uwe Hermann | d42009c | 2009-04-11 13:59:00 +0000 | [diff] [blame] | 11 | It supports a wide range of DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, and |
| 12 | TSOP40 chips, which use various protocols such as LPC, FWH, parallel flash, |
| 13 | or SPI. |
Uwe Hermann | 42eb17f | 2008-01-18 17:48:51 +0000 | [diff] [blame] | 14 | |
| 15 | (see http://coreboot.org for details on coreboot) |
| 16 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 17 | |
| 18 | Build Requirements |
Stefan Reinauer | 06b2c4d | 2005-12-01 10:51:08 +0000 | [diff] [blame] | 19 | ------------------ |
| 20 | |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 21 | To build flashrom you need to install the following packages or ports: |
Stefan Reinauer | 06b2c4d | 2005-12-01 10:51:08 +0000 | [diff] [blame] | 22 | |
Idwer Vollering | 5e410de | 2009-05-03 23:33:05 +0000 | [diff] [blame] | 23 | Linux et al: |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 24 | |
| 25 | * pciutils |
| 26 | * pciutils-devel / pciutils-dev / libpci-dev |
| 27 | * zlib-devel / zlib1g-dev |
Stefan Reinauer | 06b2c4d | 2005-12-01 10:51:08 +0000 | [diff] [blame] | 28 | |
Idwer Vollering | 5e410de | 2009-05-03 23:33:05 +0000 | [diff] [blame] | 29 | On FreeBSD, you need the following ports: |
Idwer Vollering | 5e410de | 2009-05-03 23:33:05 +0000 | [diff] [blame] | 30 | |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 31 | * devel/gmake |
| 32 | * devel/libpci |
Idwer Vollering | 5e410de | 2009-05-03 23:33:05 +0000 | [diff] [blame] | 33 | |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 34 | To compile on Linux, use: |
Carl-Daniel Hailfinger | 9abf529 | 2009-05-01 16:34:32 +0000 | [diff] [blame] | 35 | |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 36 | make |
| 37 | |
| 38 | To compile on FreeBSD, use: |
| 39 | |
| 40 | gmake |
| 41 | |
| 42 | To compile on Solaris, use: |
| 43 | |
| 44 | gmake LDFLAGS="-L$pathtolibpci -lpci -lz" CC="gcc -I$pathtopciheaders" \ |
| 45 | CFLAGS=-O2 |
| 46 | |
| 47 | To compile on DragonFly BSD, use: |
| 48 | |
| 49 | ln -s /usr/pkg/include/pciutils pci |
| 50 | gmake CFLAGS=-I. LDFLAGS="-L/usr/pkg/lib -lpci -lz" |
Carl-Daniel Hailfinger | 9abf529 | 2009-05-01 16:34:32 +0000 | [diff] [blame] | 51 | |
| 52 | To compile and run on Darwin/Mac OS X: |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 53 | |
| 54 | Install DirectIO from coresystems GmbH. |
| 55 | DirectIO is available at http://www.coresystems.de/en/directio. |
Carl-Daniel Hailfinger | 9abf529 | 2009-05-01 16:34:32 +0000 | [diff] [blame] | 56 | |
Stefan Reinauer | 06b2c4d | 2005-12-01 10:51:08 +0000 | [diff] [blame] | 57 | |
Uwe Hermann | 3d5f96c | 2009-04-23 14:57:55 +0000 | [diff] [blame] | 58 | Usage / Options |
| 59 | --------------- |
Stefan Reinauer | 06b2c4d | 2005-12-01 10:51:08 +0000 | [diff] [blame] | 60 | |
Uwe Hermann | 3d5f96c | 2009-04-23 14:57:55 +0000 | [diff] [blame] | 61 | Please see the flashrom(8) manpage. |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 62 | |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 63 | |
Peter Stuge | 42688e5 | 2009-01-26 02:20:56 +0000 | [diff] [blame] | 64 | Exit status |
| 65 | ----------- |
Uwe Hermann | e74b9f8 | 2009-04-10 14:41:29 +0000 | [diff] [blame] | 66 | |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 67 | Please see the flashrom(8) manpage. |
Peter Stuge | 42688e5 | 2009-01-26 02:20:56 +0000 | [diff] [blame] | 68 | |
| 69 | |
Stefan Reinauer | e3f3e2e | 2008-01-18 15:33:10 +0000 | [diff] [blame] | 70 | coreboot Table and Mainboard Identification |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 71 | -------------------------------------------- |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 72 | |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 73 | Please see the flashrom(8) manpage. |
Uwe Hermann | 67808fe | 2007-10-18 00:29:05 +0000 | [diff] [blame] | 74 | |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 75 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 76 | ROM Layout Support |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 77 | ------------------ |
| 78 | |
Uwe Hermann | 87c0793 | 2009-05-05 16:15:46 +0000 | [diff] [blame] | 79 | Please see the flashrom(8) manpage. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 80 | |
| 81 | |
Uwe Hermann | f8a49fe | 2008-06-22 18:50:25 +0000 | [diff] [blame] | 82 | Supported Flash Chips / Chipsets / Mainboards |
| 83 | --------------------------------------------- |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 84 | |
Uwe Hermann | f8a49fe | 2008-06-22 18:50:25 +0000 | [diff] [blame] | 85 | Please check the output of 'flashrom -L' for the list of supported |
Uwe Hermann | c7e8a0c | 2009-05-19 14:14:21 +0000 | [diff] [blame] | 86 | flash chips, chipsets/southbridges, mainboards, and flash programmers. |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 87 | |
Uwe Hermann | e94dbf2 | 2009-05-22 13:18:38 +0000 | [diff] [blame] | 88 | Website |
| 89 | ------- |
| 90 | |
| 91 | The official flashrom website is: |
| 92 | |
| 93 | http://coreboot.org/Flashrom |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 94 | |