Well, I have same problem. Seems that everything is correct but I don't have any candump output
pasha@orangepipcplus:~$ sudo ifconfig can0
can0: flags=193<UP,RUNNING,NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
pasha@orangepipcplus:~$ sudo ifconfig can0
can0: flags=193<UP,RUNNING,NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
pasha@orangepipcplus:~$ lsmod | grep can
can_raw 20480 0
can_dev 20480 1 mcp251x
can 20480 1 can_raw
pasha@orangepipcplus:~$ dmesg | grep "can\|mcp\|spi"
[ 6.236392] can: controller area network core (rev 20170425 abi 9)
[ 6.246062] can: raw protocol (rev 20170425)
[ 7.585019] mcp251x spi0.0 can0: MCP2515 successfully initialized.
pasha@orangepipcplus:~$
but:
pasha@orangepipcplus:~$ candump can0 - no output
resistor is OK, I connect Opi to existing can bus where one device sends data and second receive successfully
Also I wonder why I can't compile overlay from example
https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/spi-mcp251x.dts
sudo armbian-add-overlay spi-mcp251x.dts
Compiling the overlay
dtc: livetree.c:521: get_node_by_phandle: Assertion `(phandle != 0) && (phandle != -1)' failed.
/usr/sbin/armbian-add-overlay: line 81: 2323 Aborted dtc -@ -q -I dts -O dtb -o ${temp_dir}/${fname}.dtbo $1
Error compiling the overlay
Device tree compiler is newest version (1.4.5-3)
thanks for help...