Compiling and Loading the Driver - 3.0 English

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

Document ID
PG347
Release Date
2022-06-15
Version
3.0 English

The provided HSDP-PCIe driver will be published to GitHub at a later date or contact Xilinx Support for driver delivery. 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.

  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