FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6526 Discussions

AN690 PCIe Gen3 x8 MM DMA altera_dma driver issues

Amchardy
Novice
2,011 Views

I'm having issues getting AN690 up and running on my A10 GX Dev Kit. I can successfully program the device and see the device listed when I run lspci -vv (as seen in the screenshot below)Screenshot from 2020-12-03 11-32-12.png

 

However, when running ./install the script hits an issue in the altera_dma_load stage when running the mkmod command. It appears as though the $major variable is not being assigned a value as no device is found in /proc/devices

Screenshot from 2020-12-03 11-35-31.png

 

I have also tried AN829 but run into the same issue.

I am attempting to run this on an NVidia Jetson AGX (ArmV8 processor) running Ubuntu 18.04.5 LTS.

To get the drivers to compile I had to add #include <linux/uacccess.h> to altera_dma.c and ccflags-y += "Wno_date_time" to the Makefile

 

I notice others with the same problem but have not seen a definitive solution. I would really appreciate any help here. I'm new to Intel/Altera after using Xilinx for many years and my experience has not been smooth so far.

0 Kudos
7 Replies
SengKok_L_Intel
Moderator
1,997 Views

Per AN690 section 1.6.1 Installing the Linux Software, you will expect to get an error message when you install the driver for the first time.

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/an/an690.pdf


This may not the same error as what you encounter, just to ensure after you have installed the driver again, you are failed to execute the ./run?


For the AN829, did you add the device family after the command? For example: "sudo ./install arra10"



Regards -SK





0 Kudos
Amchardy
Novice
1,992 Views

Hi, I get the "ERROR: Module altera_dma does not exist in /proc/modules." message every time I try to run install. It always fails on the altera_dma_load stage of the Makefile. If I manually edit altera_dma_load to assign a $major value that is not currently in use by any device listed in /proc/devices then the driver will load. However when I execute ./run I just get no response (i.e. I don't see a print out of the options). It just sits there doing nothing.

 

For AN829 I have been executing "sudo ./install arria10".

 

Any other suggestions or troubleshooting steps I can try?

0 Kudos
SengKok_L_Intel
Moderator
1,966 Views

This seems like there is OS dependency. After changed the $major value, did you see the driver listed in the /proc/devices?

Before running the driver, did you compile the driver and application by using the root account? 


Regards -SK


0 Kudos
Amchardy
Novice
1,964 Views

No, unfortunately I do not see it listed in /proc/devices. I do see altera_dma listed when I run lsmod.

 

All steps were run as root.

0 Kudos
SengKok_L_Intel
Moderator
1,944 Views

I apologize that there are no proper steps to further nail down this problem since this is more toward the OS or firmware related problem instead of FPGA or PCIe IP. Does this happen in this particular setup? Do you have a chance to work on another OS or machine?


Regards -SK


0 Kudos
SengKok_L_Intel
Moderator
1,907 Views

If further support is needed in this thread, please post a response within 15 days. After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions. 


0 Kudos
PTK13
Beginner
1,712 Views

Has anyone gotten this to work? It's been almost a year. I've just started working with this design and am seeing the same issues.

0 Kudos
Reply