# Try to Re-Build PYNQ for Ultra96 master version

**URL:** <https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436>\
**Category:** Support\
**Created:** [June 29, 2020, 2:25pm UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436 "2020-06-29T14:25:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noah\_Keller](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@Noah\_Keller](https://discuss.pynq.io/u/Noah_Keller)\
**Post date:** [June 29, 2020, 2:25pm UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/1 "2020-06-29T14:25:00Z")

</div>

I am currently trying to re-build the master version of the Ultra96 and follow the instructions from [Avnets GitHub Repository](https://github.com/Avnet/Ultra96-PYNQ#using-included-bsps-to-re-build-pynq)

When running:

> make checkenv

I get this Error:

> /usr/bin/qemu-aarch64-static -version | fgrep 4.0.0  
> Makefile:325: recipe for target ‘qemu\_check\_aarch64’ failed  
> make: \*\*\* [qemu\_check\_aarch64] Error 1

Unfortunately I didn’t find a similar Error. My host machine is a Virtual Machine on Windows running Ubuntu 16.04.

I hope somebody knows how to fix it. Thank you in advance ❤

---

<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 1, 2020, 6:02pm UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/2 "2020-07-01T18:02:46Z")

</div>

Please run the `setup_host.sh` before you rebuild the image.

[https://pynq.readthedocs.io/en/latest/pynq\_sd\_card.html#use-existing-ubuntu-os](https://pynq.readthedocs.io/en/latest/pynq_sd_card.html#use-existing-ubuntu-os)

---

<div class="post-metadata">

**Author:** ![Noah\_Keller](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@Noah\_Keller](https://discuss.pynq.io/u/Noah_Keller)\
**Post date:** [July 2, 2020, 12:36pm UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/3 "2020-07-02T12:36:17Z")

</div>

Thank you very much rock! Sorry for that question, I should have read the docs instead just follow blindly the Avnet GitHub Instruction!

---

<div class="post-metadata">

**Author:** ![pynqzen](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/pynqzen/32/97_2.png) [@pynqzen](https://discuss.pynq.io/u/pynqzen)\
**Post date:** [July 9, 2020, 4:38am UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/4 "2020-07-09T04:38:05Z")

</div>

Hi, The Ultra96 build PYNQ github does instruct a user to run the setup\_host.sh script. 🙂 Hope it is all working for you now.

---

<div class="post-metadata">

**Author:** ![Noah\_Keller](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@Noah\_Keller](https://discuss.pynq.io/u/Noah_Keller)\
**Post date:** [July 9, 2020, 2:13pm UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/5 "2020-07-09T14:13:24Z")

</div>

Hey @pynqzen thank your very much for your answer. I didn’t have time yet to try it out, but If I remember correctly I did succesfully run the setup\_host.sh but after that the instruction says to run `make checkenv` that is when I get this error. 🤔

When I figure out my problem and run it succesfully I will update my post 😉

---

<div class="post-metadata">

**Author:** ![pynqzen](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/pynqzen/32/97_2.png) [@pynqzen](https://discuss.pynq.io/u/pynqzen)\
**Post date:** [July 10, 2020, 1:22am UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/6 "2020-07-10T01:22:02Z")

</div>

HI Noah, Let us know. There is nothing special at that point in the instructions for the U96. So if there is an issue, it would happen with any PYNQ build. There was a new build bug with PYNQ in general that occurred after the release of v2.5.

The issue involved chroot and was documented here: [PYNQ 2.5.1 build: Error in link resolv.conf after chroot - #3 by KVWZ](https://discuss.pynq.io/t/pynq-2-5-1-build-error-in-link-resolv-conf-after-chroot/1238/3)

If you build from a tag or the image\_v2.5.0 branch you should not see this issue. In the case of the U96 since it is an Avnet board with a separate git, be sure to grab the same branch/tag for both repos. I did not dig in to see if they already have the fix in master, I doubt it is.

Kind regards

---

<div class="post-metadata">

**Author:** ![Noah\_Keller](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@Noah\_Keller](https://discuss.pynq.io/u/Noah_Keller)\
**Post date:** [July 11, 2020, 9:53am UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/7 "2020-07-11T09:53:07Z")

</div>

Hey @pynqzen thanks for your kind replay. It might be that case that my error is a result of not having activated the licence on Ubuntu 16.04.06 System, which was delivered with the Ultra96-V2.

I’ve currently activated the Ultra96-V2 licence (I am sorry I dont know how it is properly called) on my Windows Machine and it is a hassle to transfer it to my Ubuntu 16.04.06 System.

Is it possible to build the image for the Ultra96 with the free provided licences from Xilinx?

---

<div class="post-metadata">

**Author:** ![pynqzen](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/pynqzen/32/97_2.png) [@pynqzen](https://discuss.pynq.io/u/pynqzen)\
**Post date:** [July 27, 2020, 1:49am UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/8 "2020-07-27T01:49:10Z")

</div>

Hi Noah,

Yes the free Xilinx web pack tools support ZU3EG parts. The official list is here: [Vivado ML Standard](https://www.xilinx.com/products/design-tools/vivado/vivado-webpack.html#architecture)

Kind regards

---

<div class="post-metadata">

**Author:** ![Noah\_Keller](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@Noah\_Keller](https://discuss.pynq.io/u/Noah_Keller)\
**Post date:** [July 29, 2020, 8:38pm UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/9 "2020-07-29T20:38:30Z")

</div>

Hey @pynqzen I finally had time to work on this problem. I managed to solve my original problem.

I followed @rock instruction and saw that I forgot to source vivado, Vitis and petalinux-v2019.1-final.  
I also forgot to use the `export PATH=/opt/qemu/bin:/opt/crosstool-ng/bin:$PATH` after running the `sudo ./scripts/setup_host.sh`.

After that, `make checkenv` worked fine.

However. I got a new error while running` make BOARDDIR`=. 😭 😭 😭 I feel I am so close to building it…

> make clean  
> make BOARDDIR=/home/noahs/Documents/Local\_Pynq

 ![fehler](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/4/46d27fc35e476f44f30ad5ebb14b1dfd92d2f398.png)

I also changed a few things in the `sdbuild/makefile` (otherwise it would throw errors and for people who also try to rebuild an image):

> KERNEL\_VERSION := 2019.2  
> UBUNTU\_RELEASE := xenial

I am not sure why this errors happens. I use the `petalinux-v2018.3-final` version. Do I need the 2019 Version? Or do I need a license again?

---

<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 29, 2020, 10:01pm UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/10 "2020-07-29T22:01:50Z")

</div>

You should not change anything in makefile in your case. Please use the original kernel version and ubuntu release.

Also, for building image v2.5 everything should be consistent with 2019.1 so you need to use that version. For the ultra96 bsp you can look for the sensor96b.bsp (basically follow the instructions on ultra96-pynq repo)

---

<div class="post-metadata">

**Author:** ![Noah\_Keller](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@Noah\_Keller](https://discuss.pynq.io/u/Noah_Keller)\
**Post date:** [July 31, 2020, 8:32am UTC](https://discuss.pynq.io/t/try-to-re-build-pynq-for-ultra96-master-version/1436/11 "2020-07-31T08:32:04Z")

</div>

Alright I will try it out. Thank you very much for your replay! 😌
