Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MCP2515 (SPItoCAN) on Tinker Board?

Featured Replies

Hi everyone!

 

Someone has implemented support for mcp2515 for tinker board in armbian?

 

Thank you!

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?

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.

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.

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.