Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Infineon SLB9672/SLB9673 Firmware upgrade #339

Merged
merged 3 commits into from
Apr 3, 2024

Conversation

dgarske
Copy link
Contributor

@dgarske dgarske commented Mar 22, 2024

Full demo pushed here: https://github.com/wolfssl/wolftpm-examples

Added support for Infineon SLB9672/SLB9673 Firmware upgrade (see examples/firmware/README.md)
Added Infineon Modus Toolbox support. See wolfssl/IDE/Infineon/README.md for setup instructions.
Added support for Infineon CyHal I2C support.
Added Firmware extraction tool
Added Firmware update example application examples/firmware/ifx_fw_update.
Added support for vendor capabilities TPM_CAP_VENDOR_PROPERTY.
Added XSLEEP_MS macro for firmware update delay.
Added support for getting key group id, operational mode and update counts.
Added support for abandoning an update.
Added support for firmware update done, but not finalized
Fix auto-detect to not define SLB9672/SLB9673.

@dgarske dgarske self-assigned this Mar 22, 2024
@dgarske dgarske force-pushed the infineon_slb_fw branch 2 times, most recently from be6f0b7 to 7dc6b05 Compare March 25, 2024 20:14

### Extracting the firmware

Infienon releates firmware as a .bin file (example: TPM20_15.23.17664.0_R1.BIN).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

releases ?

@AndreasFuchsTPM
Copy link

LGTM. I'd add the FU_COUNTER_SAME to GetCaps though. It helps to see how many more tries you have during development.

dgarske added a commit to dgarske/secure-sockets that referenced this pull request Mar 27, 2024
@dgarske dgarske marked this pull request as ready for review March 28, 2024 00:05
dgarske added a commit to dgarske/wolf-examples that referenced this pull request Mar 28, 2024
…S2 eval kit (CY8CEVAL-062S2) and Sterling LWB5+ Wifi module.

This requires updating the `mtb_shared/secure-sockets` to use: Infineon/secure-sockets#1
For wolfSSL use: wolfSSL/wolfssl#7369
For wolfTPM use: wolfSSL/wolfTPM#339
@dgarske dgarske requested review from AndreasFuchsTPM and philljj and removed request for AndreasFuchsTPM April 1, 2024 17:36
dgarske added a commit to dgarske/wolf-examples that referenced this pull request Apr 1, 2024
examples/firmware/README.md Outdated Show resolved Hide resolved
examples/firmware/README.md Outdated Show resolved Hide resolved
src/tpm2_wrap.c Show resolved Hide resolved
examples/firmware/README.md Show resolved Hide resolved
@dgarske dgarske requested a review from philljj April 1, 2024 21:53
examples/firmware/ifx_fw_extract.c Outdated Show resolved Hide resolved
examples/firmware/ifx_fw_extract.c Outdated Show resolved Hide resolved
examples/firmware/ifx_fw_extract.c Outdated Show resolved Hide resolved
examples/firmware/ifx_fw_extract.c Outdated Show resolved Hide resolved
examples/firmware/Makefile Outdated Show resolved Hide resolved
@dgarske dgarske requested a review from philljj April 2, 2024 00:14
…ples/firmware/README.md)

Added Infineon Modus Toolbox support. See `wolfssl/IDE/Infineon/README.md` for setup instructions.
Added support for Infineon CyHal I2C support.
Added Firmware extraction tool
Added Firmware update example application `examples/firmware/ifx_fw_update`.
Added support for vendor capabilities `TPM_CAP_VENDOR_PROPERTY`.
Added `XSLEEP_MS` macro for firmware update delay.
Added support for getting key group id, operational mode and update counts.
Added support for abandoning an update.
Added support for firmware update done, but not finalized
Fix auto-detect to not define SLB9672/SLB9673.
src/tpm2_wrap.c Show resolved Hide resolved
int TPM2_IoCb_Infineon_SPI(TPM2_CTX* ctx, const byte* txBuf,
byte* rxBuf, word16 xferSz, void* userCtx)
{

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self... Need to add the CyHal SPI support here before merge.

@philljj philljj self-requested a review April 2, 2024 15:48
@dgarske dgarske assigned philljj and unassigned dgarske Apr 3, 2024
@philljj philljj merged commit 53d8179 into wolfSSL:master Apr 3, 2024
3 checks passed
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.

3 participants