2021-11-15 07:04 PM
在根�?�ST�??供的tf-a编译阶段,为什么我使用make -f Makefile.sdk TF_A_CONFIG=trusted TFA_DEVICETREE=stm32mp157c-dk2 all这个指令编译的时候会报下�?�这些错误?
2021-11-16 12:34 AM
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
2021-11-16 01:01 AM
2021-11-16 01:03 AM
2021-11-16 02:49 AM
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'
2021-11-16 06:47 PM
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
2021-11-17 08:51 AM
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:
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
2021-11-17 07:19 PM
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.