cancel
Showing results for 
Search instead for 
Did you mean: 

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

neuberfran
Associate III

I stay trying this:

https://community.st.com/t5/stm32-mpus-other-tools/stm32mp15-eco-5-0-0-rerun-bitbake-causes-errors-no-eula-shown/m-p/597709#M180

to put Yocto in my stm32mp157d-dk2 with issue

 

cd stm32mp157-dk2/

repo init -u https://github.com/STMicroelectronics/oe-manifest.git -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/envsetup.sh

bitbake st-image-weston

https://gist.github.com/neuberfran/a21e72be5a7e3cada0721d5d400d17f4

Final part of the issue in screen:

| with preprocessed source if appropriate.
| Please include the complete backtrace with any bug report.
| See <https://bugs.linaro.org/> 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/m4projects-stm32mp1.bb:do_compile) 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:
/home/neuberfran/stm32mp157-dk2/layers/meta-st/meta-st-stm32mp/recipes-extended/m4projects/m4projects-stm32mp1.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

pwd
/home/neuberfran/stm32mp157-dk2/build-openstlinuxweston-stm32mp1/tmp-glibc/deploy/images/stm32mp1
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

14 REPLIES 14
JeanPhilippeR
ST Employee

Dear @neuberfran 

Do you confirm all packages install on your Ubuntu distribution have been done as mention in https://wiki.st.com/stm32mpu/wiki/PC_prerequisites?

Could you please share the whole Linux console log when initiating the baseline and starting bitbake building?

Thank you

Jean-Philippe

 

@JeanPhilippeR 

This is my log file again:

https://gist.github.com/neuberfran/a21e72be5a7e3cada0721d5d400d17f4

 

My Ubuntu machine stay Ok. I do other yocto build here in other time. Tks for your question

Captura de tela de 2024-03-14 10-02-36.png


@JeanPhilippeR wrote:

Dear @neuberfran 

Do you confirm all packages install on your Ubuntu distribution have been done as mention in https://wiki.st.com/stm32mpu/wiki/PC_prerequisites?

Could you please share the whole Linux console log when initiating the baseline and starting bitbake building?

Thank you

Jean-Philippe

 


 

 

NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-ostl-linux-gnueabi"
MACHINE = "stm32mp1"
DISTRO = "openstlinux-weston"
DISTRO_VERSION = "4.2.1-snapshot-20240314"
TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU = "hard"
DISTRO_CODENAME = "mickledore"
ACCEPT_EULA_stm32mp1 = "1"
GCCVERSION = "12.%"
PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"
meta-python
meta-oe
meta-gnome
meta-initramfs
meta-multimedia
meta-networking
meta-webserver
meta-filesystems
meta-perl = "HEAD:c032fd0b1a9d444711103c2703dfa8e2964a3865"
meta-st-stm32mp = "HEAD:931b3f5be2c00f55d114c8f9122082a9d229b776"
meta-qt5 = "HEAD:cf6ffcbad5275a3428f6046468a0c9d572e813d1"
meta-st-openstlinux = "HEAD:8c780facff81d3c3878c5fdcd18bdd24fc36478d"
meta = "HEAD:20cd64812d286c920bd766145ab1cd968e72667e"

Initialising tasks: 100% |#######################################| Time: 0:00:06
Sstate summary: Wanted 1660 Local 262 Mirrors 0 Missed 1398 Current 1447 (15% match, 55% complete)
NOTE: Executing Tasks
Setscene tasks: 3107 of 3107
Currently 8 running tasks (4188 of 7644) 54% |################################################## |
0: m4projects-stm32mp1-1.6.0-r0 do_compile - 1m36s (pid 9154)
1: gnutls-3.8.0-r0 do_compile - 1m36s (pid 9158)
2: rust-native-1.68.2-r0 do_rm_work - 1m3s (pid 14801)
3: glibc-locale-2.37-r1 do_package - 37s (pid 21589)
4: nghttp2-1.52.0-r0 do_configure - 13s (pid 26844)
5: libsamplerate0-0.2.2-r0 do_package - 12s (pid 27111)
6: usbip-2.0-r1 do_package - 5s (pid 29217)

 

 

Captura de tela de 2024-03-14 09-21-05.png

neuberfran
Associate III

@JeanPhilippeR ???????

JeanPhilippeR
ST Employee

@neuberfran 

We do not find any clue for now.

Could you please also share back info from the command In order to complete the info about your OpenSTLinux distribution configuration before making bitbake building?

$ DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh

I'm synchronizing with other guys which can take a delay.

BR

Jean-Philippe

I have two, because I stay trying in two natives machines (Ubuntu 22.04 and Ubuntu 20.04)

 

First in 22.04



https://gist.github.com/neuberfran/c352a0841c5e609b5b98265f9fb76b75

Second in 20.04

https://gist.github.com/neuberfran/b084c122d96a301d546cf8d60662fd82

 




 

 

@JeanPhilippeR  I already answered your question and I'm waiting for updates

JeanPhilippeR
ST Employee

Dear @neuberfran 

We do not find any clue on your log which allow to highlight host configuration issue, or missing dependencies.

Could you please execute the following command:

$ bitbake linux-stm32mp -c cleansstate && bitbake st-image-weston

Then if will fail, share the log resulting from those 2 commands.

Thank you

BR

Jean-Philippe