Comments (9)
do you have arduino due?
from flashrom.
This can happen if some pins are left floating. /HOLD and /WP need to be connected to VCC 3.3V, even if you don't intend to use them.
The wiki (https://www.flashrom.org/RaspberryPi) has another tip that you might need to try: If your flash chip is detected but your read/write/verify operations tend to fail, try to add decoupling capacitors (one 100nF and one 4.7uF ceramic capacitor is preferred) close to the flash chip's power pin.
from flashrom.
I actually just found the opposite to be the case, at least this holds true for the GD25B128CSIG that I was having troubles with... if I understand things correctly.. now that I removed VCC 3.3V from 2 pins I'm getting a matching checksum on my read dumps using the -c "GD25Q127C/GD25Q128C" with an spispeed=1000 - @iddq I do not have an arduino duo, but I have an Uno R3, but no level shifting boards to make use of it. Thus the RPi3B+ has been my default. I'm about to try the GD25B64C chip next and see if anything changes now that I have things wired a little differently. Regardless @dhendrix thanks for your swift response and the tidbit from the flashrom.org/RaspberryPi section.. Hopefully I won't need to end up using the extra capacitors but I appreciate the advice/direction.. if it comes to it now I know what I'll be trying next...
from flashrom.
Interesting! Well, glad it's working out for you. I'm going to close this issue for now, but please feel free to re-open or comment if you're still having problems or find anything interesting - perhaps we can improve the wiki.
from flashrom.
After testing the smaller chip again it seems I can't even detect a generic chip. Something of note though, some of the LEDs on the board the chip is soldered to light up and flash with the clip connected, but still no dice. - Maybe this chip calls for decoupling caps?
from flashrom.
Ah yes, in-system programming (ISP) is tricky since you are backpowering other components on the board (as you say, LEDs light up). There are some suggestions on the wiki for dealing with that here https://flashrom.org/ISP
Long story short is that the RPi is probably not sufficient to power on the NOR flash with other stuff on the circuit, and you also need to be careful about other SPI masters powering up (e.g. embedded controller, management engine, PSP, etc).
from flashrom.
Re-opening this. I'm curious what solution you come up with and if it's something we should add to the wiki!
from flashrom.
Is it a desoldered chip?
from flashrom.
So just a little update, and correction... I was able to successfully read and write to an in-circuit chip (GD25B127CSIG) using my Raspberry Pi 3B+ and a Pomona test clip. Utilizing 6 out of 8 pins and the following line: sudo flashrom -VVV -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "GD25Q127C/GD25Q128C"
Notes:
Corrupt reads with spispeed higher than 1000
Corrupt reads with VCC 3.3v connected to HOLD/WP
This process for these chips was because I needed to clear a password on an HP Folio 1040 G3 and I was able to successfully do so by clearing the VSS Store from my dump and replacing the VSS Store volume with an empty VSS Store volume from the most .bin file available from HP. Using UEFITool_NE to find the correct store it's GUID and extract the matching volume and UEFITool 27 to replace the volume after locating correct GUID was all that was required for clearing the password without losing things like MAC, UUID, Feature-byte, etc..
Seeing as the GD25B128CSIG was the only chip needing interaction to solve my problem I will probably not spend any further time troubleshooting connectivity with the GD25B64CSIG chip also found on the board as it just isn't necessary. If anyone needs/wants more information or help, be it testing or otherwise with anything at all please don't hesitate to ask. I'm more than willing to play an active role in helping the flashrom development team/community benefit in whatever way I can offer. Though I suspect what I can do is very limited as I'm simply a technician not a developer myself.
@dhendrix if you want me to write something up for the wiki related to my experience/procedure I am more than willing to put something together. (Already have a fritzing file with wiring, and scripts for most of the process. wouldn't mind sharing them simply just lack my own platform to share such things) Sorry for the delay in a response, I was rather busy the last few days. Anyways, looking forward to hearing from you & let me offer a big thanks for everyone who replied with helpful information, and all the developers who make flashrom available.. Really is a wonderful tool, keep up the awesome work!
from flashrom.
Related Issues (20)
- Programmer dirtyjtag_spi can never be enabled HOT 1
- Add 25D40 BoyaMicro HOT 1
- Flashrom Serprog comport issue HOT 1
- no programmer support HOT 1
- W25Q128JV-IQ CS pin not going to 0 HOT 1
- Missing USB programmer support when building on arm64 HOT 1
- Any Update for supported device lists HOT 1
- Erase and Write problem with a SST25VF512. HOT 1
- Feedback on "new" documentation website <www.flashrom.org> HOT 1
- Add support for STLinkV3-Mini HOT 1
- Support GigaDevice GD25LB128D HOT 1
- Read error trying to read a FM25Q128A rom HOT 1
- [Feature Request] Add support for flash Winbond W25N01GV HOT 1
- Having issue with MX25L4006E HOT 1
- Add Support for Macronix MX29LV800CT HOT 1
- undefined symbol libusb_set_option HOT 1
- Intel i210at: no supported PCI device found. HOT 1
- W25N01 support? HOT 1
- Chip `WINBOND W25Q128JVSG 2106` Appears to not work with flashrom 1.3.0 with QinHeng Electronics CH341 in EPP/MEM/I2C mode HOT 1
- lld 17+: cannot link libflashrom due to version script refering to undefined symbols HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flashrom.