Hi,
I am using Ubuntu 22.04.1 ,Vivado 2023.1 and petalinux 2023.1 .
I have created design for ADRV9002 with zcu102 . Hdl file and meta-adi taken from analog devices github site(https://github.com/analogdevicesinc).
followed steps mentioned in meta-adi/meta-adi-xilinx/readme file
while building petalinux project I am getting error as "Expansion Error during parsing <prj_path>/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2023.1.bb
how to solve this error?
[INFO] Sourcing buildtools
[INFO] Building project
[INFO] Silentconfig project
[INFO] Silentconfig rootfs
[INFO] Generating workspace directory
INFO: bitbake petalinux-image-minimal
NOTE: Started PRServer with DBfile: /home/mpsoc/FMC/ADRV_ZCU/build/cache/prserv.sqlite3, Address: 127.0.0.1:36253, PID: 2579717
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
WARNING: /home/mpsoc/FMC/ADRV_ZCU/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2023.1.bb: Exception during build_dependencies for BUILD_CXXFLAGS | ETA: 0:00:14
WARNING: /home/mpsoc/FMC/ADRV_ZCU/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2023.1.bb: Error during finalise of /home/mpsoc/FMC/ADRV_ZCU/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2023.1.bb
ERROR: ExpansionError during parsing /home/mpsoc/FMC/ADRV_ZCU/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2023.1.bb | ETA: 0:00:14
Traceback (most recent call last):
File "/home/mpsoc/FMC/ADRV_ZCU/components/yocto/layers/poky/bitbake/lib/bb/fetch2/git.py", line 252, in Git.urldata_init(ud=<bb.fetch2.FetchData object at 0x7ff1c81bbaf0>, d=<bb.data_smart.DataSmart object at 0x7ff1c81ba800>):
> ud.setup_revisions(d)
File "/home/mpsoc/FMC/ADRV_ZCU/components/yocto/layers/poky/bitbake/lib/bb/fetch2/__init__.py", line 1351, in FetchData.setup_revisions(d=<bb.data_smart.DataSmart object at 0x7ff1c81ba800>):
for name in self.names:
> self.revisions[name] = srcrev_internal_helper(self, d, name)
File "/home/mpsoc/FMC/ADRV_ZCU/components/yocto/layers/poky/bitbake/lib/bb/fetch2/__init__.py", line 1218, in srcrev_internal_helper(ud=<bb.fetch2.FetchData object at 0x7ff1c81bbaf0>, d=<bb.data_smart.DataSmart object at 0x7ff1c81ba800>, name='default'):
if srcrev == "AUTOINC":
> srcrev = ud.method.latest_revision(ud, d, name)
File "/home/mpsoc/FMC/ADRV_ZCU/components/yocto/layers/poky/bitbake/lib/bb/fetch2/__init__.py", line 1628, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7ff1c81bbaf0>, d=<bb.data_smart.DataSmart object at 0x7ff1c81ba800>, name='default'):
except KeyError:
> revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File "/home/mpsoc/FMC/ADRV_ZCU/components/yocto/layers/poky/bitbake/lib/bb/fetch2/git.py", line 758, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7ff1c81bbaf0>, d=<bb.data_smart.DataSmart object at 0x7ff1c81ba800>, name='default'):
return sha1
> raise bb.fetch2.FetchError("Unable to resolve '%s' in upstream git repository in git ls-remote output for %s" % \
(ud.unresolvedrev[name], ud.host+ud.path))
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Unable to resolve 'master' in upstream git repository in git ls-remote output for github.com/analogdevicesinc/linux.git
The variable dependency chain for the failure is: SRCPV -> PV -> WORKDIR -> RECIPE_SYSROOT_NATIVE -> STAGING_DIR_NATIVE -> STAGING_INCDIR_NATIVE -> BUILD_CPPFLAGS -> BUILD_CFLAGS -> BUILD_CXXFLAGS
ERROR: Parsing halted due to errors, see error messages above
Summary: There were 2 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
ERROR: Failed to build project. Check the /home/mpsoc/FMC/ADRV_ZCU/build/build.log file for more details...