参考网址:https://www.xilinx.com/support/answers/65444.html
Note:FPGA板卡上需要烧录有PCIe DMA IP相关代码
- 在参考网址上下载源文件以及pdf
wget https://www.xilinx.com/Attachment/Xilinx_Answer_65444_Linux_Files.zip
wget https://www.xilinx.com/Attachment/Xilinx_Answer_65444_Linux_Files_rel20180420.zip - 解压文件
unzip https://www.xilinx.com/Attachment/Xilinx_Answer_65444_Linux_Files.zip
unzip https://www.xilinx.com/Attachment/Xilinx_Answer_65444_Linux_Files_rel20180420.zip - 卸载本地已有的驱动
sudo rmmod -s xdma
sudo rm -f /etc/udev/rules.d/60-xdma.rules
sudo rm -f /etc/udev/rules.d/xdma-udev-command.sh - 安装驱动
cd xdma
sudo make install
Note:安装过程可能会出现一个 No such file or directory 的错误,不用管它。 - 拷贝驱动规则文件
cd ../../Xilinx_Answer_65444_Linux_Files
sudo cp ./etc/udev/rules.d/* /etc/udev/rules.d/ - 进行测试
cd ../Xilinx_Answer_65444_Linux_Files_rel20180420/tests
chmod +x load_drever.sh
sudo ./load_driver.sh