Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 1 | ------------------------------------------------------------------------------- |
| 2 | Flashrom README |
| 3 | ------------------------------------------------------------------------------- |
Ronald G. Minnich | 1e5003f | 2002-04-10 18:02:07 +0000 | [diff] [blame] | 4 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 5 | This is the universal (LinuxBIOS) flash utility. |
| 6 | |
| 7 | Build Requirements |
Stefan Reinauer | 06b2c4d | 2005-12-01 10:51:08 +0000 | [diff] [blame] | 8 | ------------------ |
| 9 | |
| 10 | To build the flashrom utility you need to have the following packages |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 11 | installed on your Linux system: |
Stefan Reinauer | 06b2c4d | 2005-12-01 10:51:08 +0000 | [diff] [blame] | 12 | |
| 13 | * pciutils |
Uwe Hermann | 83f0db2 | 2006-12-20 14:53:22 +0000 | [diff] [blame] | 14 | * pciutils-devel / pciutils-dev |
| 15 | * zlib-devel / zlib1g-dev |
Stefan Reinauer | 06b2c4d | 2005-12-01 10:51:08 +0000 | [diff] [blame] | 16 | |
| 17 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 18 | Usage |
Stefan Reinauer | 06b2c4d | 2005-12-01 10:51:08 +0000 | [diff] [blame] | 19 | ----- |
| 20 | |
Stefan Reinauer | f8337dd | 2006-08-03 10:49:09 +0000 | [diff] [blame] | 21 | usage: ./flashrom [-rwvEVfh] [-c chipname] [-s exclude_start] |
| 22 | [-e exclude_end] [-m vendor:part] [-l file.layout] [-i imagename] [file] |
| 23 | -r | --read: read flash and save into file |
| 24 | -w | --write: write file into flash (default when |
| 25 | file is specified) |
| 26 | -v | --verify: verify flash against file |
| 27 | -E | --erase: erase flash device |
| 28 | -V | --verbose: more verbose output |
| 29 | -c | --chip <chipname>: probe only for specified flash chip |
| 30 | -s | --estart <addr>: exclude start position |
| 31 | -e | --eend <addr>: exclude end postion |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 32 | -m | --mainboard <vendor:part>: override mainboard settings |
Stefan Reinauer | f8337dd | 2006-08-03 10:49:09 +0000 | [diff] [blame] | 33 | -f | --force: force write without checking image |
| 34 | -l | --layout <file.layout>: read rom layout from file |
| 35 | -i | --image <name>: only flash image name from flash layout |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 36 | |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 37 | If no file is specified, then all that happens |
| 38 | is that flash info is dumped and the flash chip is set to writable. |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 39 | |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 40 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 41 | LinuxBIOS Table and Mainboard Identification |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 42 | -------------------------------------------- |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 43 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 44 | Flashrom reads the LinuxBIOS table to determine the current mainboard. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 45 | (Parse DMI as well in future?) If no LinuxBIOS table could be read |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 46 | or if you want to override these values, you can specify -m, e.g.: |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 47 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 48 | flashrom -w --mainboard ISLAND:ARUMA island_aruma.rom |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 49 | |
Mondrian Nuessle | aef1c7c | 2007-05-03 10:09:23 +0000 | [diff] [blame] | 50 | The following boards require the specification of the board name, if |
| 51 | no LinuxBIOS table is found: |
| 52 | |
| 53 | * IWILL DK8-HTX: use -m iwill:dk8_htx |
Luc Verhaegen | 6b14175 | 2007-05-20 16:16:13 +0000 | [diff] [blame] | 54 | * Agami Aruma: use -m AGAMI:ARUMA |
| 55 | * ASUS P5A: use -m asus:p5a |
Mondrian Nuessle | aef1c7c | 2007-05-03 10:09:23 +0000 | [diff] [blame] | 56 | |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 57 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 58 | ROM Layout Support |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 59 | ------------------ |
| 60 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 61 | Flashrom supports ROM layouts. This allows to flash certain parts of |
| 62 | the flash chip only. A ROM layout file looks like follows: |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 63 | |
| 64 | 00000000:00008fff gfxrom |
| 65 | 00009000:0003ffff normal |
| 66 | 00040000:0007ffff fallback |
| 67 | |
| 68 | i.e.: |
| 69 | startaddr:endaddr name |
| 70 | |
| 71 | all addresses are offsets within the file, not absolute addresses! |
| 72 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 73 | If you only want to update the normal image in a ROM you can say: |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 74 | |
| 75 | flashrom -w --layout rom.layout --image normal island_aruma.rom |
| 76 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 77 | To update normal and fallback but leave the VGA BIOS alone, say: |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 78 | |
| 79 | flashrom -w -l rom.layout -i normal -i fallback island_aruma.rom |
| 80 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 81 | Currently overlapping sections are not supported. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 82 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 83 | ROM layouts should replace the -s and -e option since they are more |
| 84 | flexible and they should lead to a ROM update file format with the |
| 85 | ROM layout and the ROM image in one file (cpio, zip or something?) |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 86 | |
| 87 | |
| 88 | DOC support |
| 89 | ----------- |
| 90 | |
| 91 | DISK on Chip support is currently disabled since it is considered unstable. |
Stefan Reinauer | cbc55d0 | 2006-08-25 19:21:42 +0000 | [diff] [blame] | 92 | Change CFLAGS in the Makefile to enable it: Remove -DDISABLE_DOC from CFLAGS. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 93 | |
| 94 | |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 95 | Supported Flash Chips |
| 96 | --------------------- |
| 97 | |
| 98 | AMD AM-29F040B |
| 99 | AMD AM-29F016D |
Uwe Hermann | c22f542 | 2006-12-04 08:20:40 +0000 | [diff] [blame] | 100 | ASD AE49F2008 |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 101 | Atmel AT-29C040A |
Uwe Hermann | d7f4806 | 2007-04-28 02:22:59 +0000 | [diff] [blame] | 102 | Atmel AT-29C020 |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 103 | EMST F49B002UA |
| 104 | Intel 82802AB (Firmware Hub) |
| 105 | Intel 82802AC (Firmware Hub) |
| 106 | M-Systems MD-2802 (unsupported, disabled by default) |
| 107 | MX MX-29F002 |
| 108 | PMC PMC-49FL002 |
| 109 | PMC PMC-49FL004 |
| 110 | Sharp LHF-00L04 |
| 111 | SST SST-29EE020A |
| 112 | SST SST-28SF040A |
| 113 | SST SST-39SF010A |
| 114 | SST SST-39SF020A |
| 115 | SST SST-39SF040 |
| 116 | SST SST-39VF020 |
| 117 | SST SST-49LF040B |
| 118 | SST SST-49LF040 |
| 119 | SST SST-49LF020A |
| 120 | SST SST-49LF080A |
Alan Carvalho de Assis | 474230a | 2007-01-27 13:39:06 +0000 | [diff] [blame] | 121 | SST SST-49LF160C |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 122 | SST SST-49LF002A/B |
| 123 | SST SST-49LF003A/B |
| 124 | SST SST-49LF004A/B |
| 125 | SST SST-49LF008A |
Yinghai Lu | ca78297 | 2007-01-22 20:21:17 +0000 | [diff] [blame] | 126 | SST SST-49LF004C |
| 127 | SST SST-49LF008C |
| 128 | SST SST-49LF016C |
Uwe Hermann | d7f4806 | 2007-04-28 02:22:59 +0000 | [diff] [blame] | 129 | ST ST-M29F002B |
| 130 | ST ST-M29F002T |
| 131 | ST ST-M29F002NT |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 132 | ST ST-M29F400BT |
| 133 | ST ST-M29F040B |
Uwe Hermann | c22f542 | 2006-12-04 08:20:40 +0000 | [diff] [blame] | 134 | SyncMOS S29C51001T/B |
| 135 | SyncMOS S29C51002T/B |
| 136 | SyncMOS S29C51004T/B |
| 137 | SyncMOS S29C31004T |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 138 | Winbond W29C011 |
| 139 | Winbond W29C020C |
| 140 | Winbond W49F002U |
| 141 | Winbond W49V002A |
| 142 | Winbond W49V002FA |
Uwe Hermann | bc1f1a0 | 2007-05-21 21:39:08 +0000 | [diff] [blame^] | 143 | Winbond W39V040FA |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 144 | Winbond W39V040A |
| 145 | Winbond W39V040B |
David Hendricks | 71437d0 | 2007-03-02 02:25:36 +0000 | [diff] [blame] | 146 | Winbond W39V080A |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 147 | |
| 148 | |
| 149 | Supported Southbridges |
| 150 | ---------------------- |
| 151 | |
| 152 | AMD CS5530 |
| 153 | AMD Geode SC1100 |
| 154 | AMD AMD-8111 |
| 155 | ATI SB400 |
| 156 | Intel ICH0-ICH8 (all variations) |
| 157 | Intel PIIX4/PIIX4E/PIIX4M |
| 158 | NVIDIA CK804 |
| 159 | NVIDIA MCP51 |
Yinghai Lu | ca78297 | 2007-01-22 20:21:17 +0000 | [diff] [blame] | 160 | NVIDIA MCP55 |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 161 | SiS 630 |
| 162 | SiS 5595 |
Uwe Hermann | a4c63c2 | 2007-04-09 22:59:22 +0000 | [diff] [blame] | 163 | VIA CX700 |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 164 | VIA VT8231 |
| 165 | VIA VT8235 |
| 166 | VIA VT8237 |
| 167 | VIA VT82C686 |
| 168 | |