flashrom -w A7032VMS.500
flashrom v0.9.1-r710
No coreboot table found.
Found chipset "VIA VT8237", enabling flash write... OK.
This chipset supports the following protocols: Non-SPI.
Calibrating delay loop... OK.
Found chip "SST SST49LF004A/B" (512 KB, FWH) at physical address
0xfff80000.
Flash image seems to be a legacy BIOS. Disabling checks.
Writing flash chip... ERASE FAILED at 0x00000008! Expected=0xff,
Read=0x54, failed byte count from 0x00000000-0x0000ffff: 0xfebf
ERASE FAILED!
ERASE FAILED!
ERASE FAILED!
ERASE FAILED!
FAILED!
Your flash chip is in an unknown state.
Get help on IRC at irc.freenode.net channel #flashrom or
mail flashrom(a)flashrom.org
------------------------------------------------------------
DO NOT REBOOT OR POWEROFF!
Author: hailfinger
Date: Wed Nov 10 04:22:39 2010
New Revision: 1230
URL: http://flashrom.org/trac/flashrom/changeset/1230
Log:
ft2232_spi ftdi_usb_open() is called with the constant FTDI_VID vendor
ID. Fix it by using the programmer-type-dependent ft2232_vid variable,
to allow programmers with other vendor IDs.
Signed-off-by: Alex Badea <vamposdecampos(a)gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Modified:
trunk/ft2232_spi.c
Modified: trunk/ft2232_spi.c
==============================================================================
--- trunk/ft2232_spi.c Wed Nov 10 04:18:41 2010 (r1229)
+++ trunk/ft2232_spi.c Wed Nov 10 04:22:39 2010 (r1230)
@@ -179,7 +179,7 @@
return EXIT_FAILURE; // TODO
}
- f = ftdi_usb_open(ftdic, FTDI_VID, ft2232_type);
+ f = ftdi_usb_open(ftdic, ft2232_vid, ft2232_type);
if (f < 0 && f != -5) {
msg_perr("Unable to open FTDI device: %d (%s)\n", f,