Scalable Scatter-Gather DMA Intel® FPGA IP Design Example User Guide
ID
823179
Date
4/30/2025
Public
2.7.2.1. Installing the Linux Kernel Driver
Before you can test the design example in hardware, you must configure the FPGA with the generated programming file and then restart your computer/system to allow the enumeration to take place for the PCIe* device. After that, install the Linux kernel driver. You can use this driver to perform the following tests:
- H2D ST and D2H ST loopback DMA transfer
- On-chip Memory Read and Write via DMA Transfer
Complete the following steps to install the kernel driver:
- Navigate to <design_example>/PCIE_MODE/software under the design example generation directory.
- Set the architecture
$ export ARCH=x86
- Set cross compiler to none
$ export CROSS_COMPILE=
- Set Linux kernel source directory
$ export KERNELDIR=/lib/modules/$(uname -r)/build
- Clean the build directory
$ make clean
- Build SSGDMA driver for DMA PCIe mode
$ make debug_pcie
- Insert application as kernel module
$ sudo insmod intel_ssgdma.ko
- Change the permission of the device module.
$ sudo chmod 777 /dev/edmadbg0
- Verify driver installation
$ lspci -d 1172:005 -v | grep “Intel SSGDMA”
Expected result: “Kernel driver in use: Intel SSGDMA”