# Help me test the flashrom v1.7 binary build

**URL:** <https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542>\
**Category:** General\
**Created:** [August 15, 2026, 4:53am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542 "2026-08-15T04:53:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 15, 2026, 4:53am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/1 "2026-08-15T04:53:16Z")

</div>

## Flashrom v1.7 binary just dropped for Windows!

> **[GitHub - therealdreg/flashrom\_build\_windows\_x64: flashrom Dreg's build for Windows x64 & x32...](https://github.com/therealdreg/flashrom_build_windows_x64/)**
>
> flashrom Dreg's build for Windows x64 & x32 Buzzpirat, raiden\_debug\_spi, ft2232\_spi, serprog, buspirate\_spi, dediprog, developerbox, pony\_spi, usbblaster\_spi, pickit2\_spi, ch341a\_spi, ch347\_spi, digilent\_spi, stlinkv3\_spi, dirtyjtag\_spi.. x32 build is included.

> **[Flashrom](https://docs.buspirate.com/docs/software/flashrom/)**
>
> The Bus Pirate can serve as a programmer and dumper for flash memory chips, using the command-line utility Flashrom.
> Flashrom is a versatile utility for identifying, reading, writing, verifying, and erasing flash chips on a wide range of...

# Can you help me test the flashrom v1.7 binary build?

It’s enough if you just confirm whether you can read and write the SPI flash chips you have on hand. If there’s any problem, let me know and I’ll check whether there’s an issue in the **BP-firmware** or whatever. Thank you very much.

* * *

Use the last firmware: [Bus Pirate firmware auto build: main branch - #674 by Bus-Pirate](https://forum.buspirate.com/t/bus-pirate-firmware-auto-build-main-branch/20/999999)

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 15, 2026, 4:56am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/2 "2026-08-15T04:56:31Z")

</div>

# TEST cmd

randomize\_bin.py

```auto
#!/usr/bin/env python3
"""Overwrite every byte of a .bin file with random data. File size never changes."""
import argparse, os, sys

def randomize(path):
    with open(path, "r+b") as f:
        data = f.read()
        unique = set(data)
        state = "all 0xFF" if unique == {0xFF} else "all 0x00" if unique == {0x00} else "mixed"
        print(f"Original content: {state}.")
        f.seek(0)
        f.write(os.urandom(len(data)))
    print(f"Done: '{path}' randomized ({len(data)} bytes, size unchanged).")

if __name__ == " __main__":
    p = argparse.ArgumentParser(description="Overwrite every byte of a .bin file with random data, keeping its size.")
    p.add_argument("file", help="Path to the .bin file to randomize")
    args = p.parse_args()
    if not os.path.isfile(args.file):
        sys.exit(f"Error: '{args.file}' does not exist or is not a file.")
    randomize(args.file)

```

flashrom.exe --progress -V -p buspirate\_spi:dev= **COM??** ,spispeed=125k,serialspeed=115200 -E

del flash\_content.img

flashrom.exe --progress -V -p buspirate\_spi:dev= **COM??** ,spispeed=125k,serialspeed=115200 -r flash\_content.img

python randomize\_bin.py flash\_content.img

flashrom.exe --progress -V -p buspirate\_spi:dev= **COM??** ,spispeed=125k,serialspeed=115200 -w flash\_content.img

flashrom.exe --progress -V -p buspirate\_spi:dev= **COM??** ,spispeed=125k,serialspeed=115200 -v flash\_content.img

* * *

# TEST TABLE (read+write) - 10 cm dupont cable

## bp6rev2

- SST25VF080B → r: ✅ | w: ✅
- W25Q64BV/W25Q64CV/W25Q64FV → r: ✅ | w: ✅
- AT25DF021A → r: ✅ | w: ✅
- W25Q256JV
- AT45DB161D
- P25Q16H
- GD25Q64
- MX25L1606E
- MX25U4033E

## BP5XL ← Dreg doesn’t have it

- SST25VF080B
- W25Q64BV/W25Q64CV/W25Q64FV
- AT25DF021A
- W25Q256JV
- AT45DB161D
- P25Q16H
- GD25Q64
- MX25L1606E
- MX25U4033E

## bp5rev10 ← Dreg doesn’t have it

- SST25VF080B
- W25Q64BV/W25Q64CV/W25Q64FV
- AT25DF021A
- W25Q256JV
- AT45DB161D
- P25Q16H
- GD25Q64
- MX25L1606E
- MX25U4033E

## bp5rev8-sd

- SST25VF080B → 👎
- W25Q64BV/W25Q64CV/W25Q64FV → 👎
- AT25DF021A
- W25Q256JV
- AT45DB161D
- P25Q16H
- GD25Q64
- MX25L1606E
- MX25U4033E

## bp3.6 (very old)

- SST25VF080B → r: ✅ | w: ✅
- W25Q64BV/W25Q64CV/W25Q64FV → r: ✅ | w: ✅
- AT25DF021A → r: ✅ | w: ✅
- W25Q256JV
- AT45DB161D
- P25Q16H
- GD25Q64
- MX25L1606E
- MX25U4033E

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 15, 2026, 9:12am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/3 "2026-08-15T09:12:36Z")

</div>

I’ve bought these to test: W25Q256JV, AT25DF021A, AT45DB161D, P25Q16H, GD25Q64, MX25L1606E, MX25U4033E, SST25VF080B, W25Q64BV (they’ll be arriving over the next few weeks…)

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 15, 2026, 9:35am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/4 "2026-08-15T09:35:02Z")

</div>

The **bp6rev2** works fine - for the moment - as expected 😊 . But when using the standard BPcable + **bp5rev8-sd** , some bytes are coming through incorrectly 😩 , and it’s not always the same position. I’m going to check the firmware… Hopefully I can fix it easily by tweaking the code a bit. We’ll see…

---

<div class="post-metadata">

**Author:** ![mbrugman](https://forum.buspirate.com/user_avatar/forum.buspirate.com/mbrugman/32/2055_2.png) [@mbrugman](https://forum.buspirate.com/u/mbrugman)\
**Post date:** [August 15, 2026, 5:04pm UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/5 "2026-08-15T17:04:58Z")

</div>

Unfortunately, I don’t have a Windows box. Maybe I could try setting up a VM, but I’d have to do which chips I have around to see if it’s worthwhile

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 15, 2026, 5:18pm UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/6 "2026-08-15T17:18:32Z")

</div>

> [@Dreg](#):
>
> flashrom v1.7

@mbrugman could you test the native Linux build of flashrom v1.7?

---

<div class="post-metadata">

**Author:** ![mbrugman](https://forum.buspirate.com/user_avatar/forum.buspirate.com/mbrugman/32/2055_2.png) [@mbrugman](https://forum.buspirate.com/u/mbrugman)\
**Post date:** [August 15, 2026, 5:20pm UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/7 "2026-08-15T17:20:04Z")

</div>

I could. Just let me try to track down some flash chips, haha. Might be a few days before I got to that, if that’s ok

---

<div class="post-metadata">

**Author:** ![masterX244](https://forum.buspirate.com/user_avatar/forum.buspirate.com/masterx244/32/1186_2.png) [@masterX244](https://forum.buspirate.com/u/masterX244)\
**Post date:** [August 15, 2026, 6:30pm UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/8 "2026-08-15T18:30:28Z")

</div>

could also be some wire signal interference crap. spurious edges can cause the weirdest effects when data desyncs

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 16, 2026, 2:47am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/9 "2026-08-16T02:47:59Z")

</div>

In case anyone gets bored and is curious, here’s how I’m going to set everything up so it’s plug-and-play and easy to use.

I’m going to label everything with a permanent marker and then put cyanoacrylate over it. I’ll use electrical tape + permanent marker + cyanoacrylate to label the chip model and the maximum voltage I’m going to use it at.

That way, the labels don’t get rubbed off by handling, they last a really long time, and I don’t have to keep rewriting them (If I get a little IPA residue on my hand, it’s not really a problem…)

First, I grabbed some typical 2.54 mm male-female stacked headers. That way, I can connect the standard Bus Pirate cable on the male side and use the female side to connect to the flash memories.

I’m going to sacrifice this cable and solder it directly to make sure I get a good electrical connection.

 ![image](https://forum.buspirate.com/uploads/default/original/2X/a/a2891e534d809fa042674df6752fece5f7e1dc80.jpeg)

I’m marking the cable’s “polarity” so they’ll all be wired the same way.

 ![image](https://forum.buspirate.com/uploads/default/original/2X/c/c92e4199c65518482b62364268e34dfe8f16a9c1.jpeg)

I bought a bunch of those typical ready-made boards for Winbond SPI flash memory. They’re pretty cheap when you buy them in bulk, so I’m just desoldering the SOIC chips they come with and replacing them with all the new ones I bought. That way, I don’t have to design and make a PCB.

 ![image](https://forum.buspirate.com/uploads/default/original/2X/1/175d20183c3848b7418f33c93d8c858e7d1dbd4f.jpeg)

Next step: I’m attaching some electrical tape to the module with cyanoacrylate and writing the part number and the maximum voltage I’ll use on it. That way, you can tell at a glance what each module is.

 ![image](https://forum.buspirate.com/uploads/default/original/2X/4/4b52e99b6dfd6ae7729ef05c02917aad843e7dcf.jpeg)

 ![image](https://forum.buspirate.com/uploads/default/original/2X/1/19a7c009df971da70fed67f80f594fdfe5ba5421.jpeg)

Some of the spi flash memories aren’t the exact this SOIC package that fits these PCBs perfectly, like the one in the photo. They’re slightly narrower, but that’s fine—you just center them carefully and, with a bit of solder and patience, you can get a good fit and solid electrical contact.

I know all of this is pretty hacky and messy, and there’s no going back once I do it, but I’ll be using these for a long time and I want to have them ready to test everything with flashrom, the `flash probe` command, etc. Maybe it seems like way too much effort 🤣

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 16, 2026, 5:31am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/10 "2026-08-16T05:31:23Z")

</div>

I’ve had some problems with the standard Bus Pirate cables for my setups. I’ve tried all the used ones I had and even pulled out a brand new unused one:

 ![image](https://forum.buspirate.com/uploads/default/original/2X/f/f59c809cdd1bced7820a107d92928233f1d94323.jpeg)

And the problem persists,

 ![image](https://forum.buspirate.com/uploads/default/original/2X/d/d82b51bf17d7a80c671804a0fe75f701d5781ec5.jpeg)

* * *

so I made a DIY 10cm Dupont cable and everything works much better.

 ![image](https://forum.buspirate.com/uploads/default/original/2X/6/62bbeda9d398c40bca82db9bb4ff3b41ceb917fd.jpeg)

I’ll put in the table which things work well in my setups with the 10cm

# Example AT25DF021A

### BP standard original NEW cable

SPI\> [0x9F r:3]

CS Enabled  
TX: 0x9F  
RX: 0x1E 0x08 0x00 **← BAD**  
CS Disabled

### Dreg’s DIY 10cm dupont cable

SPI\> [0x9F r:3]

CS Enabled  
TX: 0x9F  
RX: 0x1F 0x43 0x01 **← GOOD**  
CS Disabled

And flashrom: **Found Atmel flash chip “AT25DF021A” (256 kB, SPI).**

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 16, 2026, 3:20pm UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/11 "2026-08-16T15:20:32Z")

</div>

Since the 10-pin female Dupont connector is a bit of a pain to plug into and remove from the Bus Pirate (it fits too tightly), I made a short cable version using an MX connector and crimped MX wires, just like the original Bus Pirate cables.

 ![image](https://forum.buspirate.com/uploads/default/original/2X/0/0b0a811fb19e94f718e5d73181a9c0ab14525805.jpeg)

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 17, 2026, 1:21am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/12 "2026-08-17T01:21:55Z")

</div>

New PR! It had a few bugs that made reads not always repeatable, so I fixed those and  
tested it on a BP6 and a BP5 rev8 against several flash chips and AVRs.  
Any review or testing would be very welcome:

> <https://github.com/DangerousPrototypes/BusPirate5-firmware/pull/307>
>
> This makes the legacy binary mode (flashrom / AVRdude) reliable enough
> that I t…hink it can drop the EXPERIMENTAL and BETA labels.
> 
> The previous version had a few bugs that could show up as corrupted
> bytes or a stalled host, so reads were not always repeatable. Those are
> fixed, and a few smaller things were tidied along the way:
> 
> \* SPI speeds now match what flashrom documents, so asking for 1M really
> gives 1MHz.
> \* Errors are reported to the host instead of leaving it waiting.
> \* The mode recovers on its own if the host disappears mid command.
> \* Pin voltage readings pause while the mode runs. On older Bus Pirate 5
> hardware the analog mux that measures them briefly touches the SPI
> pins, which was enough to corrupt transfers. Newer boards are not
> affected. This is mentioned on screen so it does not look like a fault.
> \* You can now exit with 'q' on the terminal, as well as with the button.
> 
> \### Tested on hardware
> 
> Everything below used random data with verified entropy, written and
> read back with a byte for byte comparison.
> 
> | Client | Device | Board | Result |
> |----------|-------------------|-------------|--------|
> | flashrom | Winbond W25Q64 | BP6 | 56MB read over 7 SPI speeds, identical every time |
> | flashrom | Atmel AT25DF021A | BP6, BP5r8 | Full erase, write and verify, read back at 7 speeds |
> | avrdude | ATmega328P | BP6, BP5r8 | Flash and EEPROM |
> | avrdude | ATmega32U4 | BP6 | Flash |
> | avrdude | ATmega2560 | BP6, BP5r8 | Flash and EEPROM, exercises the \>64KB address path |
> 
> \### Test tool
> 
> \`tools/legacy4third\_usbtest.py\` is a host side test for this mode. Every
> reply in the protocol has a length fixed by the request, so a lost or
> duplicated byte shows up right away. It replays the real flashrom and
> avrdude sequences, sweeps the opcode space, and checks recovery from
> garbage input and from a host that goes away.
> 
> Combined runs across both boards: around 287,000 commands and 125MB of
> payload with no framing errors, plus 50 rounds of random garbage that it
> recovered from every time.
> 
> \### Why this should be steadier
> 
> Most of the earlier trouble came from the USB side being driven from
> both cores at once. It now stays on one core and talks to the protocol
> through the queues the firmware already had for this, which removes a
> whole class of intermittent failures. Error paths also keep the reply
> length intact, so a problem surfaces as a clean error rather than a
> host that sits and waits.

@ian @mbrugman

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 24, 2026, 6:55am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/13 "2026-08-24T06:55:21Z")

</div>

![IMG_8356](https://forum.buspirate.com/uploads/default/original/2X/b/b9af4a5d7952475c08ff0c196b9b94034037892b.jpeg)

All the memory chips I was missing have arrived, that was fast! Time to solder!

“Good review thank you” wtf

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 29, 2026, 12:24am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/14 "2026-08-29T00:24:43Z")

</div>

Done!

 ![image](https://forum.buspirate.com/uploads/default/original/2X/b/b1770d686f597b005908898651ce7e9e200c3719.jpeg)

---

<div class="post-metadata">

**Author:** ![henrygab](https://forum.buspirate.com/user_avatar/forum.buspirate.com/henrygab/32/1330_2.png) [@henrygab](https://forum.buspirate.com/u/henrygab)\
**Post date:** [August 30, 2026, 5:17am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/15 "2026-08-30T05:17:08Z")

</div>

Never thought to use superglue to lock the sharpie writing. That alone is a worthy hack.

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 30, 2026, 5:21am UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/16 "2026-08-30T05:21:14Z")

</div>

It’s mainly useful so you don’t smudge the permanent marker ink with your fingers, and if you spill some IPA, it doesn’t affect the labels. That said… it’s a pain in the ass to do.. And it takes a while to dry.

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [August 31, 2026, 3:06pm UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/17 "2026-08-31T15:06:05Z")

</div>

@ian has merged my changes to AVRDude and flashrom, so everything should work better now. If anyone can test it and give me some feedback, I’d really appreciate it. I’ll also be testing it with all the memory chips I’ve bought. @AreYouLoco

[https://forum.buspirate.com/t/bus-pirate-5-auto-build-main-branch/20/999999](https://forum.buspirate.com/t/bus-pirate-5-auto-build-main-branch/20/999999)

---

<div class="post-metadata">

**Author:** ![AreYouLoco](https://forum.buspirate.com/user_avatar/forum.buspirate.com/areyouloco/32/460_2.png) [@AreYouLoco](https://forum.buspirate.com/u/AreYouLoco)\
**Post date:** [September 2, 2026, 1:47pm UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/18 "2026-09-02T13:47:58Z")

</div>

Will try to find time and test it. i have some Winbonds on hand that may be reprogrammed. And some GigaDevice to read out.

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [September 7, 2026, 11:07pm UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/19 "2026-09-07T23:07:51Z")

</div>

The Big memory works! ❤

 ![IMG_8546](https://forum.buspirate.com/uploads/default/original/2X/8/8ca9b749311b3295b58e010452a72ccda0d05ed2.jpeg)

My short DIY cable

 ![IMG_8548](https://forum.buspirate.com/uploads/default/original/2X/4/4d3ec72031b459ed9261bedd5c250ead5edcc4ac.jpeg)

---

<div class="post-metadata">

**Author:** ![Dreg](https://forum.buspirate.com/user_avatar/forum.buspirate.com/dreg/32/175_2.png) [@Dreg](https://forum.buspirate.com/u/Dreg)\
**Post date:** [September 18, 2026, 4:41pm UTC](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542/20 "2026-09-18T16:41:41Z")

</div>

All setup ready to test!

 ![image](https://forum.buspirate.com/uploads/default/original/2X/a/aff2019126b671444540db0ebbf15b0f86806c16.jpeg)

[Next page](https://forum.buspirate.com/t/help-me-test-the-flashrom-v1-7-binary-build/1542.md?page=2)
