I tried to do as indicated in this instruction, but it is outdated and does not produce results on new linux kernels. Please tell us what you need to do to make the can interface work.
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:
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 crashes:
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