Command-line utility to detect, read, write, verify, and erase flash chips. Often used for BIOS, EFI, coreboot, and firmware images in-system or on external programmers.
Overview
flashrom is a utility for detecting, reading, writing, verifying, and erasing flash chips. It is commonly used to flash BIOS, EFI, coreboot, or other firmware images in-system on supported mainboards, and it also supports external devices such as network cards and SATA controller cards that can program flash chips.
The tool covers a wide range of chip packages and protocols, including LPC, FWH, parallel flash, and SPI. Documentation warns against using flashrom on laptops because embedded controllers may interact badly with flash access and brick the machine. Users are advised to back up flash contents before writing.
Packages for flashrom are available through various Linux distributions, listed on repology.org. The project builds with Meson using standard configure, compile, test, and install steps. A man page documents command-line usage.
Because it runs as a system utility on the host, it fits workflows where firmware must be inspected or updated from the operating system rather than from a dedicated vendor tool alone.
Key features
- Flash chip detection
- Read and write flash images
- Verify and erase operations
- In-system mainboard flashing
- External programmer device support
- Multiple flash protocols supported
- Meson-based build
- Man page documentation
Use cases
- Updating motherboard firmware images
- Backing up BIOS or EFI flash
- Flashing NIC or SATA card firmware
- coreboot installation workflows
- Verifying flash chip contents