Skip to content

Commit

Permalink
add uartns550 for use with FSBL
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Jan 17, 2024
1 parent 985ee60 commit 88007b2
Show file tree
Hide file tree
Showing 7 changed files with 489 additions and 225 deletions.
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ then
then
AM_CFLAGS="$AM_CFLAGS -DWOLFTPM_SWTPM_UART"
fi

if test "x$ENABLED_SWTPM" = "xuartns550"
then
AM_CFLAGS="$AM_CFLAGS -DWOLFTPM_SWTPM_UARTNS550"
fi
fi

# Windows TBS device Support
Expand Down
21 changes: 18 additions & 3 deletions docs/SWTPM.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,28 @@ make
## Build Options

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


## SWTPM simulator setup

### Xilinx UART

Alternatively for raw API calls with Xilinx

```sh
./cofnigure --enable-swtpm=uartns550
make
```

## Build Options

* `WOLFTPM_SWTPM`: Use socket transport (no TIS layer)
* `TPM2_SWTPM_PORT`: Used as the default baud rate (default=115200)
* `TPM2_SWTPM_HOST`: The device to connect with (default=XPAR_MB0_AXI_UART16550_2_DEVICE_ID)
* `WOLFTPM_SWTPM_UARTNS550`: Use Xilinx UART transport (no TIS layer)

### ibmswtpm2

Checkout and Build
Expand Down
Loading

0 comments on commit 88007b2

Please sign in to comment.