Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data_dev/driver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ all: rc.local
# construct a rc.local file for the location of this driver
rc.local:
sed 's|DRIVER_LOCATION|$(HOME)|' rc.local.in > rc.local
chmod +x rc.local


# Clean target: remove built module and object files
Expand Down
9 changes: 6 additions & 3 deletions data_dev/driver/example-load
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
set -o nounset
set -o errexit

# remove old driver
/sbin/rmmod -s datadev
if /sbin/lsmod | grep -q datadev; then
echo "remove old driver"
/sbin/rmmod -s datadev
fi

# add new driver
echo "add new driver"
# this is the line that needs to be tuned to the parameters of your machine
# additionally, since we reference datadev.ko from the current directory,
# we need to run this script from the directory that has datadev.ko
/sbin/insmod ./datadev.ko cfgSize=0x50000 cfgRxCount=256

echo "allow everyone to see driver status"
# give appropriate permissions
chmod 666 /proc/datadev*
Empty file modified data_dev/driver/rc.local.in
100755 → 100644
Empty file.
Loading