I want to setup CAN interface so that it is available after boot.
I have a CAN hardware based on MCP2518FD attached to my Jetson Nano Developer Board, Jetpack 4.4.1. Everything works fine when I configure and activate the interface manually using the SocketCAN interface through ip link.
Interface name is can0
However, I want the CAN interface to start automatically after reboot without need for super user rights.
I tried to solve this with systemd-networkd:
added can and can_raw modules to a file /etc/modules-load.d/can.conf so that they are loaded during boot.
systemd-networkd service is started and enabled (“active (running)”)
created file /etc/systemd/network/80-can.network:
journalctl shows an error from systemd-networkd:
Sep 17 14:17:48 jet9 systemd-networkd: /etc/systemd/network/80-can.network:4: Unknown section ‘CAN’. Ignoring.
Sep 17 14:17:48 jet9 systemd-networkd: Enumeration completed
“ip -d -s link show can0” shows, that the baud rate is not set and that the interface is still DOWN.
What could be wrong?
systemd is version 237-3ubuntu10.42. Does this version support CAN at all?