flashrom
Theory
Key Features
Cheat Sheet
# Install Flashrom on Linux
sudo apt-get update
sudo apt-get install flashrom
# Install Flashrom on macOS (using Homebrew)
brew install flashrom
# Detect the flash chip on your device
sudo flashrom -p <programmer>
# Example with Bus Pirate
flashrom -p buspirate_spi:dev=/dev/ttyUSB0,spispeed=1M
# Read flash memory and save it to a file
sudo flashrom -p <programmer> -r backup.bin
# Write a new firmware image to the flash chip
sudo flashrom -p <programmer> -w firmware.binInstallation
Usage
Detecting the Chip
Reading the Flash
Writing to the Flash
Expected Output
Important Notes
Resources
Last updated