Skip to main content
Visitor II
May 12, 2021
Question

TF-A buld failed, u-boot-stm32mp157a-dk1-trusted.dtb file dtb missing,but I found in folder

  • May 12, 2021
  • 2 replies
  • 1891 views

build erro info:Missing u-boot-stm32mp157a-dk1-trusted.dtb file in folder: '$FIP_DEPLOYDIR_UBOOT' or '$FIP_DEPLOYDIR_ROOT/u-boot'

/home/wangdaan/Desktop/workspace/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/tf-a-stm32mp-2.4.r1-r0/tf-a-stm32mp-2.4.r1/../Makefile.sdk:194: recipe for target 'fip' failed.

but I found this dtb in its folder. so I do't konw... this is dts location:

~/Desktop/workspace/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/tf-a-stm32mp-2.4.r1-r0/tf-a-stm32mp-2.4.r1$ ls ../../FIP_artifacts/u-boot/u-boot-

u-boot-nodtb-stm32mp15.bin     u-boot-stm32mp157c-ed1-trusted.dtb u-boot-stm32mp157f-dk2-trusted.dtb

u-boot-stm32mp157a-dk1-trusted.dtb u-boot-stm32mp157c-ev1-trusted.dtb u-boot-stm32mp157f-ed1-trusted.dtb

u-boot-stm32mp157a-ev1-trusted.dtb u-boot-stm32mp157d-dk1-trusted.dtb u-boot-stm32mp157f-ev1-trusted.dtb

u-boot-stm32mp157c-dk2-trusted.dtb u-boot-stm32mp157d-ev1-trusted.dtb  

    This topic has been closed for replies.

    2 replies

    Dan.1Author
    Visitor II
    May 13, 2021

    I used this :​make -f $PWD/../Makefile.sdk TFA_DEVICETREE=stm32mp157c-ev1 TF_A_CONFIG=trusted ELF_DEBUG_ENABLE='1' all

    Visitor II
    July 27, 2021

    I met this problem too. Then I tried to export the environment variable $FIP_DEPLOYDIR_ROOT.

    1. Try to find where is "u-boot-stm32mp157a-dk1-trusted.dtb" file by searching.
    2. Go to the building directory. In your case is "...eloper-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/tf-a-stm32mp-2.4.r1-r0/tf-a-stm32mp-2.4.r1"
    3. Export environment variable

    export $FIP_DEPLOYDIR_ROOT= <some path to folder>

    <some path to folder> depends on work folders. In my case it was:

    export $FIP_DEPLOYDIR_ROOT=$PWD/../../FIP_artifacts

    Where "$PWD" -command defines your building directory, "/../../" - means two folders up directory. FIP_artifacts - folder where u-boot the folder is located.

    In my case my building directory was:

    Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/tf-a-stm32mp-2.4.r1-r0/tf-a-stm32mp-2.4.r1

    u-boot locating directory was:

    Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/FIP_artifacts

    Therefore I used only 2 up folders (/../../).

    Unfortunately I got another similar problem with another file after that.

    Missing stm32mp157c-ev1-fw-config-optee.dtb =(

    Visitor II
    April 6, 2022

    Hi, I also encountered missing ......optee.... Did you solve it, what should I do?

    Visitor II
    April 6, 2022

    Thank you in advance