# PYNQ image for custom board make error

**URL:** <https://discuss.pynq.io/t/pynq-image-for-custom-board-make-error/1504>\
**Category:** Support\
**Created:** [July 16, 2020, 12:38pm UTC](https://discuss.pynq.io/t/pynq-image-for-custom-board-make-error/1504 "2020-07-16T12:38:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zh\_w](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/zh_w/32/1075_2.png) [@zh\_w](https://discuss.pynq.io/u/zh_w)\
**Post date:** [July 16, 2020, 12:38pm UTC](https://discuss.pynq.io/t/pynq-image-for-custom-board-make-error/1504/1 "2020-07-16T12:38:55Z")

</div>

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](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/1/168bfff40c60f26f613fb8ca3532a86e0e977c95.png)  
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!

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [July 16, 2020, 5:11pm UTC](https://discuss.pynq.io/t/pynq-image-for-custom-board-make-error/1504/2 "2020-07-16T17:11:24Z")

</div>

I think your spec file should be:

```auto
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](https://github.com/Xilinx/PYNQ/blob/image_v2.3/boards/Pynq-Z1/Pynq-Z1.spec)

---

<div class="post-metadata">

**Author:** ![zh\_w](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/zh_w/32/1075_2.png) [@zh\_w](https://discuss.pynq.io/u/zh_w)\
**Post date:** [July 17, 2020, 2:31am UTC](https://discuss.pynq.io/t/pynq-image-for-custom-board-make-error/1504/3 "2020-07-17T02:31:01Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/2/2c00b99c05176862dd440bfad03acd76ff1e6c7b.png)  
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?

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [July 17, 2020, 3:32am UTC](https://discuss.pynq.io/t/pynq-image-for-custom-board-make-error/1504/4 "2020-07-17T03:32:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![zh\_w](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/zh_w/32/1075_2.png) [@zh\_w](https://discuss.pynq.io/u/zh_w)\
**Post date:** [July 17, 2020, 9:21am UTC](https://discuss.pynq.io/t/pynq-image-for-custom-board-make-error/1504/5 "2020-07-17T09:21:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Benja\_Cordova](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/benja_cordova/32/6154_2.png) [@Benja\_Cordova](https://discuss.pynq.io/u/Benja_Cordova)\
**Post date:** [July 7, 2024, 2:35am UTC](https://discuss.pynq.io/t/pynq-image-for-custom-board-make-error/1504/6 "2024-07-07T02:35:21Z")

</div>

can you send me the image file i cant find them, also are you working whith the z-turn board v1 or v2???
