Jump to content

Recommended Posts

Posted

Hello, I'm also interested in MCP2515 CAN,

 

I've run it with tinkerOS, with raspberry Pi, so I have working module.

I'm fine building DTS Overlay with MCP2515 or kernel with it's built-in support.

 

What I havent understood from the begining is how to init SPI bus and init MCP module/ MCP's dtbo at system load.

 

Raspberry PI have config file for that stuff: /boot/config.txt

tinkerOS have /boot/hw_intf.conf

 

Do I able to initiate SPI & CAN init with armbian, if Yes, can anybody guides me to - HOW?

Posted

Well, in something other than all capital letters, the explanation is that the kernel does not fully support overlays just yet.  Also, you neglected to tell me what kernel you are using.  The 4.14 images have broken spidev right now, I haven't fixed it since I didn't notice until recently, and we have the 4.19 kernel nearly debugged, which will replace 4.14.  Dev images at least support the spidev so you could use CAN in user space.  Until I add the mcp2515 to the kernel module list (I can't remember if it's there), a dt overlay won't help anyway.

Posted

I was checking with 4.1 stock kernel, in case building own one I'm fine with both 4,1 and 4.4.

The most of my misunderstand is - how to pass parameters to driver (it requires to define oscillator frequency and interrupt pin - here are samples) and activate modules to boot up properly.

Posted
8 hours ago, Doglio27 said:

Where can I find 4.19?

It is available as nightly build through dl.armbian.com

 

@lefedor only 4.4/4.14/4.19 kernels exist at this time, but none have proper dtoverlay support as yet.  So you would have to modify the device tree yourself and recompile it, again assuming that CAN controller driver is in the kernel. 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines