- prepare clone these repo to your home dir or anywhere you like.
sudo apt-get install libaio1 libaio-dev
git clone https://github.com/RC4ML/qdma_driver.git
cd qdma_driver
- compile
make
- insmod and config
insmod /path/to/qdma_driver/src/qdma-pf.ko
echo 1024 > /sys/bus/pci/devices/0000:1a:00.0/qdma/qmax
dma-ctl qdma1a000 q add idx 0 mode st dir bi
dma-ctl qdma1a000 q start idx 0 dir bi desc_bypass_en pfetch_bypass_en
-
follow step1 to clone this repo
-
compile
make apps
- instlal all to /usr/local/sbin
sudo make install-apps
If you find the kernel module fails to install due to invalid module format, consider updating your Linux header files by the following script:
sudo apt update && sudo apt upgrade
sudo apt remove --purge linux-headers-*
sudo apt autoremove && sudo apt autoclean
sudo apt install linux-headers-generic