Commit 490dbf7e authored by Fang-WANG's avatar Fang-WANG

update install files

parent 02df466d
...@@ -9,8 +9,8 @@ fi ...@@ -9,8 +9,8 @@ fi
# Remove the existing xdma kernel module # Remove the existing xdma kernel module
lsmod | grep xdma lsmod | grep xdma
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
rmmod xdma echo "xdma driver already loaded ..."
fi else
echo -n "Loading xdma driver..." echo -n "Loading xdma driver..."
# Use the following command to Load the driver in the default # Use the following command to Load the driver in the default
# or interrupt drive mode. This will allow the driver to use # or interrupt drive mode. This will allow the driver to use
...@@ -28,6 +28,7 @@ if [ ! $? == 0 ]; then ...@@ -28,6 +28,7 @@ if [ ! $? == 0 ]; then
exit 1 exit 1
fi fi
fi
# Check to see if the xdma devices were recognized # Check to see if the xdma devices were recognized
echo "" echo ""
cat /proc/devices | grep xdma > /dev/null cat /proc/devices | grep xdma > /dev/null
......
#!/bin/bash
sudo ./load.sh
sudo cp XDMA/linux-kernel/xdma/xdma.ko /lib/modules/`uname -r`/
sudo depmod -a
sudo echo "xdma" > /etc/modprobe.d/oxgrf.conf
#!/bin/bash
cd XDMA/linux-kernel/xdma/
make clean;make
cd ../tests
sudo ./load_driver.sh
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment