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

80.12. intel-ucode-20260812

Intel processor microcode, bundled for early loading

20260812-1 · LicenseRef-Intel-Microcode · 0.1 SBU · 16.9 MiB, 3 files · 41_system, 230 of 1047 · ports/core/boot/intel-ucode

Homepage: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files

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

CPU microcode. AMD's blobs come with firmware-amd; Intel ships its own tree and this is the whole of it, no per-family curation — script/phases/70_image/090_initramfs.sh turns both into the uncompressed cpio the early loader scans for.

Depends on: nothing a recipe names.

Required by: no port names it.

Sources: intel-ucode-20260812.tar.gz (16.8 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 intel-ucode'

build.sh:

install -d "$PKG/usr/lib/firmware"
cat intel-ucode/* > "$PKG/usr/lib/firmware/intel-ucode.bin"
chmod 644 "$PKG/usr/lib/firmware/intel-ucode.bin"

_bundle="$PKG/usr/lib/firmware/intel-ucode.bin"
_end=$(stat -c %s "$_bundle")
_off=0
_n=0
while [ "$_off" -lt "$_end" ]; do
	_hdr=$(od -An -tu4 -j "$_off" -N 40 -v "$_bundle")
	set -- $_hdr
	if [ "$1" != "1" ]; then
		echo "ERROR: intel-ucode: record at $_off is not microcode" >&2
		exit 1
	fi
	_size=$9
	[ "$8" = "0" ] && _size=2048
	if [ "$_size" -le 0 ] || [ $((_off + _size)) -gt "$_end" ]; then
		echo "ERROR: intel-ucode: record at $_off runs past the bundle" >&2
		exit 1
	fi
	_off=$((_off + _size))
	_n=$((_n + 1))
done
echo "intel-ucode: $_n microcode records, $_end bytes, walk ends clean"

install -Dm644 license "$PKG/usr/share/licenses/$name/LICENSE"

Directories: /usr/lib/firmware, /usr/share/licenses/intel-ucode.