I have tried to build the Yocto 4.0 and Yocto 4.2 imx-image full following the user’s guide.
Here are the steps that I followed for Yocto 4.2
docker pull advrisc/u20.04-imx8lbv1
docker run --privileged -it --name yocto4.2 -v yocto4.2:/home/adv-release-bsp -v /dev:/dev advrisc/u20.04-imx8lbv1 /bin/bash
docker ps (find the container)
downloaded downloads_6.1.22.tar.gz via browser
docker cp downloads_6.1.22.tar.gz f1a2d3573d37:/home/adv
tar xf downloads_6.1.22.tar.gz
git config --global user.name “Bill Priest”
git config --global user.email bill.priest@*****.com
mkdir adv-release-bsp
sudo chown adv:adv adv-release-bsp
cd adv-release-bsp
repo init -u GitHub - ADVANTECH-Corp/adv-arm-yocto-bsp -b imx-linux-mickledore -m adv-6.1.22-2.0.0.xml (note this is changed from the user manual as github doesn’t allow git: any more)
repo sync
git config --global http.sslverify false
git config --global url.“https://”.insteadOf git://
ln -s …/downloads
MACHINE=imx8mprsb3720a2 DISTRO=fsl-imx-xwayland source imx-setup-release.sh -b bld-xwayland
bitbake imx-image-full
The following warnings and errors were seen:
Sstate summary: Wanted 5190 Local 0 Mirrors 0 Missed 5190 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
WARNING: vulkan-loader-1.2.182.0-r0 do_fetch: Failed to fetch URL git://github.com/KhronosGroup/Vulkan-Loader.git;protocol=https;branch=master, attempting MIRRORS if available
WARNING: go-context-git-r0 do_fetch: Failed to fetch URL git://github.com/gorilla/context.git;branch=master;protocol=https, attempting MIRRORS if available
WARNING: go-mux-git-r0 do_fetch: Failed to fetch URL git://github.com/gorilla/mux.git;branch=master;protocol=https, attempting MIRRORS if available
WARNING: go-cli-1.1.0+gitAUTOINC+27ecc97192-r0 do_fetch: Failed to fetch URL git://github.com/codegangsta/cli.git;branch=master;protocol=https, attempting MIRRORS if available
WARNING: rtl8723bs-bt-git-r0 do_fetch: URL: git://github.com/lwfinger/rtl8723bs_bt.git uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url.
WARNING: rtl8723bs-bt-git-r0 do_fetch: URL: git://github.com/lwfinger/rtl8723bs_bt.git does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls.
WARNING: python3-matplotlib-3.6.3-r0 do_unpack: Failed to find a git repository in WORKDIR: /home/adv/adv-release-bsp/bld-xwayland/tmp/work/armv8a-poky-linux/python3-matplotlib/3.6.3-r0
WARNING: rtl8723bs-bt-git-r0 do_unpack: URL: git://github.com/lwfinger/rtl8723bs_bt.git uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url.
WARNING: rtl8723bs-bt-git-r0 do_unpack: URL: git://github.com/lwfinger/rtl8723bs_bt.git does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls.
WARNING: rtl8723bs-bt-git-r0 do_patch: URL: git://github.com/lwfinger/rtl8723bs_bt.git uses git protocol which is no longer supported by github. Please change to ;protocol=https in the url.
WARNING: rtl8723bs-bt-git-r0 do_patch: URL: git://github.com/lwfinger/rtl8723bs_bt.git does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls.
WARNING: nnshark-2021.10.imx-r0 do_fetch: Failed to fetch URL gitsm://anongit.freedesktop.org/gstreamer/common;protocol=git;name=common;subpath=common;nobranch=1;bareclone=1;nobranch=1, attempting MIRRORS if available
ERROR: nnshark-2021.10.imx-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH=“/home/adv/adv-release-bsp/bld-xwayland/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/adv/adv-release-bsp/sources/poky/scripts:/home/adv/adv-release-bsp/bld-xwayland/tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/adv/adv-release-bsp/bld-xwayland/tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0/recipe-sysroot/usr/bin/crossscripts:/home/adv/adv-release-bsp/bld-xwayland/tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0/recipe-sysroot-native/usr/sbin:/home/adv/adv-release-bsp/bld-xwayland/tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0/recipe-sysroot-native/usr/bin:/home/adv/adv-release-bsp/bld-xwayland/tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0/recipe-sysroot-native/sbin:/home/adv/adv-release-bsp/bld-xwayland/tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0/recipe-sysroot-native/bin:/home/adv/adv-release-bsp/sources/poky/bitbake/bin:/home/adv/adv-release-bsp/bld-xwayland/tmp/hosttools”; export HOME=“/home/adv”; LANG=C git -c gc.autoDetach=false -c core.pager=cat clone --bare --mirror git://anongit.freedesktop.org/gstreamer/common /home/adv/adv-release-bsp/downloads//git2/anongit.freedesktop.org.gstreamer.common --progress failed with exit code 128, no output
ERROR: nnshark-2021.10.imx-r0 do_fetch: gitsm: submodule download failed: FetchError Fetcher failure for URL: ‘gitsm://anongit.freedesktop.org/gstreamer/common;protocol=git;name=common;subpath=common;nobranch=1;bareclone=1;nobranch=1’. Unable to fetch URL from any source.
WARNING: nnshark-2021.10.imx-r0 do_fetch: Failed to fetch URL gitsm://github.com/nxp-imx/nnshark.git;protocol=https;branch=2021.10.imx, attempting MIRRORS if available
ERROR: nnshark-2021.10.imx-r0 do_fetch: Fetcher failure for URL: ‘gitsm://anongit.freedesktop.org/gstreamer/common;protocol=git;name=common;subpath=common;nobranch=1;bareclone=1;nobranch=1’. Unable to fetch URL from any source.
ERROR: nnshark-2021.10.imx-r0 do_fetch: Bitbake Fetcher Error: FetchError(‘Unable to fetch URL from any source.’, ‘gitsm://github.com/nxp-imx/nnshark.git;protocol=https;branch=2021.10.imx’)
ERROR: Logfile of failure stored in: /home/adv/adv-release-bsp/bld-xwayland/tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0/temp/log.do_fetch.632126
ERROR: Task (/home/adv/adv-release-bsp/sources/meta-imx/meta-ml/recipes-nnstreamer/nnshark/nnshark_2021.10.imx.bb:do_fetch) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 3966 tasks of which 0 didn’t need to be rerun and 1 failed.
Summary: 1 task failed:
/home/adv/adv-release-bsp/sources/meta-imx/meta-ml/recipes-nnstreamer/nnshark/nnshark_2021.10.imx.bb:do_fetch
Summary: There were 13 WARNING messages.
Summary: There were 4 ERROR messages, returning a non-zero exit code.
A number of the required packages in .bb files use the no longer existing anongit.freedesktop.org URL and need gitlab.freedesktop.org URL.
I was unable to find nnshark’s recipe file (probably buried in gstreamer). I did notice that the following were created in the downloads directory.
git2_anongit.freedesktop.org.gstreamer.common.tar.gz.tmp
git2_github.com.nxp-imx.nnshark.git.tar.gz.tmp
Any pointers on how to get passed these issues would be appreciated. Ultimately I plan on capturing the entire source tree once it works so that changes to git repositories don’t affect us until I want them to.