2024-03-12 02:34 PM - edited 2024-03-12 02:39 PM
I stay trying this:
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
2024-03-19 10:03 AM
repo init -u https://github.com/STMicroelectronics/oe-manifest.git -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/envsetup.sh
bitbake st-image-weston
Today, I also tried launching Kirkstone and got some errors:
https://gist.github.com/neuberfran/3173792879488f5d0c76783d2ab059a0
2024-03-20 11:47 AM
2024-03-22 02:57 AM
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 https://wiki.st.com/stm32mpu/wiki/PC_prerequisites.
You mention you already build yocto distribution, but was it for OpenSTLinux?
Thank you
BR
Jean-Philippe
2024-03-22 03:41 AM
@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
2024-03-26 04:06 PM - edited 2024-03-30 01:24 PM
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)?