[PR #231] Add qemu support for I2C based TPM device #287

Open
opened 2026-01-31 21:30:36 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/qemu/qemu/pull/231

State: closed
Merged: No


This is a prototype 1.

TODO: Cleanup

Run swtpm emulator
$ swtpm socket --tpmstate dir=/tmp/mytpm1 --ctrl type=unixio,path=/tmp/mytpm1/swtpm-sock --tpm2 --log level=20

Run qemu by adding following lines for rainier machine.
$ -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis-i2c,tpmdev=tpm0,bus=aspeed.i2c.bus.12,address=0x2e

**Original Pull Request:** https://github.com/qemu/qemu/pull/231 **State:** closed **Merged:** No --- This is a prototype 1. TODO: Cleanup Run swtpm emulator $ swtpm socket --tpmstate dir=/tmp/mytpm1 --ctrl type=unixio,path=/tmp/mytpm1/swtpm-sock --tpm2 --log level=20 Run qemu by adding following lines for rainier machine. $ -chardev socket,id=chrtpm,path=/tmp/mytpm1/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis-i2c,tpmdev=tpm0,bus=aspeed.i2c.bus.12,address=0x2e
claunia added the pull-request label 2026-01-31 21:30:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/qemu#287