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

ID 683517
Date 1/19/2024
Document Table of Contents 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 ./
  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
  4. Install uio_igb or vfio:
    insmod dpdk-stable/build/kernel/linux/igb_uio/igb_uio
  5. To bind the driver:
    dpdk-stable/usertools/ -b igb_uio <BDF>
    dpdk-stable/usertools/ -b vfio-pci <BDF>
    dpdk-stable/usertools/ -b vfio-pci 01:00.0
    To unbind the driver:
    echo <BDF> > sys/bus/pci/devices/<BDF>/driver/unbind
    echo 0000:01:00.0 > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
  6. cd examples/mcdma-test/perfq