Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

161.19. flashrom-1.8.0

Read and write a SPI flash chip — including this machine's BIOS

1.8.0-1 · GPL-2.0-or-later AND GPL-2.0-only · 0.3 SBU · 4.2 MiB, 10 files · 41_system, 478 of 1047 · ports/core/embedded/flashrom

Homepage: https://flashrom.org/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/embedded.txt:

The recovery path for a machine that will not POST, and the way a router's flash gets read. The most destructive program in the tree; its own safety is that nothing happens without naming a programmer.

Depends on: meson, ninja, pkgconf, libusb, libftdi, libjaylink, pciutils, openssl, python3-sphinx, bash-completion.

Required by: no port names it.

Sources: flashrom-1.8.0.tar.xz (5.1 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install flashrom'

build.sh:

meson setup build \
	--prefix=/usr \
	--sysconfdir=/etc \
	--libdir=lib \
	--buildtype=release \
	-Dprogrammer=auto,internal,ch341a_spi,dediprog,ft2232_spi,jlink_spi \
	-Drpmc=enabled \
	-Dbash_completion=enabled \
	-Duse_git_version=disabled \
	-Dtests=disabled \
	-Dman-pages=enabled \
	-Ddocumentation=disabled
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

Programs: flashrom.

Libraries: libflashrom.a, libflashrom.so.

Directories: /usr/share/licenses/flashrom.