
HAN Pilot Platform
Demonstration Manual
94
www.terasic.com
September 6, 2019
Install PCI Express Driver on Linux
To make sure the PCIe driver can meet your kernel of Linux distribution, the driver altera_pcie.ko
should be recompile before use it. The PCIe driver project is locate in the folder:
CDROM/Demonstrations/PCIe_SW_KIT/Linux/PCIe_Driver
The folder includes the following files:
altera_pcie.c
altera_pcie.h
altera_pcie_cmd.h
Makefile
load_driver
unload
config_file
To compile and install the PCI Express driver, please execute the steps below:
1.
Make sure the HAN Pilot Platform and the PC are both powered off.
2.
Set MSEL[2:0] to 010.
3.
Plug the PCIe adapter card into the PCIe slot on the PC motherboard. Use the PCIe cable to
connect to the HAN Pilot Platform PCIE connector and the PCIe adapter card (See
Figure 6-3 FPGA board connect to PC
4.
Power on your HAN Pilot Platform and the host PC.
5.
Open a terminal and use "cd" command to goto the folder "CDROM/ Demonstrations/
PCIe_Fundamental/demo_batch".
6.
Set QUARTUS_ROOTDIR variable pointing to the Quartus installation path. Set
QUARTUS_ROOTDIR variable by tying the following commands in terminal. Replace
“/home/centos/intelFPGA/18.0/quartus” to your quartus installation path.