Pynq installation on ZYNQ7000 with Ubuntu 22.04 LTS+Vitis2022.2+Petalinux2022.2

Hi,

I tried to install Pynq2.7 on a ZYNQ with loaded with the Ubuntu 22.04 + Vitis2022.2 + Petalinux2022.2 version. Firstly, Each tools of Vitis and Petalinux both can be run as normally. And tried to modify the build of makefile script by changing the version of some packages from 2021.2 to 2022.2 as below:
KERNEL_VERSION := 2022.2
LINUX_VERSION := 5.15.0-xilinx-v2022.2
QEMU_VERSION := 5.2.0

But get check_env error as below pic:

Will there be an install script to cater for Ubuntu 22.04? and how to settle it as well as possible!

Thank you

Hi @leon_lin,

Welcome to the PYNQ community.

If you want an Ubuntu 22.04 based image, you need to move to PYNQ 3.0.1 version.

Vitis and Vivado 2022.1 are required to rebuild this image.

Mario

Hi Mario,

As for the ARM-linux compile env that we’d like to know that it setup up from Vivado 2022.2 or PYNQ special need to install. Due to we can’t get any install crosstool-ng and gemu way from your manual.

export PATH=/opt/qemu/bin:/opt/crosstool-ng/bin:$PATH

Would you please help to give the install way for crosstool-ng and gemu.

We‘re looking forward to your reply.

Best Regards,

Leon

@leon_lin,

The build process for PYNQ 3.0.1 has only been verified with the tools 2022.1. And the process is described here: PYNQ SD Card image — Python productivity for Zynq (Pynq)

In the same page, you will find the version of the tool that has been verified for a particular release.

Mario

Hi Mario,

Very thanks for your feedback as quickly.

As checked your mentioned web site of manual that can’t see any way to install ARM-Linux compiler tools for crosstool-ng and gemu, Do you have any related install details process way?

In addition, We had pynq 2.4 for our FPGA b’d, But it can’t run some API (refer PIC), And it can work normally as PYNQ2.6/2.7. So we’d like to know as those API that pynq2.4 can do or not? If can how to settle this case.

Thanks,

Leon

Hi Mario,

API related PIC
pynq24issue1

@leon_lin,

The setup_host.sh will install all the dependencies. PYNQ SD Card image — Python productivity for Zynq (Pynq)

You have two similar issues open at the same time, please consolidate.

Mario

Hi Mario,

Refer the PIC of ran setup_host.sh which have the issue, for you help to give solution to slove it.

Best Regards,

Leon

Is the dev machine connected to the Internet?
Is it behind a proxy/firewall?

The error is telling you that pip cannot download a package from PyPi.

Hi Mario,

Would you help to tell us what version of Vitis+Petalinux can be supported If we want to build PYNQ2.6 / 2.7/ 3.01 base on ubuntu20.04?

eg: PYNQ3.01 → ubuntu20.04+(Vitis+Petalinux)2022.02 (can or can’t)
eg: PYNQ2.7 → ubuntu20.04+(Vitis+Petalinux)2022.02 (can or can’t)

If using ubuntu20.04, will any version of Vitis+Petalinux affect pynq?

Due to we checked different version of PYNQ which have different API support issue.

I’d be grateful if you can help it.

Best Regards,

Leon

Mario Ruiz via PYNQ <notifications@pynq1.discoursemail.com> 於 2023年10月25日 週三 下午3:11寫道:

Hi @leon_lin,

The documentation about which tool version align with a particular release is in this page PYNQ SD Card image — Python productivity for Zynq (Pynq)

To check which Ubuntu version is used to build the SD card image, I would suggest you check the documentation for a particular release.

Mario

@leon_lin
@marioruiz

Let’s make the answer more clearly.
You can try different compile environment like Ubuntu 18.04 or other but the PYNQ support team itself have no obligation to confirm it UNLESS it is stated on the README table.

So if you want to use other environment it is on you own risk and problem.
As long as the README document stated environment is aligned with the Xilinx tools it will be sure it can work (most) user (NOT 100%, NOT guaranteed) but highly it could work on most cases.

Are you still confused? No mean no personal but that the fact for software/hardware ecosystem.

ENJOY~

Hi all,

Now we used the environment of Ubuntu20.04+Vitis2020.2+Petalinux2020.2 to make the PYNQ2.7 version.

We successfully installed and ran Ubuntu20.04+Vitis2020.2+Petalinux2020.2. And download PYNQ-image_v2.7.zip from your system.

According to your mentioned of https://pynq.readthedocs.io/en/latest/pynq_sd_card.html procedure try to Install dependencies using the following script.

<PYNQ repository>/sdbuild/scripts/setup_host.sh
But it failed.
Details as below:
make[1]: 离开目录“/home/tds/PYNQ/tools/qemu-5.2.0/build”
+ cd /opt/qemu/bin
+ sudo rm -rf qemu-arm-static qemu-aarch64-static
+ sudo ln -s qemu-arm qemu-arm-static
+ sudo ln -s qemu-aarch64 qemu-aarch64-static
+ cd /home/tds
+ cd /usr/bin
+ which gmake
/usr/bin/gmake
+ '[' '!' -f /run/systemd/resolve/stub-resolv.conf ']'
+ sudo -H python3 -m pip install --upgrade 'setuptools>=24.2.0'
Collecting setuptools>=24.2.0
  Downloading setuptools-68.2.2-py3-none-any.whl (807 kB)
     >█▋                              | 40 kB 41 kB/s eta 0:00:19ERROR: Exception:
Traceback (most recent call last):
  File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 425, in _error_catcher
    yield
  File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 507, in read
    data = self._fp.read(amt) if not fp_closed else b""
  File "/usr/share/python-wheels/CacheControl-0.12.6-py2.py3-none-any.whl/cachecontrol/filewrapper.py", line 62, in read
    data = self.__fp.read(amt)
  File "/usr/lib/python3.8/http/client.py", line 459, in read
    n = self.readinto(b)
  File "/usr/lib/python3.8/http/client.py", line 503, in readinto
    n = self.fp.readinto(b)
  File "/usr/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 357, in run
    resolver.resolve(requirement_set)
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/usr/lib/python3/dist-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
  File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
    local_path = unpack_url(
  File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 282, in unpack_url
    return unpack_http_url(
  File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 158, in unpack_http_url
    from_path, content_type = _download_http_url(
  File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 303, in _download_http_url
    for chunk in download.chunks:
  File "/usr/lib/python3/dist-packages/pip/_internal/utils/ui.py", line 160, in iter
    for x in it:
  File "/usr/lib/python3/dist-packages/pip/_internal/network/utils.py", line 15, in response_chunks
    for chunk in response.raw.stream(
  File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 564, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 529, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/share/python-wheels/urllib3-1.25.8-py2.py3-none-any.whl/urllib3/response.py", line 430, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='[files.pythonhosted.org](http://files.pythonhosted.org)', port=443): Read timed out.

We try to desiable related line of setup_host.sh and one step to install related item, But for make section still error occur.
So would you please help to settle this case in order to pull up our project.
Best Regards,
Leon


Briansune via PYNQ <notifications@pynq1.discoursemail.com> 於 2023年11月1日 週三 上午10:51寫道:

Hi all,

Actually, We can download it from intelnet. So what’s problem.

leon lin <leoncntx666@gmail.com> 於 2023年11月11日 週六 下午3:56寫道:

@leon_lin

See old tutorial. You should search more before start.

ENJOY~

Hi all,

I have blocked the installation of relevant lines as shown in the figure, and installed them separately.
When making existing boards Pynq Z2 with errors as shown in the figure and log file, I attempted to use your method but failed.

Kindly for your help!

Best regards,

leon

leon lin <leoncntx666@gmail.com> 於 2023年11月11日 週六 下午4:11寫道:

build.log (1.27 KB)

config.log (95.3 KB)

Hi all,

We installed 20.04 LTS Ubuntu from official website Create a virtual disk size about 1TB, Not for Vagrant environment.

The attached please find the our linux system.

Best Regards,

leon

8ece1976-61a7-4c8d-9a3b-367ffce07330.png

Briansune via PYNQ <notifications@pynq1.discoursemail.com> 於 2023年11月11日 週六 下午5:12寫道:

@leon_lin

Many 2.7 PYNQ had be generated from my side and build environment had also been installed from 2.7 to 3.0.1. The tutorial guide have also guided many user to a working environment. If you had these problem it is highly your system issue.

Let’s recall @PeterOgden or @stf to help out.
Thank you,
ENJOY~

Hi all,

I installed according to your corresponding version and process for PYNQ2.7, But the final compilation failed. Could you please check remotely through Todesk?

Thanks & Best Regards,

Leon

Briansune via PYNQ <notifications@pynq1.discoursemail.com> 於 2023年11月11日 週六 下午6:55寫道:

Hi all,

The attached please find the ubuntu version is 20.04.06, This version meets your requirements.

So please help to checkout my question.

We need to catch up time, Now we release my project related boards file(Pynq2.7) for your help to make the PYNQ2.7 image.

Thanks & Best Regards,

Leon

ceb84e71-9a63-4e17-ab61-7ac584e49a3e.png

Briansune via PYNQ <notifications@pynq1.discoursemail.com> 於 2023年11月11日 週六 下午5:12寫道:

Pynq27.zip (300 KB)