Hi everyone,
I’m trying to get PYNQ running on the Hitech Global HTG-ZRF16 board. I understood that this board is not currently supported by PYNQ so I have to build the SD card image for it myself. I’m following PYNQ/sdbuild at master · Xilinx/PYNQ · GitHub to do this. I’m working with ubuntu 18.04 , vivado 2020.1 and petalinux 2020.1. Because I could not find BSP for HTG-ZRF16,I’m using the bsp for ZCU216 according to this link: AMD Customer Community
I get an error using the make command which terminates the make process. the error is “zlib1g:i386 package can not be found” but I have installed that package already and I have tried so many things to fix this but none of them worked.
How should I fix this? I would appreciate any insights regarding this matter.
Hi,
I just had this same exact issue (same vivado and petalinux version even).
-
If you got Petalinux working on your board, then you can easily generate a BSP from there with the
petalinux-package bspcommand. Using a BSP for a different board is not suggested since they depend heavily on the configuration your actual board (different device tree and peripherals even). -
For the zlib1g:i386 issue I did as follows:
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install zlib1g:i386
- I posted a similar question last week and got an answer from the PYNQ team. Please check it since it might be helpful in your case:
Hello @crispy245 ,
Thanks a lot for sharing these steps. I followed your suggestions and used the same commands but unfortunately, I’m still running into the same issue. It seems that the package is installed but the check_env can not detect it.
Also I would appreciate it if you could give me any references for generating the bsp. Thanks.
Hi @Armanhbabaei ,
-
Please check at what point the
check_env.shscript is failing. For instance in my case it would constantly fail trying to check forgcc-multilibsince that is not a binary by itself (or at least on my distro) so I deleted from thecheck_env.shscript. Like this I had many other errors but I just went step by step checking where would the script fail. -
Have you ran
setup_host.sh? It will install the version of the tools needed to build the PYNQ image.
Both check_env.sh and setup_host.sh can be found in PYNQ/sdbuild/scripts.
- In regard to the petalinux issue, do you have petalinux already installed on your system? Have you gotten an image to work already? I wrote a small guide on how to get a Petalinux image to work. Make sure to create a working Petalinux image, test it and then generate a BSP from it (i’ll explain that later).
- Once the Petalinux image is created and you know it’s working accordingly, then go ahead and create the BSP by running the following command:
petalinux-package bsp from the directory where you created the original petalinux image.
Please don’t hesitate to ask any other question.
Best,
Aldo