TechNexion / tn-imx-yocto-manifest

TechNexion i.MX Yocto manifests
28 stars 10 forks source link

pico-imx8mm Yocto Kirkstone build fails #41

Closed paoloturim closed 8 months ago

paoloturim commented 8 months ago

I need yocto Kirkstone in my pico-imx8mm. But I have issue:

 repo init -u https://github.com/TechNexion/tn-imx-yocto-manifest.git -b kirkstone_5.15.y-stable -m imx-5.15.71-2.2.2.xml

 repo sync -j8

DISTRO=fsl-imx-wayland MACHINE=pico-imx8mm BASEBOARD=pi source tn-setup-release.sh -b build-wayland-pico-imx8mm
Or
. ./setup-environment build-wayland-pico-imx8mm

 bitbake imx-image-full

Issue 01:

ERROR: half-2.1.0-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/paolo/edm_yocto/sources/poky/scripts:/home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot-native/usr/sbin:/home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot-native/usr/bin:/home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot-native/sbin:/home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot-native/bin:/home/paolo/edm_yocto/sources/poky/bitbake/bin:/home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/hosttools"; export HOME="/home/paolo"; /usr/bin/env wget -t 2 -T 30 --passive-ftp -P /home/paolo/edm_yocto/downloads/ 'https://sourceforge.net/projects/half/files/half/2.1.0/half-2.1.0.zip' --progress=dot -v failed with exit code 4, no output
ERROR: half-2.1.0-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'https://sourceforge.net/projects/half/files/half/2.1.0/half-2.1.0.zip')
ERROR: Logfile of failure stored in: /home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-poky-linux/half/2.1.0-r0/temp/log.do_fetch.1982
ERROR: Task (/home/paolo/edm_yocto/sources/meta-freescale-distro/recipes-devtools/half/half_2.1.0.bb:do_fetch) failed with exit code '1'
 lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

Issue 02:


| /home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/qtbase/6.3.2-r0/git/tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp: In member function 'void tst_QTreeView::renderToPixmap()':
| /home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/qtbase/6.3.2-r0/git/tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp:3250:17: warning: unused variable 'row' [-Wunused-variable]
|  3250 |     QFETCH(int, row);
|       |                 ^~~
| /home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/qtbase/6.3.2-r0/git/tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp: In member function 'void tst_QTreeView::styleOptionViewItem()':
| /home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/qtbase/6.3.2-r0/git/tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp:3402:15: warning: unused variable 'visibleColumns' [-Wunused-variable]
|  3402 |     const int visibleColumns = 4;
|       |               ^~~~~~~~~~~~~~
| /home/paolo/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/qtbase/6.3.2-r0/git/tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp:3403:15: warning: unused variable 'modelColumns' [-Wunused-variable]
|  3403 |     const int modelColumns = 5;
|       |               ^~~~~~~~~~~~
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/paolo/edm_yocto/sources/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_install_ptest_base) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2131 tasks of which 2123 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/paolo/edm_yocto/sources/meta-qt6/recipes-qt/qt6/qtbase_git.bb:do_install_ptest_base
Summary: There were 3 WARNING messages.
ray-chang commented 8 months ago

@paoloturim

Thanks for the feedback. We haven't tried to build on ubuntu 22.04 yet.

It is recommended to use our docker container, dockerfile as below: https://github.com/TechNexion/meta-tn-imx-bsp/blob/kirkstone_5.15.71-2.2.0-stable/tools/container/dockerfile

Or use the virtual machines we built. https://download.technexion.com/development_resources/development_tools/vm/Build_Env_Ubuntu_x64_20.04_vmware-20221202.zip

BR, Ray

paoloturim commented 8 months ago

@ray-chang I already have Yocto Kirkstone to pico-imx7 in Ubuntu 22.04

paoloturim commented 8 months ago

@ray-chang

Issues using docker: sudo docker run -it -u jenkins -v ${directory_in_host_machine}:${directory_in_docker} tn-develop-ubuntu bash


ERROR: gstreamer1.0-plugins-base-1.20.3.imx-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/edm_yocto/build-wayland-pico-imx8mm/tmp/sysroots-uninative/x86_64-linux/usr/bin:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.20.3.imx-r0/recipe-sysroot-native/usr/bin/python3-native:/edm_yocto/sources/poky/scripts:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.20.3.imx-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.20.3.imx-r0/recipe-sysroot/usr/bin/crossscripts:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.20.3.imx-r0/recipe-sysroot-native/usr/sbin:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.20.3.imx-r0/recipe-sysroot-native/usr/bin:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.20.3.imx-r0/recipe-sysroot-native/sbin:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.20.3.imx-r0/recipe-sysroot-native/bin:/edm_yocto/sources/poky/bitbake/bin:/edm_yocto/build-wayland-pico-imx8mm/tmp/hosttools"; export HOME="/home/jenkins"; LANG=C git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat clone --bare --mirror https://github.com/nxp-imx/gst-plugins-base.git /edm_yocto/downloads//git2/github.com.nxp-imx.gst-plugins-base.git --progress failed with exit code 128, no output
ERROR: gstreamer1.0-plugins-base-1.20.3.imx-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'gitsm://github.com/nxp-imx/gst-plugins-base.git;protocol=https;branch=MM_04.07.02_2210_L5.15.y')
ERROR: Logfile of failure stored in: /edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/gstreamer1.0-plugins-base/1.20.3.imx-r0/temp/log.do_fetch.990243
ERROR: Task (/edm_yocto/sources/meta-imx/meta-bsp/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.20.3.imx.bb:do_fetch) failed with exit code '1'
ERROR: linux-imx-headers-5.15-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/edm_yocto/build-wayland-pico-imx8mm/tmp/sysroots-uninative/x86_64-linux/usr/bin:/edm_yocto/sources/poky/scripts:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/linux-imx-headers/5.15-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/linux-imx-headers/5.15-r0/recipe-sysroot/usr/bin/crossscripts:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/linux-imx-headers/5.15-r0/recipe-sysroot-native/usr/sbin:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/linux-imx-headers/5.15-r0/recipe-sysroot-native/usr/bin:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/linux-imx-headers/5.15-r0/recipe-sysroot-native/sbin:/edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/linux-imx-headers/5.15-r0/recipe-sysroot-native/bin:/edm_yocto/sources/poky/bitbake/bin:/edm_yocto/build-wayland-pico-imx8mm/tmp/hosttools"; export HOME="/home/jenkins"; LANG=C git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat clone --bare --mirror https://github.com/nxp-imx/linux-imx.git /edm_yocto/downloads//git2/github.com.nxp-imx.linux-imx.git --progress failed with exit code 128, no output
ERROR: linux-imx-headers-5.15-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=lf-5.15.y')
ERROR: Logfile of failure stored in: /edm_yocto/build-wayland-pico-imx8mm/tmp/work/armv8a-mx8mm-poky-linux/linux-imx-headers/5.15-r0/temp/log.do_fetch.953671
ERROR: Task (/edm_yocto/sources/meta-imx/meta-bsp/recipes-kernel/linux/linux-imx-headers_5.15.bb:do_fetch) failed with exit code '1'

 repo init -u https://github.com/TechNexion/tn-imx-yocto-manifest.git -b kirkstone_5.15.y-stable -m imx-5.15.71-2.2.2.xml
repo sync -j4
DISTRO=fsl-imx-wayland MACHINE=pico-imx8mm BASEBOARD=pi source tn-setup-release.sh -b build-wayland-pico-imx8mm
bitbake imx-image-full

Captura de tela de 2024-03-11 17-51-11

ray-chang commented 8 months ago

@paoloturim

Make sure your network is stable. The fetch command is related to your network.

BR, Ray

paoloturim commented 8 months ago
MACHINE=pico-imx8mm DISTRO=fsl-imx-xwayland source tn-setup-release.sh -b build-xwayland
bitbake imx-image-core

Finally I managed to generate my Kirkstone image for pico-imx8mm Using native Ubuntu 22.04 (non-docker) But, not without having to give these two commands below: bitbake rust-llvm-native -c cleansstate bitbake rust-llvm-native