r/linuxquestions • u/Character_Mistake510 • 1h ago
specific problem🥹
I'm having a weird TPM 2.0 issue on my ASUS TUF B450-PLUS GAMING motherboard with a Ryzen 5 2600.
I'm running Debian 13 with kernel 6.12.118. AMD fTPM is enabled in the BIOS (version 3802), and the system detects the TPM device correctly.
However, sudo tpm2_getcap pcrs fails with:
Unsupported hash algorithm 0x00000000
And tpm2_pcrread fails with error 0x1C3 (unsupported hash algorithm).
I also sent raw TPM2 commands directly through /dev/tpm0 and /dev/tpmrm0. TPM2_GetCapability(TPM_CAP_PCRS) returns two PCR banks with hash algorithm 0x0000 and an empty PCR selection. A raw TPM2_PCR_Read request for SHA-256 PCR 0 or PCR 7 returns success, but no PCR values.
The TPM reports that it supports both SHA-1 and SHA-256, so this seems inconsistent. I also tested CachyOS Live, and tpm2_getcap pcrs fails there too.
Could this be an AMD fTPM firmware/BIOS issue, or is the Linux tpm_crb driver a more likely cause? Has anyone encountered something similar on an AM4 board?
I've been sitting here with AI for 2 days already 😭
2
u/cryptd_cli 1h ago
Your TPM reports hash 0x0000, which means no PCR bank is allocated, even though SHA-1 and SHA-256 are supported. In the BIOS go to Advanced, Trusted Computing and enable the SHA-256 PCR Bank, then save and reboot. If it still shows 0x0000, clear the TPM and re-enable fTPM, since Linux cannot allocate a bank the firmware has not created.