You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit 9fa047e triggers installation of 191 new packages on Pi OS Legacy (Buster). One or more of these packages permanently affect Klipper's ability to correctly communicate with the MCU via the serial (USB) interface. This is exhibited by Klipper "hanging" during FIRMWARE_RESTART or losing communication with the MCU shortly after a restart.
Klipper logs are filled with errors related to serial communication such as: Got error -1 in read: (11)Resource temporarily unavailable, Timeout on wait for 'tmcuart_response' response and similar.
Install fresh image of 2022-09-22-raspios-buster-armhf-lite.img from raspberrypi.com
Boot the Pi and install all Raspberry Pi OS updates
Install Klipper, Moonraker and Fluidd (or Mainsail) from their repective repos, either manually or with KIAUH
Verify that Klipper functions correctly and confirm that FIRMWARE_RESTART behaves normally
Install KlipperScreen manually via git clone https://github.com/jordanruthe/KlipperScreen.git
In ~/KlipperScreen/ switch to commit 82b8cbc via git checkout 82b8cbcca5864c4b42ddd05a4e18000cc015c716
Verify that Klipper functions correctly and confirm that FIRMWARE_RESTART behaves normally
In ~/KlipperScreen/ switch to commit 9fa047e via git checkout 9fa047eb8beb3f503821b560e3364e3935f52bd2
Confirm that Klipper no longer functions correctly by issuing FIRMWARE_RESTART that will either "hang" Klipper or cause loss of MCU communications
Unistall KlipperScreen
Confirm that Klipper still does not function correctly by issuing FIRMWARE_RESTART that will either "hang" Klipper or cause loss of MCU communications
This behaviour is particularly troubling since it appears like hardware malfunction and uninstalling KlipperScreen does not fix it. A completely new SD card image is required with limited and controlled component reinstallation to avoid introducing the issue again.
Note that this bug does not appear when following the exact same steps on the more recent Bullseye release of Raspberry Pi OS.
The text was updated successfully, but these errors were encountered:
ReXT3D
changed the title
[BUG] Commit 9fa047e breaks Klipper serial interface on Bullseye
[BUG] Commit 9fa047e breaks Klipper serial interface on Buster
Dec 21, 2022
One of the 191 "pre requisite" packages that are being installed and automatically started as part of this commit is "ModemManager". It is also automatically started and it interferes with the serial interface function required by Klipper. A workaround is to disable ModemManager as follows:
sudo systemctl mask ModemManager.service
Interestingly, I do not see ModemManager being installed on Bullseye. The fundamental question remains why libmpv-dev pulls-in 191 pre-requisite packages on Buster?
Credits to Dragonkitty (replimat.eu) on Discord for describing the root cause of the issue.
EDIT: replaced disable in the command line with mask for more persistent solution.
Description
Commit 9fa047e triggers installation of 191 new packages on Pi OS Legacy (Buster). One or more of these packages permanently affect Klipper's ability to correctly communicate with the MCU via the serial (USB) interface. This is exhibited by Klipper "hanging" during
FIRMWARE_RESTART
or losing communication with the MCU shortly after a restart.Klipper logs are filled with errors related to serial communication such as:
Got error -1 in read: (11)Resource temporarily unavailable
,Timeout on wait for 'tmcuart_response' response
and similar.For more information refer to my Recent KlipperScreen commits break Klipper on Buster thread on Klipper Discourse.
To Reproduce
2022-09-22-raspios-buster-armhf-lite.img
from raspberrypi.comFIRMWARE_RESTART
behaves normallygit clone https://github.com/jordanruthe/KlipperScreen.git
~/KlipperScreen/
switch to commit 82b8cbc viagit checkout 82b8cbcca5864c4b42ddd05a4e18000cc015c716
FIRMWARE_RESTART
behaves normally~/KlipperScreen/
switch to commit 9fa047e viagit checkout 9fa047eb8beb3f503821b560e3364e3935f52bd2
FIRMWARE_RESTART
that will either "hang" Klipper or cause loss of MCU communicationsFIRMWARE_RESTART
that will either "hang" Klipper or cause loss of MCU communicationsThis behaviour is particularly troubling since it appears like hardware malfunction and uninstalling KlipperScreen does not fix it. A completely new SD card image is required with limited and controlled component reinstallation to avoid introducing the issue again.
Note that this bug does not appear when following the exact same steps on the more recent Bullseye release of Raspberry Pi OS.
The text was updated successfully, but these errors were encountered: