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 19 Aug 2014 02:36 PM by  bradb
USB OTG device
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Rajesh Tirumala
New Member
New Member
Posts:10


--
28 Jul 2014 10:39 PM

    dmesg.txt

    Hi All,

    I am working on custom logicpd boards and ltib bsp builds. We have two logicpd boards plugged to a base board that contains other peripherals. And I am trying to one logicpd board as Ethernet over USB  master and other as slave using RNDIS driver.  

    I've configured the kernel to include configrations for USB and RNDIS but I don't see any usb devices under /dev. And modprobe of g_ether is throwing errors and not able to install the driver.

    OMAP3 Logic DM37x/OMAP35x SOM LV/Torpedo SoC

    cat /proc/version
    Linux version 3.0.0-BSP-dm37x-2.3-2 (lpd@ubuntu) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #134 Mon Jul 28 17:25:02 IST 2014

    modprobe g_ether

    [  577.955017] musb-hdrc: version 6.0, musb-dma, peripheralWARNING: Error inserting musb_hdrc (/lib/modules/3.0.0-BSP-dm37x-2.3-2/kernel/drivers/usb/musb/musb_hdrc.ko): No such device

    [  578.000732] g_ether: Unknown symbol usb_gadget_probe_driver (err 0)
    [  578.008117] g_ether: Unknown symbol usb_gadget_unregister_driver (err 0)
    FATAL: Error inserting g_ether (/lib/modules/3.0.0-BSP-dm37x-2.3-2/kernel/drivers/usb/gadget/g_ether.ko): Unknown symbol in module, or unknown parameter (see dmesg)

     

    I've also attached the dmesg output..

    Could any one of you help me to understand what else needs to be done...?

    Sincerely appreciate your help and time..

    Thanks in advance..

    bradb
    Basic Member
    Basic Member
    Posts:203


    --
    29 Jul 2014 02:57 PM
    Rajesh,

    I would recommend trying the DM37x Linux BSP v2.4-2[1].  I have successfully setup RNDIS and used a USB to Ethernet adapter with this version of our BSP.

    Steps used to test the USB to Ethernet adapter were added to the SQA test plan due to the bug in DM37x Linux BSP v2.4-2 where both the LAN Ethernet and the USB to Ethernet are given the same MAC address.  This will be fixed in the up and coming DM37x Linux BSP v 2.4-3 due out soon.

    Here are the steps added:

    04.05 Confirm separate MAC addresses assigned to LAN Ethernet and USB ETherent Dongle

    [DM37LINUX-1006]

    Test requires USB Ethernet Dongle with one of the following chipsets

      * Aten UC210T
      * ASIX AX88172
      * Billionton Systems, USB2AR
      * Buffalo LUA-U2-KTX
      * Corega FEther USB2-TX
      * D-Link DUB-E100
      * Hawking UF200
      * Linksys USB200M
      * Netgear FA120
      * Sitecom LN-029
      * Intellinet USB 2.0 Ethernet
      * ST Lab USB 2.0 Ethernet
      * TrendNet TU2-ET100

    04.05.01 Verify lsusb works

    Connect USB Etherent Dongle to USB Host Port

    Boot the board and login.

    Initialize eth0

    DM-37x#   ifup eth0

     

    Initialize eth1

    DM-37x#   ifup eth1

     

    Ping eth0 and eth1 from Linux Host

     

    Display the ARP table

    bash#  arp -a

    Verify separate MAC addresses for both eth0 and eth1

     

    POR 

    Section 10 of the AN 542 DM3730 - AM3703 SOM Programming for End-Product Manufacturing[2] describes steps to setup and use RNDIS.

    [1] http://support.logicpd.co...id=0&EntryId=853

    [2] http://support.logicpd.co...id=0&EntryId=700

    Rajesh Tirumala
    New Member
    New Member
    Posts:10


    --
    30 Jul 2014 10:27 AM

    Thanks much, we may have to update the BSP for some other reasons too. I'll try the instructions as soon as we get the new bsp up on our boards.

    Thanks and appreciate your response.

     

     

    Rajesh Tirumala
    New Member
    New Member
    Posts:10


    --
    18 Aug 2014 01:39 PM
    Hi Brad,
    I got the 2.4.2 BSP and up, running on my board. But I still had no luck..
    Boot-up shows musb_hdrc is throwing error

    [ 0.556701] musb-hdrc: version 6.0, musb-dma, peripheral
    [ 0.557098] HS USB OTG: no transceiver configured
    [ 0.557098] musb-hdrc musb-hdrc: musb_init_controller failed with status -19

    Could you pl list out the kernal configuration you used to enable usb/ rndis.
    bradb
    Basic Member
    Basic Member
    Posts:203


    --
    19 Aug 2014 02:36 PM
    Rajesh,

    Here is the default kernel config provided with Linux 2.4-2 BSP. 
    You are not authorized to post a reply.