Ubuntu on Beaglebone: how to have USB-to-Ethernet interface working?

I am using Beaglebone booted with Ubuntu following the direction from:

http://elinux.org/BeagleBoardUbuntu#Demo_Image

I also use Ubuntu on my host PC connected to the Beaglebone by a USB
cable only (no LAN cable).
In this configuration USB-to-serial works and I have the very useful
Beaglebone console.
If I boot with Angstrom USB-to-Ethernet works. That is done via an
eth2 interface that appears on my PC and I give it the adress
192.168.7.1 (the Beaglebone answer from 192.168.7.2). The USB-to-
Ethernet functionality starts disconnecting the Beaglebone-Angstom USB
mass storage (as I red from the related Beaglebone README.htm). But
when the Beaglebone boots with Ubuntu I have no USB mass storage to
disconnect and no eth2, or similar, interface appears.
So please give me some advice in order to solve my problem.

Thanks

Yes, right now it's hit and miss, it works fine over USB on my main
development machine here, but does fail on a few other machines i
have..

The 'current' images on elinux/rcn-ee.net are still very alpha quality
for the beaglebone..

For bug tracking, so i don't loose this, can you please create an issue on:

https://github.com/RobertCNelson/linux-dev/issues

tag it: beaglebone, and include dmesg of the bone, and what dmesg
shows on your pc when you try to connect it..

Regards,

Was this issue resolved?
I am facing the similar problem even with 10th sept’s r6 ubuntu 12.04 image for beaglebone…

Was this issue resolved?
I am facing the similar problem even with 10th sept's r6 ubuntu 12.04 image
for beaglebone...

by "similar" problem, what do you mean?

as "only" the usb-eth gadget is built:
https://github.com/RobertCNelson/linux-dev/blob/am33x-v3.2/patches/defconfig#L3325

So yes, if your expecting a usb mass storage device to show up, well
that's not going to happen. :wink:

> I am using Beaglebone booted with Ubuntu following the direction from:
>
> http://elinux.org/BeagleBoardUbuntu#Demo_Image
>
> I also use Ubuntu on my host PC connected to the Beaglebone by a USB
> cable only (no LAN cable).
> In this configuration USB-to-serial works and I have the very useful
> Beaglebone console.
> If I boot with Angstrom USB-to-Ethernet works. That is done via an
> eth2 interface that appears on my PC and I give it the adress
> 192.168.7.1 (the Beaglebone answer from 192.168.7.2). The USB-to-
> Ethernet functionality starts disconnecting the Beaglebone-Angstom USB
> mass storage (as I red from the related Beaglebone README.htm). But
> when the Beaglebone boots with Ubuntu I have no USB mass storage to
> disconnect and no eth2, or similar, interface appears.
> So please give me some advice in order to solve my problem.

Regards,

I am trying to access internet on the beaglebone with ubuntu-r6, without the ethernet cable plugged in. That won’t happen with this image, right?

I tried adding this to the /etc/network/interfaces
auto usb0
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1

That doesn’t work for me. I also tried iface usb0 inet dhcp.
Further,
ifconfig usb0 192.168.7.1 (BB)
ifconfig usb0 192.168.7.2 (PC, OS-ubuntu)

Didn’t work… was not able to ping www.google.com

-Jimit

Hi, i 'm successfull with access internet for beaglebone with usb connect

on my BB ubuntu:

#ifconfig usb0 192.168.1.2
#route add default gw 192.168.1.1

on my PC ubuntu:

#ifconfig usb0 192.168.1.1

// config for ip forwarding…

# iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
# iptables --append FORWARD --in-interface usb0 -j ACCEPT
# echo 1 > /proc/sys/net/ipv4/ip_forward

after that you can ping them pc-> bb and bb-> pc

to acceess internet from bb you need adding name server addr for beaglebone (8.8.8.8) in file /ect/resolve.conf

2012/9/14 Jimit <jimit2688@gmail.com>

Thanks you for your help!

Vào 10:48:20 UTC+7 Thứ Sáu, ngày 14 tháng 9 năm 2012, Vu Dinh Minh đã viết: