shell$ git clone --depth 1 --branch 2021.1_EDGE_0_Debian_11 https://github.com/ikwzm/ZynqMP-FPGA-XRT.git
please install python-pyopencl before installing XRT.
shell$ sudo apt install -y python-pyopencl
If this package is not installed, it will try to install pyopencl with pip when installing xrt_202110.2.11.0_Edge_Debian_11-arm64.deb. To install pyopencl with pip, you had to compile a program written in C, and the installation failed due to various troubles. Installing pyopencl pre-built for Debian/Ubuntu from the beginning will save you trouble.
Install xrt_202110.2.11.0_Edge_Debian_11-arm64.deb with the apt command. When installing this package, build the zocl kernel module using the dkms mechanism during the process. Therefore, installation takes time.
shell$ sudo apt install ./xrt_202110.2.11.0_Edge_Debian_11-arm64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'xrt' instead of './xrt_202110.2.11.0_Edge_Debian_11-arm64.deb'
The following NEW packages will be installed:
xrt
0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
Need to get 0 B/10.3 MB of archives.
After this operation, 50.5 MB of additional disk space will be used.
Get:1 /home/fpga/work/ZynqMP-FPGA-XRT/xrt_202110.2.11.0_Edge_Debian_11-arm64.deb xrt arm64 2.11.0 [10.3 MB]
Selecting previously unselected package xrt.
(Reading database ... 81249 files and directories currently installed.)
Preparing to unpack .../xrt_202110.2.11.0_Edge_Debian_11-arm64.deb ...
Unpacking xrt (2.11.0) ...
Setting up xrt (2.11.0) ...
Unloading old XRT Linux kernel modules
rmmod: ERROR: Module zocl is not currently loaded
Invoking DKMS common.postinst for xrt
Loading new xrt-2.11.0 DKMS files...
Building for 5.10.0-xlnx-v2021.1-zynqmp-fpga
Building initial module for 5.10.0-xlnx-v2021.1-zynqmp-fpga
Done.
zocl.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.10.0-xlnx-v2021.1-zynqmp-fpga/updates/dkms/
depmod....
DKMS: install completed.
Finished DKMS common.postinst
Loading new XRT Linux kernel modules
shell$ sudo apt install ./xrt-setup_2.11.0-1_arm64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'xrt-setup' instead of './xrt-setup_2.11.0-1_arm64.deb'
The following NEW packages will be installed:
xrt-setup
0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
Need to get 0 B/1328 B of archives.
After this operation, 41.0 kB of additional disk space will be used.
Get:1 /home/fpga/work/ZynqMP-FPGA-XRT/xrt-setup_2.11.0-1_arm64.deb xrt-setup arm64 2.11.0-1 [1328 B]
Selecting previously unselected package xrt-setup.
(Reading database ... 81548 files and directories currently installed.)
Preparing to unpack .../xrt-setup_2.11.0-1_arm64.deb ...
Unpacking xrt-setup (2.11.0-1) ...
Setting up xrt-setup (2.11.0-1) ...