kiauh
kiauh copied to clipboard
Support of no id micro-controllers
Support of no id micro-controllers and let user choose them (appropriate USB) for flashing. Example, my Debian/Anycubic i3 have no files in /dev/serial/by-id, but it does in /dev/serial/by-path.
(https://www.klipper3d.org/FAQ.html#wheres-my-serial-port)
Previous was on Debian 11.7/ after upgrading to Debian 12.1 - files appeared in /dev/serial/by-id
Does this mean this PR is obsolete?
No. I think we should support the old soft/hardware.
Previous was on Debian 11.7/ after upgrading to Debian 12.1 - files appeared in /dev/serial/by-id
This effect is due to a bug in udev in Debian 11 that has been resolved in Debian 12. It would make more sense to detect Debian 11 environments and either patch the faulty udev rules or offer to install a fixed udev from the Debian backports (IMO the preferable way). Also see https://klipper.discourse.group/t/debian-bullseye-bug-causing-klipper-to-no-longer-find-the-printer-board/8231/8
I have setup a shell script to check and remedy the faulty Debian 11 Udev version. If you want, feel free to integrate it. https://raw.githubusercontent.com/Sineos/useful_bits/main/Linux/fix_debian_udev.sh
It will:
- Check if it is executed on Debian 11
- Check if the installed udev contains the buggy version string
- Check if run as root or under root rights
- Update the system to the latest versions via
apt update
andapt upgrade
- If Debian 11 AND buggy udev AND root is found, it will:
- Check if the Debian 11
backports repository
is already present --> If not, download the repository signing key and install the repository - Install the fixed udev from the backports repository
- Check if the Debian 11