Support of no id micro-controllers #360

Open
skarasov wants to merge 1 commits from skarasov/master into master
skarasov commented 2023-07-07 18:37:53 +02:00 (Migrated from github.com)

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)

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 commented 2023-08-14 15:49:34 +02:00 (Migrated from github.com)

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

Previous was on Debian 11.7/ after upgrading to Debian 12.1 - files appeared in /dev/serial/by-id
dw-0 commented 2023-08-14 21:58:39 +02:00 (Migrated from github.com)

Does this mean this PR is obsolete?

Does this mean this PR is obsolete?
skarasov commented 2023-08-14 22:40:18 +02:00 (Migrated from github.com)

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

No. I think we should support the old soft/hardware.
Sineos commented 2023-09-03 14:32:13 +02:00 (Migrated from github.com)

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

> 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 commented 2023-09-13 21:02:01 +02:00 (Migrated from github.com)

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
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
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin skarasov/master:skarasov/master
git checkout skarasov/master
Sign in to join this conversation.