OlegT
Occasional Contributor
4 years agoLinux driver PCIe Cyclone10GX
Hello.
We have bought Cyclone10GX Development Kit and try to check PCIe bandwidth.
I use your Cyclone10GX_PCIeGen2x4_DMA_18_0_project. It contains driver and user application sources.
I am not able to compile them.
Used OS is Ubuntu 20.04.2 LTS.
GCC version is (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0.
When I type "sudo ./install cyclone10", I got many errors. like this:
altera_dma_cmd.h:50:20: error: field ‘write_time’ has incomplete type
50 | struct timeval write_time;
Looks like compiler version is not copmatible. But I can be wrong.
Please help to compile the driver.
Best regards,
Oleg.
The problem is in "struct timeval". It is not supported since kernel 5.6.
Ubuntu 20.04 has kernel 5.8. So I had to get rid of this structure.