How to Auto-Load CAN Kernel Drivers on Jetson Orin Nano (JetPack 5.1)?

Hi everyone,

I am using a Jetson Orin Nano Development Kit with JetPack 5.1 and need to set up CAN communication. I have successfully installed and configured the necessary CAN modules, but after every reboot, I need to manually load the CAN kernel drivers again.

Currently, I am running the following commands after every reboot to get can0 working:

sudo modprobe mttcan
sudo ip link set can0 up type can bitrate 1000000
sudo ifconfig can0 up

Is there a way to automatically load the CAN kernel drivers (mttcan) and set up can0 every time the Jetson boots?

Any help or guidance would be greatly appreciated!

Thanks in advance. 😊

Hi rahul_nutran,

Please refer to Q: How to autorun an app or commands at startup? and add your commands during boot up.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.