summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clean up manufacturer mainboard linksMichael Karcher2010-03-241-34/+44
| | | | | | | | | | | | | | | | The Asus A8NE-FM/S does exist, you find original ASUS pdf manuals in the internet, but seems to be an OEM board that is not documented on the Asus page. A lot of MSI boards are OEM boards that have no page at the MSI site... This patch also adds links in the Wiki for boards from the board enable table. Corresponding to flashrom svn r976. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Abit VT6X4 + Winbond W29C020C and Asus A7V133 + Atmel AT29C010A workMichael Karcher2010-03-244-4/+7
| | | | | | | | | | | | | | | | | Abit VT6X4 / W29C020C: See http://www.coreboot.org/pipermail/flashrom/2010-March/002730.html Fixes typo in comment and marks board-enable as tested (the flashrom running on that machine was patched with the board enable that got in later). Asus A7V133 / Atmel AT29C010A: See http://www.coreboot.org/pipermail/flashrom/2010-March/002729.html Adding "erase" to tested as there is only one erase function. Corresponding to flashrom svn r975. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Probe/Read tested for SST29EE020AMichael Karcher2010-03-241-1/+1
| | | | | | | | | | http://www.flashrom.org/pipermail/flashrom/2010-February/002318.html Thanks to Andre Robatino for reporting! Corresponding to flashrom svn r974. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Fix handling of empty dmidecode outputMichael Karcher2010-03-241-5/+8
| | | | | | | Corresponding to flashrom svn r973. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Sst49lfxxxc chips are functionally the same as 82802ab chipsSean Nelson2010-03-233-130/+13
| | | | | | | | | | | | | | Sst49lfxxxc software status register is functionally the same as the 82802ab status register, "Block Protect Status"(49lfxxxc) can be treated the same as "Device Protect Status"(82802ab). Erase_block_49lfxxxc is the same command sequence as erase_block_82802ab. Add unlock_49lfxxxc to chips definitions. Write_sector_49lfxxxc is the same as write_page_82802ab. Corresponding to flashrom svn r972. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Check 82802AB probing results for flash contents tooCarl-Daniel Hailfinger2010-03-221-1/+15
| | | | | | | | | | | | | | | | | | | JEDEC ID probing checks the parity of the vendor ID and verifies that the ID differs from the flash chip contents. Add the same feature to 82802AB ID probing. This should reduce the number of lines we have to look at to determine if we're missing a chip definition or if we need a board enable. Just use grep on the log: grep -v "parity violation" To narrow it down further, try: grep -v "id1 is normal flash content, id2 is normal flash content" And of course you want to ignore the skipped probes: grep -v "skipped" The remaining lines are worth examining, and if those look bogus as well, you can bet that we just need a board enable. Corresponding to flashrom svn r971. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Reduce message severity level for skipped chipsCarl-Daniel Hailfinger2010-03-221-4/+8
| | | | | | | | | | | | | | | | | | Old verbose log excerpt: Probing for Atmel AT25DF021, 256 KB: skipped. Host bus type Parallel and chip bus type SPI are incompatible. New verbose log excerpt: Probing for Atmel AT25DF021, 256 KB: skipped. This makes logs more readable and manageable. If someone really desperately wants all the bus debugging stuff, he/she can switch to SPEW mode instead of VERBOSE mode. Corresponding to flashrom svn r970. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Clang complains loudly when there are duplicate printlock_sst_fwhub, gcc ↵Sean Nelson2010-03-221-4/+0
| | | | | | | | | | | ignores them Ack via IRC. Corresponding to flashrom svn r969. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Refine compile-time checks for libpciCarl-Daniel Hailfinger2010-03-221-15/+6
| | | | | | | | | | | | | | | | | Idwer Vollering reported problems with the current libpci check on FreeBSD 8.0-RELEASE i386. This is caused by a strict linker. Parsing linker error messages is an exercise in futility, and library detection with $CC --print-file-name is totally useless for libraries outside the standard hardcoded builtin gcc search path (probably the same for other compilers as well). Look for libpciutils instead of libpci on NetBSD during the check. Corresponding to flashrom svn r968. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Idwer Vollering <vidwer@gmail.com>
* In unlock_28f004s5, variable 'i' needs to be int...Sean Nelson2010-03-221-1/+2
| | | | | | | Corresponding to flashrom svn r967. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Fix a few typos from the last commitSean Nelson2010-03-222-2/+3
| | | | | | | Corresponding to flashrom svn r966. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* To access/read the lock bits, we use the same mode to read the chip idSean Nelson2010-03-222-6/+54
| | | | | | | | | | | | | | This patch looks into the write situation for the Intel 28F001BX-{B,T}. Looks like they're just a 82802ab page write. Unlock_28f004s5 has been changed to read all the lock bits and if at least one of the block lock bits are set, clear them all. If the master lock bit is set, we can't do anything about it, so we return. Corresponding to flashrom svn r965. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Multibyte SPI write for the Bus PirateCarl-Daniel Hailfinger2010-03-223-2/+38
| | | | | | | Corresponding to flashrom svn r964. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Add DOS cross-compilation support to the MakefileCarl-Daniel Hailfinger2010-03-212-7/+57
| | | | | | | | | Add a README with build instructions. Corresponding to flashrom svn r963. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Rudolf Marek <r.marek@assembler.cz>
* Adds board enable to Termtek TK-3370 thin client motherboardDaniel Brandt2010-03-211-0/+12
| | | | | | | Corresponding to flashrom svn r962. Signed-off-by: Daniel Brandt <dbr@mindglow.se> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Unlock fixupSean Nelson2010-03-202-2/+2
| | | | | | | Corresponding to flashrom svn r961. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Fix some problems introduced in commit r948 brought up by carldaniSean Nelson2010-03-201-4/+1
| | | | | | | | | | | | | The Intel 28F001BX-T/B chips don't have block locks or mention of registers; chip is old. The Intel 28F004S5 mentions block locks which require a remapping registers. Corresponding to flashrom svn r960. The Intel 28F004S5 mentions block locks which require a remapping registers. Fixes problems brought up by carldani because of commit r948. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: iBase MB899Luc Verhaegen2010-03-191-0/+9
| | | | | | | Corresponding to flashrom svn r959. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Abit AN-M2Sean Nelson2010-03-191-0/+1
| | | | | | | | | Original patch by: Luc Verhaegen. Corresponding to flashrom svn r958. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Reversed-engineered board enable for the ASUS A8N-LASean Nelson2010-03-191-0/+2
| | | | | | | | | | | | | Rebased. IDs are ISA and SMBus. Added DMI string to match 3 HP boards: Nagami, Nagami2, Nagami2L. This could match any HP Nagami board. Needs testing. Corresponding to flashrom svn r957. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: 2nd attempt to fix board detection on GA-MA74GM-S2HPeter Lemenkov2010-03-191-1/+1
| | | | | | | | | | | | | This board (GA-MA74GM-S2H) has the same list of pciids as the GA-MA78M-S2H, so I narroved search conditions by populating corresponding board_pciid_enable entry for GA-MA78M-S2H with DMI pattern. Untested! Corresponding to flashrom svn r956. Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Asus P4B533-EMichael Karcher2010-03-191-0/+2
| | | | | | | Corresponding to flashrom svn r955. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Factor out Via Apollo GPO settingMichael Karcher2010-03-191-9/+37
| | | | | | | | | The board enable for the VT6X4 committed in r950 actually depended on this commit. Corresponding to flashrom svn r954. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: A8JM board_enable patchJames Lancaster2010-03-191-1/+10
| | | | | | | Corresponding to flashrom svn r953. Signed-off-by: James Lancaster <deathstalker@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Abit KN8 UltraSean Nelson2010-03-191-0/+9
| | | | | | | | | Patch by Chris <zinx+flashrom@zenthought.org> Corresponding to flashrom svn r952. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Intel SE440BX-2Michael Karcher2010-03-191-0/+9
| | | | | | | | | | | This board has no subsystem IDs, but thankfully the DMI patch is in now, which is a real life safer. There are *WAY* to many 440BX/PIIX4 boards out there to match this without DMI. Corresponding to flashrom svn r951. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Abit VT6X4Michael Karcher2010-03-191-0/+9
| | | | | | | | | | | | This board has *no* usable IDs at all, neither DMI nor PCI subsystem IDs. You have to force it using "-m abit:vt6x4" Try 3: really correct polarity of the GPIO Corresponding to flashrom svn r950. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Rebased Board Enable Patch: Add Asus A8NLuc Verhaegen2010-03-191-0/+1
| | | | | | | Corresponding to flashrom svn r949. Signed-off-by: Luc Verhaegen <libv@skynet.be> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Various JEDEC refactorings touching 82802ab.c, sharplhf00l04.c and ↵Sean Nelson2010-03-196-188/+88
| | | | | | | | | | | | | | | | | | | stm50flw0x0x.c Rename print_82802ab_status to print_status_82802ab add unlock_82802ab strip unlock code from erase_block_82802ab rename erase_82802ab_block to erase_block_80280ab delete sharplhf00l04.o from Makefile delete *_lhf00l04* from chipdrivers.h. add unlock_stm50flw0x0x delete wait_stm50flw0x0x delete write_page_stm50flw0x0x convert erase_stm50flw0x0x to erase_chip_stm50flw0x0x delete write_stm50flw0x0x add unlock_82802ab to two Intel chips with TEST_BAD_WRITE change the status of 82802AB, 82802AC, M50FW040, M50FW080 to TEST_OK_PR Corresponding to flashrom svn r948. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add board enable for P4C800-EMichael Karcher2010-03-172-0/+3
| | | | | | | | | | Lspci/flashrom/superiotool at http://www.coreboot.org/pipermail/flashrom/2010-March/002579.html Corresponding to flashrom svn r947. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* PCI device BARs of all types had only bits 1:0 cleared while reading the addressCarl-Daniel Hailfinger2010-03-171-1/+17
| | | | | | | | | | | | That was correct for IO BARs, but failed to mask bit 3:2 for MEM BARs, resulting in odd offsets for prefetchable MEM BARs and for 64-bit capable MEM BARs. Mask the correct number of bits for all types of BARs and add some debug printing about BAR type. Corresponding to flashrom svn r946. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Mark a bunch of parallel chips I tested as TEST_OK_PRWUwe Hermann2010-03-171-12/+12
| | | | | | | | | | | | All operations for these chips were tested on hardware. ERASE is not marked as working yet, as there are multiple erase functions per chip and only one was (successfully) tested. I'll redo the ERASE test when the respective infrastructure in flashrom is there. Corresponding to flashrom svn r945. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add MS-DOS crosscompilation supportRudolf Marek2010-03-163-2/+132
| | | | | | | | | Tested, works fine. Part 1: Code changes. Corresponding to flashrom svn r944. Signed-off-by: Rudolf Marek <r.marek@assembler.cz> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Further cleanup after JEDEC refactoringsSean Nelson2010-03-163-110/+30
| | | | | | | | | | | Convert _sst_fwhub functions to jedec. Corresponding to flashrom svn r943. kill unused sst_fwhub.c functions make unlock_* check if unlock was successful and only return 0 when fully successful Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Clean up sst28sf040.c after JEDEC refactoringsSean Nelson2010-03-162-27/+0
| | | | | | | | | | Remove function probe_28sf040. Corresponding to flashrom svn r942. delete references to dead sharplhf00l04.c and sst29sf040.c functions from chipdrivers.h Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Clean up sharplhf00l04.c after JEDEC refactoringsSean Nelson2010-03-162-28/+5
| | | | | | | | | | | - remove some copied functions (from 82802ab.c) and use the 82802ab equivalents - fix missing prototypes to *_82802ab functions Corresponding to flashrom svn r941. fix missing prototypes to _82802ab functions Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Kill dead w39v080fa.c functionsSean Nelson2010-03-162-69/+0
| | | | | | | Corresponding to flashrom svn r940. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Kill dead w39v040c.c functionsSean Nelson2010-03-162-72/+0
| | | | | | | Corresponding to flashrom svn r939. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Kill dead pm49fl00x.c functionsSean Nelson2010-03-161-69/+0
| | | | | | | Corresponding to flashrom svn r938. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Add FEATURE_REGISTERMAP to some more chips and change the use of various ↵Carl-Daniel Hailfinger2010-03-154-39/+40
| | | | | | | | | | | | | | | | | probing functions Add FEATURE_REGISTERMAP to * Intel 82802AB, 82802AC * Sharp LHF00L04 * SST SST49LF004C, SST49LF008C, SST49LF016C, SST49LF160C * ST M50FLW040A, M50FLW040B, M50FLW080A, M50FLW080B, M50FW002, M50FW016 M50FW040, M50FW080, M50LPW116. Make register mapping conditional on FEATURE_REGISTERMAP in 82802ab.c. Replace probe_49lfxxxc with probe_82802ab. Replace probe_28sf040 with probe_82802ab. Replace probe_sst_fwhub with probe_jedec. Add printlock_sst_fwhub to chips which used probe_sst_fwhub. Corresponding to flashrom svn r937. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Skip DMI laptop check if DMI doesn't workMichael Karcher2010-03-141-20/+6
| | | | | | | | | Also further removes dead code from dmi.c and adds a missing newline. Corresponding to flashrom svn r936. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Enabling Gigabyte GA-MA69VM-S2Raúl Soriano2010-03-143-0/+3
| | | | | | | | | | This board has a supported chipset and a supported bios, but it's connected indirectly through IT8716 and not recognized. Corresponding to flashrom svn r935. Signed-off-by: Raúl Soriano <GatoLoko@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Fix EN29F002 Top/Bottom Boot BlockMichael Karcher2010-03-131-6/+6
| | | | | | | | | | | See http://www.coreboot.org/pipermail/flashrom/2010-March/002480.html for effects of mixup: blockwise erase will fail, fallback to chip erase works. Corresponding to flashrom svn r934. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Sean Nelson <audiohacked@gmail.com>
* Various coding style and cosmetic changesUwe Hermann2010-03-138-82/+79
| | | | | | | | | | | | | - Fix coding-style, whitespace, and indentation in a few places. - Consistently use the same spelling ("Super I/O") everywhere. Corresponding to flashrom svn r933. - Make some flashrom stdout output look a bit nicer. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
* Patch: Manpage: Move description of layout file into the right placeJoerg Mayer2010-03-131-24/+24
| | | | | | | | | | Move the description of the layout file out of the --chip option into the --layout option. Corresponding to flashrom svn r932. Signed-off-by: Joerg Mayer <jmayer@loplof.de> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Tell users to probe/backup firstMichael Karcher2010-03-121-1/+5
| | | | | | | Corresponding to flashrom svn r931. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
* Fix NULL pointer reference in board_flash_enableMichael Karcher2010-03-111-1/+1
| | | | | | | | | Was introduced in r926. Found by Henrik Kretzschmar <henne@nachtwindheim.de>. Corresponding to flashrom svn r930. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Maciej Pijanka <maciej.pijanka@gmail.com>
* Add ASUS A7V8X-X write-enableRuss Dill2010-03-093-3/+8
| | | | | | | | | | I have an ASUS A7V8X-X, the BIOS programming requires a write-enable. It has an IT8712F, just like the A7V600-X. Corresponding to flashrom svn r929. Signed-off-by: Russ Dill <Russ.Dill@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Mark PMC Pm49FL002 as testedRuss Dill2010-03-091-1/+1
| | | | | | | | | This chip is on my ASUS A7V8X-X mainboard. Corresponding to flashrom svn r928. Signed-off-by: Russ Dill <Russ.Dill@gmail.com> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
* Write granularity is chip specificCarl-Daniel Hailfinger2010-03-082-0/+67
| | | | | | | | | | | | | | | | | | | | | | The following write granularities exist according to my datasheet survey: - 1 bit. Each bit can be cleared individually. - 1 byte. A byte can be written once. Further writes to an already written byte cause the contents to be either undefined or to stay unchanged. - 128 bytes. If less than 128 bytes are written, the rest will be erased. Each write to a 128-byte region will trigger an automatic erase before anything is written. Very uncommon behaviour. - 256 bytes. If less than 256 bytes are written, the contents of the unwritten bytes are undefined. Note that chips with default 256-byte writes, which keep the original contents for unwritten bytes, have a granularity of 1 byte. Handle 1-bit, 1-byte and 256-byte write granularity. Corresponding to flashrom svn r927. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com> Acked-by: David Hendricks <dhendrix@google.com>
OpenPOWER on IntegriCloud