Can anyone confirm that this solution works? I have tried both suggestions from Sparta and have not been able to successfully use the canbus.
I set the register entries,
nvidia@exd-xav-1:~ sudo busybox devmem 0x0c303000
0x0000C400
nvidia@exd-xav-1:~ sudo busybox devmem 0x0c303008
0x0000C458
nvidia@exd-xav-1:~ sudo busybox devmem 0x0c303010
0x0000C400
nvidia@exd-xav-1:~ sudo busybox devmem 0x0c303018
0x0000C458
I am trying to work with a 250k baud so
nvidia@exd-xav-1:~ sudo modprobe can
nvidia@exd-xav-1:~ sudo modprobe can_raw
nvidia@exd-xav-1:~ sudo modprobe mttcan
nvidia@exd-xav-1:~ sudo ip link set can0 type can bitrate 250000
nvidia@exd-xav-1:~ sudo ip link set up can0
nvidia@exd-xav-1:~ ip -details -statistics link show can0
4: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10
link/can promiscuity 0
can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 250000 sample-point 0.875
tq 20 prop-seg 87 phase-seg1 87 phase-seg2 25 sjw 1
mttcan: tseg1 2…255 tseg2 0…127 sjw 1…127 brp 1…511 brp-inc 1
mttcan: dtseg1 1…31 dtseg2 0…15 dsjw 1…15 dbrp 1…15 dbrp-inc 1
clock 50000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
nvidia@exd-xav-1:~$ cansend can0 123#abcdabcd
But this does not produce anything on the datalink.