Hello,
I want to build imx8mpevk-real-time-edge image by rt-edge Yocto Project v2.3.
However, when I execute "bitbake nxp-image-real-time-edge", I get some ERROR message, like this.
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:02
Loaded 5881 entries from dependency cache.
ERROR: ExpansionError during parsing /home/forlinx/work/yocto-real-time-edge/sources/meta-nxp-demo-experience/recipes-nxp-demo-experience/nxp-demo-experience/nxp-demo-experience_git.bb | ETA: --:--:--
Traceback (most recent call last):
File "/home/forlinx/work/yocto-real-time-edge/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1196, in srcrev_internal_helper(ud=<bb.fetch2.FetchData object at 0x7f55b32a6940>, d=<bb.data_smart.DataSmart object at 0x7f55b3309860>, name='demos'):
if srcrev == "AUTOINC":
> srcrev = ud.method.latest_revision(ud, d, name)
File "/home/forlinx/work/yocto-real-time-edge/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1605, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7f55b32a6940>, d=<bb.data_smart.DataSmart object at 0x7f55b3309860>, name='demos'):
except KeyError:
> revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File "/home/forlinx/work/yocto-real-time-edge/sources/poky/bitbake/lib/bb/fetch2/git.py", line 715, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7f55b32a6940>, d=<bb.data_smart.DataSmart object at 0x7f55b3309860>, name='demos'):
"""
> output = self._lsremote(ud, d, "")
# Tags of the form ^{} may not work, need to fallback to other form
File "/home/forlinx/work/yocto-real-time-edge/sources/poky/bitbake/lib/bb/fetch2/git.py", line 704, in Git._lsremote(ud=<bb.fetch2.FetchData object at 0x7f55b32a6940>, d=<bb.data_smart.DataSmart object at 0x7f55b3309860>, search=''):
bb.fetch2.check_network_access(d, cmd, repourl)
> output = runfetchcmd(cmd, d, True)
if not output:
File "/home/forlinx/work/yocto-real-time-edge/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 913, in runfetchcmd(cmd='export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="2876"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/forlinx/work/yocto-real-time-edge/sources/poky/scripts:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/home/forlinx/work/yocto-real-time-edge/sources/poky/bitbake/bin:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/hosttools"; export HOME="/home/forlinx"; git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false ls-remote https://source.codeaurora.org/external/imxsupport/nxp-demo-experience-demos-list ', d=<bb.data_smart.DataSmart object at 0x7f55b32a6ef0>, quiet=True, cleanup=[], log=None, workdir=None):
> raise FetchError(error_message)
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="2876"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/forlinx/work/yocto-real-time-edge/sources/poky/scripts:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot/usr/bin/crossscripts:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/sbin:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/usr/bin:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/sbin:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/work/cortexa53-crypto-poky-linux/nxp-demo-experience/fetcheravoidrecurse-fetcheravoidrecurse/recipe-sysroot-native/bin:/home/forlinx/work/yocto-real-time-edge/sources/poky/bitbake/bin:/home/forlinx/work/yocto-real-time-edge/build-imx8mpevk-real-time-edge/tmp/hosttools"; export HOME="/home/forlinx"; git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false ls-remote https://source.codeaurora.org/external/imxsupport/nxp-demo-experience-demos-list failed with exit code 128, output:
warning: core.fsyncObjectFiles is deprecated; use core.fsync instead
fatal: unable to access 'https://source.codeaurora.org/external/imxsupport/nxp-demo-experience-demos-list/': Could not resolve host: source.codeaurora.org
The variable dependency chain for the failure is: SRCPV -> PV -> BP -> FILESPATH
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
What did I do wrong?
Could you give me some advice?
Solved! Go to Solution.
This is your network issue.I can build this image.
You should contact your IT department to check the firewall rules.
The source server is not in china, you need VPN.
Thank you for the reply.
I ran it with a VPN connection, but I got the same ERROR message.
On the contrary, if I don't connect to the VPN to run it, it will work, although I get an error when downloading some package and need to link to the VPN to download it separately. The error message like this.
I download above packets by running the git command alone.
But it sends me some new error message.
This is your network issue.I can build this image.
You should contact your IT department to check the firewall rules.