Flashrom & AVRDude support (only legacy mode)

Help us test and improve support for AVRDude and Flashrom (legacy mode)

Firmware files & more info:

Give us feedback!

4 Likes

This is amazing! I hope to be done with the rp2350 debug today and will address this next.

3 Likes

Flashed the firmware. ~@Dreg please take a look at the chat Need some assistance here.~
EDIT: Nevermind I figured it out.

areyouloco@studio:~$ sudo flashrom -p buspirate_spi:dev=/dev/serial/by-id/usb-Bus_Pirate_Bus_Pirate_5_32420B0B33CC62E4-if02,spispeed=8M -r a
flashrom 1.4.0 on Linux 6.10.3-amd64 (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Found Macronix flash chip "MX25L6405" (8192 kB, SPI) on buspirate_spi.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on buspirate_spi.
Found Macronix flash chip "MX25L6406E/MX25L6408E" (8192 kB, SPI) on buspirate_spi.
Found Macronix flash chip "MX25L6436E/MX25L6445E/MX25L6465E" (8192 kB, SPI) on buspirate_spi.
Found Macronix flash chip "MX25L6473E" (8192 kB, SPI) on buspirate_spi.
Found Macronix flash chip "MX25L6473F" (8192 kB, SPI) on buspirate_spi.
Multiple flash chip definitions match the detected chip(s): "MX25L6405", "MX25L6405D", "MX25L6406E/MX25L6408E", "MX25L6436E/MX25L6445E/MX25L6465E", "MX25L6473E", "MX25L6473F"
Please specify which chip definition to use with the -c <chipname> option.
areyouloco@studio:~$ sudo flashrom -p buspirate_spi:dev=/dev/serial/by-id/usb-Bus_Pirate_Bus_Pirate_5_32420B0B33CC62E4-if02,spispeed=8M -c "MX25L6436E/MX25L6445E/MX25L6465E" -r a
flashrom 1.4.0 on Linux 6.10.3-amd64 (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Found Macronix flash chip "MX25L6436E/MX25L6445E/MX25L6465E" (8192 kB, SPI) on buspirate_spi.
Reading flash... done.
areyouloco@studio:~$ sudo flashrom -p buspirate_spi:dev=/dev/serial/by-id/usb-Bus_Pirate_Bus_Pirate_5_32420B0B33CC62E4-if02,spispeed=8M -c "MX25L6436E/MX25L6445E/MX25L6465E" -r a2
flashrom 1.4.0 on Linux 6.10.3-amd64 (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Found Macronix flash chip "MX25L6436E/MX25L6445E/MX25L6465E" (8192 kB, SPI) on buspirate_spi.
Reading flash... done.
areyouloco@studio:~$ diff a a2
areyouloco@studio:~$ echo $?
0

So seems like it worked i used hexedit to see whats inside and looks like some binary data. It’s from some 1000 year old router.

2 Likes

But I had to go to SPI mode first to check the pinout on the LCD and then back to legacy binmode and then flashrom. Confirmed working.

2 Likes

thx for your feedback @AreYouLoco

the LCD minor issue will be fixed in a future PR

1 Like

@Dreg wrote a tutorial showing how to use AVRDUDE, the Bus Pirate and the legacy binmode to dump an Arduino Leonardo.

This is in a new “software” section of the firmware documentation.

I pushed a new docs section for the new binary modes. It currently covers SUMP and FALA.

@Dreg - I pulled all the old SPI binmode docs from Bus Pirate v3.x and put them in a draft page here. When you have a chance, could you please see what needs to be updated to match the Legacy binmode you made? I can do all the final formatting, but I don’t know the technical details of your update.

3 Likes

Sorry for replying so late, I’ve been busy with personal matters.

I’ll take care of everything this week, don’t worry! I’ll do the best I can.

I will also add a flashrom demo in the new section you’ve created.

2 Likes

Hello
I’ve attempted to use fresh flashrom with both the most recent build of BP as well as two builds from the thread, with no sucesss. It stucks at:

flashrom -V -c XM25QH256B -p buspirate_spi:dev=/dev/ttyACM1,spispeed=1M -r a
Initializing buspirate_spi programme

In the recent build I’m getting:

Scripting mode enabled. Terminal locked.
then goes back so at least the communication is initialized properly. Despite -V flag in flashrom I’m getting no further info. Also not sure about the speed - with standalone SPI I was able to read at maximum with 10000kHz, should the flashrom spispeed param corespond to that ?

1 Like

You have to select legacy binmode before running flashrom and the max speed that buspirate can handle now is 8M

See here:

1 Like