4.3.2.1 Drivers Installation

Enter the following commands in the Linux command prompt to install the PCIe drivers:

  1. Change to PCIe_Drivers directory by using the following command:

    #cd <source_code_directory>\mpf_an4597_df\PCIe_Drivers\Linux_PCIe_Drivers_application\linux_pcie_dma\linux_pcie_driver

  2. Enter the make command on Linux Command Prompt to compile the Linux PCIe device driver code.

    #make clean [To clean any *.o, *.ko files]

    #make

  3. The kernel module mpci.ko is created in the same directory.
  4. Enter insmod command to insert the Linux PCIe device driver as a module.

    sudo insmod mpci.ko

Important: Root privileges are required to execute this command.
The following figure shows the PCIe device driver installation.
Figure 4-21. PCIe Device Driver Installation