Esoterical / voron_canbus

GNU General Public License v3.0
419 stars 59 forks source link

[RatOS Specific] Mention /etc/networks/interfaces.d/ is not parsed by default #81

Open eltoozero opened 1 month ago

eltoozero commented 1 month ago

As mentioned in the RatOS repo here, not having your /etc/networks/interfaces.d/can0 parsed will implicitly prevent the can0 from coming up as expected, even if you follow all other instructions to the letter.

I was able see the CAN device appear in kernel logs, I saw the device in lsusb output, I saw the actual interface appear in ifconfig output, but with status DOWN and queue of only 10.

While stumbleshooting I found a post where someone was able to manually bring the interface up with ip link set up can0 type can bitrate 1000000, which did work to bring the can0 interface link UP.

I worked backwards from there.

Summary: /etc/network/interfaces must contain

# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*

for the /etc/networks/interfaces.d/can0 to be correctly parsed as the instructions expect.

clembo1 commented 4 days ago

Not sure if this is a fit for RatOS and your scenario, but i just submitted a write-up: https://github.com/Esoterical/voron_canbus/issues/83