flashrom

Read, write, verify and erase flash chips.

TLDR

Probe the chip, ensuring the wiring is correct

$ flashrom --programmer [programmer]
copy


Read flash and save it to a file
$ flashrom -p [programmer] --read [path/to/file]
copy


Write a file to the flash
$ flashrom -p [programmer] --write [path/to/file]
copy


Verify the flash against a file
$ flashrom -p [programmer] --verify [path/to/file]
copy


Probe the chip using Raspberry Pi
$ flashrom -p [linux_spi:dev=/dev/spidev0.0]
copy

Copied to clipboard