Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Driver trouble on CentOS 6.5

I'm trying to set up a node for OpenCL on FPGA development. I accidentally had my CentOS 6.4 update to 6.5 with 2.6.32-431.5.1.el6.x86_64 and the driver does not seem to work. When I run ./user in /hld/linux64/driver I get the following message:

using /dev/de40

couldn't open the device. did you load the driver?

The driver is loaded (I think? I checked using lsmod), but ./user keeps giving me that message. I also checked and /dev/de40 exists when I try to query the FPGA.

dmesg gives me the following when I manually unload/load the driver:

aclpci_drv: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint
aclpci_init (666): 
----------------------------
aclpci_init (667): 
Driver version: 13.1.3.
aclpci_init (682): 
pci_register_driver
aclpci_init (688): 
success

I'm using a terasic DE5-NET board. Any help in solving this would be appreciated. Thanks!

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This is very strange, I'm getting an errno=6 (no such device or address) when I try to open /dev/de40, but I clearly see it. Am I missing something here?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Can you see your board as a PCIe device with /sbin/lspci? Maybe the board did not come up properly or has no FPGA image.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Can you confirm the exact version of the SDK you're using? 13.1? Which build?

    Have you tried removing the driver and reinstalling it?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I was trying to use 13.1.3.178. Did a fresh install of 13.1.3.162 and everything is working perfectly now. Must have botched the patch somehow :/

    Thanks for all of your help!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    That's great news. Also good to hear the driver works with CentOS 6.5. If you have any further issues please feel free to comment/post on the forum here so that others may benefit. Thanks.