Basic IMX8 build directly from user's guide fails with 404
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using the guide here: https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf
I followed the basic steps of `repo init`, `repo sync`, `source imx-setup-release.sh`, and finally `bitbake`, up through page 9, only to receive errors of this sort:
DEBUG: Mirror fetch failure for url http://downloads.yoctoproject.org/mirror/sources/git2_github.com.nxp-imx.uboot-imx.git.tar.gz (original url: git://github.com/nxp-imx/uboot-imx.git;protocol=https;branch=lf_v2024.04)
DEBUG: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export SSL_CERT_DIR="/usr/lib/ssl/certs"; export SSL_CERT_FILE="/usr/lib/ssl/cert.pem"; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1001/bus"; export PATH="/home/epoulsen/workspaces/wtf/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/usr/bin/python3-native:/home/epoulsen/workspaces/wtf/sources/poky/scripts:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot/usr/bin/crossscripts:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/usr/sbin:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/usr/bin:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/sbin:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/bin:/home/epoulsen/workspaces/wtf/sources/poky/bitbake/bin:/home/epoulsen/workspaces/wtf/build/tmp/hosttools"; export HOME="/home/epoulsen"; /usr/bin/env wget -t 2 -T 30 -O /home/epoulsen/workspaces/wtf/downloads/git2_github.com.nxp-imx.uboot-imx.git.tar.gz.tmp -P /home/epoulsen/workspaces/wtf/downloads 'http://downloads.yoctoproject.org/mirror/sources/git2_github.com.nxp-imx.uboot-imx.git.tar.gz' --progress=dot -v failed with exit code 8, see logfile for output
DEBUG: Fetching http://sources.openembedded.org/git2_github.com.nxp-imx.uboot-imx.git.tar.gz using command '/usr/bin/env wget -t 2 -T 30 -O /home/epoulsen/workspaces/wtf/downloads/git2_github.com.nxp-imx.uboot-imx.git.tar.gz.tmp -P /home/epoulsen/workspaces/wtf/downloads 'http://sources.openembedded.org/git2_github.com.nxp-imx.uboot-imx.git.tar.gz''
DEBUG: Fetcher accessed the network with the command /usr/bin/env wget -t 2 -T 30 -O /home/epoulsen/workspaces/wtf/downloads/git2_github.com.nxp-imx.uboot-imx.git.tar.gz.tmp -P /home/epoulsen/workspaces/wtf/downloads 'http://sources.openembedded.org/git2_github.com.nxp-imx.uboot-imx.git.tar.gz'
DEBUG: Running export PSEUDO_DISABLED=1; export SSL_CERT_DIR="/usr/lib/ssl/certs"; export SSL_CERT_FILE="/usr/lib/ssl/cert.pem"; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1001/bus"; export PATH="/home/epoulsen/workspaces/wtf/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/usr/bin/python3-native:/home/epoulsen/workspaces/wtf/sources/poky/scripts:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot/usr/bin/crossscripts:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/usr/sbin:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/usr/bin:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/sbin:/home/epoulsen/workspaces/wtf/build/tmp/work/imx8mqevk-poky-linux/u-boot-imx/2024.04/recipe-sysroot-native/bin:/home/epoulsen/workspaces/wtf/sources/poky/bitbake/bin:/home/epoulsen/workspaces/wtf/build/tmp/hosttools"; export HOME="/home/epoulsen"; /usr/bin/env wget -t 2 -T 30 -O /home/epoulsen/workspaces/wtf/downloads/git2_github.com.nxp-imx.uboot-imx.git.tar.gz.tmp -P /home/epoulsen/workspaces/wtf/downloads 'http://sources.openembedded.org/git2_github.com.nxp-imx.uboot-imx.git.tar.gz' --progress=dot -v
--2025-01-04 00:11:03-- http://sources.openembedded.org/git2_github.com.nxp-imx.uboot-imx.git.tar.gz
Resolving sources.openembedded.org (sources.openembedded.org)... failed: Name or service not known.
wget: unable to resolve host address ‘sources.openembedded.org’
"sources.openembedded.org" Indeed does not exist.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The fetch error was happening with the link to download uboot-imx
original url: git://github.com/nxp-imx/uboot-imx.git
Please check your network. or have a try to replace git with https.
Here, I try to test it again as followings without issue.
1> ~/8mq$ repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap -m imx-6.6.52-2.2.0.xml
2> ~/8mq$ repo sync
3> ~/8mq$ MACHINE=imx8mqevk DISTRO=fsl-imx-wayland source imx-setup-release.sh -b build-wayland
4> ~/8mq/build-wayland$ bitbake imx-image-multimedia
NOTE: Tasks Summary: Attempted 12255 tasks of which 0 didn't need to be rerun and all succeeded.
Summary: There were 20 WARNING messages.
Regards
Harvey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Harvey,
I tried your solution by copy/pasting the commands you sent, but basically the same result (see below).
My network is working fine. Have you tried these commands from a non-NXP corporate network?
WRT the protocol, isn't that baked into the scripts/manifests? I'm not controlling the URLs that are internal to the repo/bitbake process.
ERROR: linux-imx-6.6.52+git-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1001/bus"; export PATH="/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/sources/poky/scripts:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/imx8mqevk-poky-linux/linux-imx/6.6.52+git/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/imx8mqevk-poky-linux/linux-imx/6.6.52+git/recipe-sysroot/usr/bin/crossscripts:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/imx8mqevk-poky-linux/linux-imx/6.6.52+git/recipe-sysroot-native/usr/sbin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/imx8mqevk-poky-linux/linux-imx/6.6.52+git/recipe-sysroot-native/usr/bin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/imx8mqevk-poky-linux/linux-imx/6.6.52+git/recipe-sysroot-native/sbin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/imx8mqevk-poky-linux/linux-imx/6.6.52+git/recipe-sysroot-native/bin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/sources/poky/bitbake/bin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/hosttools"; export HOME="/home/epoulsen"; LANG=C git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all clone --bare --mirror https://github.com/nxp-imx/linux-imx.git /home/epoulsen/workspaces/nxp_build_test/nxp_forum/downloads//git2/github.com.nxp-imx.linux-imx.git --progress failed with exit code 128, see logfile for output
ERROR: linux-imx-6.6.52+git-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-6.6.y')
ERROR: Logfile of failure stored in: /home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/imx8mqevk-poky-linux/linux-imx/6.6.52+git/temp/log.do_fetch.3178264
ERROR: Task (/home/epoulsen/workspaces/nxp_build_test/nxp_forum/sources/meta-imx/meta-imx-bsp/recipes-kernel/linux/linux-imx_6.6.bb:do_fetch) failed with exit code '1'
WARNING: vulkan-loader-1.3.275.0-r0 do_fetch: Failed to fetch URL git://github.com/KhronosGroup/Vulkan-Loader.git;branch=vulkan-sdk-1.3.275;protocol=https, attempting MIRRORS if available
WARNING: linux-imx-headers-6.6-r0 do_fetch: Failed to fetch URL git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=lf-6.6.y, attempting MIRRORS if available
ERROR: linux-imx-headers-6.6-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1001/bus"; export PATH="/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/sources/poky/scripts:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/armv8a-mx8m-poky-linux/linux-imx-headers/6.6/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/armv8a-mx8m-poky-linux/linux-imx-headers/6.6/recipe-sysroot/usr/bin/crossscripts:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/armv8a-mx8m-poky-linux/linux-imx-headers/6.6/recipe-sysroot-native/usr/sbin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/armv8a-mx8m-poky-linux/linux-imx-headers/6.6/recipe-sysroot-native/usr/bin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/armv8a-mx8m-poky-linux/linux-imx-headers/6.6/recipe-sysroot-native/sbin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/armv8a-mx8m-poky-linux/linux-imx-headers/6.6/recipe-sysroot-native/bin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/sources/poky/bitbake/bin:/home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/hosttools"; export HOME="/home/epoulsen"; LANG=C git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all clone --bare --mirror https://github.com/nxp-imx/linux-imx.git /home/epoulsen/workspaces/nxp_build_test/nxp_forum/downloads//git2/github.com.nxp-imx.linux-imx.git --progress failed with exit code 128, see logfile for output
ERROR: linux-imx-headers-6.6-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-6.6.y')
ERROR: Logfile of failure stored in: /home/epoulsen/workspaces/nxp_build_test/nxp_forum/build-wayland/tmp/work/armv8a-mx8m-poky-linux/linux-imx-headers/6.6/temp/log.do_fetch.3655489
ERROR: Task (/home/epoulsen/workspaces/nxp_build_test/nxp_forum/sources/meta-imx/meta-imx-bsp/recipes-kernel/linux/linux-imx-headers_6.6.bb:do_fetch) failed with exit code '1'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I haven't got a chance to build it from a non-NXP network.
The network may be related to proxy, not quite sure of which part of the network configuration. that leads to the function of "git clone"
So, can you download these with fetch failure by means of that "git clone https://xxx.git" with the build host?
What about having a try to put below section to your .gitconfig.
[url "https://"]
insteadOf = git://
Regards
Harvey
