I've followed this tutorial to configure my CAN module with Raspberry Pi 3 B+: https://vimtut0r.com/2017/01/17/can-bus-with-raspberry-pi-howtoquickstart-mcp2515-kernel-4-4-x/ After failing to bring up the interface I've found this post: Unable to bring CAN interface up on Raspberry Pi 3 However it seems the kernel has evolved quite a bit and neither tutorial seems to work.

My CAN module is exactly equal to the one showed on the first link, however I did use a logic level converter instead of soldering those wires to maximize reliability. So, I've powered the module with 5V and then put a logic level converter on the SPI pins of the CAN module to connect to the Raspberry Pi.

PS: I've also read this: https://www.raspberrypi.org/forums/viewtopic.php?t=141052 Actually this was the first post I've found.

Any clues? Go ahead and say what you have in mind even if you are unsure! At least I have something to test :)

Thanks for reading all of this!

  • "However it seems the kernel has evolved quite a bit and neither tutorial seems to work."... that being the case, have you considered running your 3 B+ with an older version of Raspbian? Just to get something working... – Seamus Apr 21 '18 at 14:36
  • I'm not sure why you or the person who wrote that blog presumes your problems are due to "the kernel [having] evolved quite a bit". This is a bit like someone believing their car doesn't start because there must be water in the gas tank. There are many, many reasons a car will not start besides that ;) I'd guess the evidence for the blogger was the difference in SPI overlay, since this is the only thing he advises for "older kernels". This in fact is more likely evidence of the evolution of device tree overlays than anything else and it is a very trivial difference... – goldilocks Apr 21 '18 at 17:44
  • ...I mention that because it smacks of a motive for creating XY problems. Anyway: You should explain in more concrete terms what you mean by "doesn't work". – goldilocks Apr 21 '18 at 17:45
  • @Seamus feature wise it makes no difference for me using a older raspbian but it is incompatible with this raspberry pi. – G-Pereira Apr 21 '18 at 20:37
  • @goldilocks thanks for the long and extensive response, I really appreciate it. Like you've said newer kernel can change some names, like that overlay keyword, I am wondering that is probably the case again with this kernel. The problem I face is when I try to make "ip link up...." it doesn't has the can0 interface available to "bring up" – G-Pereira Apr 21 '18 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.