Enable ttyUSB0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
14,624件の閲覧回数
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

ラベル(3)
1 解決策
11,815件の閲覧回数
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

元の投稿で解決策を見る

4 返答(返信)
11,815件の閲覧回数
jaywest
Contributor I

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

Regards, Jay

11,816件の閲覧回数
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

7,925件の閲覧回数
edheal
Contributor I

You might also need to add

     CONFIG_USB_SERIAL_FTDI_SIO=y

0 件の賞賛
返信
11,815件の閲覧回数
gusarambula
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信