Skip to content

LienNguyen2910/freertos-ota-pal-psa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this project

This project ports the FreeRTOS OTA PAL based on PSA API.

PSA is Platform Security Architecture which is initiated by Arm. Please get the details from this link.

In general, this porting maps the FreeRTOS OTA PAL APIs to PSA Firmware Update and Crypto APIs. It follows the PSA Firmware Update API 0.7 and PSA Cryptography API V1.0 beta3. The process of image write, image verification and image activation are protected by the PSA secure service.

License

Please check the License.md file in this project root folder for the detailed license information.

Unless stated otherwise, the software is provided under the MIT License.

Integration guide

Integrate PSA Based OTA PAL with the FreeRTOS project

  • Use the libraries/abstractions/ota_pal_psa/ota_pal.c as the implementation of APIs defined in vendors/vendor/boards/board/ports/ota_pal_for_aws/ota_pal.h
  • Add the source file libraries/abstractions/ota_pal_psa/version/application_version.c to the project.
  • xOTACodeVerifyKeyHandle is the key handle which indicates the image verification key in PSA Crypto Service. It is used when verifying the image in otaPal_CloseFile.
  • Build the PSA implementation as the secure side image (check the Trusted Firmware-M example in the following section).
  • Integrate the FreeRTOS project with the interface files of the PSA implementation (check the TF-M example below).
  • Build the FreeRTOS project which runs in the non-secure world.
  • Follow the platform-specific instructions to sign/combine the FreeRTOS image and secure side image.

Integrate FreeRTOS project with Trusted Firmware-M (TF-M)

TF-M is a PSA implementation. It implements the PSA Firmware Framework API and developer API such as Secure Storage, Cryptography, Initial Attestation, etc. Refer to PSA website for more details.

Please follow the Build instructions of TF-M to build the secure side image for your platform.

Please check Integration guide of TF-M for integrating the FreeRTOS project with TF-M.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%