Gentoo Archives: gentoo-user

From: tuxic@××××××.de
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] Struggling with CH340 serial<=>USB converter (Arduino related)
Date: Tue, 25 Jul 2017 17:17:29
Message-Id: 20170725171717.vdj7k2mzkvlhfaki@solfire
1 Hi,
2
3 (yes, I also have a FTDI USB<=>serial adapter...in this case I need to
4 get my CH340 based work)
5
6 this drives me crazy...
7
8 My CH340G USB<=>serial adaptor is recognized as
9 (lsusb)
10 Bus 007 Device 011: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
11 (dmesg)
12 [52255.016438] usb 7-4: new full-speed USB device number 11 using ohci-pci
13 [52255.167432] usb 7-4: New USB device found, idVendor=1a86, idProduct=7523
14 [52255.167439] usb 7-4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
15 [52255.167443] usb 7-4: Product: USB2.0-Serial
16 [52255.169580] ch341 7-4:1.0: ch341-uart converter detected
17 [52255.179543] usb 7-4: ch341-uart converter now attached to ttyUSB3
18
19
20 But that's it.
21
22 It does not seem to react on any kind of action I try to achieve with
23 avrdude (I skipped the arduino IDE to get one variable off this
24 eqyitation...).
25
26 I instructed avrdude to "speak to the board" like this:
27 avrdude -p ATmega2560 -c arduino -P /dev/ttyUSB3 -b 9600
28
29 ...but the only reaction I get is ...timeouts...
30
31 I have no clue what to do next.
32
33 How can I devide the things which are working so far from those
34 which are not working.
35
36 The ATmega2560 board is working - I can flash it via buspirate (ICSP).
37 I burned a bootloader with that...just to mention...not wanting to
38 start an Arduino discussion on a Gentoo mailinglist...only to
39 explain the context a little bit...
40
41 What is the status of the ch340/ch341 driver?
42 (I am running kernel 4.12.3 vanilla right off Linus desktop so to
43 say...)
44
45 Thanks a lot for any help in advance!
46 Cheers
47 Meino

Replies