flashrom

Identify, read, write, verify, and erase flash chips

brewmacoslinux
Try with needOr install directly
Source

About

Identify, read, write, verify, and erase flash chips

Commands

flashrom

Examples

List all detected flash chips and programmers$ flashrom
Read flash chip contents and save to file$ flashrom -p linux_spi:dev=/dev/spidev0.0 -r backup.bin
Write firmware to flash chip$ flashrom -p linux_spi:dev=/dev/spidev0.0 -w firmware.bin