UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer jedec_001
Observer
1,032 Views
Registered: ‎02-27-2018

failed to install kcu1500 driver based on 2017.2 on centos 7

Hi, 

  I installed 2017.2 sucessfully on centos 7, but failed to install the KCU1500 driver. Here is the error message:

 

   /tmp/10675/0/driver/xclng/drm/xocl/xocl_bo.c:38:2: error: too many arguments to function ‘drm_gem_object_lookup’
return drm_gem_object_lookup(dev, filp, handle);

  So how could i fix it? My os version: Linux version 3.10.0-693.21.1.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Wed Mar 7 19:03:37 UTC 2018.

 

  Another question: I installed 2017.2 and 2017.4 all in centos. Then is it possible to switch 2017.2 and 2017.4 simply by source the setting64.sh? 

0 Kudos
4 Replies
Xilinx Employee
Xilinx Employee
1,004 Views
Registered: ‎09-08-2011

Re: failed to install kcu1500 driver based on 2017.2 on centos 7

Hi Jedec,

 

Walk me through the steps up to the error message when you try to install the driver?

 

Is this the driver for the board you get out of the xbinst output?

 

So you ran something like > sudo ./install.sh?

 

Regards,

 

Evan

If at first you don't succeed, try redefining success?
0 Kudos
Observer jedec_001
Observer
992 Views
Registered: ‎02-27-2018

Re: failed to install kcu1500 driver based on 2017.2 on centos 7

Yes, I used the command sudo ./install.sh. I installed the kcu1500 driver from 2017.2 sucessfully on Ubuntu 16. I also installed it from 2017.4 sucessfully on centos 7. I wonder if this driver from 2017.2 could be installed sucessfully on centos. 

0 Kudos
Moderator
Moderator
935 Views
Registered: ‎03-27-2012

Re: failed to install kcu1500 driver based on 2017.2 on centos 7

Hi Jedec,

 

Can you please paste the log message after you ran command "sudo ./install.sh" as Evan asked?
We need to read the log to understand what's happening.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Highlighted
Visitor xlmeng
Visitor
650 Views
Registered: ‎06-21-2018

Re: failed to install kcu1500 driver based on 2017.2 on centos 7

Hi Moderator,

I encountered the same problem.

When I run ./install.sh with root, it failed:

# ./install.sh 
INFO: Installing firmware for FPGA devices
Removing existing xclmgmt
Found hal zip..ignoring
/tmp/5222/0
Archive:  xclmgmt.zip
  inflating: driver/include/xclerr.h  
  inflating: driver/include/xclbin.h  
  inflating: driver/xclng/mgmt/mgmt-bit.c  
  inflating: driver/xclng/mgmt/mgmt-core.c  
  inflating: driver/xclng/mgmt/mgmt-core.h  
  inflating: driver/xclng/mgmt/mgmt-cw.c  
  inflating: driver/xclng/mgmt/mgmt-i2c.c  
  inflating: driver/xclng/mgmt/mgmt-thread.c  
  inflating: driver/xclng/mgmt/mgmt-firewall.c  
  inflating: driver/xclng/mgmt/mgmt-utils.c  
  inflating: driver/xclng/mgmt/mgmt-ioctl.c  
  inflating: driver/xclng/mgmt/mgmt-xvc.c  
  inflating: driver/xclng/mgmt/mgmt-sysfs.c  
  inflating: driver/xclng/mgmt/xvc_pcie_ioctl.h  
  inflating: driver/include/xclfeatures.h  
 extracting: driver/xclng/mgmt/10-xclmgmt.rules  
  inflating: driver/xclng/mgmt/Makefile  
  inflating: driver/xclng/include/mgmt-reg.h  
  inflating: driver/xclng/include/mgmt-ioctl.h  
no makefile found in include
INFO: building kernel mode driver
make -C /lib/modules/3.10.0-693.21.1.el7.x86_64/build M=/tmp/5222/0/driver/xclng/mgmt modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
  CC [M]  /tmp/5222/0/driver/xclng/mgmt/mgmt-core.o
  CC [M]  /tmp/5222/0/driver/xclng/mgmt/mgmt-bit.o
  CC [M]  /tmp/5222/0/driver/xclng/mgmt/mgmt-cw.o
  CC [M]  /tmp/5222/0/driver/xclng/mgmt/mgmt-i2c.o
  CC [M]  /tmp/5222/0/driver/xclng/mgmt/mgmt-thread.o
  CC [M]  /tmp/5222/0/driver/xclng/mgmt/mgmt-firewall.o
  CC [M]  /tmp/5222/0/driver/xclng/mgmt/mgmt-utils.o
  CC [M]  /tmp/5222/0/driver/xclng/mgmt/mgmt-ioctl.o
  CC [M]  /tmp/5222/0/driver/xclng/mgmt/mgmt-xvc.o
  CC [M]  /tmp/5222/0/driver/xclng/mgmt/mgmt-sysfs.o
  LD [M]  /tmp/5222/0/driver/xclng/mgmt/xclmgmt.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/5222/0/driver/xclng/mgmt/xclmgmt.mod.o
  LD [M]  /tmp/5222/0/driver/xclng/mgmt/xclmgmt.ko
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
INFO: Installing new kernel mode driver xclmgmt version 2017.2.1
make -C /lib/modules/3.10.0-693.21.1.el7.x86_64/build M=/tmp/5222/0/driver/xclng/mgmt modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
make -C /lib/modules/3.10.0-693.21.1.el7.x86_64/build M=/tmp/5222/0/driver/xclng/mgmt modules_install
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
  INSTALL /tmp/5222/0/driver/xclng/mgmt/xclmgmt.ko
Can't read private key
  DEPMOD  3.10.0-693.21.1.el7.x86_64
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
depmod -a
install -m 644 10-xclmgmt.rules /etc/udev/rules.d
rmmod -s xclmgmt || true
modprobe xclmgmt
/tmp/5222/0
Archive:  xocl.zip
  inflating: driver/xclng/drm/xocl/libxdma.c  
  inflating: driver/xclng/drm/xocl/libxdma.h  
  inflating: driver/xclng/drm/xocl/xocl_bo.c  
  inflating: driver/xclng/drm/xocl/xocl_drv.c  
  inflating: driver/xclng/drm/xocl/xocl_sysfs.c  
  inflating: driver/xclng/drm/xocl/xocl_drv.h  
  inflating: driver/xclng/drm/xocl/xocl_xdma.c  
  inflating: driver/xclng/drm/xocl/xocl_xdma.h  
  inflating: driver/xclng/drm/xocl/cdev_sgdma.h  
  inflating: driver/xclng/drm/xocl/Makefile  
 extracting: driver/xclng/drm/xocl/10-xocl.rules  
  inflating: driver/xclng/drm/.dir-locals.el  
  inflating: driver/xclng/include/xocl_ioctl.h  
  inflating: driver/xclng/include/libxdma_api.h  
  inflating: driver/xclng/include/drm/drm.h  
  inflating: driver/xclng/include/drm/drm_mode.h  
  inflating: driver/include/xclfeatures.h  
no makefile found in include
INFO: building kernel mode driver
make -C /lib/modules/3.10.0-693.21.1.el7.x86_64/build M=/tmp/5222/0/driver/xclng/drm/xocl modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
  CC [M]  /tmp/5222/0/driver/xclng/drm/xocl/xocl_sysfs.o
  CC [M]  /tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.o
/tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c: In function 'xocl_gem_object_lookup':
/tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:38:2: warning: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type [enabled by default]
  return drm_gem_object_lookup(dev, filp, handle);
  ^
In file included from /tmp/5222/0/driver/xclng/drm/xocl/xocl_drv.h:27:0,
                 from /tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:27:
include/drm/drm_gem.h:241:24: note: expected 'struct drm_file *' but argument is of type 'struct drm_device *'
 struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
                        ^
/tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:38:2: warning: passing argument 2 of 'drm_gem_object_lookup' makes integer from pointer without a cast [enabled by default]
  return drm_gem_object_lookup(dev, filp, handle);
  ^
In file included from /tmp/5222/0/driver/xclng/drm/xocl/xocl_drv.h:27:0,
                 from /tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:27:
include/drm/drm_gem.h:241:24: note: expected 'u32' but argument is of type 'struct drm_file *'
 struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
                        ^
/tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:38:2: error: too many arguments to function 'drm_gem_object_lookup'
  return drm_gem_object_lookup(dev, filp, handle);
  ^
In file included from /tmp/5222/0/driver/xclng/drm/xocl/xocl_drv.h:27:0,
                 from /tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:27:
include/drm/drm_gem.h:241:24: note: declared here
 struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
                        ^
make[2]: *** [/tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.o] Error 1
make[1]: *** [_module_/tmp/5222/0/driver/xclng/drm/xocl] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
make: *** [all] Error 2
ls: cannot access *.ko: No such file or directory
INFO: Installing new kernel mode driver .ko version modinfo: ERROR: missing module or filename.
make -C /lib/modules/3.10.0-693.21.1.el7.x86_64/build M=/tmp/5222/0/driver/xclng/drm/xocl modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
  CC [M]  /tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.o
/tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c: In function 'xocl_gem_object_lookup':
/tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:38:2: warning: passing argument 1 of 'drm_gem_object_lookup' from incompatible pointer type [enabled by default]
  return drm_gem_object_lookup(dev, filp, handle);
  ^
In file included from /tmp/5222/0/driver/xclng/drm/xocl/xocl_drv.h:27:0,
                 from /tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:27:
include/drm/drm_gem.h:241:24: note: expected 'struct drm_file *' but argument is of type 'struct drm_device *'
 struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
                        ^
/tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:38:2: warning: passing argument 2 of 'drm_gem_object_lookup' makes integer from pointer without a cast [enabled by default]
  return drm_gem_object_lookup(dev, filp, handle);
  ^
In file included from /tmp/5222/0/driver/xclng/drm/xocl/xocl_drv.h:27:0,
                 from /tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:27:
include/drm/drm_gem.h:241:24: note: expected 'u32' but argument is of type 'struct drm_file *'
 struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
                        ^
/tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:38:2: error: too many arguments to function 'drm_gem_object_lookup'
  return drm_gem_object_lookup(dev, filp, handle);
  ^
In file included from /tmp/5222/0/driver/xclng/drm/xocl/xocl_drv.h:27:0,
                 from /tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.c:27:
include/drm/drm_gem.h:241:24: note: declared here
 struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);
                        ^
make[2]: *** [/tmp/5222/0/driver/xclng/drm/xocl/xocl_bo.o] Error 1
make[1]: *** [_module_/tmp/5222/0/driver/xclng/drm/xocl] Error 2
make[1]: Leaving directory `/usr/src/kernels/3.10.0-693.21.1.el7.x86_64'
make: *** [all] Error 2
Generating SDAccel runtime environment setup script, setup.sh for bash
Generating SDAccel runtime environment setup script, setup.csh for (t)csh

Can you help to fix this problem?

Thanks

0 Kudos