Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of no id micro-controllers #360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

skarasov
Copy link

@skarasov skarasov commented Jul 7, 2023

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)

@skarasov
Copy link
Author

Previous was on Debian 11.7/
after upgrading to Debian 12.1 - files appeared in /dev/serial/by-id

@dw-0
Copy link
Owner

dw-0 commented Aug 14, 2023

Does this mean this PR is obsolete?

@skarasov
Copy link
Author

No. I think we should support the old soft/hardware.

@Sineos
Copy link
Contributor

Sineos commented Sep 3, 2023

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

@Sineos
Copy link
Contributor

Sineos commented Sep 13, 2023

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 and apt 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants