Apocrypha

flashrom

Utility for reading, writing, erasing and verifying flash ROM chips

flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips. It is designed to flash BIOS/EFI/coreboot/firmware/optionROM images on mainboards, network/graphics/storage controller cards, and various other programmer devices. Supports more than 380 flash chips, 260 chipsets, 450 mainboards, 50 PCI devices, 12 USB devices and various parallel/serial port-based programmers. Supports parallel, LPC, FWH and SPI flash interfaces and various chip packages (DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, TSOP40, TSOP48, BGA and more) No physical access needed, root access is sufficient (not needed for some programmers). No bootable floppy disk, bootable CD-ROM or other media needed. No keyboard or monitor needed. Simply reflash remotely via SSH. No instant reboot needed. Reflash your chip in a running system, verify it, be happy. The new firmware will be present next time you boot. Crossflashing and hotflashing is possible as long as the flash chips are electrically and logically compatible (same protocol). Great for recovery. Scriptability. Reflash a whole pool of identical machines at the same time from the command line. It is recommended to check flashrom output and error codes. Speed. flashrom is often much faster than most vendor flash tools. Portability. Supports DOS, Linux, FreeBSD, NetBSD, OpenBSD, DragonFly BSD, Solaris, Mac OS X, and other Unix-like OSes. Partial Windows support is available (no internal programmer support at the moment, hence no "BIOS flashing").

Available in

OverlayNewestEbuildsLast activity
gentoo gitweb ↗ 1.7.0 3 15 h details ›

Versions & arches

VersionOverlay amd64arm64x86ppc64riscvarmloongppc Committed
1.7.0 gentoo amd64 testing arm64 testing x86 testing ppc64 testing riscv testing arm testing loong testing ppc testing view · download · history ↗
1.6.0 gentoo amd64 testing arm64 testing x86 testing ppc64 testing riscv testing arm testing loong testing ppc testing view · download · history ↗
1.5.1 gentoo amd64 stable arm64 stable x86 stable ppc64 testing riscv testing arm stable loong testing ppc stable view · download · history ↗

Use flags of 1.7.0

  • +asm106x Enable programmer for ASMedia SATA controllers
  • atahpt Highpoint (HPT) ATA/RAID controller support
  • atapromise Support for Promise PDC2026x (FastTrak/Ultra)
  • +atavia Support for VIA VT6421A SATA controllers
  • +buspirate-spi Enable Bus Pirate SPI programmer
  • +ch341a-spi Enable WCH CH341A SPI programmer
  • +ch347-spi Enable WCH CH347 SPI programmer
  • +dediprog Dediprog SF100 support
  • +developerbox-spi Enable Devloperbox SPI recovery support
  • +digilent-spi Enable support for Digilent iCEblink40 development board
  • +dirtyjtag-spi Support for DirtyJTAG (a USB-JTAG firmware for STM32 MCUs)
  • +drkaiser Enable Dr. Kaiser programmer
  • +dummy Enable dummy tracing
  • +ft2232-spi Enable ftdi programmer, flashing through FTDI/SPI USB interface
  • +gfxnvidia Enable NVIDIA programmer
  • +internal Enable internal/onboard support
  • +it8212 Support for ITE IT8212F ATA/RAID controllers
  • +jlink-spi Support for SEGGER J-Link and compatible devices
  • +linux-mtd Enable support for Linux mtd SPI flash devices
  • +linux-spi Enable support for Linux userspace spidev interface
  • parade-lspcon Enable support for Parade lspcon USB-C to HDMI protocol translator
  • mediatek-i2c-spi Support for Mediatek LCD controllers
  • mstarddc-spi Support for SPI flash ROMs accessible through DDC in MSTAR-equipped displays
  • +nic3com Enable 3Com NIC programmer
  • +nicintel Support for Intel NICs
  • +nicintel-eeprom Support for EEPROMs on Intel Gigabit network cards
  • +nicintel-spi Support for SPI on Intel NICs
  • nicnatsemi Support for National Semiconductor NICs
  • +nicrealtek Support for Realtek NICs
  • +nv-sma-spi Support for NVIDIA System Management Agent
  • +ogp-spi Enable support for OGP (Open Graphics Project) SPI flashing
  • +pickit2-spi Support for SPI flash ROMs accessible via Microchip PICkit2
  • +pony-spi Enable support for SI-Prog like hardware by Lancos
  • +raiden-debug-spi Support for Chrome EC based debug tools - SuzyQable, Servo V4, C2D2 & uServo
  • +rayer-spi RayeR SPIPGM hardware support
  • realtek-mst-i2c-spi Enable support for Realtek RTD2142 MST
  • +satamv Enable programmer for Marvell SATA controllers
  • +satasii Enable programmer for SiI SATA controllers
  • +serprog Enable Serial Flasher programmer
  • +spidriver Enable programmer for Excamera Labs SPIDriver
  • +stlinkv3-spi Enable SPI programmer using STLINK-V3
  • +usbblaster-spi Enable support for Altera USB-Blaster dongles
  • +internal-dmi Enable internal DMI decoding rather than use sys-apps/dmidecode
  • test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
  • tools Install ich_descriptor_tool, a tool for reading descriptor-mode SPI-flash images for Intel chipsets

Runtime dependencies of 1.7.0

show 87 lines
atahpt? (
)
atapromise? (
)
atavia? (
)
ch341a-spi? (
)
dediprog? (
)
developerbox-spi? (
)
digilent-spi? (
)
dirtyjtag-spi? (
)
drkaiser? (
)
ft2232-spi? (
)
gfxnvidia? (
)
internal? (
)
it8212? (
)
jlink-spi? (
)
nic3com? (
)
nicintel? (
)
nicintel-eeprom? (
)
nicintel-spi? (
)
nicnatsemi? (
)
nicrealtek? (
)
nv-sma-spi? (
)
ogp-spi? (
)
pickit2-spi? (
)
raiden-debug-spi? (
)
satamv? (
)
satasii? (
)
stlinkv3-spi? (
)
usbblaster-spi? (
)
!internal-dmi? (
)