Doglio27 Posted December 4, 2018 Posted December 4, 2018 Hi everyone! Someone has implemented support for mcp2515 for tinker board in armbian? Thank you!
lefedor Posted December 4, 2018 Posted December 4, 2018 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?
TonyMac32 Posted December 4, 2018 Posted December 4, 2018 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.
Doglio27 Posted December 5, 2018 Author Posted December 5, 2018 Right now i'm using 4.14. Where can I find 4.19?
lefedor Posted December 5, 2018 Posted December 5, 2018 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.
TonyMac32 Posted December 5, 2018 Posted December 5, 2018 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.
Recommended Posts