Digilent / Zybo-Z7

19 stars 4 forks source link

Petalinux-build error with the latest Vivado (2022-2) and latest Zybo-Z7 bsp (2022-1) #11

Open daniela-camgile opened 1 year ago

daniela-camgile commented 1 year ago

I'm trying to build a Linux image for a Zybo-Z7-10 board, using your latest (2022-1) bsp and the latest Vivado (2022-2) freshly installed. This results in the following error: ERROR: linux-xlnx-5.15.36+gitAUTOINC+machine-r0 do_kernel_version_sanity_check: Package Version (5.15.36+gitAUTOINC+machine) does not match of kernel being built (5.15.19). Please update the PV variable to match the kernel source or set KERNEL_VERSION_SANITY_SKIP="1" in your recipe. ERROR: linux-xlnx-5.15.36+gitAUTOINC+machine-r0 do_kernel_version_sanity_check: ExecutionError('/home/daniela/builds/os/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/linux-xlnx/5.15.36+gitAUTOINC+machine-r0/temp/run.do_kernel_version_sanity_check.7844', 1, None, None) ERROR: Logfile of failure stored in: /home/daniela/builds/os/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/linux-xlnx/5.15.36+gitAUTOINC+machine-r0/temp/log.do_kernel_version_sanity_check.7844 ERROR: Task (/home/daniela/builds/os/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.2.bb:do_kernel_version_sanity_check) failed with exit code '1'

Is there any chance you could release a 2022-2 version or how would you recommend solving the issue? I am trying to avoid downgrading Vivado to an older version if at all possible. Thanks!

tcao commented 5 months ago

Before 2022.2/2023.1/2023.2 update is available, here's the change I made to get petalinux build passed, by adding one line before the include statement for the file os/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.2.bb: KERNEL_VERSION_SANITY_SKIP="1"

yocto error prompt did help.