Linux USB Ethernet/RNDIS Gadget connectivity problem

3,855 views
Skip to first unread message

don cherian

unread,
Jan 18, 2010, 11:27:07 PM1/18/10
to Beagle Board
Hello beagleboard gurus,

Greetings!

I have a problem in networking the beagle board with development pc.

host machine : WinXp + Ubuntu as guest OS on top of VMware
There is one ethernet card which I use to connect to intranet.
the network setting is showing

2 VMWare virtual ethernet adapters [VMnet8,VMnet1]
1 LAN - connected to intranet

I am using Linux USB Ethernet/RNDIS Gadget to connect the beagleboard
to host machine.After the ifonfig [ifconfig usb0 192.168.1.115] on
beagleboard,the network setting is showing one more connection
LAN2 with IP addr: 192.168.1.15

I could ping the networked beagleboard from Windows
but the IP address of beagleboard is not available/visible in the
Linux guest OS.The IP of Linux OS is neither visible in beagleboard.

My intention is to use NFS mounted rootfile system for my beagleboard
so that the development/testing can be faster.

Is there any way make linux visible for beagleboard over USB Ethernet
network?

any help would be greatly appreciated.

Thanks in advance
Don Cherian

Vedurumudi

unread,
Jan 19, 2010, 12:05:41 AM1/19/10
to beagl...@googlegroups.com
Don,
      I first want to make sure I understand your setup.

1. You have a Desktop PC with Windows and Linux (over VMWare).
2. You have the beagle  board and you are using a USB/Ethernet dongle.
If this is correct:

1. What is the LAN config you are using? Is the Windows adapter configured to use 192.168.1.x IP with subnet mask 255.255.255.0?
2. Did you configure the ethernet adapter in Ubuntu for this IP and subnet?

Or is it that you have done the above, and still unable to ping between Ubuntu and Beagle?

Regards,
Sri.

PS: Also, how are you connecting the beagle board to the desktop? Using Cross-Cable or via a hub?




--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.




don cherian

unread,
Jan 19, 2010, 2:07:00 AM1/19/10
to Beagle Board
hello Sri!

thanks for yor reply..

> 1. You have a Desktop PC with Windows and Linux (over VMWare).

yes


> 2. You have the beagle board and you are using a USB/Ethernet dongle.

No,I have only one ethernet port on my host computer and i am using it
to connect to intranet.
Instead i wanted to connect the board via usb emulated ethernet.

For that i am connecting the beagleboard's USB-OTG port to host
machine's USB port through usb cable.After the new hardware is
detected in Windows,i installed the driver of Linux USB Ethernet/RNDIS
Gadget.Then a new LAN will appear on my network connections.

I then configured the IP address of the virtual network card[host
side] to 192.168.1.15
and set the IP address of development board to 192.168.1.115
[ifconfig usb0 192.168.1.115]

after it is connected ,ifconfig on beagleboard is giving me the
following connections and i could ping between windows and
beagleboard.
------------------------------------------------------------------------------------------
root@DevKit8000:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

usb0 Link encap:Ethernet HWaddr A2:0D:9E:54:4F:A6
inet addr:192.168.1.115 Bcast:192.168.1.255 Mask:
255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:765 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:57944 (56.5 KiB) TX bytes:0 (0.0 B)
-------------------------------------------------------------------------------------------


I hope now my setup is clear to you.


thanks and regards
Don Cherian


On Jan 19, 10:05 am, Vedurumudi <svedurum...@gmail.com> wrote:
> Don,
>       I first want to make sure I understand your setup.
>
> 1. You have a Desktop PC with Windows and Linux (over VMWare).
> 2. You have the beagle  board and you are using a USB/Ethernet dongle.
> If this is correct:
>
> 1. What is the LAN config you are using? Is the Windows adapter configured
> to use 192.168.1.x IP with subnet mask 255.255.255.0?
> 2. Did you configure the ethernet adapter in Ubuntu for this IP and subnet?
>
> Or is it that you have done the above, and still unable to ping between
> Ubuntu and Beagle?
>
> Regards,
> Sri.
>
> PS: Also, how are you connecting the beagle board to the desktop? Using
> Cross-Cable or via a hub?
>

> > beagleboard...@googlegroups.com<beagleboard%2Bunsu...@googlegroups.com>

Vedurumudi

unread,
Jan 19, 2010, 8:06:49 AM1/19/10
to beagl...@googlegroups.com
Ok. Now i get it.
Did you try restarting the Ubuntu network? It could be that vmware is
not dynamically adding the new network connection. I may be wrong, but
no harm in trying. Infact i would first connect beagle to windows,
configure both interfaces and them start vmware and ubuntu. This would
clear any vmware issues that might exist.
Also, are you able to see this usb eth in host ubuntu?

Please try the following.
1. Run ifconfig in ubuntu and see if it is showing the usb conn. Or,
maybe you should up the new interface.
2. If you dont see the usb interface on ubuntu, shut it down and
connect the beagle, configure and verify with ping and then restart
ubuntu. And, run ifconfig again.

Regards,
Sri

--
Sent from my mobile device

Jacob Godserv

unread,
Jan 20, 2010, 10:49:41 AM1/20/10
to beagleboard
On Mon, Jan 18, 2010 at 23:27, don cherian <d0n.c...@gmail.com> wrote:
> host machine : WinXp + Ubuntu as guest OS on top of VMware
> There is one ethernet card which I use to connect to intranet.
> the network setting is showing

Assuming everything on the VMWare side of things is configured properly...

Since you are using Ubuntu, which has NetworkManager you don't have to
mess with anything on the command-line. NetworkManager will handle the
ifconfig, iptables, and DHCP server tasks for you:
http://neuvoo.org/wiki/index.php?title=USB_%28Networking%29#NetworkManager

The rest of that page might be of interest if you are intent on
configuring by hand.

--
Jacob

"For then there will be great distress, unequaled
from the beginning of the world until now — and never
to be equaled again. If those days had not been cut
short, no one would survive, but for the sake of the
elect those days will be shortened."

Are you ready?

Jacob Godserv

unread,
Jan 20, 2010, 10:54:41 AM1/20/10
to beagleboard
On Mon, Jan 18, 2010 at 23:27, don cherian <d0n.c...@gmail.com> wrote:
> host machine : WinXp + Ubuntu as guest OS on top of VMware
> There is one ethernet card which I use to connect to intranet.
> the network setting is showing

I forgot to mention that NetworkManager can also mess up any manual
configuration of usb0 if you don't specifically use it, so it's best
to turn off NetworkManager (/etc/init.d/networking stop) if you want
to configure usb0 yourself. You'll have to find a way to
hand-configure your connections in the meantime, or set up an
alternative network manager.

Scott Williams

unread,
Jan 20, 2010, 11:12:09 AM1/20/10
to beagl...@googlegroups.com
Just curious. Will manual configuration, while network manager is running, not override the configuration set by the NM?

-Scott


From: Jacob Godserv <jacobg...@gmail.com>
To: beagleboard <beagl...@googlegroups.com>
Sent: Wed, January 20, 2010 9:54:41 AM
Subject: Re: [beagleboard] Linux USB Ethernet/RNDIS Gadget connectivity problem
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard+unsub...@googlegroups.com.

Jacob Godserv

unread,
Jan 23, 2010, 10:14:13 AM1/23/10
to beagleboard
On Wed, Jan 20, 2010 at 11:12, Scott Williams <enligh...@yahoo.com> wrote:
> Just curious. Will manual configuration, while network manager is running,
> not override the configuration set by the NM?

It certainly may. I've had nothing but problems trying to manually
configure with NetworkManager running, but you can certainly try. Let
me know if you get it to work.

Reply all
Reply to author
Forward
0 new messages