How to enable ethernet over USB (g_ether)? AM3517, Linux 2.6.32-rc5 Arago 2009.11

Hello.

I am trying to get Ethernet over USB to work from my AM3517 dev board to a Windows PC (XP or 7x64). I believe I have the USB networking configuration correct on the AM3517 board, but the PC just sees unknown device when I make a connection from the OTG port of the AM3517 to the PC. Is there any configuration that needs to be done on the Linux side to force the OTG port to work as a USB over Ethernet device? Thank you.

When booting I see this...

g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
usb0: MAC 52:2a:a1:a6:61:3e
usb0: HOST MAC ee:4c:86:4e:5a:e4
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready

Then ifconfig will show (which is correct for our network)

usb0      Link encap:Ethernet  HWaddr 52:2A:A1:A6:61:3E
          inet addr:10.1.3.254  Bcast:10.1.3.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

5 Replies

  • Genius 9460 points

    Reinyn,

    Have you enabled RNDIS option in ethernet gadget driver section at drivers->USB support -> Gadget Support ?

    This is required for connecting Am3517 to windows system.

    Regards,

    Ajay

    If my reply answers your question then please click on the green button "Verify Answer"

  • In reply to Ajay:

    Hello Ajay,

    Is this a kernel option or is it in a run time configuration file? I'm fairly new to Linux so I'm not sure to exactly what you are referring.

    thank you,

    -Reinyn

  • In reply to Reinyn Bedlington:

    Ok I see that I need to run "make menuconfig" to get started with configuring the system. On my board I get the error -sh: make: not found.

    Do I need to download the source code to the board along with GCC? How do I get started with this?

    thank you,

    -Reinyn

    Edit: The Host PC is Windows 7 and I'm running Sourcery G++. It is not clear to me where the "make menuconfig" command runs. Is it the AM3517 board or the host PC?

  • In reply to Reinyn Bedlington:

    Reinyn,

     

    Since windows does not recognize the EVM, you will need to also provide an ".inf" file so Windows will know what type of device it is and what kind of drivers it needs. I'll provide a link to Microsoft which explains how to create a generic .inf file which should work in your configuration. Hopefully, this will solve your problem.

     

    http://msdn.microsoft.com/en-us/library/ff570620.aspx

     

     

    Regards,

    Ken

  • Genius 9460 points

    In reply to kengler01:

    Reinyn,

    Did you get pop up windows asking for driver when you connected the evm to PC ? If so then you can provide the below .inf file.

    http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/usb/linux.inf;h=4dee95851224a35521831065926c9e6e1ef0363e;hb=3643e0e87c13c670a0fdcd0c34401b38b36ff021

    Yes, you need to use make menuconfig to configure the kernel.

    Regards,

    Ajay

    If my reply answers your question then please click on the green button "Verify Answer"