Create usb0 interface on host after connect host and board via USB-cable

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Create usb0 interface on host after connect host and board via USB-cable

3,077件の閲覧回数
BrilliantovKiri
Senior Contributor I

Helo!

I work with iMX53 Quick Start Board and I have to capture video, encode and send RTSP-stream from board via USB, on host I have use Debian GNU/Linux 6.0.5.

Now I use next steps:
1. connect host and board via USB-cable (on board I connect USB-cable with USB-OTG)
2. load g_ether.ko on board, after this I get interface usb0 on board and host
3. configure interfaces on board and host

This work, but this is require many manual works.

I can not have access to board, I try change connection procedure on:
1. on board load g_ether.ko
2. configure board usb0 interface
3. connect board and host via USB

I get configured interface usb0 on board, but after plug USB-cable to host I do not get usb0, or another interface, on host. I try load usbnet and cdc_ether modules, but this is not solve problem.

How can I create usb0 interface on host after connect board and host via USB-cable?
Thank you and excuse me my bad english.

ラベル(1)
0 件の賞賛
返信
5 返答(返信)

1,371件の閲覧回数
BrilliantovKiri
Senior Contributor I

I try use udev on board, but in udevadm monitor I don't see event on connect USB-cable to USB-OTG port.

How must I configure board for automatic create usb0 interface on host after connect board and host via USB-cable?

0 件の賞賛
返信

1,370件の閲覧回数
BrilliantovKiri
Senior Contributor I

Ok, after connect cable to USB-OTG in dmeg next:
usb wakeup is here
otg host ID wakeup
the otgsc is 0x1010f20, usbsts is 0x1088, portsc is 0x1c501000, wakeup_irq is 0x0
ID int (ID is 1)
ehci_fsl_bus_resume, DR
USB Host suspend begins
host suspend ends

How can I get trap on this event, may be system create any file?

0 件の賞賛
返信

1,371件の閲覧回数
Yuri
NXP Employee
NXP Employee

From section 28.6 (Menu Configuration Options) of "mx53_linux.pdf" (in docs) :

CONFIG_USB_EHCI_ARC_OTG—Build support for selecting the ARC EHCI OTG host. In
menuconfig, this option is available under

Device drivers > USB support > Support for Host-side USB > EHCI HCD (USB 2.0) support >
Support for Freescale controller.

By default, this option is N.

0 件の賞賛
返信

1,370件の閲覧回数
BrilliantovKiri
Senior Contributor I

Thank you for your answer Yuri!

I found in board config what both parameters is active:
CONFIG_USB_GADGET=y
CONFIG_USB_EHCI_ARC_OTG=y

I try reconfigure board linux, but my host linux havn't CONFIG_USB_EHCI_ARC_OTG parameter.

0 件の賞賛
返信

1,371件の閲覧回数
Yuri
NXP Employee
NXP Employee

Kirill, good day !

There is the next feature (described in the recent patch package) .
ENGR00170456 :

[MX53_QS_RIPLEY] USB otg: System would hang if plug out usb cable after
modprobe g_ether or modprobe g_serial.

This issue happens in the default BSP is due to the following reasons:
- Hardware Design: There are two ports at OTG port in i.MX53 QS
board: One is the device port; the other one is host port. The ID pin is
grounded. So it can not support device/host switch. The device
function is invalid by default. And the host and device functions at
OTG port can not be supported at the same time.
- However, the single deconfig is used for all i.MX5 platforms. The
other platforms expect to enable OTG function by default. This
enablement on i.MX53QS board can not align with the default HW
capability and cause the issue mentioned.

The below is the kernel configuration requirement for i.MX53 QS board:
- Disable OTG configurations:
ONFIG_MXC_OTG,
CONFIG_USB_OTG
- Choose one of the below configurations for host or device
mode. But DO NOT choose them together.

Host configuration:
CONFIG_USB_EHCI_ARC_OTG

Device Configuration:
CONFIG_USB_GADGET


 

0 件の賞賛
返信