Skip to content

amd-zenith/amd-ucode-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMD Microcode Container Parser

Build CodeQL PyPI version Python versions Snyk package health OpenSSF Scorecard

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.

Installation

pip install amd-ucode-container

Command line tools

Installing the package provides two command line executables:

amd_ucode_container_info

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> ...]

amd_ucode_container_extract

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).

About

A Python library for parsing and interpreting AMD microcode container files

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages