Forum Discussion

OlegT's avatar
OlegT
Icon for Occasional Contributor rankOccasional Contributor
4 years ago
Solved

Linux 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.

3 Replies

  • KhaiChein_Y_Intel's avatar
    KhaiChein_Y_Intel
    Icon for Regular Contributor rankRegular Contributor

    Hi Oleg,


    This error is not observed in Redhat/CentOS. It might have some OS or system dependencies. Could you try using other OS?


    Thanks

    Best regards,

    KhaiY


  • OlegT's avatar
    OlegT
    Icon for Occasional Contributor rankOccasional Contributor

    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.

  • KhaiChein_Y_Intel's avatar
    KhaiChein_Y_Intel
    Icon for Regular Contributor rankRegular Contributor

    Hi Oleg,


    I’m glad that the root cause is identified, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.


    Thanks

    Best regards,

    KhaiY