Skip to content

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

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

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

Conversation

@dgarske

@dgarske dgarske commented Oct 23, 2026

Copy link
Copy Markdown
Member

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 /dev/tpm0; 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.

Cross-compiled with the PikeOS 5.1 x86_64 SDK. Not yet tested on target hardware.

@dgarske dgarske self-assigned this Oct 23, 2026
@dgarske dgarske closed this Oct 23, 2026
@dgarske
dgarske deleted the pikeos branch October 23, 2026 18:23
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