Skip to main content
Visitor II
November 16, 2021
Question

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

  • November 16, 2021
  • 2 replies
  • 2893 views

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

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    November 16, 2021

    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

    Ffu.1Author
    Visitor II
    November 16, 2021
    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
    Technical Moderator
    November 16, 2021

    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'

    Ffu.1Author
    Visitor II
    November 17, 2021

    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

    Technical Moderator
    November 17, 2021

    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