Skip to content

Add PikeOS TPM driver transport (--enable-pikeos) - #657

Draft
dgarske wants to merge 1 commit into
wolfSSL:masterfrom
dgarske:pikeos
Draft

dgarske wants to merge 1 commit into
wolfSSL:masterfrom
dgarske:pikeos

Conversation

@dgarske

@dgarske dgarske commented Oct 28, 2026

Copy link
Copy Markdown
Member

Description

Adds --enable-pikeos (CMake WOLFTPM_INTERFACE=PIKEOS) for PikeOS, where the TPM driver is reached through the file provider (vm_open/vm_write/vm_read) and takes whole TPM commands, like the Linux /dev/tpm0 transport.

  • src/tpm2_pikeos.c, wolftpm/tpm2_pikeos.h: the transport. The device defaults to tpm0:dev0; override with TPM2_PIKEOS_DEV.
  • No TIS layer: TPM2_IoCb is NULL and the driver owns locality. wolfTPM still sends TPM2_Startup.
  • wolftpm/tpm2_types.h, examples/tpm_test.h: sleep and time helpers using p4_sleep/p4_get_time.
  • CI: compile-only job with stub p4.h/vm.h.

Testing

Cross-compiled with the PikeOS 5.1 x86_64 SDK.

@dgarske dgarske self-assigned this Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant