Skip to content

Commit 0d63bf2

Browse files
updates to documentation
1 parent fdd2b5d commit 0d63bf2

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

docs/SWTPM.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,28 @@ make
3030
## Build Options
3131

3232
* `WOLFTPM_SWTPM`: Use socket transport (no TIS layer)
33-
* `TPM2_SWTPM_HOST`: The host TPM address (default=localhost)
34-
* `TPM2_SWTPM_PORT`: The socket port (default=2321)
33+
* `TPM2_SWTPM_HOST`: The serial device to use (default=/dev/ttyS0)
34+
* `TPM2_SWTPM_PORT`: The baud rate (default=115200)
3535
* `WOLFTPM_SWTPM_UART`: Use UART transport (no TIS layer)
3636

37-
3837
## SWTPM simulator setup
3938

39+
### Xilinx UART
40+
41+
Alternatively for raw API calls with Xilinx
42+
43+
```sh
44+
./cofnigure --enable-swtpm=uartns550
45+
make
46+
```
47+
48+
## Build Options
49+
50+
* `WOLFTPM_SWTPM`: Use socket transport (no TIS layer)
51+
* `TPM2_SWTPM_PORT`: Used as the default baud rate (default=115200)
52+
* `TPM2_SWTPM_HOST`: The device to connect with (default=XPAR_MB0_AXI_UART16550_2_DEVICE_ID)
53+
* `WOLFTPM_SWTPM_UARTNS550`: Use Xilinx UART transport (no TIS layer)
54+
4055
### ibmswtpm2
4156

4257
Checkout and Build

src/tpm2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
/******************************************************************************/
3636

3737
#if defined(WOLFTPM_SWTPM_UARTNS550)
38-
/* having this on the stack and as thread local storage causes issues with
39-
* Xilinx FSBL use */
38+
/* having this as static and as thread local storage causes run time issues
39+
* with Xilinx FSBL use */
4040
TPM2_CTX* gActiveTPM;
4141
#else
4242
static THREAD_LS_T TPM2_CTX* gActiveTPM;

0 commit comments

Comments
 (0)