Multi Channel DMA Intel® FPGA IP for PCI Express* Design Example User Guide

ID 683517
Date 7/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

3.5.2.4.3. Install PMD and Test Application (for Ubuntu)

Note: You must ensure that meson utility and elf utility are installed on the system before building DPDK v21.11.2. If not installed, use commands "sudo apt install meson" and "sudo apt install python3-pyelftools".
  1. Execute patch script from v21.11.2 directory
    #cd software/dpdk/dpdk/patches/v21.11.2/
    #sh ./apply-patch.sh
  2. Configure and build dpdk
    #cd software/dpdk/dpdk/patches/v21.11.2/dpdk-stable 
    
    #meson build #DESTDIR=install ninja -C build install
    
    #cd build
  3. Build igb_uio kernel driver and mcdma-test/perfq app
    #meson configure -Dexamples=mcdma-test/perfq -Denable_kmods=true
    #ninja
  4. Install uio_igb or vfio:
    insmod dpdk-stable/build/kernel/linux/igb_uio/igb_uio
  5. To bind the driver:
    dpdk-stable/usertools/dpdk-devbind.py -b igb_uio <BDF>
    
    OR
    dpdk-stable/usertools/dpdk-devbind.py -b vfio-pci <BDF>
    Example:
    dpdk-stable/usertools/dpdk-devbind.py -b vfio-pci 01:00.0
    To unbind the driver:
    echo <BDF> > sys/bus/pci/devices/<BDF>/driver/unbind
    Example
    echo 0000:01:00.0 > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
  6. cd examples/mcdma-test/perfq