cancel
Showing results for 
Search instead for 
Did you mean: 

Error while compiling custom machine

RBruè.1
Associate II

Hi, I am trying to compile an OpenSTLinux image for a target "DK2_A7" custom machine.

I've followed this guide and everything seems ok until 98% of the process when the following error occurs:

ERROR: tf-a-stm32mp-2.4.r1-r0 do_compile: oe_runmake failed
 
ERROR: tf-a-stm32mp-2.4.r1-r0 do_compile: Execution of '/home/ubuntu/customer/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-DK2_A7/tmp-glibc/work/stm32mp1_DK2_A7-ostl-linux-gnueabi/tf-a-stm32mp/2.4.r1-r0/temp/run.do_compile.27013' failed with exit code 1:
 
make: Entering directory '/home/ubuntu/customer/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-DK2_A7/tmp-glibc/work-shared/stm32mp1-DK2_A7/tfa-source'
 
Including bl32/sp_min/sp_min.mk
 
make: *** No rule to make target 'fdts/stm32mp157c-dk2_a7-mx-fw-config.dts', needed by '/home/ubuntu/customer/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-DK2_A7/tmp-glibc/work/stm32mp1_DK2_A7-ostl-linux-gnueabi/tf-a-stm32mp/2.4.r1-r0/build/trusted/fdts/stm32mp157c-dk2_a7-mx-fw-config.dtb'. Stop.
 
make: *** Waiting for unfinished jobs....
 
make: Leaving directory '/home/ubuntu/customer/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-DK2_A7/tmp-glibc/work-shared/stm32mp1-DK2_A7/tfa-source'
 
WARNING: exit code 1 from a shell command.
 
 
 
ERROR: Logfile of failure stored in: /home/ubuntu/customer/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-DK2_A7/tmp-glibc/work/stm32mp1_DK2_A7-ostl-linux-gnueabi/tf-a-stm32mp/2.4.r1-r0/temp/log.do_compile.27013
 

The following variables have been set inside the "./layers/meta-st/meta-st-stm32mp-addons/conf/machine/stm32mp1-DK2_A7.conf" file:

  • CUBEMX_DTB = "stm32mp157c-dk2_a7-mx"
  • CUBEMX_PROJECT = "mx/DK2_A7/"

The content of the mx folder is the following:

├── mx
│   └── DK2_A7
│       ├── kernel
│       │   └── stm32mp157c-dk2_a7-mx.dts
│       ├── tf-a
│       │   ├── stm32mp15-mx.dtsi
│       │   └── stm32mp157c-dk2_a7-mx.dts
│       └── u-boot
│           ├── stm32mp15-mx.dtsi
│           ├── stm32mp157c-dk2_a7-mx-u-boot.dtsi

What am I missing?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Riccardo Bruè​ 

First, RC5 !? Not supposed to go out ST .. but maybe just a mistmake in version display.

But most important is that you need 6.2.1 minimum to work with DV3.0 and fip support.

A brand new 6.3 is available on st.com.

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.

View solution in original post

3 REPLIES 3
Olivier GALLIEN
ST Employee

Hi @Riccardo Bruè​ 

Which version of CubeMX did you use ?

You should have the "stm32mp157c-dk2_a7-mx-fw-config.dts" inside mx/DK2-A7/tf-a folder.

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.

Hi, we don't have such file, the cubemx version is: 6.0.0-RC5.

Hi @Riccardo Bruè​ 

First, RC5 !? Not supposed to go out ST .. but maybe just a mistmake in version display.

But most important is that you need 6.2.1 minimum to work with DV3.0 and fip support.

A brand new 6.3 is available on st.com.

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.