The last time I looked, the there was already a kernel driver for this CAN device. http://lxr.free-electrons.com/source/drivers/net/can/mcp251x.c?v=3.14 is just one such example for the 3.14.x kernel, but that does not mean you *need* 3.14.x kernel for it to work.
Anyway, I know several people have gotten this chip to work on the rPI - Since I googled this chip a couple months ago to see what all was done with it in Linux. At minimum you should have many things to go by from the rPI camp. Most of the setup / usage should be similar. On Wed, Jan 20, 2016 at 11:11 PM, Marius <[email protected]> wrote: > I have a feeling that you will have to change the low level driver code to > include the SPI mechanism. Can is not just a protocol but there is a lot of > bus arbitration type of actions at low level. > I wonder if it would not be easier to look for a high level protocol that > can be piped to any comms driver or even roll your own. > > > > ----------------------------- > > <https://www.facebook.com/pages/Blue-Arc-Cnc/331222580384016?ref=hl> > > > > ------ Original Message ------ > From: "Sam Daleo" <[email protected]> > To: "BeagleBoard" <[email protected]> > Sent: 2016-01-21 07:06:58 > Subject: [beagleboard] CAN over SPI using MCP2515 and Beaglebone > > > Hey! Just like the title says, I'm interested in doing this. I know I can > use the CAN bus on the Beaglebone, but I want to be able to do it over SPI. > Anyone ever tried this before? > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
