Skip to content

Add script to print dmcub .bin version

Leo Li requested to merge leoli/amd:master into master

Add a python script that reads a linux dmcub firmware .bin header and prints the detailed version + crc32 checksum in a human-friendly manner.

Example output:

$ python get_dmcub_fw_version.py /lib/firmware/amdgpu/dcn_3_1_5_dmcub.bin
/lib/firmware/amdgpu/dcn_3_1_5_dmcub.bin:
   major: 5 (0x5)
   minor: 0 (0x0)
revision: 15 (0xf)
  hotfix: 0 (0x0)
 is test: 0
is vbios: 0
----------------
  raw: 83889920 (0x5000f00)
crc32: 1690631627 (0x64c4fdcb)

Can also pipe through stdin

$ cat /lib/firmware/amdgpu/dcn_3_1_5_dmcub.bin | python get_dmcub_fw_version.py
Edited by Leo Li

Merge request reports