PYNQ image for custom board make error

I’m using PYNQ v2.3 to built my own image for my z-turn board(XC7Z020),the following pic is my Zynq7000 catalogue
image
and My BOARD spec file is as follow:
ARCH_${BOARD} := arm
BSP_${BOARD} :=
BITSTREAM_${BOARD} := base/base.bit
STAGE4_PACKAGES_${BOARD} := pynq boot_leds ethernet
when I ran “make BOARDS=Zynq7000 PREBUILT=./prebuilt/bionic.arm.2.3.img”, I got make failure at the same stage for many times which is as follow:
wzh@ubuntu:~/PYNQ/sdbuild$ make BOARDS=Zynq7000 PREBUILT=./prebuilt/bionic.arm.2.3.img
which vivado | fgrep 2018.2
/opt/Xilinx/Vivado/2018.2/bin/vivado
which petalinux-config | fgrep 2018.2
/opt/pkg/petalinux/2018.2/tools/common/petalinux/bin/petalinux-config
which arm-linux-gnueabihf-gcc
/opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-gcc
which microblaze-xilinx-elf-gcc
/opt/Xilinx/SDK/2018.2/gnu/microblaze/lin/bin/microblaze-xilinx-elf-gcc
which ct-ng
/opt/crosstool-ng/bin/ct-ng
which python | fgrep /usr/bin/python
/usr/bin/python
sudo -n mount > /dev/null
bash /home/wzh/PYNQ/sdbuild/scripts/check_Env.sh
bash /home/wzh/PYNQ/sdbuild/scripts/check_mounts.sh
make: *** No rule to make target ‘/home/wzh/PYNQ/sdbuild/boot/image_.its’, needed by ‘/home/wzh/PYNQ/sdbuild/build/Zynq7000/image.its’. Stop.
I don’t know what wrong is it,maybe the spec file was not read at all?
Please tell me how to fix the problem ,thanks!

I think your spec file should be:

ARCH_Zynq7000 := arm
BSP_Zynq7000 :=
BITSTREAM_Zynq7000 := base/base.bit

STAGE4_PACKAGES_Zynq7000 := pynq boot_leds ethernet

Check what Z1 used: PYNQ/Pynq-Z1.spec at image_v2.3 · Xilinx/PYNQ · GitHub

hi rock,this works for me,thanks!Finally I got the image file,but the terminal shows the following error:


but it seems I can copy the image file to windows and use win32diskimager tool to write it to SD card,so it is not a problem?

It may not be the image you want since it has stopped at the final stage. So packages pynq, boot_leds, and ethernet have not been installed.

It looks like that ccache may have been deleted. I think you need to make sure you unmount all the images and start over. Easiest way might be restart the VM, make clean, and make again.

oh yes, I forgot to clean first running output,I’ll try again,thank you