LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   usb-serial port not working (https://www.linuxquestions.org/questions/slackware-14/usb-serial-port-not-working-731270/)

cdhslacker 06-07-2009 01:01 PM

usb-serial port not working
 
I have connected a USB-SERIAL adapter to my Slackware 12.1 box. Running 2.6.21.5 core

I have followed several threads both in Slackware and other forums that define the steps in getting this to work. I have uncommented the rc.d/modules entry to enable the usb serial driver

I have run mknod (appears to be successful)

mknod /dev/ttyUSB0 c 188 0
mknod /dev/ttyUSB1 c 188 1
...
mknod /dev/ttyUSB8 c 188 8

I then attempt to run minicom (and I get the same message)

minicom: cannot open /dev/ttyUSBX: No such device

I'm attempting to connect minicom via a NULL Modem cable to a gumstix, I have verified the cable and the gumstix work correctly on another terminal with a built it serial card via the same null modem cable. Thus it appears to be a slackware configuration problem on my part, but I can't figure out what I'm missing.

Any advice would be appreciated.

cdhslacker 06-16-2009 07:39 AM

Did I ask this question incorrectly
 
Hi All,

I'm very new to this forum and have gotten no response to my question and could sure use some help. I'm new to Linux System configuration issues like this and would appreciate any comments, suggestions or nudge in the right direction.

Thanks,

jmacloue 06-16-2009 10:01 AM

I believe you loaded the appropriate driver for your adapter model, pl2303 for example?

If not - look up the modules in /lib/modules/..../kernel/drivers/usb/serial/ and try to load it by hand (but usually kernel does it automatically when the device is connected). lsusb output will provide some hints.

mknod command will succeed regardless the device is recognized, and actually there is not many cases you should use mknod directly - udevd will make device nodes for you. If you don't have /dev/ttyUSB0 file - then automatic detection failed for some reason (e.g. your adapter is not supported, whatever).

mostlyharmless 06-16-2009 10:43 AM

Someone (though not necessarily me :( ) might find it helpful if you ran lsusb to identify the hardware and ensure the module is loaded. You might need to run setserial as well to setup the serial port.

cordata 06-16-2009 02:17 PM

I just got one of these running very easily with Slack 12.2.

Everything was automatic except I had to go into minicom config and put the device as /dev/ttyUSB0 - I'm using pl2303 device.

em21701 06-16-2009 06:32 PM

You might have to build the Kernel modules for that. Please post the output of dmesg if you would like more help.

cdhslacker 06-17-2009 07:13 AM

Thanks everyone, this really helped. The system was not recognizing the device and thus the ttyUSBx ... x were not being created. I upgraded to 12.2 and rebuilt the kernel and now the device is being recognized and minicom is working great over that port.

Thanks for all the help and suggestions they resulted in hours of reading and new knowledge.

Kindest!


All times are GMT -5. The time now is 12:35 AM.