How to bring up the CAN bus when bootup?

How to bring up the CAN bus when bootup without manually input of the following?

  1. sudo modprobe mttcan
  2. sudo ip link set can0 type can bitrate 1000000
  3. sudo ifconfig can0 up

@tao.wang

Please see this post: [url]Enable CAN Bus on Jetson TX2 - Jetson TX2 - NVIDIA Developer Forums

Just modify with your bitrate in the /etc/network/interfaces file

Ltro

Thanks Ltro,

It works as putting the commands in rc.local. I also find this link is helpful: How to Configure and Use CAN Bus | RidgeRun Developer