A Python library for parsing and interpreting AMD microcode container files used in the Linux kernel.
This library provides functionality to read, parse, and interpret AMD microcode container files. These files contain microcode updates for AMD processors and are used by the Linux kernel's microcode loading mechanism.
The format is based on the AMD Linux Kernel MicroCode container format, documented in the Linux kernel source at arch/x86/kernel/cpu/microcode/amd.c.
pip install amd-ucode-containerInstalling the package provides two command line executables:
Parses one or more AMD microcode container files and prints a human-readable summary of their contents, including each section's type and size and, for equivalence tables, the per-CPU equivalence entries.
amd_ucode_container_info <file> [<file> ...]Extracts the individual microcode patches contained in one or more AMD microcode container files, writing each patch to an output directory.
amd_ucode_container_extract <file> [<file> ...] [-o OUTPUT]| Option | Description |
|---|---|
-o, --output |
Directory to extract patches to (defaults to the current working directory). |