cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
xilinx675942236
Contributor
Contributor
1,182 Views
Registered: ‎09-04-2018

installing XVC drivers

Jump to solution

hi

When installing XVC drivers according to the manual of PG156, make install error, as follows:

make -C /lib/modules/4.15.0-47-generic/build M=/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4 modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-47-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4/mmconfig-shared.o
/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4/mmconfig-shared.c: In function ‘pci_mmcfg_driver_init’:
/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4/mmconfig-shared.c:118:2: error: implicit declaration of function ‘acpi_get_table_with_size’ [-Werror=implicit-function-declaration]
acpi_get_table_with_size(ACPI_SIG_MCFG, 0, &mcfg_base, &mcfg_size);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4/mmconfig-shared.o' failed
make[2]: *** [/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4/mmconfig-shared.o] Error 1
Makefile:1552: recipe for target '_module_/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4' failed
make[1]: *** [_module_/home/alveo-u200/soft/u200/xvc_pcie/driver_v0.4] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-47-generic'
Makefile:21: recipe for target 'module' failed
make: *** [module] Error 2

I am completely installed in the manual, why is this?

0 Kudos
Reply
1 Solution

Accepted Solutions
bethe
Xilinx Employee
Xilinx Employee
1,126 Views
Registered: ‎12-10-2013

Hi @xilinx675942236  & @luisb,

You are missing a dependancy in your Ubuntu installations, please try:

sudo apt-get install libelf1    -or-

sudo apt-get install elfutils

After applying this to my Ubuntu build, I was able to successfully make clean all, sudo make install, and sudo modprobe the driver, and see it attach.

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

View solution in original post

3 Replies
luisb
Xilinx Employee
Xilinx Employee
1,153 Views
Registered: ‎04-06-2010

I'm getting the same error.  What OS and version are you using?  I'm using Ubuntu 18.04 and I'm wondering if you're using the same.

0 Kudos
Reply
xilinx675942236
Contributor
Contributor
1,137 Views
Registered: ‎09-04-2018
I am using ubuntu 16.4 ,Installation has been wrong。Is it not supported by the ubuntu?
0 Kudos
Reply
bethe
Xilinx Employee
Xilinx Employee
1,127 Views
Registered: ‎12-10-2013

Hi @xilinx675942236  & @luisb,

You are missing a dependancy in your Ubuntu installations, please try:

sudo apt-get install libelf1    -or-

sudo apt-get install elfutils

After applying this to my Ubuntu build, I was able to successfully make clean all, sudo make install, and sudo modprobe the driver, and see it attach.

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

View solution in original post