cancel
Showing results for 
Search instead for 
Did you mean: 

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

koan
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

Hi @koan​ 

Please have a look to this page :

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

Hope it help,

Olivier

Olivier GALLIEN
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.

View solution in original post

5 REPLIES 5
Olivier GALLIEN
ST Employee

Hi @koan​ 

Please have a look to this page :

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

Hope it help,

Olivier

Olivier GALLIEN
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
Associate III

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 Employee

Hi @koan​ 

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

Olivier

Olivier GALLIEN
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
Associate III

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 Employee

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

Olivier GALLIEN
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.