# Custom board image building for HTG-ZRF16

**URL:** <https://discuss.pynq.io/t/custom-board-image-building-for-htg-zrf16/8842>\
**Category:** Support\
**Created:** [October 28, 2025, 4:57pm UTC](https://discuss.pynq.io/t/custom-board-image-building-for-htg-zrf16/8842 "2025-10-28T16:57:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![crispy245](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/crispy245/32/7307_2.png) [@crispy245](https://discuss.pynq.io/u/crispy245)\
**Post date:** [November 2, 2025, 8:57am UTC](https://discuss.pynq.io/t/custom-board-image-building-for-htg-zrf16/8842/4 "2025-11-02T08:57:18Z")

</div>

Hi @Armanhbabaei ,

1. Please check at what point the `check_env.sh` script is failing. For instance in my case it would constantly fail trying to check for `gcc-multilib` since that is not a binary by itself (or at least on my distro) so I deleted from the `check_env.sh` script. Like this I had many other errors but I just went step by step checking where would the script fail.

2. 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`.

1. 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).

> **[PetaLinux install: - HackMD](https://hackmd.io/@ffvYI7VOTOeeW6jxyKaUnA/BygyG3Fqlg)**
>
> PetaLinux install:

1. 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

---

_[View the full topic](https://discuss.pynq.io/t/custom-board-image-building-for-htg-zrf16/8842)._
