USBtoEthernet connection problem

Hello,

I am using TRENDnet TU-ET100C USB to Ethernet Adapter.
I am using Angstrom Demo images.
I have connected USBto Ethernet Adapter on USB OTG.

I have run few command to check ethernet connection as per below.

root@beagleboard:/# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 002 Device 002: ID 07a6:8511 ADMtek, Inc. ADM8511 Pegasus II
Ethernet

root@beagleboard:/# dmesg | grep eth0
usbcore: registered new interface driver cdc_ether
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready

root@beagleboard:/# dmesg | grep usb0
usb0: MAC 2a:d8:f5:c6:2f:18
usb0: HOST MAC 6a:4c:79:f6:b9:fa
ADDRCONF(NETDEV_UP): usb0: link is not ready

root@beagleboard:/# ifconfig
lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:60 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4120 (4.0 KiB) TX bytes:4120 (4.0 KiB)

usb0 Link encap:Ethernet HWaddr 2A:D8:F5:C6:2F:18
          inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:
255.255.255.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)

root@beagleboard:/# ifconfig eth0 192.168.0.101 up
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
eth0: unknown interface: No such device

Please guide me how to up my connection for USBto Ethernet
communication

Thanks,

Try usb0

-Mark

Hello Mark,

I have checked it with usb0 but it's not able to ping.

Thanks,

I have the same problem trying to ping BB to the Host Linux-Ubuntu. I’m using the USB-Ethernet hub from SpecialComp. Is there a special driver for Linux (The USB-hub only come with Windows and MAC drivers). Please advise,

rene’

Hello,

I can made it work. means now I can browse internet through BB.
I have used USB Hub which is connected to USB host and USB to
Ethernet Adapter which is connected to USB Hub.
if you are using Angstrom Demo Kernel 2.6.29-ompa1 then comment
following line on vi /etc/resolve.conf.

#nameserver 124.124.5.140 192.168.0.1

Then restart network using /etc/init.d/networking restart command on
shell.
check your interface using ifconfig command.

Thanks,
Rachit Shah

Hello,

I can made it work. means now I can browse internet through BB.
I have used USB Hub which is connected to USB host and USB to
Ethernet Adapter which is connected to USB Hub.
if you are using Angstrom Demo Kernel 2.6.29-ompa1 then comment
following line on vi /etc/resolve.conf.

#nameserver 124.124.5.140 192.168.0.1

Then restart network using /etc/init.d/networking restart command on
shell.
check your interface using ifconfig command.

Thanks,
Rachit Shah

In my case, I put the set up in ~/.bashrc and use ". ~/.bashrc" in
/etc/profile. It works for a while - from minutes to several hours, then
it drops the connection - the light on the USB ethernet dongle goes out,
"/etc/init.d/networking restart" doesn't restore it. A reboot command
restores it.
The following message is repeated.
[121544.819824] pegasus 1-2.6:1.0: read_mii_word failed

Regards
Sid.

Hi,

it seems that your network adapter was not recognised.

Are you sure you're using a mini-A cable? Using a mini-B cable does
not allow you to use the OTG port as USB host. The following picture
shows the differences between the two:

http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/Types-usb.svg/300px-Types-usb.svg.png

You can also check the following photo (mini-B on the left, mini-A on
the right):

http://www.lindy.co.uk/lindyshop/pictures/31636big.jpg

Are you sure the power consumption of the USB Ethernet adapter is
100mA or less? As far as I know the OTG port can supply 100mA maximum.
My ethernet adapter (Apple) for example draws 250mA so I had to
connect it to the USB EHCI port. You can check the power consumption
with "lsusb -v" and find the value of "MaxPower" parameter associated
with the network device.

Regards,

Pietro Pizzo

Why can’t i modified the resolv.conf? I’m suppose to login as root. Please advise,

rene’

Hi everyone,

I'm setting up an internet connection with the BeagleBoard, so need a USB->Ethernet adapter.

I was looking at this one, the TU2-ET100 model by Trendnet. It was suggested (but not tested) in the BB docs:
http://www.radioshack.com/product/index.jsp?productId=2806154

Before purchasing, I wanted to see if anyone else has gotten this adapter to work.

Thanks,
Scott

Trendnet likes to put a new chipset in every revision, but based on
it's windows driver download:

http://www.trendnet.com/downloads/list_subcategory.asp?SUBTYPE_ID=1003

It is based on the "ASIX AX88772 USB2.0 to Fast Ethernet Adapter" chipset...

Which I've used similar vendor's version using this specfic chipset in
linux, but that vendor's devices was a little random/flaky...

Regards,

Might i suggest getting a Zippy instead?

http://tincantools.com/product.php?productid=16147&cat=0&page=1&featured

you get a RTC, 10baseT, second sd/mmc slot, second uart and mounting hardware.

Dave

I am using it. It works fine except if doing rootfs over NFS. The problem with USB-Ethernet rootfs over NFS is that it losses network connection if no key strobes to the terminal for about 15 minutes. Once it happens, the system is unusable since the rootfs is mounted over NFS. I have tried to turn off the usb bus auto power. But, I did not see the problem was fixed. You also need the 5V adapter.

If anyone knows the fix, please let us know.

Thanks,
Eric

Robert Nelson wrote:

you forget to mention that the zippy is totally awesome :slight_smile:

Op 29 sep 2009 om 00:09 heeft David Anders <dave123rad@yahoo.com> het
volgende geschreven:\

Yes, I got the Trendnet working last weekend. Seems to be fine.

Charles

when i connect the trendnet tu2-et100 to the beagleboard, i get the following message on the terminal:

usb 1-2: configuration #1 chosen from 1 choice
eth0: register ‘asix’ at usb-ehci-omap.0-2, ASIX AX88772 USB 2.0 Ethernet, 00:50:b6:05:e9:7f

however, when i ping an address, like www.eyebeam.org, for example, i get

ping: bad address ‘www.eyebeam.org

do i have to modify /etc/network/interfaces?

thanks,
roy

I would suggest pinging by dotted decimal address first. If that works, its a DNS issue.

If pinging by dotted decimal address doesnt work then I would look at the routing table and see if there is a gateway defined.

Usually, its one of the two of these issues if the hardware is working and compatible with the software.

Charles

charles,

thanks for your response. so, any address i ping by decimal address
yields "100% packet loss." when i type the "route" command at the
terminal for gateway information, i get

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
192.168.0.0 * 255.255.255.0 U 0 0
0 usb0
default 192.168.0.200 0.0.0.0 UG 0 0
0 usb0

the 100Mbps LED remains lit and the Link LED blinks on the Trendnet
TU2-ET100. this leads me to believe that it's working fine in terms
of power and communication. however, i'm somehow missing something.
am i supposed to edit /etc/network/interfaces, or some other file? i
don't know anything about networking, which is why i'm finding this so
challenging.

thanks,
roy

Dear Roy:

Let me use this as an opportunity to give you another tool for your toolbox.

First a discussion on your routing table and ifconfig.

  1. ifconfig usb0 should tell you if packets have been sent (and more importantly) received.

  2. Your routing table says “UG” (means that is the gateway for all packets). The 0.0.0.0 means all addresses go out usb0 at 192.168.0.200.

If it were me, I would run ethereal or wireshard (both free downloads) on a different computer connected to the same LAN segment as the BeagleBoard and see if I can convince myself that packets are coming from (and going to) the BeagleBoard.

Charles