# Failed to build device tree-PYNQ Image v3.0.1, for zedboard

**URL:** <https://discuss.pynq.io/t/failed-to-build-device-tree-pynq-image-v3-0-1-for-zedboard/8363>\
**Category:** Support\
**Created:** [April 30, 2025, 11:58pm UTC](https://discuss.pynq.io/t/failed-to-build-device-tree-pynq-image-v3-0-1-for-zedboard/8363 "2025-04-30T23:58:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anasr4040](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@anasr4040](https://discuss.pynq.io/u/anasr4040)\
**Post date:** [April 30, 2025, 11:58pm UTC](https://discuss.pynq.io/t/failed-to-build-device-tree-pynq-image-v3-0-1-for-zedboard/8363/1 "2025-04-30T23:58:16Z")

</div>

Hi everybody,  
I have been trying to build an image of pynq v3.0.1 for zedboard, however, I’m facing the failure to build error when i execute the make boot\_files BOARDS=zed command.  
I have followed the following tutorials, to create the pynq image & bsp of zedboard 2022.1.

> **[PYNQ SD Card image — Python productivity for Zynq (Pynq)](https://pynq.readthedocs.io/en/latest/pynq_sd_card.html)**

The versions i have used for petalinux and vitis are 2022.1.  
However, I’m still looking for the workaround for building the device tree for it. I have tried creating my own bsp by creating my own petalinux project, plus also directly copy past zedboard.xsa file in petalinux\_project as mentioned in the tutorial.

Any guide, on how to solve this problem would be greatly appreciated. For your convenience, i have attached the log file also. If you need anything else, please let me know so.  
[build.log](https://discuss.pynq.io/uploads/short-url/oURk6uHtar9CTQjRqn7gWES5Znt.log) (8.7 KB)

---

<div class="post-metadata">

**Author:** ![schelleg](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/schelleg/32/208_2.png) [@schelleg](https://discuss.pynq.io/u/schelleg)\
**Post date:** [May 1, 2025, 3:48am UTC](https://discuss.pynq.io/t/failed-to-build-device-tree-pynq-image-v3-0-1-for-zedboard/8363/2 "2025-05-01T03:48:47Z")

</div>

I see the following line in your build.log  
`fatal: '/workspace/PYNQ-image_v3.0.1/sdbuild/boot/meta-pynq/recipes-filesystem/python/../../../../../' does not appear to be a git repository`

Is that folder populated by a `git clone` call?

---

<div class="post-metadata">

**Author:** ![anasr4040](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@anasr4040](https://discuss.pynq.io/u/anasr4040)\
**Post date:** [May 1, 2025, 11:05am UTC](https://discuss.pynq.io/t/failed-to-build-device-tree-pynq-image-v3-0-1-for-zedboard/8363/3 "2025-05-01T11:05:33Z")

</div>

Hi @schelleg,  
I don’t think so but the following folder contains a file name python-pynq.inc which has the following content.  
SUMMARY = “Xilinx PYNQ Library”  
HOMEPAGE = “[http://pynq.io](http://pynq.io)”  
LICENSE = “MIT”  
LIC\_FILES\_CHKSUM = “file://LICENSE;md5=b42e39ad2ddbad7e8ad47f3eee6feff5”  
RDEPENDS\_${PN} += "  
${PYTHON\_PN}-core   
${PYTHON\_PN}-asyncio   
${PYTHON\_PN}-cffi   
${PYTHON\_PN}-importlib   
${PYTHON\_PN}-json   
${PYTHON\_PN}-math   
${PYTHON\_PN}-mmap   
${PYTHON\_PN}-multiprocessing   
${PYTHON\_PN}-numpy   
${PYTHON\_PN}-pycparser   
${PYTHON\_PN}-re   
${PYTHON\_PN}-resource   
${PYTHON\_PN}-setuptools   
${PYTHON\_PN}-signal   
${PYTHON\_PN}-subprocess   
${PYTHON\_PN}-threading   
${PYTHON\_PN}-xml   
lmsensors-libsensors   
libdrm   
"

DEPENDS += " libdrm boost"

PYNQ\_ARCH\_arm = “armv7l”  
PYNQ\_ARCH\_aarch64 = “aarch64”  
CMA\_ARCH\_arm = “32”  
CMA\_ARCH\_aarch64 = “64”

SRC\_URI = “gitsm://${THISDIR}/../../../../../;usehead=1;protocol=file”  
SRCREV = “${AUTOREV}”

#SRC\_URI += " file://pl\_server\_init"  
FILESEXTRAPATHS:prepend := “${THISDIR}:”  
S = “${WORKDIR}/git”  
INSANE\_SKIP\_${PN} = “staticdev”  
BBCLASSEXTEND = “native nativesdk”

inherit update-rc.d  
INITSCRIPT\_PACKAGES = “${PN}”  
#INITSCRIPT\_NAME = “pl\_server\_init”  
INITSCRIPT\_PARAMS = “start 99 S .”

do\_compile:prepend() {  
install -d “${D}/home/root/notebooks”  
export PYNQ\_JUPYTER\_NOTEBOOKS=“${D}/home/root/notebooks”  
export PYNQ\_BUILD\_ARCH=“${PYNQ\_ARCH\_${TARGET\_ARCH}}”  
export PYNQ\_BUILD\_ROOT=“${STAGING\_DIR\_TARGET}”  
(cd ${S}/sdbuild/packages/libsds/libcma && CMA\_ARCH=${CMA\_ARCH\_${TARGET\_ARCH}} make install DESTDIR=${STAGING\_DIR\_TARGET})

}

do\_install:prepend() {  
install -d “${D}/home/root/notebooks”  
export PYNQ\_JUPYTER\_NOTEBOOKS=“${D}/home/root/notebooks”  
export PYNQ\_BUILD\_ARCH=“${PYNQ\_ARCH\_${TARGET\_ARCH}}”  
export PYNQ\_BUILD\_ROOT=“${STAGING\_DIR\_TARGET}”  
}

do\_install:append() {  
install -d ${D}${INIT\_D\_DIR}  
#install -m 755 ${WORKDIR}/pl\_server\_init ${D}${INIT\_D\_DIR}/pl\_server\_init  
(cd ${S}/sdbuild/packages/libsds/libcma && CMA\_ARCH=${CMA\_ARCH\_${TARGET\_ARCH}} make install DESTDIR=${D})  
rm -rf ${D}/home/root/notebooks\_\*  
}

SOLIBS = “.so”  
FILES\_SOLIBSDEV = “”  
FILES\_${PN} += “/usr/lib/libcma.so”  
FILES\_${PN}-notebooks = “/home/root/notebooks”  
PACKAGES += “${PN}-notebooks”
