I have a USB-COM converter. In system is registered as 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter (if I type command "lsusb"). If I type the command dmesg | grep tty, system is required "usb 2-1.2: ch341-uart converter now attached to ttyUSB0".
I want to use a WINE for my applications, that used COM-ports. I resending this device to WINE "ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1". But is not working!
Five moths earlier i'm buyed other USB-COM adapter and this working. But this adapter from other vendor. I'm read about this trouble from github about this USB-COM adapter - "This problem is fixed in this patch, please follow nest instructions".
Code: Select all
sudo apt-get source linux-source-3.19.0 linux-headers-$(uname -r) cd /tmp tar -xjf /usr/src/linux-source-3.19.0.tar.bz2 cd /usr/src/linux-headers-3.19.0-32/ make oldconfig make prepare make scripts cp -v /usr/src/linux-headers-$(uname -r)/Module.symvers . cp /lib/modules/$(uname -r)/kernel/drivers/usb/serial/ch341.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/ch341.ko.orig cd drivers/usb/serial cp ch341.c ch341.c.orig wget https://github.com/karlp/ch341-linux/raw/master/0001-usb-serial-ch341-Add-parity-support.patch cat 0001-usb-serial-ch341-Add-parity-support.patch | patch -p4 patching file ch341.c Hunk #1 succeeded at 349 (offset 3 lines). Hunk #2 succeeded at 370 (offset 3 lines). make -C /lib/modules/$(uname -r)/build M=$(pwd) modules sudo cp ch341.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/ch341.ko sudo rmmod ch341 sudo modprobe ch341
and can't find file ch341.c