Skip to content

amd-zenith/amd-ucode-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMD Microcode Patch

Build CodeQL PyPI version Python versions Snyk package health OpenSSF Scorecard

A Python library for parsing and interpreting AMD microcode patch files.

Installation

pip install amd-ucode-patch

Command line tools

Installing the package provides the following command line tools.

amd_ucode_patch_info

Inspect one or more AMD microcode patch files and print their header information as a table.

amd_ucode_patch_info <files...> [-f {text,md,csv}]

Arguments:

  • files: One or more patch files to inspect. Glob patterns (e.g. *.bin or **/*.bin) are expanded automatically.
  • -f, --format: Output format. One of:
    • text (default): A table rendered for the terminal.
    • md: A Markdown table.
    • csv: Comma separated values.

For every patch file the following fields are reported: file name, date, update revision, loader ID, processor revision, CPUID, family, model, stepping, autorun, encrypted and body size.

Library usage

The package can also be used programmatically:

from amd_ucode_patch.parse import ucode_patch_parse

patch = ucode_patch_parse("firmware.bin")
print(patch.header.cpuid_str)
print(patch.header.update_revision)

About

A Python library for parsing and interpreting AMD microcode patch files

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages