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 |
| 14 | * pciutils-devel |
| 15 | |
| 16 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 17 | Usage |
Stefan Reinauer | 06b2c4d | 2005-12-01 10:51:08 +0000 | [diff] [blame] | 18 | ----- |
| 19 | |
Stefan Reinauer | f8337dd | 2006-08-03 10:49:09 +0000 | [diff] [blame] | 20 | usage: ./flashrom [-rwvEVfh] [-c chipname] [-s exclude_start] |
| 21 | [-e exclude_end] [-m vendor:part] [-l file.layout] [-i imagename] [file] |
| 22 | -r | --read: read flash and save into file |
| 23 | -w | --write: write file into flash (default when |
| 24 | file is specified) |
| 25 | -v | --verify: verify flash against file |
| 26 | -E | --erase: erase flash device |
| 27 | -V | --verbose: more verbose output |
| 28 | -c | --chip <chipname>: probe only for specified flash chip |
| 29 | -s | --estart <addr>: exclude start position |
| 30 | -e | --eend <addr>: exclude end postion |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 31 | -m | --mainboard <vendor:part>: override mainboard settings |
Stefan Reinauer | f8337dd | 2006-08-03 10:49:09 +0000 | [diff] [blame] | 32 | -f | --force: force write without checking image |
| 33 | -l | --layout <file.layout>: read rom layout from file |
| 34 | -i | --image <name>: only flash image name from flash layout |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 35 | |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 36 | If no file is specified, then all that happens |
| 37 | 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] | 38 | |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 39 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 40 | LinuxBIOS Table and Mainboard Identification |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 41 | -------------------------------------------- |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 42 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 43 | Flashrom reads the LinuxBIOS table to determine the current mainboard. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 44 | (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] | 45 | 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] | 46 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 47 | flashrom -w --mainboard ISLAND:ARUMA island_aruma.rom |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 48 | |
| 49 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 50 | ROM Layout Support |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 51 | ------------------ |
| 52 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 53 | Flashrom supports ROM layouts. This allows to flash certain parts of |
| 54 | the flash chip only. A ROM layout file looks like follows: |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 55 | |
| 56 | 00000000:00008fff gfxrom |
| 57 | 00009000:0003ffff normal |
| 58 | 00040000:0007ffff fallback |
| 59 | |
| 60 | i.e.: |
| 61 | startaddr:endaddr name |
| 62 | |
| 63 | all addresses are offsets within the file, not absolute addresses! |
| 64 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 65 | 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] | 66 | |
| 67 | flashrom -w --layout rom.layout --image normal island_aruma.rom |
| 68 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 69 | To update normal and fallback but leave the VGA BIOS alone, say: |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 70 | |
| 71 | flashrom -w -l rom.layout -i normal -i fallback island_aruma.rom |
| 72 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 73 | Currently overlapping sections are not supported. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 74 | |
Uwe Hermann | 2dc5f42 | 2006-11-20 20:32:35 +0000 | [diff] [blame] | 75 | ROM layouts should replace the -s and -e option since they are more |
| 76 | flexible and they should lead to a ROM update file format with the |
| 77 | 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] | 78 | |
| 79 | |
| 80 | DOC support |
| 81 | ----------- |
| 82 | |
| 83 | DISK on Chip support is currently disabled since it is considered unstable. |
Stefan Reinauer | cbc55d0 | 2006-08-25 19:21:42 +0000 | [diff] [blame] | 84 | 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] | 85 | |
| 86 | |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 87 | Supported Flash Chips |
| 88 | --------------------- |
| 89 | |
| 90 | AMD AM-29F040B |
| 91 | AMD AM-29F016D |
Uwe Hermann | c22f542 | 2006-12-04 08:20:40 +0000 | [diff] [blame^] | 92 | ASD AE49F2008 |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 93 | Atmel AT-29C040A |
| 94 | EMST F49B002UA |
| 95 | Intel 82802AB (Firmware Hub) |
| 96 | Intel 82802AC (Firmware Hub) |
| 97 | M-Systems MD-2802 (unsupported, disabled by default) |
| 98 | MX MX-29F002 |
| 99 | PMC PMC-49FL002 |
| 100 | PMC PMC-49FL004 |
| 101 | Sharp LHF-00L04 |
| 102 | SST SST-29EE020A |
| 103 | SST SST-28SF040A |
| 104 | SST SST-39SF010A |
| 105 | SST SST-39SF020A |
| 106 | SST SST-39SF040 |
| 107 | SST SST-39VF020 |
| 108 | SST SST-49LF040B |
| 109 | SST SST-49LF040 |
| 110 | SST SST-49LF020A |
| 111 | SST SST-49LF080A |
| 112 | SST SST-49LF002A/B |
| 113 | SST SST-49LF003A/B |
| 114 | SST SST-49LF004A/B |
| 115 | SST SST-49LF008A |
| 116 | ST ST-M29F400BT |
| 117 | ST ST-M29F040B |
Uwe Hermann | c22f542 | 2006-12-04 08:20:40 +0000 | [diff] [blame^] | 118 | SyncMOS S29C51001T/B |
| 119 | SyncMOS S29C51002T/B |
| 120 | SyncMOS S29C51004T/B |
| 121 | SyncMOS S29C31004T |
Uwe Hermann | b6d2832 | 2006-12-04 08:15:47 +0000 | [diff] [blame] | 122 | Winbond W29C011 |
| 123 | Winbond W29C020C |
| 124 | Winbond W49F002U |
| 125 | Winbond W49V002A |
| 126 | Winbond W49V002FA |
| 127 | Winbond W39V040A |
| 128 | Winbond W39V040B |
| 129 | |
| 130 | |
| 131 | Supported Southbridges |
| 132 | ---------------------- |
| 133 | |
| 134 | AMD CS5530 |
| 135 | AMD Geode SC1100 |
| 136 | AMD AMD-8111 |
| 137 | ATI SB400 |
| 138 | Intel ICH0-ICH8 (all variations) |
| 139 | Intel PIIX4/PIIX4E/PIIX4M |
| 140 | NVIDIA CK804 |
| 141 | NVIDIA MCP51 |
| 142 | SiS 630 |
| 143 | SiS 5595 |
| 144 | VIA VT8231 |
| 145 | VIA VT8235 |
| 146 | VIA VT8237 |
| 147 | VIA VT82C686 |
| 148 | |