Skip to main content
RBruè.1
Associate II
Jul 27, 2021 10:37 AM UTC
Solved

Error while compiling custom machine

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?

This topic has been closed for replies.
Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
Jul 27, 2021 1:52 PM UTC

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

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.

3 replies

Olivier GALLIEN
ST Technical Moderator
Jul 27, 2021 1:03 PM UTC

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

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.
RBruè.1
RBruè.1Author
Associate II
Jul 27, 2021 1:12 PM UTC

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

Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
Jul 27, 2021 1:52 PM UTC

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

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.