Showing results for 
Search instead for 
Did you mean: 

Yocto latest version in stm32mp157d-dk2 issue. How to solve

Associate III

I stay trying this:

to put Yocto in my stm32mp157d-dk2 with issue


cd stm32mp157-dk2/

repo init -u -b refs/tags/openstlinux-6.1-yocto-mickledore-mp1-v23.06.21

repo sync -j4

DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/

bitbake st-image-weston

Final part of the issue in screen:

| with preprocessed source if appropriate.
| Please include the complete backtrace with any bug report.
| See <> for instructions.
| make: *** [/home/neuberfran/stm32mp157-dk2/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/m4projects-stm32mp1/1.6.0-r0/Makefile.stm32:64: /home/neuberfran/stm32mp157-dk2/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/m4projects-stm32mp1/1.6.0-r0/build/STM32MP157C-EV1/Demonstrations/AI_Character_Recognition/out/Debug//home/neuberfran/stm32mp157-dk2/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/m4projects-stm32mp1/1.6.0-r0/git/Projects/STM32MP157C-EV1/Demonstrations/AI_Character_Recognition/Src/main.c.o] Error 1
| make: *** Waiting for unfinished jobs....
| make: *** [/home/neuberfran/stm32mp157-dk2/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/m4projects-stm32mp1/1.6.0-r0/Makefile.stm32:64: /home/neuberfran/stm32mp157-dk2/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/m4projects-stm32mp1/1.6.0-r0/build/STM32MP157C-EV1/Demonstrations/AI_Character_Recognition/out/Debug//home/neuberfran/stm32mp157-dk2/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/m4projects-stm32mp1/1.6.0-r0/git/Projects/STM32MP157C-EV1/Demonstrations/AI_Character_Recognition/Src/app_x-cube-ai.c.o] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/neuberfran/stm32mp157-dk2/layers/meta-st/meta-st-stm32mp/recipes-extended/m4projects/ failed with exit code '1'
NOTE: Tasks Summary: Attempted 4628 tasks of which 0 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 15 seconds

Summary: 1 task failed:
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

neuberfran@neuberfran2004:~/stm32mp157-dk2/build-openstlinuxweston-stm32mp1/tmp-glibc/deploy/images/stm32mp1$ ls
kernel scripts u-boot

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal


repo init -u -b refs/tags/openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23

repo sync -j4

DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/

bitbake st-image-weston

Today, I also tried launching Kirkstone and got some errors:

ST Employee

Dear @neuberfran ,

Sorry for delay. We get an analysis of shared log. Nothing really highlighted.

Perhaps full extract of log in build directory could help for finding something wrong.

We do not get either such issue from other users.

We really recommend to get a check about PC configuration listed in wiki

You mention you already build yocto distribution, but was it for OpenSTLinux?

Thank you



@JeanPhilippeR No for OpenSTLinux but for imx7d-pico and imx8mm-pico. Using Ubuntu 22.04 I do Kirkstone. Using Ubuntu 20.04 I do hardknott




Please confirm above if the final result for stm32mp157 is correct?

If so, it seems that it only works in wsl2 where the result of the ifconfig command shows an IP number outside the internal network that would be something like 192.168.X.XXX

How the best way to build this result (ext4?) to device (in wsl2)?