You are not logged in.

#1 2021-09-01 10:37:53

JanErik
Member
Registered: 2018-01-08
Posts: 31

Kernel CH341 driver issue (Arduino, ESP8266)

Came across this issue when trying to load firmware to my ESP8266;
https://forum.manjaro.org/t/bugfixing-i … gfix/80725
https://forum.manjaro.org/t/manjaro-21- … re/79712/2

Guessing it will be fixed upstreams soon but FYI.

Offline

#2 2021-10-11 18:40:45

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: Kernel CH341 driver issue (Arduino, ESP8266)

Ha, just upgraded and now I can't connect to esp8266:

22298.327787] usb 3-2: new full-speed USB device number 5 using xhci_hcd
[22298.468987] usb 3-2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[22298.469000] usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[22298.469004] usb 3-2: Product: USB Serial
[22298.470131] ch341 3-2:1.0: ch341-uart converter detected
[22298.470907] usb 3-2: ch341-uart converter now attached to ttyUSB0
[22299.080767] audit: type=1130 audit(1633977478.369:161): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=brltty-device@sys-devices-pci0000:00-0000:00:14.0-usb3-3\x2d2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[22299.132543] audit: type=1130 audit(1633977478.423:162): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=brltty@-sys-devices-pci0000:00-0000:00:14.0-usb3-3\x2d2 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[22299.136190] usb 3-2: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[22299.136758] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[22299.136780] ch341 3-2:1.0: device disconnected

Offline

#3 2021-10-12 17:52:05

frojnd
Member
Registered: 2008-09-20
Posts: 125

Re: Kernel CH341 driver issue (Arduino, ESP8266)

Yesterday didn't paste the last line which was the most important on finding the solution:

[  407.496252] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input24

https://unix.stackexchange.com/question … erter-chip

Offline

#4 2021-10-29 11:04:45

exsign
Member
Registered: 2021-10-29
Posts: 2

Re: Kernel CH341 driver issue (Arduino, ESP8266)

Is this working for you again?

Everywhere I read that this should be fixed now (see also upstream https://bugzilla.kernel.org/show_bug.cgi?id=214131 ), but I am still not able to load firmware or communicate with my esp8266.
Also posted to corresponding bug report https://bugs.archlinux.org/task/71830 that I still face the issue. There it is only mentioned that it *should* work now, anyone who tried and it is working with arch kernel >5.14.2?

At least one other user reported also of the issue still being there https://github.com/espressif/esptool/is … -950185569
So I hope I am not the only one stuck with the "Failed to connect to ESP8266: Timed out waiting for packet header"?
Only next thing that I could try would be to compile a new kernel (which I have really no clue about to be honest)..

P.S. No problem with BRLTTY. This is not installed on my system and according to dmesg all is great and running.

EDIT: Issue solved! Appears to be an hardware issue with the NodeMCU ESP8266. Solution for all my 3 ESP8266 is https://github.com/espressif/esptool/is … -728335810

Last edited by exsign (2021-10-29 16:50:24)

Offline

#5 2021-11-28 14:36:15

wouter2512
Member
Registered: 2013-01-03
Posts: 6

Re: Kernel CH341 driver issue (Arduino, ESP8266)

Today I ran in to the issue trying to flash an esp8266. The behavior of the package brltty apparently changed. Since I have no need for the package a simple pacman -R brltty and reboot solved the issue for me.
You could also mask or modify the udev rules it uses, see: https://unix.stackexchange.com/question … erter-chip

Offline

Board footer

Powered by FluxBB