Page 1 of 1

CH341 kernel driver

Posted: 16 Nov 2022, 20:35
by tom2238
Hello.
I'm using Porteus 3.2.2 64bit (preparing update to 5.0) with custom compiled kernel 4.9.216. Maybe it is some bug in ch341 driver in the kernel. Because with some chips driver work correctly but with another same ch341 chips not. I bought USB to RS485 converter (with CH341 and MAX232) and driver receiving and sending garbage. I'm downloaded https://github.com/juliagoda/CH341SER driver, compiled, install, blacklist system ch341 driver and modprobe new driver.

System driver:

Code: Select all

kern  :info  : [Pá dub 29 08:50:20 2022] usb 3-3: new full-speed USB device number 82 using xhci_hcd
kern  :info  : [Pá dub 29 08:50:21 2022] usb 3-3: New USB device found, idVendor=1a86, idProduct=7523
kern  :info  : [Pá dub 29 08:50:21 2022] usb 3-3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
kern  :info  : [Pá dub 29 08:50:21 2022] usb 3-3: Product: USB2.0-Ser!
kern  :info  : [Pá dub 29 08:50:21 2022] ch341 3-3:1.0: ch341-uart converter detected
kern  :info  : [Pá dub 29 08:50:21 2022] usb 3-3: ch341-uart converter now attached to ttyUSB0
New driver:

Code: Select all

kern  :info  : [Pá dub 29 08:56:23 2022] usb 3-3: new full-speed USB device number 85 using xhci_hcd
kern  :info  : [Pá dub 29 08:56:23 2022] usb 3-3: New USB device found, idVendor=1a86, idProduct=7523
kern  :info  : [Pá dub 29 08:56:23 2022] usb 3-3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
kern  :info  : [Pá dub 29 08:56:23 2022] usb 3-3: Product: USB2.0-Ser!
kern  :info  : [Pá dub 29 08:56:23 2022] ch34x 3-3:1.0: ch34x converter detected
kern  :info  : [Pá dub 29 08:56:23 2022] usb 3-3: ch34x converter now attached to ttyUSB0
Now the converter work correctly.

In Porteus 5.0 with newer kernel, ch341 drivers works correctly out of box. In Windows 7 converter works too.