tdx-reference-minimal-image failure (verdin)

yocto image build has started to fail: log below -

bitbake tdx-reference-minimal-image
Loading cache: 100% |############################################| Time: 0:00:01
Loaded 3903 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:06
Parsing of 2747 .bb files complete (2736 cached, 11 parsed). 3914 targets, 240 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-tdx-linux"
MACHINE              = "verdin-imx8mm"
DISTRO               = "tdx-xwayland"
DISTRO_VERSION       = "5.3.0-devel-20210610132615+build.0"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta-toradex-nxp     = "HEAD:006b8fb65940c16b9bc9dc7cf2170ae6fdcf6967"
meta-freescale       = "HEAD:f2421b9fa04e9cad0109bfbd095ea0684c5e2281"
meta-freescale-3rdparty = "HEAD:a7b96dc91bb2818d8ed8210654db10d08d4d7890"
meta-toradex-tegra   = "HEAD:60a50b4d6f03a3b4b2d224c2cc2cd37f522dff75"
meta-toradex-bsp-common = "HEAD:2c22dbf1b58cdb340ccd44780c44845341191835"
meta-oe              
meta-filesystems     
meta-gnome           
meta-xfce            
meta-initramfs       
meta-networking      
meta-multimedia      
meta-python          = "HEAD:430ef96fe65f62d8da995f446d5b9b093544f031"
meta-freescale-distro = "HEAD:5d882cdf079b3bde0bd9869ce3ca3db411acbf3b"
meta-toradex-demos   = "HEAD:709b72950c5406ef0e511fee7030b51fc8681e14"
meta-qt5             = "HEAD:b4d24d70aca75791902df5cd59a4f4a54aa4a125"
meta-toradex-distro  = "HEAD:a5fcc0566de94d92f78ab156f641ac5dc58855fc"
meta-poky            = "HEAD:f525cb7e0b900908e99d7672347a8c6e5be11101"
meta                 = "HEAD:a1b0631c4723d2a98eb9e80ec85a00bc46276783"

Initialising tasks: 100% |#######################################| Time: 0:00:05
Sstate summary: Wanted 1170 Found 109 Missed 1061 Current 973 (9% match, 50% complete)
NOTE: Executing Tasks
WARNING: linux-toradex-5.4.91+gitAUTOINC+bb33b94f14-r0 do_fetch: Failed to fetch URL git://git.toradex.com/linux-toradex.git;protocol=https;branch=toradex_5.4-2.3.x-imx;name=machine, attempting MIRRORS if available
ERROR: linux-toradex-5.4.91+gitAUTOINC+bb33b94f14-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export PATH="/home/ubuntu/oe-core/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/ubuntu/oe-core/layers/openembedded-core/scripts:/home/ubuntu/oe-core/build/tmp/work/verdin_imx8mm-tdx-linux/linux-toradex/5.4.91+gitAUTOINC+bb33b94f14-r0/recipe-sysroot-native/usr/bin/aarch64-tdx-linux:/home/ubuntu/oe-core/build/tmp/work/verdin_imx8mm-tdx-linux/linux-toradex/5.4.91+gitAUTOINC+bb33b94f14-r0/recipe-sysroot/usr/bin/crossscripts:/home/ubuntu/oe-core/build/tmp/work/verdin_imx8mm-tdx-linux/linux-toradex/5.4.91+gitAUTOINC+bb33b94f14-r0/recipe-sysroot-native/usr/sbin:/home/ubuntu/oe-core/build/tmp/work/verdin_imx8mm-tdx-linux/linux-toradex/5.4.91+gitAUTOINC+bb33b94f14-r0/recipe-sysroot-native/usr/bin:/home/ubuntu/oe-core/build/tmp/work/verdin_imx8mm-tdx-linux/linux-toradex/5.4.91+gitAUTOINC+bb33b94f14-r0/recipe-sysroot-native/sbin:/home/ubuntu/oe-core/build/tmp/work/verdin_imx8mm-tdx-linux/linux-toradex/5.4.91+gitAUTOINC+bb33b94f14-r0/recipe-sysroot-native/bin:/home/ubuntu/oe-core/layers/openembedded-core/bitbake/bin:/home/ubuntu/oe-core/build/tmp/hosttools"; export HOME="/home/ubuntu"; git -c core.fsyncobjectfiles=0 remote failed with exit code 128, output:
fatal: not a git repository (or any of the parent directories): .git

ERROR: linux-toradex-5.4.91+gitAUTOINC+bb33b94f14-r0 do_fetch: Fetcher failure for URL: 'git://git.toradex.com/linux-toradex.git;protocol=https;branch=toradex_5.4-2.3.x-imx;name=machine'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/ubuntu/oe-core/build/tmp/work/verdin_imx8mm-tdx-linux/linux-toradex/5.4.91+gitAUTOINC+bb33b94f14-r0/temp/log.do_fetch.2327747
ERROR: Task (/home/ubuntu/oe-core/build/../layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex_5.4-2.3.x.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2762 tasks of which 2471 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds

Summary: 1 task failed:
  /home/ubuntu/oe-core/build/../layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex_5.4-2.3.x.bb:do_fetch
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Dear @sotaoverride,

Thanks for using the Toradex community.

We are looking into your issue. Do you have additional information to share by now, that could help us?

Best Regards
Kevin

Dear @sotaoverride,

from which directory are you launching bitbake?

The cause of this error message is most probably running a Git command outside of a directory in which a Git folder is initialized. For instance, if you try to run “git commit” in a non-Git folder, you see an error. Git cannot run unless you view a folder configured with Git.

Best Regards
Kevin

Ive been running Bitbake from the right directory, the build directory. I source the Toradex export and all the other steps. Ive put together the following patch to avoid the errors I’ve posted above. It seems one of the commit your recipe references has gone missing or something.

10c10
<     git://git.toradex.com/linux-toradex.git;protocol=https;branch=${SRCBRANCH};name=machine \
---
>     git://git.toradex.com/linux-toradex.git;protocol=http;branch=${SRCBRANCH};name=machine \
25c25
< SRCREV_machine = "64dbf17bb33e10d844b01fd7294104cd4f1b8c5b"
---
> SRCREV_machine = "2dd6306225361e47a9ef40f6a81a5487920a09ab"

There was a corrupt source package on our source mirror server which meanwhile should be mitigated.