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: 
Visitor acc19688
Visitor
515 Views
Registered: ‎05-25-2018

Failed when sudo ./install.sh on ubuntu16.04

Hi,

I am trying to install KCU1500 driver on Ubuntu .but I have bellow errors

 

xilinx@xilinx:/opt/dsa/xilinx_kcu1500_dynamic_5_0/xbinst$ sudo ./install.sh
INFO: Installing firmware for FPGA devices
Removing existing xclmgmt
Found hal zip..ignoring
/tmp/14677/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/mgmt-mb.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/4.15.0-24-generic/build M=/tmp/14677/0/driver/xclng/mgmt modules #CFLAGS_MODULE=-DMGMT_1PF
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-24-generic'
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-core.o
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-bit.o
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-cw.o
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-i2c.o
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-thread.o
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-firewall.o
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-utils.o
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-ioctl.o
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-xvc.o
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-sysfs.o
CC [M] /tmp/14677/0/driver/xclng/mgmt/mgmt-mb.o
LD [M] /tmp/14677/0/driver/xclng/mgmt/xclmgmt.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/14677/0/driver/xclng/mgmt/xclmgmt.mod.o
LD [M] /tmp/14677/0/driver/xclng/mgmt/xclmgmt.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-24-generic'
INFO: Installing new kernel mode driver xclmgmt version 2017.4.4
make -C /lib/modules/4.15.0-24-generic/build M=/tmp/14677/0/driver/xclng/mgmt modules #CFLAGS_MODULE=-DMGMT_1PF
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-24-generic'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-24-generic'
make -C /lib/modules/4.15.0-24-generic/build M=/tmp/14677/0/driver/xclng/mgmt modules_install
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-24-generic'
INSTALL /tmp/14677/0/driver/xclng/mgmt/xclmgmt.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 4.15.0-24-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-24-generic'
depmod -a
install -m 644 10-xclmgmt.rules /etc/udev/rules.d
rmmod -s xclmgmt || true
modprobe xclmgmt
/tmp/14677/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_ioctl.c
inflating: driver/xclng/drm/xocl/xocl_test.c
inflating: driver/xclng/drm/xocl/xocl_drv.h
inflating: driver/xclng/drm/xocl/xocl_exec.h
inflating: driver/xclng/drm/xocl/xocl_xdma.c
inflating: driver/xclng/drm/xocl/xocl_ctx.c
inflating: driver/xclng/drm/xocl/xocl_xdma.h
inflating: driver/xclng/drm/xocl/cdev_sgdma.h
inflating: driver/xclng/drm/xocl/xocl_xvc.c
inflating: driver/xclng/drm/xocl/xocl_xvc.h
inflating: driver/xclng/drm/xocl/xvc_pcie_ioctl.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
inflating: driver/include/xclbin.h
no makefile found in include
INFO: building kernel mode driver
make -C /lib/modules/4.15.0-24-generic/build M=/tmp/14677/0/driver/xclng/drm/xocl modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-24-generic'
CC [M] /tmp/14677/0/driver/xclng/drm/xocl/xocl_sysfs.o
/tmp/14677/0/driver/xclng/drm/xocl/xocl_sysfs.c: In function ‘mem_topology_show’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_sysfs.c:54:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
struct drm_device *ddev = dev_get_drvdata(dev);
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_sysfs.c: In function ‘connectivity_show’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_sysfs.c:68:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
struct drm_device *ddev = dev_get_drvdata(dev);
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_sysfs.c: In function ‘ip_layout_show’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_sysfs.c:81:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
struct drm_device *ddev = dev_get_drvdata(dev);
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_sysfs.c: In function ‘debug_ip_layout_show’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_sysfs.c:94:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
struct drm_device *ddev = dev_get_drvdata(dev);
^
CC [M] /tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.o
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c: In function ‘xocl_free_bo’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:115:4: error: too many arguments to function ‘release_pages’
release_pages(xobj->pages, npages, 0);
^
In file included from /tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:23:0:
./include/linux/pagemap.h:121:6: note: declared here
void release_pages(struct page **pages, int nr);
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:105:23: warning: unused variable ‘xdev’ [-Wunused-variable]
struct drm_xocl_dev *xdev = xobj->base.dev->dev_private;
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c: In function ‘xocl_create_bo_ioctl’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:340:23: warning: unused variable ‘xdev’ [-Wunused-variable]
struct drm_xocl_dev *xdev = dev->dev_private;
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:337:15: warning: unused variable ‘page_count’ [-Wunused-variable]
unsigned int page_count;
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:336:15: warning: unused variable ‘cpages’ [-Wunused-variable]
struct page *cpages;
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:334:6: warning: unused variable ‘j’ [-Wunused-variable]
int j;
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c: In function ‘xocl_init_unmgd’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:906:2: error: too many arguments to function ‘release_pages’
release_pages(unmgd->pages, unmgd->npages, 0);
^
In file included from /tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:23:0:
./include/linux/pagemap.h:121:6: note: declared here
void release_pages(struct page **pages, int nr);
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c: In function ‘xocl_finish_unmgd’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:917:2: error: too many arguments to function ‘release_pages’
release_pages(unmgd->pages, unmgd->npages, 0);
^
In file included from /tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:23:0:
./include/linux/pagemap.h:121:6: note: declared here
void release_pages(struct page **pages, int nr);
^
scripts/Makefile.build:332: recipe for target '/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.o' failed
make[2]: *** [/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.o] Error 1
Makefile:1552: recipe for target '_module_/tmp/14677/0/driver/xclng/drm/xocl' failed
make[1]: *** [_module_/tmp/14677/0/driver/xclng/drm/xocl] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-24-generic'
Makefile:24: recipe for target 'all' failed
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/4.15.0-24-generic/build M=/tmp/14677/0/driver/xclng/drm/xocl modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-24-generic'
CC [M] /tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.o
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c: In function ‘xocl_free_bo’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:115:4: error: too many arguments to function ‘release_pages’
release_pages(xobj->pages, npages, 0);
^
In file included from /tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:23:0:
./include/linux/pagemap.h:121:6: note: declared here
void release_pages(struct page **pages, int nr);
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:105:23: warning: unused variable ‘xdev’ [-Wunused-variable]
struct drm_xocl_dev *xdev = xobj->base.dev->dev_private;
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c: In function ‘xocl_create_bo_ioctl’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:340:23: warning: unused variable ‘xdev’ [-Wunused-variable]
struct drm_xocl_dev *xdev = dev->dev_private;
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:337:15: warning: unused variable ‘page_count’ [-Wunused-variable]
unsigned int page_count;
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:336:15: warning: unused variable ‘cpages’ [-Wunused-variable]
struct page *cpages;
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:334:6: warning: unused variable ‘j’ [-Wunused-variable]
int j;
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c: In function ‘xocl_init_unmgd’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:906:2: error: too many arguments to function ‘release_pages’
release_pages(unmgd->pages, unmgd->npages, 0);
^
In file included from /tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:23:0:
./include/linux/pagemap.h:121:6: note: declared here
void release_pages(struct page **pages, int nr);
^
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c: In function ‘xocl_finish_unmgd’:
/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:917:2: error: too many arguments to function ‘release_pages’
release_pages(unmgd->pages, unmgd->npages, 0);
^
In file included from /tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.c:23:0:
./include/linux/pagemap.h:121:6: note: declared here
void release_pages(struct page **pages, int nr);
^
scripts/Makefile.build:332: recipe for target '/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.o' failed
make[2]: *** [/tmp/14677/0/driver/xclng/drm/xocl/xocl_bo.o] Error 1
Makefile:1552: recipe for target '_module_/tmp/14677/0/driver/xclng/drm/xocl' failed
make[1]: *** [_module_/tmp/14677/0/driver/xclng/drm/xocl] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-24-generic'
Makefile:24: recipe for target 'all' failed
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

 

 

Thanks for the feedback

0 Kudos
1 Reply
Newbie rajinip
Newbie
475 Views
Registered: ‎05-14-2018

Re: Failed when sudo ./install.sh on ubuntu16.04

Check your kernel version.  It should be good with with 4.13.x version.

0 Kudos