Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Corrected]Need some help to connect to ESP8266-12e
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 631
Location: Close to Annecy (France)

PostPosted: Fri Oct 06, 2017 9:44 pm    Post subject: [Corrected]Need some help to connect to ESP8266-12e Reply with quote

Hello,

I need some help to connect an ESP8266-12e as USB2Serial.

As per my readying, I understood I have to add USB CP210x family of UART Bridge Controllers. But with this new kernel, I still don't see anything related to USB serial.

When I plug the ESP, /var/log/messages are displaying
Code:
Oct  6 23:36:20 pset kernel: usb 3-2: new full-speed USB device number 3 using xhci_hcd
Oct  6 23:36:20 pset kernel: usb 3-2: New USB device found, idVendor=1a86, idProduct=7523
Oct  6 23:36:20 pset kernel: usb 3-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Oct  6 23:36:20 pset kernel: usb 3-2: Product: USB2.0-Serial
Oct  6 23:36:20 pset mtp-probe[3491]: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
Oct  6 23:36:20 pset mtp-probe[3491]: bus: 3, device: 3 was not an MTP device


What I'm missing ?

Thanks

Laurent


Last edited by destroyedlolo on Sat Oct 07, 2017 9:22 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 39270
Location: 56N 3W

PostPosted: Fri Oct 06, 2017 10:25 pm    Post subject: Reply with quote

destroyedlolo,

Searching for the Vendor and Device ID, google says its a
Code:
< >   USB Winchiphead CH341 Single Port Serial Driver


Search for USB_SERIAL_CH341 in meunconfig.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 631
Location: Close to Annecy (France)

PostPosted: Sat Oct 07, 2017 9:24 am    Post subject: Reply with quote

Yep, you're right.
Which source do you use for this ID->module ? Because I got only CP210x responses, which doesn't work :(

Thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 39270
Location: 56N 3W

PostPosted: Sat Oct 07, 2017 9:49 am    Post subject: Reply with quote

destroyedlolo,

Google
Code:
idVendor=1a86, idProduct=7523 linux
1a86:7523 Linux often works too.

The 5fh hit is [ubuntu] [SOLVED] Clone Winchiphead USB/Serial cable (1a86:7523 ...
which is your vendor and device ID.

Threre is another way ...
Code:
roy@NeddySeagoon_Static ~ $ cd /usr/src/linux
roy@NeddySeagoon_Static /usr/src/linux $ grep -R -i 1a86 ./
includes
Code:
...
./drivers/usb/serial/ch341.c:   { USB_DEVICE(0x1a86, 0x7523) },
./drivers/usb/serial/ch341.c:   { USB_DEVICE(0x1a86, 0x5523) },
...

That's your vendor ID and device ID in the first line quoted, so yo need the file ./drivers/usb/serial/ch341.c in your kernel, as it will bind to your device.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 631
Location: Close to Annecy (France)

PostPosted: Sat Oct 07, 2017 10:34 am    Post subject: Reply with quote

Ha, ok : I skip the Unbuntu link.

Another question in my mind for years : when I'm installing a new machine, I get its configuration using lspci -n then copy/past in http://kmuto.jp/debian/hcl/ to retrieve related kernel configuration.

Now, when I was playing with NetBSD, I had a tool that did the same for me and provided a kernel configuration suiting the machine hardware.
Do we have the same on Gentoo ? (would be perfect if it run on x86 as well as ARM :D :D )
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 39270
Location: 56N 3W

PostPosted: Sat Oct 07, 2017 11:48 am    Post subject: Reply with quote

destroyedlolo,

I wonder how the BSD tool did that. On linux, you usually make a generic, fully modular kernel, then only use the bits you need, which is determined at run time.
This can leave a lot of junk loaded as modules can't always tell if they are needed.

Its easy for hardware drivers. They can look round for the hardware and unload if none is found ... most don't.
What of things like loop, or USB devices that are not connected at boot?

I'm not aware of a tool like that for Gentoo.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum