I did cat /proc/device-tree/mttcan@c310000/status - returned okay
Then following commands:
sudo apt-get install busybox
busybox devmem 0x0c303018 w 0x458
busybox devmem 0x0c303010 w 0x400
Command modprobe didn’t work, so I did everything with sudo.
sudo modprobe can
sudo modprobe can_raw
sudo modprobe mttcan
ip link set can0 up type can bitrate 500000
sudo apt-get install can-utils
When I tried, cansend can0 123#abcdabcd nothing happens.
I have also tried loopback test ( with sudo):
$ ip link set can0 type can bitrate 500000 loopback on
$ ip link set can0 up
$ candump can0 &
$ cansend can0 123#abcdabcd
Again, nothing happens on terminal.
What am I doing wrong or what I missed?
Thank you/
Could you try to use Jetson IO to enable can0 with Jetson-IO as following?
1. Run Jetson-IO
$ sudo /opt/nvidia/jetson-io/jetson-io.py
2. Enable can0 and can1
Configure Jetson 40pin Header -> Configure header pins manually -> Enable can0/can1 as following -> Back -> Save pin changes -> Save and reboot to reconfigure pins -> Enter
[*] can0 (29,31)