cancel
Showing results for 
Search instead for 
Did you mean: 

在根�?�ST�??供的tf-a编译阶段,为什么我使用make -f Makefile.sdk TF_A_CONFIG=trusted TFA_DEVICETREE=stm32mp157c-dk2 all这个指令编译的时候会报下�?�这些错误?

Ffu.1
Associate II

在根�?�ST�??供的tf-a编译阶段,为什么我使用make -f Makefile.sdk TF_A_CONFIG=trusted TFA_DEVICETREE=stm32mp157c-dk2 all这个指令编译的时候会报下�?�这些错误?

7 REPLIES 7
Olivier GALLIEN
ST Employee

Hi @Ffu.1​ ,

For better support in this Community I encourage you yo use English language.

Translation tool are not powerful enough yet ;)

I understand you encountered issue building TF-A right ?

Please share complete build log in text file and not screenshot.

Thanks

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.
II'm sorry that the following problems occurred when I compiled tF-A. I downloaded the following three linked SDK and then compiled TF-A :①https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-mpu-openstlinux-distribution/stm32mp1dev.html ;②en.SOURCES-tf-a-stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31.tar.xz③https://github.com/STMicroelectronics/arm-trusted-firmware.git
 
Kevin HUBER
ST Employee

Hello @Ffu.1​ ,

Sorry, there is an error in the README.HOW_TO.txt

In your make command, you have to specify TF_A_DEVICETREE with another underscore instead of TFA_DEVICETREE

Like for TF_A_CONFIG.

make -f ../stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/tf-a-stm32mp-2.4.r1-r0/Makefile.sdk TF_A_CONFIG=trusted TF_A_DEVICETREE=stm32mp157c-dk2 all

I have a question regarding this make command. Why your Makefile.sdk is so far of your working directory?

If you followed this page: https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package#Installing_the_TF-A

the Makefile.sdk is normally located in ../

Hope it helps,

Regards,

Kevin

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

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.

According to the tutorial, Makefile from stm32mp1-openstlinux-5.10-Dunfell-mp1-21-03-31 /sources/ ARM-Ostl-linux-gnueabi/tF-a-stm32mp-2.4.r1-r0 / This should not affect compilation. After compiling according to the correct instruction TFA_DEVICETREE, the following error still occurs

Hello @Ffu.1​ ,

This error:

/bin/sh: 1: fiptool-stm32mp: not found

means that fiptool_stm32mp is missing.

Normally, you should find it in your SDK folder:

$ which fiptool-stm32mp
/home/osboxes/STM32MPU_workspace/STM32MP15-Ecosystem-v3.0.0/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/fiptool-stm32mp

This path is added to your PATH when you load the sdk environment.

Please be sure to have downloaded and installed correctly the SDK on your machine:

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Install_the_SDK#Download_the_SDK

Then verify that you sourced correctly the sdk file before trying to build: https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Install_the_SDK#Start_the_SDK_up

Regards,

Kévin

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.

hello ​@Kevin HUBER​  

The above problems have been solved after re-downloading the SDK, but there are new problems. Could you please send me all SDK download urls and tutorial urls for building TF-A? I noticed some differences in the build steps and SDK builds through the teaching and the website tutorials.