1 echo Setting up CAN interfaces
3 ip link set can0 type can bitrate 1000000
4 ip link set up dev can0
5 ip link set can1 type can bitrate 1000000
6 ip link set up dev can1
10 # ifconfig eth0 192.168.2.3
11 # (echo boa; echo boa) | passwd
13 if grep -q kernelgw /proc/cmdline; then
14 cangw -A -s can0 -d can1
15 echo "Kernel GW started"
19 params=$(sed -ne 's/.* ugw=|\([^"]*\)|.*/\1/p' /proc/cmdline)
21 # mount -t debugfs none /sys/kernel/debug
22 # cd /sys/kernel/debug/tracing/
24 # echo function_graph > current_tracer
25 # # echo mscan_start_xmit > set_graph_function
26 # cat > set_ftrace_notrace <<EOF
27 # can_receive __netdev_alloc_skb __kfree_skb kmem_cache_alloc sk_filter
28 # napi_gro_flush enqueue_task add_interrupt_randomness note_interrupt
29 # *_preempt_count msecs_to_jiffies
31 # echo raw_recvmsg mscan_isr mscan_rx_poll mscan_low_latency_recv > set_graph_function
33 # echo 60000 > buffer_size_kb