cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
1,600 Views
Registered: ‎05-07-2019

How to install xocl or xclmgmt?

Jump to solution

I am trying to install the XRT for the U200 card. I am using Ubuntu 18.04 and SDAccel 2019.1. I downloaded the deb file, xrt_201910.2.2.2173_18.04-xrt.deb, and ran

sudo dpkg -i xrt_201910.2.2.2173_18.04-xrt.deb

I received the following error.

Loading new XRT Linux kernel modules
modprobe: FATAL: Module xclmgmt not found in directory /lib/modules/5.0.0-25-generic
modprobe: FATAL: Module xocl not found in directory /lib/modules/5.0.0-25-generic
****************************************************************
* 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.2.2173
****************************************************************

I was under the impression that XRT does not not require you to install extra dependencies with Ubuntu. Am I missing a dependency, and if so what do I need to install?

0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
1,501 Views
Registered: ‎07-17-2018

Re: How to install xocl or xclmgmt?

Jump to solution

Could you try to install the xrt in the  4.xx.xx-xx kernel version.?

View solution in original post

11 Replies
Highlighted
Xilinx Employee
Xilinx Employee
1,572 Views
Registered: ‎07-17-2018

Re: How to install xocl or xclmgmt?

Jump to solution
Highlighted
Contributor
Contributor
1,551 Views
Registered: ‎05-07-2019

Re: How to install xocl or xclmgmt?

Jump to solution

I ran the script and rebooted, but unfortunately am still receiving the same error.

0 Kudos
Highlighted
Contributor
Contributor
1,536 Views
Registered: ‎05-07-2019

Re: How to install xocl or xclmgmt?

Jump to solution

If it helps, the file

/var/lib/dkms/xrt/2.2.2173/build/make.log

contains:

DKMS make.log for xrt-2.2.2173 for kernel 5.0.0-25-generic (x86_64)
Tue Aug 20 08:12:38 CDT 2019
cd userpf; make all
make[1]: Entering directory '/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf'
echo /var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf
/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf
make -C /lib/modules/5.0.0-25-generic/build M=/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf modules
make[2]: Entering directory '/usr/src/linux-headers-5.0.0-25-generic'
  CC [M]  /var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../xocl_subdev.o
  CC [M]  /var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../xocl_ctx.o
  CC [M]  /var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../xocl_thread.o
  CC [M]  /var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/xdma.o
  CC [M]  /var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.o
/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c: In function ‘queue_req_complete’:
/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c:931:3: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’? [-Werror=implicit-function-declaration]
   drm_gem_object_unreference_unlocked(&cb->xobj->base);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drm_gem_object_put_unlocked
/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c: In function ‘stream_post_bo’:
/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c:965:2: error: implicit declaration of function ‘drm_gem_object_reference’; did you mean ‘drm_gem_object_free’? [-Werror=implicit-function-declaration]
  drm_gem_object_reference(gem_obj);
  ^~~~~~~~~~~~~~~~~~~~~~~~
  drm_gem_object_free
/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c: At top level:
/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c:1686:12: error: static declaration of ‘stream_open’ follows non-static declaration
 static int stream_open(struct inode *inode, struct file *file)
            ^~~~~~~~~~~
In file included from ./include/linux/huge_mm.h:8:0,
                 from ./include/linux/mm.h:526,
                 from ./include/linux/scatterlist.h:8,
                 from ./include/linux/dma-mapping.h:11,
                 from ./include/drm/drmP.h:37,
                 from /var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c:23:
./include/linux/fs.h:3095:12: note: previous declaration of ‘stream_open’ was here
 extern int stream_open(struct inode * inode, struct file * filp);
            ^~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:284: recipe for target '/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.o' failed
make[3]: *** [/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.o] Error 1
Makefile:1606: recipe for target '_module_/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf' failed
make[2]: *** [_module_/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.0.0-25-generic'
Makefile:54: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 2
0 Kudos
Xilinx Employee
Xilinx Employee
1,502 Views
Registered: ‎07-17-2018

Re: How to install xocl or xclmgmt?

Jump to solution

Could you try to install the xrt in the  4.xx.xx-xx kernel version.?

View solution in original post

Highlighted
Contributor
Contributor
1,481 Views
Registered: ‎05-07-2019

Re: How to install xocl or xclmgmt?

Jump to solution

I can try that, but I do not know where to find the iso file for that version. Do you have a link?

To work around the issue, I switched to Ubuntu 16.04. The drivers installed without issue there.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
1,464 Views
Registered: ‎07-17-2018

Re: How to install xocl or xclmgmt?

Jump to solution

Kernel 3.10.0-xxx.xx.x.el7.x86_64 的kernel都可以

0 Kudos
Highlighted
Contributor
Contributor
1,450 Views
Registered: ‎05-07-2019

Re: How to install xocl or xclmgmt?

Jump to solution

I installed Ubuntu 18.04.2 (download available here) which ships with Linux kernel 4.15 and the xrt drivers installed without issue.

0 Kudos
Highlighted
Observer
Observer
1,409 Views
Registered: ‎04-17-2019

Re: How to install xocl or xclmgmt?

Jump to solution
/var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c:1686:12: error: static declaration of ‘stream_open’ follows non-static declaration
 static int stream_open(struct inode *inode, struct file *file)
            ^~~~~~~~~~~
In file included from ./include/linux/huge_mm.h:8:0,
                 from ./include/linux/mm.h:526,
                 from ./include/linux/scatterlist.h:8,
                 from ./include/linux/dma-mapping.h:11,
                 from ./include/drm/drmP.h:37,
                 from /var/lib/dkms/xrt/2.2.2173/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c:23:
./include/linux/fs.h:3095:12: note: previous declaration of ‘stream_open’ was here

Did you solve this problem?If you do ,how did you solve it?
0 Kudos
Highlighted
Contributor
Contributor
1,400 Views
Registered: ‎05-07-2019

Re: How to install xocl or xclmgmt?

Jump to solution

When installing the drivers on Ubuntu 16.04 or Ubuntu 18.04.2 (not the latest version of 18.04), I did not receive any errors.

I installed the drivers with:

sudo dpkg -i <path_to_deb_file>
sudo apt -f install

If you are just having an issue with the driver installation, I would try making a fresh install of one or both of the above Ubuntu versions and testing the driver installation there. The drivers alone do not have the same system requirements as SDAccel, so you can test the driver installation on pretty much any computer.

0 Kudos
Highlighted
418 Views
Registered: ‎11-01-2019

Re: How to install xocl or xclmgmt?

Jump to solution

I have the same issue with Ubuntu 18.04.4 LTS

I have tested on clean installation of that OS and the issue doesn't appears.

Probably it depends of system updates.

PROBLEM WAS NOT SOLVED


(Reading database ... 277836 files and directories currently installed.)
Preparing to unpack .../xrt_201920.2.3.1301_18.04-xrt.deb ...
Unregistering old XRT Linux kernel module sources 2.3.1301 from dkms on Ubuntu/Debian

------------------------------
Deleting module version: 2.3.1301
completely from the DKMS tree.
------------------------------
Done.
Cleanup is skipped for package upgrade/downgrade/re-install on Ubuntu/Debian
Unpacking xrt (2.3.1301) over (2.3.1301) ...
Setting up xrt (2.3.1301) ...
Unloading old XRT Linux kernel modules
rmmod: ERROR: Module xocl is not currently loaded
rmmod: ERROR: Module xclmgmt is not currently loaded
Invoking DKMS common.postinst for xrt
Loading new xrt-2.3.1301 DKMS files...
Building for 5.3.0-28-generic 5.3.0-40-generic
Building initial module for 5.3.0-28-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/xrt.0.crash'
Error! Build of xocl.ko failed for: 5.3.0-28-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/xrt/2.3.1301/build/ for more information.
Finished DKMS common.postinst
Loading new XRT Linux kernel modules
modprobe: FATAL: Module xclmgmt not found in directory /lib/modules/5.3.0-28-generic
modprobe: FATAL: Module xocl not found in directory /lib/modules/5.3.0-28-generic
****************************************************************
* 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.3.1301
****************************************************************
Installing MSD / MPD daemons
Skipping pyopencl installation...


 

0 Kudos
Highlighted
Contributor
Contributor
378 Views
Registered: ‎05-07-2019

Re: How to install xocl or xclmgmt?

Jump to solution

Instead of using Ubuntu 18.04.4, try using a fresh install of Ubuntu 18.04.2.

0 Kudos