-
Notifications
You must be signed in to change notification settings - Fork 131
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
flashrom support broken #131
Comments
Hi. |
Winbond W25Q80DV
flashrom-1.1-rc1
Debian 4.19.37-3 (2019-05-15) |
Hi guys. http://dangerousprototypes.com/forum/index.php?topic=8498.msg67796#msg67796 All the firmwares released later do not work properly with FLASHROM probably due to some incompatibility introduced with the patch used to correct timing in the protocols 2-WIRE, 3-WIRE and 1-WIRE, as the culprit seems to be due to the management of delays: Indeed, using the commands "&" and "%" of the Bus Pirate v3 directly from the terminal no delay is introduced as if they were ignored. http://dangerousprototypes.com/forum/index.php?topic=8498.msg70075#msg70075 Be seeing you. U.Sb |
I spent a little time messing around with this issue this evening, and can confirm the latest flashrom v1.1 does not work with the latest compiled version of this firmware. I tried a different firmware from the dangerousprototypes forum, and could not get that to work either. For the time being I downgraded flashrom from 1.1 to v1.0.1 and created a custom formula so flashrom would compile / build against the libftdi v1.4 library as opposed to the older v0.2 of the libftdi library. And yes I tried flashrom with this firmware compiling against both the libftdi libraries and got the same results with both version of flashrom 1.1 I am able to successfully build the firmware from the master branch of this repo and use the mac pirate loader utility to load bootloader 4.3 and FW CE 7.1 and flashrom was able to dump the contents of a winbond flash chip. All this was performed on macOS 10.13.6 For anyone else running into similar issues running macOS, I have a flashrom formula for homebrew here |
Hi, same problem here i had to go back to v6.1 (BP v3.5) and @ipatch custom formula allowed me to make flashrom work (though my rom is not recognized and does not seem to be in list :( ) for the sake of trying, using flashrom 1.1 i get this (that has an updated list of supported devices) ? /usr/local/Cellar/flashrom/1.1/bin/flashrom -p buspirate_spi:dev=/dev/tty.usbserial-A500E4N4,spispeed=1M -r flash.bin --verbose flashrom was built with LLVM Clang 10.0.1 (clang-1001.0.46.4), little endian so I'd say that an old flashrom version/BP firmware is the way to go, sadly i can't confirm it is working 100% in my case due to the lack of supported device |
this is the setup i'm currently using on my bus pirate. i have the, BPv3a from September 2009, and the software stack on my pirate is,
and i have flashrom pinned to v1.01 on my macbook running macOS 10.13.6
i don't remember if i tested on any Linux based distros, but the above mentioned setup allowed me to read/dump the contents of the winbond chip on my open bench logic sniffer. |
a little bump on this, I can no longer read an SPI flashchip using flashrom while mixing and matching various versions of flashrom, bp firmware, ftdi drivers on macos. |
New BP user here (Sparkfun's v3.6a). Was working on flashing a Macronix chip, took a while to get it hooked up correctly (various silly issues) but flashrom would detect it. However, when trying to write to it, it would hang after detection before even getting to the initial read (i.e. before printing out "Reading old flash chip contents..."). I had installed BP firmware 7.1 (specifically this tag because it was convenient), and after reading this thread I went back and installed the last "official" firmware, 6.1. After doing that and retrying, flashrom no longer hung and could read/erase/write the chip correctly. This was with flashrom version 1.2, libftdi version 1.4, on Fedora 32. Edit: Firmware 6.3 works with flashrom as well. |
About the Bus Pirate revision v3, from http://dangerousprototypes.com/forum/index.php?topic=8498.msg70075#msg70075 the latest firmwares that are working with FLASHROM are version S_1-28102018.hex and U_1-28102018.hex which are located here: http://dangerousprototypes.com/forum/index.php?topic=8498.msg67796#msg67796 Direct download from here: http://dangerousprototypes.com/forum/index.php?action=dlattach;topic=8498.0;attach=9896 All the firmwares v7.x for the Bus Pirate v3 released later, until the aforementioned version S_1-28102018.hex and U_1-28102018.hex and later, do not work properly with FLASHROM probably due to some incompatibility introduced with the patch used to correct timing in the protocols 2-WIRE, 3-WIRE and 1-WIRE, as the culprit seems to be due to the management of delays: Indeed, using the commands "&" and "%" of the Bus Pirate v3 directly from the terminal no delay is introduced as if they were ignored. http://dangerousprototypes.com/forum/index.php?topic=8498.msg70075#msg70075 From http://dangerousprototypes.com/forum/index.php?topic=8498.msg70165#msg70165 there are also S_1-29092019.hex and U_1-29092019.hex that are exactly the same S_1-28102018.hex and U_1-28102018.hex as before but rebuilt with the agatti fix for avrdude in spi.c. (http://dangerousprototypes.com/forum/index.php?topic=8498.msg70164#msg70164) Direct download from here: http://dangerousprototypes.com/forum/index.php?action=dlattach;topic=8498.0;attach=15167 Firmwares busPirate-JTAG_SAFE_1.hex and busPirate_JTAG_UNSAFE_1.hex (http://dangerousprototypes.com/forum/index.php?topic=8498.msg71171#msg71171 ) which have the JTAG fix from issue 134 (#134) provided by Gabriel Smith as from his commit dated 21 May 2020, both of them are not working with FLASHROM, just same as those you wrote (https://github.com/gdamjan/Bus_Pirate/releases/tag/v.test2). You are right the old firmwares v6.x work with FLASHROM and also the firmwares v7.x up to the releases written in the opening. |
I'm trying to use I'm using an Ubuntu 20.04.2 LTS with
and doesn't hang when used with
(I also tried using different speeds for SPI but without any improvements). Lastly I tried to issue some manual commands found in unknown forum in order to understand if it's the Bus Pirate itself burned and I discovered that the chip interacts correctly
I would like to know if there is something obvious that I'm missing or it's (a new) bug and in case if someone gives me some indications I could also fix it. |
I tried to look a little bit into the
a flash device is found. It's configuration related with the BTW it seems strange that such code, that appears to be pretty "old", haven't caused problem before. |
Worked for me as well. 👍 |
I'll bump this if that's allright |
I had the same problems with flashrom. I used buspirate just yesterday. I ended up with I think version 6.3beta that was the last one that worked with flashrom. When I am back from work I could send it to you. But I think its in repo.
…On February 4, 2022 9:01:46 AM UTC, rub3rth ***@***.***> wrote:
I'll bump this if that's allright
I have the same problem but no fixes mentioned in this thread works, does anybody have an idea on where this issue stands today? I'm on a 3.5 board and the "S_1-28102018.hex " firmware linked in this thread and I can't get flashrom to read any chips.
I'm trying with a couple, all of them listed as supported in flashrom. I've tried with virtually every firmware version I've found and all flashrom versions available both with and without the change in buspirate_spi.c mentioned by @gipi but nothing works (except for version 1.2, for some reason it doesn't compile but throws an error regarding const to enum conversion). Has anybody gotten this to work lately?
|
Thanks for answering, I'll do another check with that firmware I guess. Did you use the latest version of flashrom, with or without any changes to the source? |
I use flashrom from debian bookworm repository with no modifications to the package. Not sure which version is it.
…On February 4, 2022 9:48:00 AM UTC, rub3rth ***@***.***> wrote:
Thanks for answering, I'll do another check with that firmware I guess. Did you use the latest version of flashrom, with or without any changes to the source?
|
Allright I understand, well, I guess the only difference left would be version of the board? I have a v3.5, now loaded with 6.3beta and using the same flashrom - no device found still! Thanks for you help though, I'm all out of ideas |
@gipi i wold like to re-open this topic guys, i have similar issue : any suggestion please ? also where can i found the : flashrom code, that you mentioned about |
@VraiHack the code is here |
I've been having issue after issue of trying to get my BPv4 to properly flash dump.
v7.1 firmware: Hangs on
Initializing buspirate_spi programmer
6.2-r1981 / v7.0 / v6.3-r2151: Chip either isnt detected half the time or the other half it reads the entire binary as all "0xFF" or "0x00".
I've swapped out my FT2232H in between each time to assure it isnt the target chip or the cables.
The text was updated successfully, but these errors were encountered: