FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5988 Discussions

Cannot install PCIe driver (altera_dma.ko) on Ununtu Linux 18

Jose_G_Intel3
Employee
662 Views

Hello All,

 

I am working with an Arria 10 GX platform. I want to leverage a design example for PCIe (https://fpgacloud.intel.com/devstore/platform/16.0.2/Standard/an690-pcie-gen3x8-avmm-dma-with-on-chi...), however, when I try to install the linux driver (altera_dma.ko) i get an error:

 

user@user:~/Documents/AN829_driver$ sudo insmod altera_dma.ko

insmod: ERROR: could not insert module altera_dma.ko: Invalid module format

Apparently this is caused becaused the version of the kernel used to compile the module and the kernel version on my workstation are different:

 

user@user:~/Documents/AN829_driver$ dmesg | grep altera

[   2.363199] altera-cvp 0000:01:00.0: BAR 0: can't reserve [mem 0x00000000-0x000001ff 64bit pref]

[   2.363200] altera-cvp 0000:01:00.0: Requesting CVP BAR region failed

[   2.363207] altera-cvp: probe of 0000:01:00.0 failed with error -16

[ 624.559262] altera_dma: version magic '2.6.32-696.10.1.el6.x86_64 SMP mod_unload modversions ' should be '4.15.0-50-generic SMP mod_unload '

 

 

[ 706.126243] altera_dma: version magic '2.6.32-696.10.1.el6.x86_64 SMP mod_unload modversions ' should be '4.15.0-50-generic SMP mod_unload '

[ 2243.704649] altera_dma: version magic '2.6.32-696.10.1.el6.x86_64 SMP mod_unload modversions ' should be '4.15.0-50-generic SMP mod_unload '

[ 4426.153828] altera_dma: version magic '2.6.32-696.10.1.el6.x86_64 SMP mod_unload modversions ' should be '4.15.0-50-generic SMP mod_unload '

[ 4430.476849] altera_dma: version magic '2.6.32-696.10.1.el6.x86_64 SMP mod_unload modversions ' should be '4.15.0-50-generic SMP mod_unload '

 

Is there a different version of the pcie driver or is there a way to get the source code to obtain the source code and compile my own driver? Is there any other workaround that you can recommend?

 

I have followed the recommendations found below without positive results :

https://forums.intel.com/s/question/0D50P00003yyTiNSAU/cyclone-10gx-dev-kit-pcie-example

 

https://forums.intel.com/s/question/0D50P00003yyMrnSAE/alteradma-driver-for-pcie

 

 

Raul

0 Kudos
1 Reply
Nathan_R_Intel
Employee
283 Views
Hie, Unfortunately we don't have a different pcie driver version for the design in the design store. Please check if you are able to build a new Kernel linux as shown below: https://rocketboards.org/foswiki/Documentation/AlteraArria10SoCVirtualPlatformBuildLinux Regards, Nathan
Reply