Compiling and Loading the Driver - 3.4 English

Versal Adaptive SoC CPM DMA and Bridge Mode for PCI Express Product Guide (PG347)

Document ID
PG347
Release Date
2024-05-30
Version
3.4 English

The provided HSDP-PCIe driver can be downloaded from GitHub. The driver should be compiled and installed on the Host PC that is connected to the target FPGA via PCIe link. Before compiling the driver, you must specify the relevant parameters of the hardware design to the driver through a configuration header file for management and/or user mode. Refer to the comments within the header file for more information on cross referencing the variable values to the hardware design parameters. The values provided within the driver should already match the example design’s hardware configuration, but may require selectively commenting or defining a specific section of the configuration file in or out. A Makefile is provided with the driver to simply compilation, installation, and removal.

Note: You can download the driver from GitHub.
  1. Navigate to the driver directory
    $> cd <parent-path>/hsdp-pcie-driver
  2. Edit the configuration header file, if necessary, at /src/hsdp_pcie_user_config.h
  3. Compile the driver and copy to /lib/modules
    $> make install
  4. Insert the driver into the kernel
    $> make insmod