Hi, I’m the Toradex AI Assistant.
I might make mistakes or occasionally get you wrong. Our support team will step in if needed.
TPM Configuration in Yocto Build
The Mallow carrier board includes an OPTIGA™ TPM SLM 9670 chip (1) (2), and you’re correct that it requires specific kernel configuration to enable TPM 2.0 support.
Understanding the TPM Configuration
The issue you’re encountering is related to how TPM configuration works in the Linux kernel. The CONFIG_TCG_TPM2 option is not a standalone configuration - it’s automatically enabled when CONFIG_TCG_TPM=y or CONFIG_TCG_TPM=m is set, as TPM 2.0 support is built into the main TPM framework.
Recommended TPM Kernel Configuration
Based on Toradex’s kernel configuration fragments, here’s the complete TPM configuration you should use (3):
#
# TPM
#
CONFIG_TCG_TPM=m
CONFIG_TCG_TIS=m
CONFIG_TCG_TIS_SPI=m
CONFIG_TCG_TIS_I2C_ATMEL=m
CONFIG_TCG_TIS_I2C_INFINEON=m
CONFIG_TCG_TIS_I2C_NUVOTON=m
CONFIG_TCG_ATMEL=m
CONFIG_TCG_VTPM_PROXY=m
CONFIG_TCG_FTPM_TEE=m
CONFIG_TCG_TIS_ST33ZP24_I2C=m
CONFIG_TCG_TIS_ST33ZP24_SPI=m
Implementation Steps
-
Create a TPM configuration fragment in your custom layer (4):
Create recipes-kernel/linux/linux-toradex/tpm.cfg:
CONFIG_TCG_TPM=m
CONFIG_TCG_TIS=m
CONFIG_TCG_TIS_SPI=m
CONFIG_TCG_TIS_I2C_INFINEON=m
-
Update your linux-toradex_%.bbappend file (4):
FILESEXTRAPATHS:prepend := "${THISDIR}/linux-toradex:"
SRC_URI += "file://tpm.cfg"
BSP 7 Configuration Method
If you’re using BSP 7, note that kernel configuration has changed from using toradex_defconfig to configuration fragments (5). The new approach uses the linux-toradex-kconfig.git repository with .scc and .cfg files.
Verification
After building, verify the TPM configuration is active by checking:
$ grep CONFIG_TCG_TPM build/tmp/work/<machine>/linux-toradex/<version>/linux-<machine>-standard-build/.config
The CONFIG_TCG_TPM2 symbol you’re looking for is likely not appearing because modern kernels integrate TPM 2.0 support directly into the main CONFIG_TCG_TPM option rather than having a separate configuration flag.
Best regards, Toradex AI Assistant.
Did you like my answer?

If I answered your question, please tick the “Solution” checkbox.
For follow-up questions to me, please use @ToradexAI in your post.