-
Notifications
You must be signed in to change notification settings - Fork 43
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
Couldn't get this version to work -- have a working fork #10
Comments
Hi Matteius, thanks a lot! I only tested with JEDEC compatible flashes, so maybe that's an issue? Can you share the type of flash-chip you're using? Thanks, |
These are 8-pin soc 16MB and 8MB style eeprom chips, for example: https://datasheet.lcsc.com/lcsc/2109132030_FUDAN-MICRO-FM25Q128A-SOB-T-G_C908405.pdf I haven't done a ton of C programming since college, so I couldn't get PIO example to work (or at least I don't think I am using PIO) but I have to buffer the data into 32 byte chunks, tried 64 and that failed to. I couldn't do it without implementing the commands that tell flashrom what the buffer size is, otherwise when it buffered the stream in memory, flashrom got unexpected byte codes. I don't have the window open anymore from when I first was working with it, but with my version I can get:
|
@nezza Curious too -- did you use flashrom? Because when I compiled this version I actually couldn't even get flashrom to see the programmer until I found the libreboot fork. |
Hello, I am running the latest Kali Linux as my OS. I am trying to learn the Pi Pico. I am new to it. I need a direction to compile this and any advice or tutorial would help. I am working on a 2005 Dodge Neon pcm. It's the four plug version and not the stx module. I need to get the VIN and Key code data off the eeprom and flash to donor pcm from a 2003 neon. It's a project. Most everything is expensive with Chrysler and I am beating the odds because it has been done before. Normally I can just open the Skim module and go that route. But Chrysler uses ST95080 8-pin. There are three on this pcm module and a philips eeprom too. This is a nightmare because this pcm has a sticky epoxy rubber that has to be cleaned off the board to access any of the 8-pin eeproms. I'm trying to understand which one has all my data that I need and then flash everything to the donor. Anyway, I need to get my Pi Pico up and running so I can start reverse engineering. My Kali is 2023.4 and Pi Pico is the latest for micro python. I do like the drag and drop programming. I just don't know how to create the "u2f". Note: I am not a programmer by any means. I use what is already created. Any help is greatly appreciated. |
@mikerupp1986 if you send me an email (its in my github profile) I'll forward you a pre-built uf2 of my fork that I have been using. |
my user handle @gmail |
@matteius thank you. I will try this out. |
@matteius could i also get that pre-built uf2? |
@matteius pleasee |
Its published in my fork on the releases -- if you'd even look you would have found it. |
i downloaded the pico serprog code from ur directory at https://github.com/opensensor/pico-serprog but didnt see the uf2 file, ig i have to keep looking |
i feel so stupid staring at the forked repository i might order an ch341a 😭😭 |
after much staring i found what u meant and should have been obvious for me, tysmm @matteius, sorry if i bothered much im not much of an github user |
I tried this one and flashrom couldn't even communicate with the programmer -- I think its pio related (not sure entirely, I later tried in my own implementation the pio but couldn't get it to work either) -- in the version I forked (https://codeberg.org/libreboot/pico-serprog) it could communicate but couldn't read more than a small part of the rom without getting an error. That's when I tried again with pio -- to no avail, but I realized only a subset of the serprog spec is implemented: https://github.com/flashrom/flashrom/blob/main/Documentation/serprog-protocol.txt
So the problem I faced in the second version was actually that neither project implemented the commands that tell flashrom how much buffer the device can handle. Once I implemented these and some other commands, I got it to work. I tried 1024, then 512, and then went to 8 because the higher value buffers got out of sync/didn't work for me. But 8 works great -- its slow, takes about 10-12 minutes to read a 16MB rom chip, and about the same to write, except write is a read + write + read, so about 30-40 minutes for that.
Here is my version in case its helpful to anyone, the main branch is whats working for me and then I have two pio related PRs I could never get to work: https://github.com/opensensor/pico-serprog I would have forked from this branch but my code is closer in line with the libreboot codeberg version.
Example:
Note -- the version I have uses a different pin-out than version.
The text was updated successfully, but these errors were encountered: