Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => Flashrom => Topic started by: Leon on June 19, 2015, 03:25:14 pm

Title: Flashrom never working.....
Post by: Leon on June 19, 2015, 03:25:14 pm
Hello folks,

i have a buspirate and flashrom v0.9.6.1-r1705 with Windows 7 pro 64bit. I always get this error, when trying to read with this command: flashrom.exe -p buspirate_spi:dev=COM2,spispeed=1M -r example.rom
Quote
Calibrating delay loop....OK
"unknown SPI chip (RDID)" (0kb, SPI) on buspirate_spi
Chip is SST25VF040B, but i tried several chips and no one is recognized by buspirate. I have to restore a failed bios, it is still working, but checksum error and no restoring with floppy or cdrom was successfull.

What i tried:
-short wires (10cm)
-desoldered chips
-testclip and soldered wires
-bus pirate self-test (ok)
-changed miso/mosi wires
-external psu for 3.3Volts

I'm very frustrated that nothing is working yet......
Title: Re: Flashrom never working.....
Post by: sre71 on June 19, 2015, 10:53:13 pm
Hi Leon,
 
for a moment set aside flashrom and give it a try with Bus Pirate alone just in order to be sure all is working right there.
So clip your chip to the Bus Pirate, put it in SPI mode and send these commands:
 
[0x9F r:3]
(if all is fine either for SPI communication or links, on the terminal you should be able to read JEDEC of the component which is BFH 25H 8DH for SST25VF040B)
 
[0x90 0x00 0x00 0x00 r:2]
(if all is fine either for SPI communication or links, on the terminal you should be able to read the Manufacturer and Device ID of the component which are BFH 8DH for SST25VF040B)
 
[0x90 0x00 0x00 0x01 r:2]
(if all is fine either for SPI communication or links, on the terminal you should be able to read the Device and Manufacturer ID of the component which are 8DH BFH for SST25VF040B)
 
Ok this is the first step.
If you are able to see them your Bus Pirate and chip are talking fine otherwise there is a problem and then it's normal that flashrom is unable to recognize the chip.
 
Regards,
sre71
Title: Re: Flashrom never working.....
Post by: greminn on June 28, 2015, 10:46:00 am
well, anybody has a newer version such as v0.9.7 for windows? I try to download from flashrom website and the link there is not opening at all. Please help me. or email me a newer version to me  thanks david
Title: Re: Flashrom never working.....
Post by: greminn on June 28, 2015, 10:47:32 am
LIke I posted it before, there is possibility that the flashrom v0.9.6.1 is too old. try to get the newer version which I can not find. Please help us.
Title: Re: Flashrom never working.....
Post by: Sjaak on June 30, 2015, 10:42:13 pm
Have you looked at the flashrom.org site?

A quick glance at http://flashrom.org/Windows (http://flashrom.org/Windows) gave me a link to the buildbot site ( http://buildbot.flashrom.org/buildresults/?M=D (http://buildbot.flashrom.org/buildresults/?M=D) ) which provides a nightly mingw version.

It also provides building instructions to build your own version.
Title: Re: Flashrom never working.....
Post by: FlasherGirl on November 17, 2015, 02:22:45 pm
Just for the reference, here are the instructions which I have done to get and build my flashrom:
http://http://www.flashrom.org/Downloads#Installation_from_source

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00902068656session_write_close ( )...(null):0
20.00932200248ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00932201024Database_MySQL->query( ).../DatabaseHandler.php:119
40.05422339752Database_MySQL->error( ).../Db-mysql.class.php:273