Thank you very much.
It works =)
YEEEEE
For all Orange pi h2&h3
Step:
1) Download nightly image!!!
2) Connect
PC0(GPIO Orange PI) MOSI - (MCP2515<->CAN) SI
PC1(GPIO Orange PI) MISO - (MCP2515<->CAN) SO
PC2(GPIO Orange PI) CLK - (MCP2515<->CAN) SCK
PC3(GPIO Orange PI) CS - (MCP2515<->CAN) CS
PA7(GPIO Orange PI) INT - (MCP2515<->CAN) INT
3) Download overlay (zipped): sun8i-h3-spi0-mcp2515.zip (read up)
4) connect for orange pi, and command: armbian-config
Chose: System->Hardware-> spi0-mcp2515 and spi-spidev.
5) reboot
6) next login and
modprobe can
modprobe can-dev
# set bitrate 125kbit
ip link set can0 type can bitrate 125000 triple-sampling on
ifconfig can0 up
7) Testing
apt-get install can-utils
cangen can0 -I 5 -L 8 -D 11223344AABBCCDD
Download image: https://www.armbian.com/orange-pi-plus-2/ .
Next:
sed -i "s/apt/beta/" /etc/apt/sources.list.d/armbian.list
apt-get update
apt-get upgrade
Next:
To make sure you won’t run into conflicts within newly installed packages, remove them all before upgrade:
1
2
aptitude remove ~nlinux-dtb ~nlinux-u-boot ~nlinux-image ~nlinux-headers
aptitude remove ~nlinux-firmware ~narmbian-firmware ~nlinux-$(lsb_release -cs)-root
Proceed with install:
1
2
3
4
apt-get install linux-image-dev-sun8i linux-dtb-dev-sun8i linux-headers-dev-sun8i
apt-get install linux-u-boot-orangepiplus-dev linux-$(lsb_release -cs)-root-dev-orangepiplus
apt-get install armbian-firmware sunxi-tools swconfig a10disp
reboot
===================
I do not know from where else you can download
Hello.
I tried to do the same with mcp2515.
Distr : Armbian 5.27.170416 nightly
Kernel : 4.10.3-sun8i
My board: Orange Pi plus 2.
Error:
[ 11.874772] mcp251x spi0.0: Cannot initialize MCP2515. Wrong wiring?
[ 11.885334] mcp251x spi0.0: Probe failed, err=19
Pin connect:
I tried that too
VCC = 5 V
MCP2515<->SPI