Have you already tried to send data through the port? An easy way to test it would be using the echo command to send a string at the address of the port.
The problem I have at the moment is I see it come up in dmesg as a standard USB device, not as a USB to Serial Device. So, it doesn't get assigned an address in the /dev/ space. I would expect after adding the driver I could assign an address of /dev/ttyXXX but it doesn't seem to support prolific USB devices?
Just to add, specifically the device is the PL2303 USB to UART chipset.
I've now tried an ftdi usb to serial cable and that also doesn't seem to work on the default large linux image. Is there a way to get the more detailed lsusb command that is standard on linux on the galileo gen 2?
Thanks for the files. I also found the driver install file for FTDI since I am trying to use this cable now:
but when I do make I get the following error:
gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/3.8.7-yocto-standard/build/include -I/usr/src/linux-3.8.7-yocto-standard/drivers/usb/serial/ -O -c -o ftdi_sio.o ftdi_sio.c
ftdi_sio.c:253:24: fatal error: linux/init.h: No such file or directory
make: *** [ftdi_sio.o] Error 1
I believe I need the linux kernel headers? Has anyone else seen this before?
1 of 1 people found this helpful
Have you tried after booting SD Card Linux the following commands?
# insmod /lib/modules/3.8.7-yocto-standard/kernel/drivers/usb/serial/pl2303.ko
# modprobe pl2303
and connect USB-Serial device?
Thanks for your help xbolshe, The last method described worked. I initially tried just using insmod on the pl2303.ko file however that failed as it required the usbserial.ko driver. To get it working, I did as you described:
then lsmod shows:
pl2303 13255 0 - Live 0xd27a4000
usbserial 26330 1 pl2303, Live 0xd27ff000
evdev 17378 0 - Live 0xd27c1000
usbhid 23097 0 - Live 0xd2794000
btusb 17950 0 - Live 0xd279e000
bluetooth 192247 1 btusb, Live 0xd282d000
iwlwifi 73340 0 - Live 0xd27ae000
cfg80211 171950 1 iwlwifi, Live 0xd27cb000
rfkill 20724 2 bluetooth,cfg80211, Live 0xd278d000
adc1x8s102 12766 0 - Live 0xd2737000 (C)
After plugging in the original prolific usb to serial cable I had, it comes up as:
[252424.720163] usb 1-1: new full-speed USB device number 2 using ohci_hcd
[252424.911042] pl2303 1-1:1.0: pl2303 converter detected
[252424.948837] usb 1-1: pl2303 converter now attached to ttyUSB0
from the command, dmesg | tail
Thanks again! I still don't have an FTDI driver working for that Usb->Serial cable but I will just use the prolific one for my serial needs.