I tried to do as indicated in this instruction 
<https://processors.wiki.ti.com/index.php/AM335X_DCAN_Driver_Guide#ip>, but 
it is outdated and does not produce results on new linux kernels. What I 
have to do to make the can interface work?


Board: custom board am3359 (almost like beaglebone black)

Target: linux kernel 4.14 , debian 9.9

Target: linux kernel 5.6.4 , debian 10 - same result


Problem: Can-bus working just *listen-only-mode*


*listen-only mode is ok, messages comes:*
? <https://e2e.ti.com/support/processors/f/791/t/906552#>
1
2
3
4
5
6
7
sudo ifconfig can0 down 
sudo ip link set can0 type can bitrate 125000 listen-only on 
sudo ifconfig can0 up 
candump -cae can0,0:0,#FFFFFFFF 
  can0  1FE4F1DC   [8]  01 64 00 00 00 00 00 00   '.d......' 
  can0  1FE4F1DC   [8]  01 64 00 00 00 00 00 00   '.d......' 
  can0  1FE4F1DC   [8]  01 64 00 00 00 00 00 00   '.d......'

*normal mode bus crashes:*
? <https://e2e.ti.com/support/processors/f/791/t/906552#>
1
2
3
4
5
6
sudo ip link set can0 type can bitrate 125000 
sudo ifconfig can0 up 
[13210.377469] c_can_platform 481cc000.can can0: setting BTR=1c0b BRPE=0000 
[13210.391464] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready 
cansend can0 123#DEADBEAF 
[13220.749607] c_can_platform 481cc000.can can0: bus-off

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/9673987a-f2a0-4a5f-8b48-d34a2aae61d9%40googlegroups.com.

Reply via email to