Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 14 Dec 2007 09:36 PM by  prashm_77@yahoo.com
Problem while configuring usb otg
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages
prashm_77@yahoo.com
New Member
New Member
Posts:


--
29 Nov 2007 05:54 AM
    Hai,

    We have IMX31 LITEKIT board booting with linux 2.6.19.2, as per the manual to configure usb otg, it tells to enable

    - Enable CONFIG_USB_OTG
    Device Drivers -> USB Support -> Gadget Support -> OTG Support

    with this we are getting an error while compiling, as

    ***********************************************************************

    CC drivers/usb/core/hub.o
    CC drivers/usb/core/hcd.o
    LD drivers/usb/core/usbcore.o
    LD drivers/usb/core/built-in.o
    CC drivers/usb/host/ehci-hcd.o
    drivers/usb/host/ehci-hcd.c:300: warning: 'ehci_shutdown' defined but not used
    LD drivers/usb/host/built-in.o
    LD drivers/usb/built-in.o
    drivers/usb/otg/built-in.o: In function `usb_bus_start_enum':
    otg_fsm.c:(.text+0xaa8): multiple definition of `usb_bus_start_enum'
    drivers/usb/core/built-in.o:devices.c:(.text+0x5b50): first defined here
    make[2]: *** [drivers/usb/built-in.o] Error 1
    make[1]: *** [drivers/usb] Error 2
    make: *** [drivers] Error 2
    error: Bad exit status from /opt/imx/ltib-imx31ads-20070511/tmp/rpm-tmp.43391 (%build)


    RPM build errors:
    Bad exit status from /opt/imx/ltib-imx31ads-20070511/tmp/rpm-tmp.43391 (%build)
    Build time for kernel-2.6.19-mx: 78 seconds

    Failed building kernel-2.6.19-mx

    ****************************************************************



    what may be the problem?

    Thanks.
    prashm_77@yahoo.com
    New Member
    New Member
    Posts:


    --
    11 Dec 2007 03:44 AM
    I am not getting the error after doing the following,

    1) While enabling USB Support->USB Gadget Support ->Support for USB Gadgets, select the option with <M> (as a module), not with <*>

    2) Then in System Type->Freescale MXC Implementations->MX3 options, enable ISP1540 transceiver support. (This step is optional)
    prashm_77@yahoo.com
    New Member
    New Member
    Posts:


    --
    11 Dec 2007 04:55 AM
    We have tried and made changes as per the required and as mentioned in IMX31ADS USB Document , but we are seeing that when the OTG port is connected to a linux host pc, we are getting the following error

    [114925.671295] usb 1-6: USB disconnect, address 78
    [114948.396175] usb 1-6: new high speed USB device using ehci_hcd and address 79
    [114948.453613] ehci_hcd 0000:00:1d.7: port 6 reset error -110
    [114948.453626] hub 1-0:1.0: hub_port_status failed (err = -32)
    [114949.267025] hub 1-0:1.0: Cannot enable port 6. Maybe the USB cable is bad?
    [114949.570403] usb 1-6: new high speed USB device using ehci_hcd and address 81
    [114949.627847] ehci_hcd 0000:00:1d.7: port 6 reset error -110
    [114949.627863] hub 1-0:1.0: hub_port_status failed (err = -32)
    [114950.441412] hub 1-0:1.0: Cannot enable port 6. Maybe the USB cable is bad?
    [114950.744629] usb 1-6: new high speed USB device using ehci_hcd and address 83
    [114950.802068] ehci_hcd 0000:00:1d.7: port 6 reset error -110
    [114950.802079] hub 1-0:1.0: hub_port_status failed (err = -32)

    The following configurations has been done for making the OTG work

    1. For support of the OTG port in host mode, enable:
    Device Drivers -> USB Support -> EHCI HCD (USB 2.0) support -> Support for
    ARC controller -> Support for OTG HS Host port on ARC controller

    2. Gadget configuration
    Device Drivers -> USB Support -> Gadget Support -> Support for USB Gadgets
    Device Drivers -> USB Support -> Gadget Support -> USB Peripheral Controller -
    > ARC USB Device Controller
    Device Drivers -> USB Support -> Gadget Support ->Select OTG transceiver: High
    Speed
    (Only the high speed transceiver is supported)

    3 USB networking support.
    Enable:
    Device Drivers -> USB Support -> USB Gadget Support -> USB Gadget Drivers ->
    Ethernet Gadget (with CDC Ethernet support),
    and select RNDIS support

    After compiling the Gadget modules as kernel modules and after running modprobe g_ether in shell we are getting the following log

    mx31# modprobe g_ether
    [ 54.430000] ARC USBOTG Device Controller driver version 1 August 2005 init

    [ 52.440000] [arcotg_udc_probe] pdev=0xc0349448 config=0xc03495dc

    [ 52.450000] [board_init] dev=0xc0349450 config=0xc03495dc

    [ 52.460000] [struct_udc_setup] kmalloc(ucd)=0xc0024000

    [ 52.460000] [struct_udc_setup] udc->ep_qh=0xc69cb000 ep_qh_base=0xc69cb000

    [ 52.470000] [arcotg_alloc_request] req=0xc05270c0 set req.dma=0xffffffff

    [ 52.480000] [struct_udc_setup] status_req=0xc05270c0 status_req->req.buf=0xc06ffb80 status_req->req.dma=0x806ffb80

    [ 52.490000] [arcotg_udc_probe] udc_controller=0xc0024000

    [ 52.500000] [arcotg_udc_probe] otg_get_transceiver returns 0xc0651200

    [ 52.500000] [arcotg_udc_probe] start=0x43f88000 end=0x43f881ff

    [ 52.500000]

    [ 52.510000] [arcotg_udc_probe] rsrc_start=0x43f88000 rsrc_len=0x200


    After this we tested ifconfig usb0 and ping commands and are working fine

    Now when we connect the USB Mini A-B cable to Host Linux PC, we are getting the error

    If any body has solved this please help.

    Posted By vasanthk@yahoo.com on 11 Dec 2007 3:44 AM
    I am not getting the error after doing the following,

    1) While enabling USB Support->USB Gadget Support ->Support for USB Gadgets, select the option with <M> (as a module), not with <*>

    2) Then in System Type->Freescale MXC Implementations->MX3 options, enable ISP1540 transceiver support. (This step is optional)


    DrOctavius
    New Member
    New Member
    Posts:


    --
    11 Dec 2007 09:12 PM
    Is your USB Host working? lets say for example.. like mass storage host?
    prashm_77@yahoo.com
    New Member
    New Member
    Posts:


    --
    12 Dec 2007 05:52 AM
    Yes infact we have USB HOST working and we have tested with USB Mass storage and we have booted the filesystem from USB Pen drive and also we have tested usb devices like USB KBD/MOUSE , USB Camera , etc successfully in Linux 2.6.19-2 on Daniel's Patch

    We have not tested MMC and COMPACT FLASH only

    We have tested USB HOST , SOUND (only play back) and USB OTG in IMX31 only(host pc conenction not working )

    If required we will send the patch for your tests , so that OTG can also be solved

    Posted By DrOctavius on 11 Dec 2007 9:12 PM
    Is your USB Host working? lets say for example.. like mass storage host?


    DrOctavius
    New Member
    New Member
    Posts:


    --
    14 Dec 2007 07:19 AM
    Vasanthk,

    Could you send me the patch? I would like to solve the OTG.
    lngentili@hotmail.com
    prashm_77@yahoo.com
    New Member
    New Member
    Posts:


    --
    14 Dec 2007 09:36 PM
    Hai,

    I am trying USB OTG in linux-2.6.19.2 kernel, after booting as per the manual i am testing gadget, after "modprobe g_file_storage file=/dev/ram0" command i am connecting usb otg cable to host machine but i am getting the error
    as shown "device descriptor read/64, error -110".

    what may be the problem?

    or pls. let me know how to test the usb otg

    thanks.


    *********************************************************

    Mounting filesystems
    Starting syslogd and klogd
    Running sysctl
    Setting up networking on loopback device:
    Setting up networking on eth0:
    Adding static route for default gateway to 192.168.50.1:
    route: SIOC[ADD|DEL]RT: File exists
    Setting nameserver to 192.168.50.1 in /etc/resolv.conf:
    Setting time from ntp server: north-america.pool.ntp.org
    Starting inetd:
    Starting the dropbear ssh server:
    mx31# lsusb
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 001: ID 0000:0000
    mx31# lsmod
    Module Size Used by
    isp1504_arc 13216 0
    mx31# modprobe g_file_storage file=/dev/ram0
    [ 54.530000] ARC USBOTG Device Controller driver version 1 August 2005 init

    [ 54.540000] ARC USBOTG h/w ID=0x5 revision=0x40

    [ 54.570000] g_file_storage gadget: File-backed Storage Gadget, version: 28 November 2005

    [ 54.580000] g_file_storage gadget: Number of LUNs=1

    [ 54.580000] g_file_storage gadget-lun0: ro=0, file: /dev/ram/0

    [ 54.590000] arcotg_udc: gadget arc_udc bound to driver g_file_storage

    mx31# [ 54.990000] usb 1-1: new high speed USB device using fsl-ehci and address 2

    [ 51.110000] usb 1-1: device descriptor read/64, error -110
    You are not authorized to post a reply.