Forum Discussion
Altera_Forum
Honored Contributor
11 years agoYou are right that the PCIe driver is not supporting Ubuntu, but there is a way to workaround this. To do so, you will need to modify your board package.
1. Go to the driver source location ($AOCL_BOARD_PACKAGE_ROOT/host/linux64/driver). In file "aclpci_cmd.c", and comment out the following lines if (dev->aer_firmware_first) { return -EIO; } 2. In the same directory, the file "make_all.sh", modify the line from SRC_PATH=/usr/src/kernels/`uname -r`-`uname -m` to SRC_PATH=/lib/modules/`uname -r`/build 3. Go to $AOCL_BOARD_PACKAGE_ROOT/linux64/bin, modify the "install" script. Add commands to create the directories for both MODPROBE_FILE (sudo mkdir -p /etc/sysconfig/modules) and RULE_FILE (sudo mkdir -p /etc/udev/rules.d) before those files are created. After the three steps above, you should be able to install the driver by running "aocl install". I have successfully installed and run the driver on Ubuntu with a Nallatech board before. Hopes this works for you as well.