Xilinx / Xilinx/XRT

Debian Package Creation for KR260 (with ZOCL DKMS)

Open
#9,476 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
686
Forks
549
Avg merge
2d 4h
Merged PRs (30d)
70

Description

Hey,
I am trying to get the Ubuntu 24.04 image from Cannonical for the KR260 to work. After installation, xrt is installed (2.18.0) according to xrt-smi, but no devices are detected. But /dev/fpga0 exists.
Running modprobe zocl fails, so I guess the driver was not build properly and I cloned this repo and tried to create my own version compliant with 2025.2.

I got the cross-compile.sh to work with the sysroot and generate an Edge_aarch64 directory.
Sadly, I am stuck at the build_edge_deb.sh script, which relies on alternative tools like schroot instead of chroot for cross-compilation and I cant really figure out how to cross-compile package my Edge_aarch64 folder such that I end up with a xrt.deb file.

Trying to manually copy all the files in the right places on the ARM and running the generated postinst script works up to the point where the dkms is build and the process fails with missing references to xrt so I guess I need the debian file to continue..

Building initial module for 6.8.0-1019-xilinx
ERROR (dkms apport): binary package for xrt: 2.20.0 not found
Error!  Build of zocl.ko failed for: 6.8.0-1019-xilinx (aarch64)
Make sure the name of the generated module is correct and at the root of the
build directory, or consult make.log in the build directory
/var/lib/dkms/xrt/2.20.0/build for more information.
****************************************************************
* DKMS failed to install XRT drivers.
* Please check if kernel development headers are installed for OS variant used.
* 
* Check build logs in /var/lib/dkms/xrt/2.20.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with cross-compile.sh and build_edge_deb.sh, focusing on how the Edge_aarch64 output is passed into Debian package creation and how schroot or chroot is selected. Reproduce the build with the Ubuntu 24.04 sysroot and inspect the generated postinst and DKMS logs. Done means a usable xrt.deb is produced and the zocl DKMS module can build for the stated aarch64 kernel.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian, linux, shell
Domain
build-system, devops, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.