2

I am trying to use a Can module but I get an error message with the following commands:

$ sudo modprobe can
$ sudo ip link add dev can0 type can
RTNETLINK answers: Operation not supported

I have checked the Elinux documentation related to CAN interfaces and the procedure works with the virtual interface

$ sudo modprobe vcan
$ sudo ip link add dev vcan0 type vcan
$ sudo ip link set up vcan0

Do you have any advice?

1 Answer 1

2

I am using a can bus module which communicates with a Raspberry Pi using SPI.

I had to enable the spi hardware interface:

dtparam=spi=on
dtoverlay=mcp2515-can0-overlay,oscillator=16000000,interrupt=25 
dtoverlay=spi-bcm2835-overlay

Should be:

dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25 
dtoverlay=spi-bcm2835
0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.