juliagoda / CH341SER

CH341SER driver with fixed bug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Just Feedback: Do not work on Debian 10.8

pm-pm opened this issue · comments

commented

Compilation ok.
loading (insmod) ok.

But when you access the /dev/zzyUSB0 device the task hangs. CTRL-C does not cancel the task. Reboot only.

# uname -a
Linux Server 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux

# cat /etc/debian_version 
10.8
[   14.714612] ch34x: loading out-of-tree module taints kernel.
[   14.714653] ch34x: module verification failed: signature and/or required key missing - tainting kernel
[   14.715061] usbcore: registered new interface driver ch34x
[   14.715070] usbserial: USB Serial support registered for ch34x
[   14.715091] ch34x 4-2:1.0: ch34x converter detected
[   14.715096] ------------[ cut here ]------------
[   14.715096] transfer buffer not dma capable
[   14.715133] WARNING: CPU: 0 PID: 302 at drivers/usb/core/hcd.c:1585 usb_hcd_map_urb_for_dma+0x3ce/0x570 [usbcore]
[   14.715134] Modules linked in: ch34x(OE+) usbserial sg hpwdt i2c_algo_bit iTCO_wdt iTCO_vendor_support hpilo pcc_cpufreq button ipmi_si(+) ie31200_edac acpi_power_meter ipmi_devintf ipmi_msghandler ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb crypto_simd cryptd glue_helper aes_x86_64 ses enclosure scsi_transport_sas uas usb_storage sd_mod raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod ahci libahci libata crc32c_intel scsi_mod psmouse lpc_ich mfd_core xhci_pci uhci_hcd xhci_hcd ehci_pci ehci_hcd tg3 usbcore libphy thermal usb_common
[   14.715153] CPU: 0 PID: 302 Comm: systemd-udevd Tainted: G           OE     4.19.0-14-amd64 #1 Debian 4.19.171-2
[   14.715154] Hardware name: HP [...]
[   14.715162] RIP: 0010:usb_hcd_map_urb_for_dma+0x3ce/0x570 [usbcore]
[   14.715163] Code: 39 ce 73 7a 80 3d 7a d0 02 00 00 41 bc f5 ff ff ff 0f 85 05 ff ff ff 48 c7 c7 e8 6a 30 c0 c6 05 60 d0 02 00 01 e8 47 38 e1 ec <0f> 0b 8b 53 64 e9 e8 fe ff ff 81 4b 64 00 00 02 00 e9 5a fd ff ff
[   14.715164] RSP: 0000:ffffa4508089f900 EFLAGS: 00010286

Does not work on Manjaro (Kernel 5.10.51) either.
What works is to take the official kernel (5.10.64) from kernel.org and compile the ch341 module yourself.

There is a fantastic guide on how to do that:
https://wiki.archlinux.org/title/Compile_kernel_module

win11 is the same

either works in Linux Mint Debian Edition 4.

  • compile ok

  • make load ok

  • "dmesg | grep ch" command looks ok
    `
    image

  • "lsmod | grep ch" command looks ok too
    image

but when i connect my device doesnt appear in dmesg :(

uname -a Linux canon-1800ip 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux

image