-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys-kernel/coreos-modules: Enable TPM TIS drivers for arm64 #1755
Conversation
sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/commonconfig-6.6
Outdated
Show resolved
Hide resolved
CONFIG_TCG_TIS_I2C_ATMEL=m | ||
CONFIG_TCG_TIS_I2C_INFINEON=m | ||
CONFIG_TCG_TIS_I2C_NUVOTON=m | ||
CONFIG_TCG_TIS_SPI=m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the CI failed
ERROR: sys-kernel/coreos-modules-6.6.21::coreos failed (configure phase):
2024-03-15T19:58:51.4682912Z * Requested options not enabled in build:
2024-03-15T19:58:51.4683239Z * CONFIG_TCG_TIS_SPI
Most likely, because CONFIG_SPI is required for this flag. Maybe we can add I2C and SPI later on, if needed. Adding these two options seem to enable a kernel tree that might bulk up the size.
The arm64 kernel didn't have TPM support for the qemu TPM2 TIS software TPM. This moves the TPM TIS kernel module enablement to the common config of both architectures. Authored-by: Kai Lueke <[email protected]> Signed-off-by: Jeremi Piotrowski <[email protected]>
@pothos I've pushed an amended commit that drops the I2C/SPI enablement. |
Build action triggered: https://github.com/flatcar/scripts/actions/runs/8682904445 |
On arm64 the tpm is now correctly detected:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, fixes the ARM64 tpm test (the one it is supposed to fix).
Should we merge this PR to fix the arm64 CI failures? |
sys-kernel/coreos-modules: Enable TPM TIS drivers for arm64
Cherry-picked for 3913 |
The arm64 kernel didn't have TPM support for the qemu TPM2 TIS software TPM.
This moves the TPM TIS kernel module enablement to the common config of both architectures. In addition it enables the SPI and I2C drivers.
How to use
This should make the clevis test work on arm64 as it does on amd64.
Note that there is still a service error message on first boot which causes kola to mark the test failed.
Testing done
TODO: When the build succeeds we could try the (fixed) kola test or do a manual test