Skip to content

Commit

Permalink
Merge pull request #34 from dgarske/misc
Browse files Browse the repository at this point in the history
Fix bug with native test shutdown and added I2C instructions
  • Loading branch information
JacobBarthelmeh authored Sep 7, 2018
2 parents 2f3adae + a7f370d commit 508cb5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ Build wolfTPM:
make
```

For the I2C support on Raspberry Pi you may need to enable I2C. Here are the steps:
1. Edit `sudo vim /boot/config.txt`
2. Uncomment `dtparam=i2c_arm=on`
3. Reboot


### Build options and defines

```
Expand Down
1 change: 0 additions & 1 deletion examples/native/native_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,6 @@ int TPM2_Native_Test(void* userCtx)
rc = TPM2_Shutdown(&cmdIn.shutdown);
if (rc != TPM_RC_SUCCESS) {
printf("TPM2_Shutdown failed 0x%x: %s\n", rc, TPM2_GetRCString(rc));
goto exit;
}

TPM2_Cleanup(&tpm2Ctx);
Expand Down

0 comments on commit 508cb5d

Please sign in to comment.