View previous topic :: View next topic |
Author |
Message |
Aries97 n00b
Joined: 04 Nov 2005 Posts: 63
|
Posted: Tue Jul 04, 2017 9:05 pm Post subject: Connecting a Pi to Gentoo using an Adafruit 954 cable |
|
|
I've bought an Adafruit 954 USB-TTL cable to connect my raspberry pi to my laptop. I followed the adafruit Lesson on how to activate support for it on the Pi (Still running Rasbian Jesse for the moment). The problem I'm having is that I haven't figured out how to connect from my computer running Gentoo to the RPi using the serial cable.
When I connect the serial cable to the computer it appears to be recognized correctly:
Code: | silverfish /home/anon # tail /var/log/messages
{SNIP}
Jul 4 13:05:28 silverfish kernel: [ 140.865633] usb 1-1: new full-speed USB device number 5 using xhci_hcd
Jul 4 13:05:28 silverfish kernel: [ 141.034442] usb 1-1: New USB device found, idVendor=067b, idProduct=2303
Jul 4 13:05:28 silverfish kernel: [ 141.034444] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 4 13:05:28 silverfish kernel: [ 141.034445] usb 1-1: Product: USB-Serial Controller
Jul 4 13:05:28 silverfish kernel: [ 141.034446] usb 1-1: Manufacturer: Prolific Technology Inc.
Jul 4 13:05:28 silverfish mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Jul 4 13:05:28 silverfish mtp-probe: bus: 1, device: 5 was not an MTP device
silverfish /home/anon #
|
The adafruit instructions suggest that the next step would be to connect to the TTY using a terminal program. Screen is suggested:
Code: | silverfish /home/anon # screen /dev/ttyUSB0 115200
/tmp/screen/S-root/3653.pts-0.silverfish: connect: No such file or directory
|
Gentoo apparently doesn't have the same TTY device names as whatever distribution Simon Monk and lady ada were using.
In /dev/ there are a lot of TTY devices:
Code: | silverfish /home/anon # ls /dev
autofs hidraw0 mapper nbd6 sda2 tty15 tty31 tty48 tty7 vcs7
block hidraw1 mcelog nbd7 sda3 tty16 tty32 tty49 tty8 vcs8
bsg hidraw2 mei0 nbd8 sg0 tty17 tty33 tty5 tty9 vcs9
btrfs-control hpet mem nbd9 sg1 tty18 tty34 tty50 urandom vcsa
bus hwrng memory_bandwidth net shm tty19 tty35 tty51 usb vcsa1
cdrom initctl mqueue network_latency snd tty2 tty36 tty52 usbmon0 vcsa10
char input nbd0 network_throughput sr0 tty20 tty37 tty53 usbmon1 vcsa11
console kmsg nbd1 null stderr tty21 tty38 tty54 usbmon2 vcsa12
core log nbd10 pktcdvd stdin tty22 tty39 tty55 vcs vcsa2
cpu loop-control nbd11 port stdout tty23 tty4 tty56 vcs1 vcsa3
cpu_dma_latency loop0 nbd12 ptmx tty tty24 tty40 tty57 vcs10 vcsa4
cuse loop1 nbd13 pts tty0 tty25 tty41 tty58 vcs11 vcsa5
disk loop2 nbd14 random tty1 tty26 tty42 tty59 vcs12 vcsa6
dri loop3 nbd15 rfkill tty10 tty27 tty43 tty6 vcs2 vcsa7
fb0 loop4 nbd2 rtc tty11 tty28 tty44 tty60 vcs3 vcsa8
fd loop5 nbd3 rtc0 tty12 tty29 tty45 tty61 vcs4 vcsa9
full loop6 nbd4 sda tty13 tty3 tty46 tty62 vcs5 vga_arbiter
fuse loop7 nbd5 sda1 tty14 tty30 tty47 tty63 vcs6 zero
silverfish /home/anon # |
But I don't know if any of these will help me connect to the Serial Console Cable.
According to the tutorial: Quote: | Linux Kernels 2.4.31 and above already have the PL2303 and CP210X USB driver for the Console Lead built-in, so you should not need to install that. |
Because I've compiled my own Kernel on Gentoo I wonder if I left out something that is required to support this device; but I haven't figured out what yet.
Ideas? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54588 Location: 56N 3W
|
Posted: Tue Jul 04, 2017 9:52 pm Post subject: |
|
|
Aries97,
That's the prolific device. I have one of those.
Code: | $ grep 2303 /usr/src/linux/.config
CONFIG_USB_SERIAL_PL2303=m |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Aries97 n00b
Joined: 04 Nov 2005 Posts: 63
|
Posted: Tue Jul 04, 2017 10:05 pm Post subject: |
|
|
Ha!
Code: | Device Drivers - USB Support - USB Serial Converter Support - USB CP210x family of UART Bridge Controllers
Device Drivers - USB Support - USB Serial Converter Support - USB Prolific 2303 Single Port Serial Driver |
Quote: | silverfish /home/anon # tail /var/log/messages
Jul 4 15:20:35 silverfish kernel: [ 34.951093] usb 1-1: USB disconnect, device number 2
Jul 4 15:20:41 silverfish kernel: [ 40.739591] usb 1-1: new full-speed USB device number 6 using xhci_hcd
Jul 4 15:20:41 silverfish kernel: [ 40.908355] usb 1-1: New USB device found, idVendor=067b, idProduct=2303
Jul 4 15:20:41 silverfish kernel: [ 40.908357] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 4 15:20:41 silverfish kernel: [ 40.908358] usb 1-1: Product: USB-Serial Controller
Jul 4 15:20:41 silverfish kernel: [ 40.908359] usb 1-1: Manufacturer: Prolific Technology Inc.
Jul 4 15:20:41 silverfish kernel: [ 40.908709] pl2303 1-1:1.0: pl2303 converter detected
Jul 4 15:20:41 silverfish kernel: [ 40.909225] usb 1-1: pl2303 converter now attached to ttyUSB0
Jul 4 15:20:41 silverfish mtp-probe: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Jul 4 15:20:41 silverfish mtp-probe: bus: 1, device: 6 was not an MTP device
silverfish /home/anon #
{After exiting my existing screen session:}
silverfish /home/anon # screen /dev/ttyUSB0 115200
Raspbian GNU/Linux 8 raspberrypi ttyAMA0
raspberrypi login: |
Victory!
Thank you. |
|
Back to top |
|
|
|
|
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
|
|