I'm trying to get an MCP2515 working with an Orange Pi Zero LTS H2+. Everything seems to go well until I try to bring up the can0 interface using the command
ip link set can0 up type can bitrate 500000
Once the command is entered, it never returns. Control+C doesn't do help. New SSH sessions fail to start, but pinging the IP address works fine. Trying
ifconfig
from the serial terminal will also fail to return.
Trying to shutdown after the "ip link set..." c
It seems that in my experiments I got lost in the wrong place)
I was led astray mainly by this information.
https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/spi-mcp251x.dts
With the default driver and with the correct parameters, everything works and the terminal does not freeze,
here are the correct DT settings as an example for Nano PI NEO
clocks {
can0_osc_fixed: can0_osc_fixed {
compatible = "fixed-cloc