Skip to main content
koan
Associate II
January 22, 2020
Solved

How to rebuild TF-A (Trusted Firmware-A) for STM32MP157C-DK2 ?

  • January 22, 2020
  • 5 replies
  • 1687 views

I am using the STM32MP157C-DK2

For testing purpose I need to build and replace the BSP and in particular the bootloader.

The documentation is a bit messy and I'm not able to find the information I need.

I need to rebuild and replace TF-A and u-boot.

I read so far:

https://wiki.st.com/stm32mpu/wiki/TF-A_overview

https://wiki.st.com/stm32mpu/wiki/STM32MP1_Starter_Package_-_images

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout

Where I can find all the sources and documentation explaining how to rebuild TF-A (Trusted Firmware-A)?

Thank you.

This topic has been closed for replies.
Best answer by Olivier GALLIEN

Hi @koan​ 

Please have a look to this page :

https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package

Hope it help,

Olivier

5 replies

Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
January 22, 2020

Hi @koan​ 

Please have a look to this page :

https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package

Hope it help,

Olivier

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
koan
koanAuthor
Associate II
January 22, 2020

Hi @Community member​ ,

thank you for answering.

I read in chapter 5.4 Installing the TF-A

tf-a-stm32mp-2.0-r0 TF-A installation directory
├── [*].patch ST patches to apply during the TF-A preparation (see next chapter)
├── arm-trusted-firmware-2.0 TF-A source code directory
├── Makefile.sdk Makefile for the TF-A compilation
├── README.HOW_TO.txt Helper file for TF-A management: reference for TF-A build
├── series List of all ST patches to apply
└── v2.0.tar.gz Tarball file of the TF-A source code

Where is next chapter ?

Olivier GALLIEN
ST Technical Moderator
January 22, 2020

Hi @koan​ 

See section 3 of the TF-A related README.HOW_TO.txt 

Olivier

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
koan
koanAuthor
Associate II
January 23, 2020

Hi @Community member​ 

thanks to your clarification I built

make -f $PWD/../Makefile.sdk all

I see the *.stm32 files, but I don't have the *.tsv needed to run STM32CubeProgrammer.

What's missing?

Olivier GALLIEN
ST Technical Moderator
January 23, 2020

Hi @koan​ 

This is normal, developper package does not manage .tsv generation.

Please see section 6 in same readme to update the TF-A partition without STM32CubeProgrammer/.tsv

Else you can still use STM32CubeProgrammer by updating the .tsv provided in Starter Package with your custom TF-A binary.

Hope it help,

Olivier

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.