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.

Unable to Setup CAN Network

Featured Replies

Hello,

 

I've been having some issues with the official CB1 image on github provided by BTT. Namely, I'm having CAN issues with bytes_invalid increasing during printing operation which is exacerbated once I add more than 1 CAN device.

 

One of the recommendations was to try a newer kernel so I'm trying to migrate to Armbian. I have called out the appropriate overlays (MCP2515)and verified that they are loaded in the armbianEnv.txt file. However, I am not able to load up a Can network. I have created a file in /etc/systemd/network/80-can.network containing the below info.


 

[Match]
Name=can*

[CAN]
BitRate=1000000

 

I also ran

dtc -s /proc/device-tree 2>/dev/null > foo.dts

 

foo.dts

Edited by Rodman
Added foo.dts file

Solved by JohnTheCoolingFan

  • Author

Looks like removing the "light" overlay does allow the CAN network to start up. Thanks for the help!

 

Unfortunately, it appears that the bytes_invalid issue persists with this kernel as well. The hunt continues!

@JohnTheCoolingFan Hey mate. Im using this firmware on CB1 also. I tried what you said above but its still defaulting to txqueuelenth to 10.

I can manually start can0 at the desired speed and queue length but doesnt persist after boot.

 

Sorry for the long delay.

I don't have experience with CAN networks, but a quick search found this gist, which uses systemd network and udev rules to set the txqueuelen: https://gist.github.com/Lauszus/733c4c4c6abacd19a0b5dad099fab172

You can change the device name match to just can0 instead of a wildcard if you want.

 

I've bought a few spi-to-can adapters to later test how this works myself, but if you can please try the linked method.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.