Enable ttyUSB0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable ttyUSB0

Jump to solution
10,474 Views
jaywest
Contributor I

I have a need to use USB port on Sabre-Lite running Yocto Linux 3.0.35-ga97a4f4, but need help to define steps to enable dev/ttyUSB0. Currently I have a linux image I downloaded that outputs following message when I plug USB GPS into top USB port next to ethernet port:

usb 2-1.1: new full speed USB device number 3 using fsl-ehci

When I do an lsusb I get:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 002: ID 0424:2513 Standard Microsystems Corp. 2.0 Hub

Bus 002 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

where my USB GPS device is on bus 2 as device 3. I need this mapped to a tty port like ttyUSB0. I don't know if the process I need is referred to as mounting a USB port?

I am new to embedded linux. I have done some research and it appears I need to configure the kernel and rebuild my linux image. Or can I configure the kernel from command line or Uboot? I have not built a linux image for use on the Sabre-Lite, but I have Ubuntu environment on my PC where I can access dev/ttyUSB0 to read my USB GPS device.

Can someone please point me to the steps or procedure I need or explain the steps?

Regards, Jay

Labels (3)
1 Solution
7,665 Views
gary_bisson
Senior Contributor III

Hi,

You need to enable the USB serial console driver in your kernel configuration:

CONFIG_USB_SERIAL_CONSOLE=y

CONFIG_USB_SERIAL_GENERIC=y

Hope this helps.

Regards,

Gary

View solution in original post

4 Replies
7,665 Views
jaywest
Contributor I

Thanks Gary it worked. We just got kernel rebuilt yesterday. USB GPS comes up as ttyUSB0

Regards, Jay

7,666 Views
gary_bisson
Senior Contributor III

Hi,

You need to enable the USB serial console driver in your kernel configuration:

CONFIG_USB_SERIAL_CONSOLE=y

CONFIG_USB_SERIAL_GENERIC=y

Hope this helps.

Regards,

Gary

3,775 Views
edheal
Contributor I

You might also need to add

     CONFIG_USB_SERIAL_FTDI_SIO=y

0 Kudos
7,665 Views
gusarambula
NXP TechSupport
NXP TechSupport

Thank you, Gary, for the help! Hopefully this information will help other community users as well!

0 Kudos