cancel
Showing results for 
Search instead for 
Did you mean: 

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

Dan.1
Associate

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  

5 REPLIES 5
Dan.1
Associate

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

GOlin.1
Associate II

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 =(

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

Thank you in advance

Yep, I solved it by right combination of STM32CubMx, SDK and Programmer!

STM32CubeMX_v6.2.1, STM32CubeProgrammer_v.2.7.0, Developer Package v3.0.0 и Yocto SDK_v3.0.0 и Starter Package_v3.0.0.

Other combinations may create problems. Good luck!