Build iMX8 bring up image

I’m trying to generate a bring up Apalis iMX8 image as described in the tutorial below:

But I’m stuck at the error below

WARNING: linux-toradex-4.9.51-r0 do_fetch: Failed to fetch URL git://git.toradex.com/linux-toradex.git;protocol=https;branch=toradex_imx_4.9.51_imx8_beta2-bring_up, attempting MIRRORS if available
ERROR: linux-toradex-4.9.51-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-HpAPgZwzW7"; export SSH_AUTH_SOCK="/run/user/1000/keyring-BHNdBj/ssh"; export PATH="/home/rodrigo/imx-yocto-bsp/sources/poky/scripts:/home/rodrigo/imx-yocto-bsp/build/tmp/sysroots/x86_64-linux/usr/bin/aarch64-poky-linux:/home/rodrigo/imx-yocto-bsp/build/tmp/sysroots/apalis-imx8/usr/bin/crossscripts:/home/rodrigo/imx-yocto-bsp/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/rodrigo/imx-yocto-bsp/build/tmp/sysroots/x86_64-linux/usr/bin:/home/rodrigo/imx-yocto-bsp/build/tmp/sysroots/x86_64-linux/sbin:/home/rodrigo/imx-yocto-bsp/build/tmp/sysroots/x86_64-linux/bin:/home/rodrigo/imx-yocto-bsp/sources/poky/scripts:/home/rodrigo/imx-yocto-bsp/sources/poky/bitbake/bin:/home/rodrigo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"; export HOME="/home/rodrigo"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror https://git.toradex.com/linux-toradex.git /home/rodrigo/imx-yocto-bsp/downloads//git2/git.toradex.com.linux-toradex.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/rodrigo/imx-yocto-bsp/downloads//git2/git.toradex.com.linux-toradex.git'...
**error: Unable to get pack file https://git.toradex.com/linux-toradex.git/objects/pack/pack-88d6515332876cc2e45fef17f9cf18a79103d4a1.pack**
The requested URL returned error: 404 Not Found
error: Unable to find 43f61e8df71c474cd56b5c971096b9cf8d36cd95 under https://git.toradex.com/linux-toradex.git
Cannot obtain needed object 43f61e8df71c474cd56b5c971096b9cf8d36cd95
while processing commit e9e44dabe46ac3ccb87e7e826fa597d53bad7dce.
error: Fetch failed.

ERROR: linux-toradex-4.9.51-r0 do_fetch: Fetcher failure for URL: 'git://git.toradex.com/linux-toradex.git;protocol=https;branch=toradex_imx_4.9.51_imx8_beta2-bring_up'. Unable to fetch URL from any source.
ERROR: linux-toradex-4.9.51-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/rodrigo/imx-yocto-bsp/build/tmp/work/apalis_imx8-poky-linux/linux-toradex/4.9.51-r0/temp/log.do_fetch.5310
ERROR: Task (/home/rodrigo/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-toradex_4.9.51.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7081 tasks of which 7080 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/rodrigo/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-toradex_4.9.51.bb:do_fetch
Summary: There was 1 WARNING message shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

We noticed that the pack-88d6515332876cc2e45fef17f9cf18a79103d4a1.pack does not exist.

Thanks.

Hi

I’ve seen similar error messages when a fetch got interrupted for whatever reason and then bitbake was restarted. I recommend to delete the kernel git repository in your downloads, e.g. the following directory and all its content. e.g. by:

bitbake -c cleansstate virtual/kernel
bitbake -c fetch virtual/kernel

If that does not help could you give me the IP address of the git server you get assigned? e.g. what IP address is used when you ‘ping git.toradex.com’?

Max

That worked! Thanks!

You are welcome.