Symptoms

On the branch 1.3.x which uses sam-ba-native recipe, you can have the following Yocto error:

Yocto build log

WARNING: sam-ba-native-3.2.3-r0 do_fetch: Failed to fetch URL https://github.com/atmelcorp/sam-ba/releases/download/v3.2.3/sam-ba_3.2.3-linux_x86_64.tar.gz, attempting MIRRORS if available
ERROR: sam-ba-native-3.2.3-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export PATH="/home/build/shared/lorix-os/poky/scripts/native-intercept:/home/build/shared/lorix-os/poky/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/build/shared/lorix-os/poky/scripts:/home/build/shared/lorix-os/poky/build/tmp/work/x86_64-linux/sam-ba-native/3.2.3-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/build/shared/lorix-os/poky/build/tmp/work/x86_64-linux/sam-ba-native/3.2.3-r0/recipe-sysroot-native/usr/bin:/home/build/shared/lorix-os/poky/build/tmp/work/x86_64-linux/sam-ba-native/3.2.3-r0/recipe-sysroot-native/usr/sbin:/home/build/shared/lorix-os/poky/build/tmp/work/x86_64-linux/sam-ba-native/3.2.3-r0/recipe-sysroot-native/usr/bin:/home/build/shared/lorix-os/poky/build/tmp/work/x86_64-linux/sam-ba-native/3.2.3-r0/recipe-sysroot-native/sbin:/home/build/shared/lorix-os/poky/build/tmp/work/x86_64-linux/sam-ba-native/3.2.3-r0/recipe-sysroot-native/bin:/home/build/shared/lorix-os/poky/bitbake/bin:/home/build/shared/lorix-os/poky/build/tmp/hosttools"; export HOME="/home/build"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -P /yocto/downloads 'https://github.com/atmelcorp/sam-ba/releases/download/v3.2.3/sam-ba_3.2.3-linux_x86_64.tar.gz' --progress=dot -v failed with exit code 8, output:
--2021-11-08 09:17:46--  https://github.com/atmelcorp/sam-ba/releases/download/v3.2.3/sam-ba_3.2.3-linux_x86_64.tar.gz
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-11-08 09:17:46 ERROR 404: Not Found.


ERROR: sam-ba-native-3.2.3-r0 do_fetch: Fetcher failure for URL: 'https://github.com/atmelcorp/sam-ba/releases/download/v3.2.3/sam-ba_3.2.3-linux_x86_64.tar.gz'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/build/shared/lorix-os/poky/build/tmp/work/x86_64-linux/sam-ba-native/3.2.3-r0/temp/log.do_fetch.1090177
ERROR: Task (virtual:native:/home/build/shared/lorix-os/layers/bsp/meta-atmel/recipes-devtools/sam-ba/sam-ba_3.2.3.bb:do_fetch) failed with exit code '1'
CODE

Description

The source repository of sam-ba on which depends the meta meta-atmel is not longer hosted on Github and then the recipe sam-ba-native can't fetch theses sources anymore.

Since LORIX OS doesn't have a strong requirement on it, we can simply remove this dependency. 

Resolution

Update your source to the latest 1.3.x branch commit which fixes this issue by removing the dependency and keep your sources update to date with our repo.

If you can't, you can also fix the issue your self by adding in the file lorix-os/layers/bsp/meta-atmel-wifx/conf/machine/include/sama5d4-wifx.inc the following content:

EXTRA_IMAGEDEPENDS_remove = "sam-ba-native"
CODE

Then restart the build.