X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/aa3c50e2235871a58e803fbe4ea70fb0172fe1ee..6772d015e7e45a82ed1b0de3a930ad40a11d8079:/ugw/ppc/S50ugw diff --git a/ugw/ppc/S50ugw b/ugw/ppc/S50ugw index f4147b6..0d64093 100644 --- a/ugw/ppc/S50ugw +++ b/ugw/ppc/S50ugw @@ -4,5 +4,34 @@ ip link set can0 type can bitrate 1000000 ip link set up dev can0 ip link set can1 type can bitrate 1000000 ip link set up dev can1 +ifconfig can1 txqueuelen 100 -ugw -r mmapbusy & +set -x + +# ifconfig eth0 192.168.2.3 +# (echo boa; echo boa) | passwd + +if grep -q kernelgw /proc/cmdline; then + cangw -A -s can0 -d can1 + echo "Kernel GW started" + exit 0 +fi + +params=$(sed -ne 's/.* ugw=|\([^"]*\)|.*/\1/p' /proc/cmdline) + +# mount -t debugfs none /sys/kernel/debug +# cd /sys/kernel/debug/tracing/ +# echo 0 > tracing_on +# echo function_graph > current_tracer +# # echo mscan_start_xmit > set_graph_function +# cat > set_ftrace_notrace < set_graph_function +# echo > trace +# echo 60000 > buffer_size_kb +# echo 1 > tracing_on + +ugw $params &