This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OTG ENABLE ISSUE

Other Parts Discussed in Thread: DM3730

Hi Steve K/all,

As you suggested we tried

insmod g_mass_storage.ko file=/dev/sda

and getting following log :

root@dm3730-am3715-evm:/# insmod g_mass_storage.ko file=/dev/sda
g_mass_storage gadget: Mass Storage Function, version: 2009/09/11
g_mass_storage gadget: Number of LUNs=1
 lun0: LUN: removable file: /dev/sda
g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
g_mass_storage gadget: g_mass_storage ready
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 2.6.32 musb-hcd
usb usb2: SerialNumber: musb_hdrc
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
root@dm3730-am3715-evm:/#

We connected the OTG port to the host PC through USB cable but did not see the new disk in the host PC.

please suggest us to solve this issue.

Regards

vidya

  • try insmod g_mass_storage.ko file=/dev/sda stall=0 removable=1

    Ajay

  • Hi Ajay,

           I saw you have given some helpful advice with USB OTG on DM365 to other people in TI E2E,so i think you can help me with my problem(kernel LSP2.1,on DM365EVM)

           We have the usb peripheral mode worked under USB OTG(have removed J6 and J26),and we can see the new disk on windows.Now we want to switch to USB host,but failed,any idea?

          I also attached  some log as below:

    # echo "F" > /proc/driver/musb_hdrc

    # cat /proc/driver/musb_hdrc
    Status: MHDRC, Mode=Peripheral (Power=f0, DevCtl=99)
    OTG state: b_peripheral; active
    Options: cppi-dma, otg (peripheral+host), debug=1 [eps=5]
    Peripheral address: 01
    Root port status: 00000000
    DaVinci: ctrl=00 stat=0 phy=21e0
            rndis=00000 auto=0000 intsrc=00000000 intmsk=01ff1e1f
    CPPI: txcr=1 txsrc=0 txena=f; rxcr=1 rxsrc=0 rxena=f
    Gadget driver: g_file_storage

    ep0 (hw0): 1buf, csr 0000 maxp 0000
            (queue empty)

    ep1in (hw1): 1buf dma, csr 2400 maxp 0200
    TX DMA0: 00000000 80618800, 80618800 818e000d; 00020000 0000000d e5045e8b .. 80618800
            (queue empty)

    ep1out (hw1): 1buf dma, csr 2000 maxp 0200
    RX DMA0: 3 left, 00000000 80642860, 80642880 80642880; 818e001f 001f01e1 0000001f .. 80642880
            req c190ace0, !short, 0/512

    Your help would be highly appreciated,thanks.

    Regards,

    XiangW

  • Hi Ajay,

    We tried insmod g_mass_storage.ko file=/dev/sda stall=0 removable=1

    and got following log:

    root@dm3730-am3715-evm:/# insmod g_mass_storage.ko file=/dev/sda stall=0 removab
    le=1
    [  116.422485]  lun0: unable to open backing file: /dev/sda
    [  116.429260] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [  116.435089] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 4
    [  116.448486] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
    [  116.455749] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [  116.463378] usb usb4: Product: MUSB HDRC host driver
    [  116.468627] usb usb4: Manufacturer: Linux 2.6.37 musb-hcd
    [  116.474334] usb usb4: SerialNumber: musb-hdrc.0
    [  116.481323] hub 4-0:1.0: USB hub found
    [  116.485321] hub 4-0:1.0: 1 port detected
    root@dm3730-am3715-evm:/# [  116.589813] hub 4-0:1.0: activate --> -22

    root@dm3730-am3715-evm:/#

    Still  EVM is not getting detected on PC side

    We connected the otg port of DM3730 to the USB port of PC through USB cable.

    Also I have tried to connect the pendrive to the OTG port of EVM, that is also not getting detected.

    Please suggest us to solve this issue.


    Regards

    Vidya