Re: Add support Optiga Trust X
We actually discussed a very similar case yesterday in the TSC meeting. The trusted-firmware-m module also requires mbedTLS, but a different version from the one we have in Zephyr. In that case the resolution was to place the required mbedTLS version *inside* the trusted-firmware-m module/repo, so that the whole repo is self-contained.
I would argue that if you can make it work with the existing mbedTLS currently present as a zephyr module, that is ideal. If that doesn’t work out then you can do the same that we’ve done with trusted-firmware-m and include the copy of mbedTLS directly inside the optiga module repo.
From: Pawel Zarembski <Pawel.Zarembski@...>
Sent: 28 November 2019 12:32
Cc: Christoph.Reiter@...; Artem.Yushev@...; Christian.Lesjak@...; Mihai.Tudosie@...; Cufi, Carles <Carles.Cufi@...>
Subject: RE: Add support Optiga Trust X
I finished implementing basic library API (optiga/, examples/, pal/) and now I want to move on to work on mbedTLS and one questions arose:
Does Optiga Trust X module should contain mbedTLS library? Basically Zephyr have separate module for mbedTLS so if it will be included in Optiga module aswell it would create unnecessary redundancy.
If no: should i work on integrating Optiga Trust X with existing mbedTLS module?
CAUTION: This email originated from outside of the organization. This message might not be safe, use caution in opening it. If in doubt, do not open the attachment nor links in the message.
Thank you for keeping us up to date and supporting with this topic.
I’ve added 2 more colleagues; Artem was already in contact with Pawel to add his code to Infineon github repo too.
Copying a couple of people from Infineon that might be interested in your work.
About your questions.
I am currently working on project based on EFM32PG board and Optiga Trust X (security chip). I already did some work on implementing their framework and I run it with success with sample demo.
I want to ask about process of adding support for that board for Zephyr.
Implemented Platform Abstraction Layer with Zephyr support: https://github.com/Infineon/optiga-trust-x/tree/master/pal/efm32pg_zephyr