cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
641 Views
Registered: ‎07-23-2019

Alveo U250 xrt 2019.2 installation failed on Ubuntu 18.04.4

Hi,

I am trying to install xrt ubuntu 18.4 on Ubuntu version 18.04.4 version. while installing xrt i am getting following error.

ProblemType: Package
DKMSBuildLog:
DKMS make.log for xrt-2.2.2250 for kernel 5.3.0-45-generic (x86_64)
Mon Apr 6 18:56:44 IST 2020
cd userpf; make all
make[1]: Entering directory '/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf'
echo /var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf
/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf
make -C /lib/modules/5.3.0-45-generic/build M=/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf modules
make[2]: Entering directory '/usr/src/linux-headers-5.3.0-45-generic'
CC [M] /var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf/../xocl_subdev.o
CC [M] /var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf/../xocl_ctx.o
CC [M] /var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf/../xocl_thread.o
CC [M] /var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf/../subdev/xdma.o
CC [M] /var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.o
/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c:833:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.fault = xocl_gem_fault,
^~~~~~~~~~~~~~
/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c:833:11: note: (near initialization for ‘qdma_stream_vm_ops.fault’)
cc1: some warnings being treated as errors
scripts/Makefile.build:288: recipe for target '/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.o' failed
make[3]: *** [/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.o] Error 1
Makefile:1655: recipe for target '_module_/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf' failed
make[2]: *** [_module_/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-5.3.0-45-generic'
Makefile:54: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf'
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 2
DKMSKernelVersion: 5.3.0-45-generic
Date: Mon Apr 6 18:56:48 2020
DuplicateSignature: dkms:xrt:2.2.2250:/var/lib/dkms/xrt/2.2.2250/build/driver/xclng/drm/xocl/userpf/../subdev/qdma.c:833:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
Package: xrt 2.2.2250
PackageVersion: 2.2.2250
SourcePackage: xrt
Title: xrt 2.2.2250: xrt kernel module failed to build

 

0 Kudos
6 Replies
Highlighted
Xilinx Employee
Xilinx Employee
567 Views
Registered: ‎10-19-2015

Hi @rkvr,

The XRT drivers were built against the 4.x kernel for 18.04 LTS server class OS. 

So you will have to build the drivers from the source as you are doing. 

Did you verify you've met the system requirements and followed all the build steps from https://github.com/Xilinx/XRT ? 

Which branch are you building from? The master branch is our development branch so you should build a released branch. 

Did you run the xrtdeps.sh script prior to making the drivers? https://github.com/Xilinx/XRT/blob/master/src/runtime_src/tools/scripts/xrtdeps.sh

Regards,

M

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Contributor
Contributor
559 Views
Registered: ‎07-23-2019

Approach 1: xilinx prebuild xrt package installation

The error log which i shared is for Ubuntu 18.04 deb package downloaded from https://www.xilinx.com/products/boards-and-kits/alveo/package-files-archive/u250-2019-2.html#dsabin_1804_xdma xrt_201920.2.31301+18.04-xrt.deb (8.5 MB)

Ubuntu version: Ubuntu 18.04.4 LTS

kernal version details: Linux srg4-PowerEdge-R740 5.3.0-45-generic #37~18.04.1-Ubuntu SMP Fri Mar 27 15:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

 

Approach 2: XRT build with git Master repository

I tried to build XRT from git master repository. i am able to build, package and install xrt successfully. I am able see xclmgmt and xocl drivers map to U250, i am able to run ./xbmgmt flash --scan command. But when i ran ./xbutil validate the operation stuck after following line

sudo /opt/xilinx/xrt/bin/xbutil validate
INFO: Found 1 cards
INFO: Validating card[0]: xilinx_u200_xdma_201830_2
INFO: == Starting AUX power connector check:
INFO: == AUX power connector check PASSED
INFO: == Starting PCIE link check:
INFO: == PCIE link check PASSED
INFO: == Starting verify kernel test:

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
554 Views
Registered: ‎10-19-2015

Hi @rkvr 

That version of xbutil validate might have been compiled with some python libraries. 

Can you check and see if this script has completed successfully? https://github.com/Xilinx/XRT/blob/master/src/runtime_src/tools/scripts/pyopencl_install_check.sh

How long are you waiting? 

Can you gather DMESG log when xbutil validate fails? 

Regards,

M

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Contributor
Contributor
521 Views
Registered: ‎07-23-2019

following is pyopencl_install_check.sh run log

Python version: 2.7
WARNING: An older version of pip is installed. Please try
upgrading pip using 'sudo pip install --upgrade pip'
Pip version: 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
XRT installation didn't fail because of a pyopencl issue
Please recheck the installation log

sudo ./xbmgmt flash --scan
Card [0000:d8:00.0]
Card type: u250
Flash type: SPI
Flashable partition running on FPGA:
xilinx_u250_xdma_201830_2,[ID=0x5d14fbe6],[SC=INACTIVE]
Flashable partitions installed in system:
xilinx_u250_xdma_201830_2,[ID=0x5d14fbe6],[SC=4.2.0]

PFA for dmesg log

 

0 Kudos
Highlighted
Contributor
Contributor
465 Views
Registered: ‎07-23-2019

The workaround for issue is i build xrt git 2019.2 branch. Looks like ununtu 18.04.04 version incompatibility issue with master xrt repository and 18.4 pre build deb package available on xilinx website. 

I am able to run xbutil validate as well as application build in Vitis 2019.2

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
432 Views
Registered: ‎10-19-2015

Hi @rkvr 

Which kernel are you using? ($uname -r) 

The drivers are not build against the 5.x kernel, so that could be the source of the error.

Regards,

M

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos