Initialising tasks: 100% |###################################################################################################################################################################################################################################################################################| Time: 0:00:02
Sstate summary: Wanted 2217 Local 20 Mirrors 0 Missed 2197 Current 274 (0% match, 11% complete)
NOTE: Executing Tasks
ERROR: kern-tools-native-0.3+gitAUTOINC+2d01f24bc7-r0 do_unpack: Bitbake Fetcher Error: UnpackError(‘No up to date source found: clone directory not available or not up to date: /code/torizon/verdin-imx8mp/oe-core-6.x.y/downloads/git2/git.yoctoproject.org.yocto-kernel-tools.git; shallow clone not enabled’, ‘git://git.yoctoproject.org/yocto-kernel-tools.git;branch=master’)
ERROR: Logfile of failure stored in: /code/torizon/verdin-imx8mp/oe-core-6.x.y/build-torizon/tmp/work/x86_64-linux/kern-tools-native/0.3+gitAUTOINC+2d01f24bc7-r0/temp/log.do_unpack.1910479
ERROR: Task (/code/torizon/verdin-imx8mp/oe-core-6.x.y/build-torizon/conf/../../layers/openembedded-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_unpack) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 889 tasks of which 865 didn’t need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
Summary: 1 task failed:
/code/torizon/verdin-imx8mp/oe-core-6.x.y/build-torizon/conf/../../layers/openembedded-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_unpack
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
This log is for trying 6.8.3.
The do_fetch fails looking for this: git://git.yoctoproject.org/yocto-kernel-tools.git;branch=master, which appears to not be on the interwebs anymore. I can’t find reference on the yocto project for why this is missing or moved or renamed, etc.
It would be better if toradex had a fix for this that they’ve validated. For now, I’m getting by with a stock image for my testing (my real issue is validating a custom carrier board for the imx8mp using native HDMI).
I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.
Did you like my answer?
Torizon OS 6.8 Build Issue with kern-tools-native
The error you’re encountering with the git://git.yoctoproject.org/yocto-kernel-tools.git repository is a known upstream issue where the Yocto Project repository has become unavailable(1).
Recommended Solution
For building custom Torizon OS images, I recommend using the containerized build approach rather than native builds, as it provides better isolation and dependency management(2).
The containerized build includes all necessary dependencies and should resolve the kern-tools-native fetch issues(2).
Alternative: Use TorizonCore Builder
For your use case of validating a custom carrier board with native HDMI on the iMX8MP, consider using TorizonCore Builder instead of building from source(3):
The do_fetch fails looking for this: git://git.yoctoproject.org/yocto-kernel-tools.git;branch=master, which appears to not be on the interwebs anymore.
How did you come to this conclusion? I can see and access the repository just fine at the expected URL here: Making sure you're not a bot!
Cloning the repository works fine as well. We also don’t see any issues related to yocto-kernel-tools in our automated internal builds.
Looking at your error log the issue wasn’t that the repository wasn’t found but seems to be this line:
UnpackError(‘No up to date source found: clone directory not available or not up to date: /code/torizon/verdin-imx8mp/oe-core-6.x.y/downloads/git2/git.yoctoproject.org.yocto-kernel-tools.git; shallow clone not enabled’, ‘git://git.yoctoproject.org/yocto-kernel-tools.git;branch=master’)
Some research suggest that perhaps it may be an issue with the build environment. Though nothing specific was noted as a root cause. What is your build environment like? For example are you building in a containerized environment or a Linux distro? What kind of distro?
You claim you can’t access this repository and that’s the crux of your issue. But I can access this just fine.
I’m running on ubuntu, non containerized build.
What version of Ubuntu are you using?
I use the same environement to build 7.x.y for aquila-am69 with no issues.
Is it 6.x.y you are having issues building for or Verdin-imx8mp? For example can you build Verdin-imx8mp on 7.x.y? Can you build for some other machine on 6.x.y?
I think I agree with you, there was some internet issue where momentarily that wasn’t available. I did this command to clear that package out and force the re-fetch, and it gets past that with no issue now:
bitbake -c cleanall kern-tools-native
But to specifically address your question, yes I can see the package:
ping git.yoctoproject.org
PING sanjose.wlsource.codeaurora.org (38.108.68.163) 56(84) bytes of data.
64 bytes from 38.108.68.163: icmp_seq=1 ttl=42 time=125 ms
64 bytes from 38.108.68.163: icmp_seq=2 ttl=42 time=62.1 ms
64 bytes from 38.108.68.163: icmp_seq=3 ttl=42 time=109 ms
^C
— sanjose.wlsource.codeaurora.org ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2021ms
rtt min/avg/max/mdev = 62.069/98.784/125.031/26.748 ms
I do have a working build now. I got an error about elfutils using deprecated flags for curl, but that was easy enough to work around by getting rid of -Werror compile flag. Thanks.