Downloads for imx8mprsb3720a1 seem to have missing packages and fail trying to download from git://github.com

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.

HI Sir ,

This probem we also are getting recently, Please refer this solution as below:

1 Like

Hi Phill,
I’m new to yocto so bear with me as my interpretation of the solution below may be incorrect.
Here is what I did
From the adv-release-bsp directory
find -name “nnshark_2021.10.imx.bb”
output was ./sources/meta-imx/meta-ml/recipes-nnstreamer/nnshark/nnshark_2021.10.imx.bb
vim ./sources/meta-imx/meta-ml/recipes-nnstreamer/nnshark/nnshark_2021.10.imx.bb
changed NNSHARK_SRC to NNSHARK_SRC ?= “git://github.com/nxp-imx/nnshark.git;protocol=https”
I was unsure what fetch meant so I did
bitbake -c fetch nnshark
looking in bld-xwayland/tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0 I saw an nnshark.git file that contained html which made me think the fetch did not work.
I stumbled around and was able to make it work by first running
bitbake nnshark
cd tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0/git
git config submodule.common.url GitHub - GStreamer/common: 'common' shared submodule. This module is unused and deprecated.
git submodule update
cd ~/adv-release-bsp/bld-xwayland
bitbake imx-image-full

tmp/deploy/images/imx8mprsb3720a2 was produced

Unfortunately most of my units are A1 and not A2.
I tried
MACHINE=imx8mprsb3720a1 DISTRO=fsl-imx-xwayland source imx-setup-release.sh -b bld-xwayland-a1
bitbake imx-image-full

ERROR: OE-core’s config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:

MACHINE=imx8mprsb3720a1 is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.

I will try yocto4.0 as I realize that yocto4.2 is a beta.

Thanks for your help,

Bill