-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HydraBus hangs when using flashrom (fixed) #76
Comments
Using different speeds doesn't seem to make a difference. |
Changes have to be made both in HydraFW and FlashROM.
You can test it on (https://github.com/Baldanos/flashrom) |
Thanks! |
Do you have any news about that ? any feedback is welcome |
Hey there @Baldanos do you have a HydraBus? thank you :) |
Unfortunately the problem still exists:
BusPirate dumps the same SPI flash (AT45DB041D) with the same flashrom without any problems. The chip is connected properly, I can read device id on spi1:
Here is an output of strace: https://afiskon.ru/s/29/b16555a066_strace.txt I'm using relatively new HydraFW compiled from cb077a7 (Thu May 24 08:21:25 2018 +0200). |
Hi ! The official revision of Flashrom still does not includes our patch to support Hydrabus (see flashrom/flashrom#21) I have a (outdated) fork here if you want to test : https://github.com/Baldanos/flashrom Tell me if it works for you as well, so we can ask the PR to be merged. |
Hello @Baldanos, The fork compiles and doesn't hang. However it doesn't recognize the flash chip:
If I specify chip explicitly it fails like this:
Same story with AT45DB161E (which should be compatible with AT45DB161D supported in the fork). The connection is OK. As previously I can read chip id. |
Thanks for the feedback. Unfortunately, I don't have EEPROMs at hand to test, could you try to connect your EEPROM to SPI2 ?
Long story short, we had to use SPI2 by default in binary SPI instead of SPI1 because of AVR programming uses very low speeds. See the Wiki for this : https://github.com/hydrabus/hydrafw/wiki/HydraFW-Binary-SPI-mode-guide#configure-spi-port-0b10000xyz If that doesn't work, could you please run the same commands with the |
Hello @Baldanos, If I connect the chip to SPI2 flashrom (the forked one) recognizes the chip however it can't dump it:
Here is a full -VVV log:
|
Hello @afiskon ! I found a bug in my flashrom patch. It should be fixed now.
|
Hello @Baldanos, I tested updated flashrom on AT45DB041D chip connected to SPI2 and it works:
Thank you a lot! |
@afiskon Great news ! FYI, I ported the patch to the current flashrom revision here : https://github.com/Baldanos/flashrom/tree/master I hope the PR will get merged soon. |
Since the PR (flashrom/flashrom#21) is open for nearly three years now, I took some time to reimplement the Serprog protocol in HydraFW. This works on any recent flashrom :
|
Thanks for the commit c10868f |
HydraBus is supposed to be binary compatible with the Bus Pirate, so flashrom should work out of the box (flashrom has a bus pirate mode).
However, when trying to ID a chip using flashrom (the most basic operation before a read or write), flashrom just hangs:
Issue requested by "Balda" in IRC.
The text was updated successfully, but these errors were encountered: