flashrom
Read, write, verify, and erase flash chips. tldr-pages
On Linux
Linux
Probe the chip, ensuring the wiring is correct
flashrom --programmer programmerIdentifyRead flash and save it to a file
flashrom --programmer programmer --read path/to/fileIdentifyWrite a file to the flash
flashrom --programmer programmer --write path/to/fileIdentifyVerify the flash against a file
flashrom --programmer programmer --verify path/to/fileIdentifyProbe the chip using Raspberry Pi
flashrom --programmer linux_spi:dev=/dev/spidev0.0Identify