PynqZ2 image building error

Hi,

Am trying to generate an Pynq image file for PynqZ2 build first later into customized board Ultrascale+

When I try to run command: bash scripts/image_from_prebuilt.sh PynqZ2 xilinx-pynqz2-2020.2.bsp arm bionic.aarch64.2.5.img

At generating workspace directory it will give following Error:
ERROR: Failed to create workspace directory
ERROR: Failed to build device-tree. Check the /home/PYNQ/sdbuild/build/PynqZ2/petalinux_project/build/build.log file for more details…
Makefile:338: recipe for target ‘/home/PYNQ/sdbuild/build/PynqZ2/petalinux_project/images/linux/system.dtb’ failed
make: *** [/homebuild.log (3.2 KB)
/PYNQ/sdbuild/build/PynqZ2/petalinux_project/images/linux/system.dtb] Error 255
Make failed

LOG file attached

I am running on Ubuntu 18.04.6 , Vivado 2021.1.1, petalinux 2021.1

Do you have any idea ?

Thank you in advance.

1 Like

The PYNQ build flow isn’t compatible with Petalinux 2021.1 - please use the versions specified on this page PYNQ SD Card — Python productivity for Zynq (Pynq) (2020.1 for PYNQ 2.6). We’re currently in the process of updating.

Peter

Okay, thank you for your quick response.

When I run with petalinux 2020.1 got an error saying the device tree, log attached config.log (99.0 KB)

1 Like

According to the log file :
ERROR: Layer meta-user is not compatible with the core layer which only supports these series: zeus (layer is compatible with gatesgarth)

you should set the correct layer support as follow:

inside meta-user/conf/local.conf file, try to add:

LAYERSERIES_COMPAT_mensi-user= “zeus gatesgarth”

Tried, still same problem

Try cleaning the build folder or rebuilding the petalinux-project, as there are temp files and probably these giving your the error. Clean start , change the zeus layer and then build.

Hope it helps!

1 Like

Thank you for your suggestion, I tried still same problem.

  • PetaLinux RootFS Settings

Root password (ROOTFS_ROOT_PASSWD) [root]
Add Extra Users (ADD_EXTRA_USERS) [petalinux:petalinux;]

configuration written to /media/PYNQ/sdbuild/build/PynqZ2/petalinux_project/project-spec/configs/rootfs_config

[INFO] generating plnxtool conf
[INFO] generating user layers
NOTE: Starting bitbake server…
NOTE: Starting bitbake server…
ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/media/PYNQ/sdbuild/build/PynqZ2/petalinux_project/build/bitbake-cookerdaemon.log):
— Starting bitbake server pid 23048 at 2021-10-04 07:40:08.224201 —
ERROR: Layer meta-user is not compatible with the core layer which only supports these series: zeus (layer is compatible with gatesgarth)
ERROR: Layer meta-user is not compatible with the core layer which only supports these series: zeus (layer is compatible with gatesgarth)
ERROR: Layer meta-user is not compatible with the core layer which only supports these series: zeus (layer is compatible with gatesgarth)

ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/media/PYNQ/sdbuild/build/PynqZ2/petalinux_project/build/bitbake-cookerdaemon.log):
— Starting bitbake server pid 23048 at 2021-10-04 07:40:08.224201 —
ERROR: Layer meta-user is not compatible with the core layer which only supports these series: zeus (layer is compatible with gatesgarth)
ERROR: Layer meta-user is not compatible with the core layer which only supports these series: zeus (layer is compatible with gatesgarth)
ERROR: Layer meta-user is not compatible with the core layer which only supports these series: zeus (layer is compatible with gatesgarth)

ERROR: Failed to config project.

Adding this line to conf file worked for me

LAYERSERIES_COMPAT_pynq = “zeus”

Hello. In my case i have vivado 2019.1 petalinux 2019.1 and pynq 2.5 for a zybo z7.
I was getting a different error on the layer but fixed layer.conf with this line instead
LAYERSERIES_COMPAT_pynq = “thud”.

The process continues a little bit but then this error appears:

PYNQ_BOARDNAME=Zybo FPGA_MANAGER=1 petalinux-build -c device-tree -p /home/user/PYNQ/sdbuild/build/Zybo/petalinux_project

[INFO] building device-tree

[INFO] sourcing bitbake

[INFO] generating user layers

INFO: bitbake virtual/dtb

Loading cache: 100% |##############################################################################################################################################| Time: 0:00:04

Loaded 3813 entries from dependency cache.

Parsing recipes: 100% |############################################################################################################################################| Time: 0:00:22

Parsing of 2780 .bb files complete (2778 cached, 2 parsed). 3817 targets, 191 skipped, 0 masked, 0 errors.

NOTE: Resolving any missing task queue dependencies

Initialising tasks: 100% |#########################################################################################################################################| Time: 0:00:09

Checking sstate mirror object availability: 100% |#################################################################################################################| Time: 0:01:44

Sstate summary: Wanted 236 Found 60 Missed 352 Current 612 (25% match, 79% complete)

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: fpga-manager-util-xilinx+gitAUTOINC+73e546e312-r0 do_compile: Function failed: do_compile (log file is located at /home/user/PYNQ/sdbuild/build/Zybo/petalinux_project/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fpga-manager-util/xilinx+gitAUTOINC+73e546e312-r0/temp/log.do_compile.22622)

ERROR: Logfile of failure stored in: /home/user/PYNQ/sdbuild/build/Zybo/petalinux_project/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fpga-manager-util/xilinx+gitAUTOINC+73e546e312-r0/temp/log.do_compile.22622

Log data follows:

| DEBUG: Executing shell function do_compile

| ls: cannot access '/home/user/PYNQ/sdbuild/build/Zybo/petalinux_project/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fpga-manager-util/xilinx+gitAUTOINC+73e546e312-r0/recipe-sysroot/boot/bitstream/*': No such file or directory

| WARNING: /home/user/PYNQ/sdbuild/build/Zybo/petalinux_project/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fpga-manager-util/xilinx+gitAUTOINC+73e546e312-r0/temp/run.do_compile.22622:1 exit 2 from 'basebit=`ls /home/user/PYNQ/sdbuild/build/Zybo/petalinux_project/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fpga-manager-util/xilinx+gitAUTOINC+73e546e312-r0/recipe-sysroot/boot/bitstream/*`'

| ERROR: Function failed: do_compile (log file is located at /home/user/PYNQ/sdbuild/build/Zybo/petalinux_project/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fpga-manager-util/xilinx+gitAUTOINC+73e546e312-r0/temp/log.do_compile.22622)

ERROR: Task (/home/user/petalinux/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/fpga-manager-util/fpga-manager-util_1.0.bb:do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 1944 tasks of which 1848 didn't need to be rerun and 1 failed.

Summary: 1 task failed:

/home/user/petalinux/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/fpga-manager-util/fpga-manager-util_1.0.bb:do_compile

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

ERROR: Failed to build device-tree

make: *** [Makefile:338: /home/user/PYNQ/sdbuild/build/Zybo/petalinux_project/images/linux/system.dtb] Error 255

Any ideas? Using ZYBO-PYNQ files and make PREBUILT=../pynq_z1_v2.5.img BOARDS=Zybo

1 Like