Failed to build image for custom board


Iam trying to build pynq2.6 for zcu102
I have installed petalinux / vivado / and vitis 2020.1
then running the cmd : make BOARDS=ZCU102

I get the following error:
version | fgrep 4.0.0
/bin/bash: version: command not found
Makefile:339: recipe for target ‘qemu_check_aarch64’ failed
make: [qemu_check_aarch64] Error 1 (ignored)
vivado -version | fgrep 2020.1
Vivado v2020.1 (64-bit)
vitis -version | fgrep 2020.1
****** Vitis v2020.1 (64-bit)
which petalinux-config
which arm-linux-gnueabihf-gcc
which microblaze-xilinx-elf-gcc
which ct-ng
Makefile:356: recipe for target ‘checkenv’ failed
make: *** [checkenv] Error 1

I dont understand what the issue
Thank you very much

Please write the code part of the post inside the code blockquote (Ctrl+Shift+9 to use it here).

Have you seen the documentation on the meta-pynq and image building for pynq? If not, reading that and figuring out will solve your issue.


Ok thank you
will check that

1 Like

I think I might have had this error after not specifying the architecture in the *.spec file. It’s not written in the how-to guide, but I saw it on the *.spec file of the prebuilt boards.

For the ZCU102, which has the AArch64 CPU, you need to add this line to your *.spec file. I assume you replaced MyBoard from the guide with ZCU102:

ARCH_ZCU102 := aarch64

Hope it works for you

1 Like


Yes set the correct arch for the board : here is my .spec file
ARCH_ZCU102 := aarch64
BSP_ZCU102 := xilinx-zcu102-v2020.1-final.bsp


STAGE4_PACKAGES_ZCU102 := ethernet

I currently check , maybe some linux packages have not been correctly installed



So i recheck all my setup , reinstall packages that petalinux need and I successfully generate an image for petalinux for zcu102

when I go though the pynq procedure , I run the ./scripts/
and get the following error :
The following packages have unmet dependencies:
libglib2.0-dev : Depends: libglib2.0-0 (= 2.56.1-2ubuntu1) but 2.56.4-0ubuntu0.18.04.4 is to be installed
Depends: libglib2.0-bin (= 2.56.1-2ubuntu1)
libsdl1.2-dev : Depends: libasound2-dev but it is not going to be installed
Depends: libcaca-dev but it is not going to be installed
Depends: libglu1-mesa-dev but it is not going to be installed or
Depends: libpulse-dev but it is not going to be installed
Depends: libx11-dev but it is not going to be installed
Depends: libxext-dev but it is not going to be installed
libssl-dev : Depends: libssl1.1 (= 1.1.0g-2ubuntu4) but 1.1.1-1ubuntu2.1~18.04.5 is to be installed
Recommends: libssl-doc but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Is there any script that arrange all those dependencies automatically as petalinux do ?


1 Like

I delete the VMs and recreate a new one bionic 18.04.6 instead of 18.04.4

So the ./scripts/ passed successfully
Now going to next steps…


1 Like