#MainsailOS CAN0 interface not found

3 messages · Page 1 of 1 (latest)

warm elm
#

I'm trying to use CAN on my machine, and I read that can should be enabled on mainsailOS. I don't have an interfaces.d or netplan directory in /etc either. However, when i try to run canbus_query, I get no such device for can0 and as such can't progress further

#

~/klippy-env/bin/python ~/klipper/scripts/canbus_query.py can0 Traceback (most recent call last): File "/home/pi/klipper/scripts/canbus_query.py", line 64, in <module> main() File "/home/pi/klipper/scripts/canbus_query.py", line 61, in main query_unassigned(canbus_iface) File "/home/pi/klipper/scripts/canbus_query.py", line 20, in query_unassigned bus = can.interface.Bus(channel=canbus_iface, can_filters=filters, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/klippy-env/lib/python3.11/site-packages/can/interface.py", line 127, in __new__ return cls(channel, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/klippy-env/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 594, in __init__ bind_socket(self.socket, channel) File "/home/pi/klippy-env/lib/python3.11/site-packages/can/interfaces/socketcan/socketcan.py", line 459, in bind_socket sock.bind((channel,)) OSError: [Errno 19] No such device

#

I also have no can tab in the devices finder