Basic build of torizon-core fails on WSL2

Following the containerized yocto instructions, bitbake can’t fetch plymouth, and also looks like it’s hanging while fetching linux-toradex-mainline

same results for torizon-core-docker, torizon-core-lite, and linux-toradex-mainline

pokyuser@0674766c9d9c:/workdir/torizon/build-torizon-upstream$ bitbake linux-toradex-mainline
Loading cache: 100% |####################################################################################| Time: 0:00:00
Loaded 3893 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-tdx-linux-gnueabi"
MACHINE              = "apalis-imx6"
DISTRO               = "torizon-upstream"
DISTRO_VERSION       = "5.4.0-devel-20210929212329+build.0"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-toradex-torizon = "HEAD:a131db60e1038a961491803d068e9f02f9f165a4"
meta-toradex-distro  = "HEAD:e1ede4ecd59e23f29f19dc9729f0a3b89f1f69af"
meta-toradex-bsp-common = "HEAD:276a8e076225332b336e41eb2c62375ddc6989bf"
meta-oe
meta-networking
meta-filesystems
meta-python
meta-perl            = "HEAD:85f8047c71047d93cf79a954142157f85079968d"
meta-virtualization  = "HEAD:dbd1a73fe7006dcc6d56a369c1de73340e03c939"
meta-updater         = "HEAD:5d49b28570ed030924ed5d45fbced24d3cb6e588"
meta-toradex-nxp     = "HEAD:4a074b05bad21ac438a398bb036ec0e8da41513c"
meta-freescale       = "HEAD:12c3eed6a90b436565126d8ba6934f794b816e25"
meta-freescale-3rdparty = "HEAD:537cb85e4db17d1f6b356a92112b32ae2e39b235"
meta-yocto-bsp
meta-poky            = "HEAD:eb6e625d72fb49a707b0782e55530b3551f2396f"
meta-security        = "HEAD:6466c6fb02f36f459b06d434484df26e083f3489"
meta-lmp-base        = "HEAD:29c6ed5918831b95b87e423026e5d536e8f3a1a7"
meta                 = "HEAD:ce78c16409363741d59a2f787aca66077bec93cd"

Initialising tasks: 100% |###############################################################################| Time: 0:00:01
Sstate summary: Wanted 540 Found 0 Missed 540 Current 61 (0% match, 10% complete)
NOTE: Executing Tasks
WARNING: plymouth-0.9.5+gitAUTOINC+d7c737d05a-r0 do_fetch: Failed to fetch URL git://gitlab.freedesktop.org/plymouth/plymouth.git;protocol=https;branch=master, attempting MIRRORS if available
ERROR: plymouth-0.9.5+gitAUTOINC+d7c737d05a-r0 do_fetch: Fetcher failure: Unable to find revision d7c737d05afea5ff1b26f90708a15add5c30fe92 in branch master even from upstream
ERROR: plymouth-0.9.5+gitAUTOINC+d7c737d05a-r0 do_fetch: Fetcher failure for URL: 'git://gitlab.freedesktop.org/plymouth/plymouth.git;protocol=https;branch=master'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /workdir/torizon/build-torizon-upstream/tmp/work/armv7at2hf-neon-imx-tdx-linux-gnueabi/plymouth/0.9.5+gitAUTOINC+d7c737d05a-r0/temp/log.do_fetch.28148
ERROR: Task (/workdir/torizon/build-torizon-upstream/conf/../../layers/meta-toradex-torizon/recipes-core/plymouth/plymouth_git.bb:do_fetch) failed with exit code '1'

reupping repo didnt help
repo init -u https://git.toradex.com/toradex-manifest.git -b dunfell-5.x.y -m torizoncore/default.xml
repo sync

same error…

EDIT: Downloading the kernel source was just slow… it worked after a couple of long tries
also hung at with very minimal network activity on the host machine until I ctrl-c out:

Waiting for 1 running tasks to finish:
0: linux-toradex-mainline-5.4.129+gitAUTOINC+4db1cb3192_c43bc2d530-r0 do_fetch (pid 24887) |               <=>

Greetings @ed-bear,

Regarding the plymouth issue. It appears that very recently the plymouth project has followed the recent trend of renaming the “master” branch to “main” as seen here: Branches · plymouth / plymouth · GitLab

This breaks the current plymouth recipe which is trying to fetch the now non-existent “master” branch. You can modify the recipe yourself to fix the branch name and I’ll report this internally to fix on our side for future customers.

With regards to the linux-toradex, yeah this recipe usually can take a while. But I see from your edit that the task eventually resolved.

Best Regards,
Jeremias

Thanks! Easy fix!

Glad I was able to assist. Thank you for reporting this to us.