Build commontorizon for rpi4

Hello,

I am trying to build an image for rpi4, but there is some error regarding uboot.

WARNING: u-boot-1_2022.01-r0 do_fetch: Failed to fetch URL git://github.com/commontorizon/u-boot.git;protocol=https;branch=kirkstone, attempting MIRRORS if available
ERROR: u-boot-1_2022.01-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/spinarr/commontorizon/workdir/build-torizon-upstream/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/spinarr/commontorizon/workdir/build-torizon-upstream/tmp/work/raspberrypi4_64-tdx-linux/u-boot/1_2022.01-r0/recipe-sysroot-native/usr/bin/python3-native:/home/spinarr/commontorizon/workdir/layers/openembedded-core/scripts:/home/spinarr/commontorizon/workdir/build-torizon-upstream/tmp/work/raspberrypi4_64-tdx-linux/u-boot/1_2022.01-r0/recipe-sysroot-native/usr/bin/aarch64-tdx-linux:/home/spinarr/commontorizon/workdir/build-torizon-upstream/tmp/work/raspberrypi4_64-tdx-linux/u-boot/1_2022.01-r0/recipe-sysroot/usr/bin/crossscripts:/home/spinarr/commontorizon/workdir/build-torizon-upstream/tmp/work/raspberrypi4_64-tdx-linux/u-boot/1_2022.01-r0/recipe-sysroot-native/usr/sbin:/home/spinarr/commontorizon/workdir/build-torizon-upstream/tmp/work/raspberrypi4_64-tdx-linux/u-boot/1_2022.01-r0/recipe-sysroot-native/usr/bin:/home/spinarr/commontorizon/workdir/build-torizon-upstream/tmp/work/raspberrypi4_64-tdx-linux/u-boot/1_2022.01-r0/recipe-sysroot-native/sbin:/home/spinarr/commontorizon/workdir/build-torizon-upstream/tmp/work/raspberrypi4_64-tdx-linux/u-boot/1_2022.01-r0/recipe-sysroot-native/bin:/home/spinarr/commontorizon/workdir/layers/openembedded-core/bitbake/bin:/home/spinarr/commontorizon/workdir/build-torizon-upstream/tmp/hosttools”; export HOME=“/home/spinarr”; LANG=C git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat clone --bare --mirror https://github.com/commontorizon/u-boot.git /home/spinarr/commontorizon/workdir/downloads/git2/github.com.commontorizon.u-boot.git --progress failed with exit code 128, no output
ERROR: u-boot-1_2022.01-r0 do_fetch: Bitbake Fetcher Error: FetchError(‘Unable to fetch URL from any source.’, ‘git://github.com/commontorizon/u-boot.git;protocol=https;branch=kirkstone’)
ERROR: Logfile of failure stored in: /home/spinarr/commontorizon/workdir/build-torizon-upstream/tmp/work/raspberrypi4_64-tdx-linux/u-boot/1_2022.01-r0/temp/log.do_fetch.1824539
ERROR: Task (/home/spinarr/commontorizon/workdir/build-torizon-upstream/conf/…/…/layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot_2022.01.bb:do_fetch) failed with exit code ‘1’
Waiting for 2 running tasks to finish:

I am following this doc link: Documentation/BUILDING.md at main · commontorizon/Documentation · GitHub

Many thanks.
Rostislav

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Rostislav,

Thank you for reaching out. It seems you’re encountering an issue with fetching the U-Boot source code for your Raspberry Pi 4 build. Let’s go through some steps to help resolve this:

  1. Verify the Repository URL:

    • Double-check that the URL git://github.com/commontorizon/u-boot.git is correct. You can try accessing it directly in a web browser or using a Git client to ensure the repository is available.
  2. Check Network Connectivity:

    • Ensure your network connection is stable and that there are no firewall or proxy settings blocking access to GitHub.
  3. Repository Availability:

    • Confirm that the repository exists and is publicly accessible. If it has been moved or deleted, you will need to update the URL in your build configuration.
  4. Modify the Build Configuration:

    • If the URL or branch is incorrect, update your build configuration files, such as the u-boot_2022.01.bb recipe file, to point to a valid repository or branch.
  5. Use a Mirror or Alternative Source:

    • If the repository is temporarily unavailable, consider using a mirror or alternative source. You can specify additional mirrors in your build configuration to fall back on if the primary source fails.

By following these steps, you should be able to resolve the issue with fetching the U-Boot source. If you continue to experience problems, ensure all steps in the documentation you are following are correctly implemented.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Torizon for Raspberry Pi and x86-64.

Hi @spinarr

Sorry for the delay.

As pointed by @ToradexAI, it seems this link is not working.

I check it with the Torizon team and it seems that the contents from commontorizon github repo is getting migrated to meta-toradex-torizon, but it is still a work-in-progress and some links are broken.

Can I asked if you have a running project that depends on this? Or are you just evaluating it?

Hello Allan,

thanks for the information.
It is for evaluation at this moment.

Many thanks
Rostislav