Commit 1a6a9804 authored by Graziano Scalamera's avatar Graziano Scalamera
Browse files

Fix to support both TCP and UDP

parent 3ac5d88c
......@@ -9,20 +9,12 @@ HOSTNAME=`hostname`
CONFFILE=/runtime/site/${HOSTNAME}/etc/phbpm.conf
MOD=phbpm
load() {
if [ "`lsmod | grep $MOD | wc -l`" -gt 0 ]; then
echo $MOD " driver module already installed"
else
echo -n "Loading $MOD driver module... "
#/sbin/insmod $MODULE_PATH/misc/$MOD.ko enable_mask=${MASK} eth=${ETH} buf=${BUFFER} buf_size=${SIZE} period=${PERIOD} pos_period=${POS_PERIOD}
#/sbin/insmod /root/rt_tcp.ko eth=3 period=10000
#sleep 1
#/sbin/insmod /root/$MOD.ko enable_mask=${MASK} eth=${ETH} buf=${BUFFER} buf_size=${SIZE} period=${PERIOD} pos_period=${POS_PERIOD}
#/sbin/insmod /root/phbpm_fill0/$MOD.ko enable_mask=${MASK} eth=${ETH} buf=${BUFFER} buf_size=${SIZE} period=${PERIOD} pos_period=${POS_PERIOD}
#/sbin/insmod /root/phbpm_udp/$MOD.ko enable_mask=${MASK} eth=${ETH} buf=${BUFFER} buf_size=${SIZE} period=${PERIOD} pos_period=${POS_PERIOD}
/sbin/insmod /root/phbpm_udp_ethtx/$MOD.ko enable_mask=${MASK} eth=${ETH} buf=${BUFFER} buf_size=${SIZE} period=${PERIOD} pos_period=${POS_PERIOD} serialized_tx=1
/sbin/insmod $MODULE_PATH/misc/$MOD.ko enable_mask=${MASK} eth=${ETH} buf=${BUFFER} buf_size=${SIZE} period=${PERIOD} pos_period=${POS_PERIOD} serialized_tx=1
echo "OK"
sleep 1
/bin/chmod 666 /dev/phbpm*
......
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