> If you have a lot of BeagleBoards to connect then you can use DHCP to
> automate the assignment of IP addresses. That way all the BeagleBoards can
> use a single generic image. However, I've found this to be somewhat
> unreliable (because the BeagleBoard sends out a dhcp request before the
> host's new usb interface is ready). To get it working I needed to create a
> bridge and change the ifup/ifdown scripts to plumb the new usb interfaces
> into the br0 interface and have dhcpd listening to br0.
...so what happens if you configure the g_ether device directly into
the kernel and avoid the absurd loading of the module nonsense?
(ah, the good old days of sysgen)
Windows doesn't know what to do with the USB Composite Gadget so that
has to go first.
Once you get into it, one would think that a statically configured
kernel would be more predictable anyway...
- dan
What is missing is that the host is typically not routing.
The Beagleboard needs a route through the host and then to the same
default gateway used by the host.
'netstat -rn' is your friend.
...don't forget that the Angstrom distribution is also running the X
server on the VNC port.
It is really cool to run the BB from one USB cable for power, network
and display...
- dan
on the PC I'll add a bridge that bridges the say 192.168.4.1 (host PC
usb_g) to the ethernet 192.168.0.46 (host PC eth0), brctl will help.
My beagle will be 192.168.4.100 and the beagle routing table will have a
default gateway entry that is 192.168.0.46.
Will this work?
Thanks
Fabio
I've loads of experience with networking and bridging or basic routing
in windows XP on my host pc is quite easy. Last time I've worked with
Linux was around ten years ago, so these skills might lack a little.
DHCP works sometimes, but isn't really reliable, hence I want to use
static IP's.
I've configured /etc/default/usb-gadget so g_ether loads and
beagleboard works with windows xp
I've configured /etc/network/interfaces:
iface usb0 inet static
address 192.168.0.11
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.1
Before plugging in usb:
ifconfig:
lo .....(nothing special here so I skipped it)
usb0 Link encap:Ethernet HWaddr 00:00:00:00:00:10
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)
After plugging in usb:
[ 1161.503417] g_ether gadget: high speed config #2: RNDIS
[ 1161.509063] ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
and ifconfig:
lo ...
usb0 Link encap:Ethernet HWaddr 00:00:00:00:00:10
inet6 addr: fe80::200:ff:fe00:10/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:824 (824.0 b) TX bytes:748 (748.0 b)
(so no ipv4 is configured)
After ifup usb0:
ifconfig:
lo ......
usb0 Link encap:Ethernet HWaddr 00:00:00:00:00:10
inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:
255.255.255.0
inet6 addr: fe80::200:ff:fe00:10/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4682 (4.5 KiB) TX bytes:6347 (6.1 KiB)
So now everything works fine, but I don't like to run ifup usb0
manually everytime I reboot or reconnect a BB because I have to
connect the BB to the serial port to do so. I want this step
"automated", how do I configure this?
Also tried that, but didn't work. When booting, the network interfaces
are configured before g_ether module is loaded, so the device doesn't
exist yet. It would also be possible to configure usb0 after g_ether
module is loaded, but when plugging in the usb-cable, the
configuration of usb0 is reset en ip-address is loss.
On May 27, 10:40 am, Michael Evans <horse_d...@hotmail.com> wrote:
> Hmmm... it works for me using the latest Angstrom. I've had similar race conditions during boot in the past which were hacked/fixed by using an rc.local script to run the relevant commands. If things still aren't ready in time for rc.local then just stick a sleep statement in there.
>
>
>
>
>
> > Date: Wed, 26 May 2010 16:06:06 -0700
> > Subject: [beagleboard] Re: g_ether automatic IP configuration
> > From: gent...@gmail.com
> > To: beagl...@googlegroups.com
>
> > > You need "auto usb0" in /etc/network/interfaces to have the interface come up automatically.
>
> > Also tried that, but didn't work. When booting, the network interfaces
> > are configured before g_ether module is loaded, so the device doesn't
> > exist yet. It would also be possible to configure usb0 after g_ether
> > module is loaded, but when plugging in the usb-cable, the
> > configuration of usb0 is reset en ip-address is loss.
>
> > --
> > 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 athttp://groups.google.com/group/beagleboard?hl=en.
>
> _________________________________________________________________http://clk.atdmt.com/UKM/go/195013117/direct/01/
> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now