Need help with internet over usb (running ubuntu lucid)

Recently got my beagleboard, and installed ubuntu (Ubuntu 10.04.1
LTS). I want to connect it to internet over USB OTG. It seems would be
much easier to connect over USB-Etheret adapter, but where I live
there are 2 options to get them: 1) from e-bay = 8$ + 1 month delivery
or 2) from local e-shops = >20$ + 6$ delivery in 3 days. Or I could
try connecting over USB.

Only tutorial I have found is this:
http://thoughtshubham.blogspot.com/2010/03/internet-over-usb-otg-on-beagleboard.html

But this is for Angstrom i think. At least this first part:

once you have logged in, enable g_ether.ko driver by

# cd /lib/modules/2.6.29-omap1/kernel/drivers/usb/gadget/
# insmod g_ether.ko

Now the driver is enabled. Now connect the USB-OTG cable between beagleboard and host computer.
Configure the connection as follows:-

# ifconfig usb0 192.168.1.1 netmask 255.255.255.0
# route add default gw 192.168.1.5
# vi /etc/resolv.conf
    Add hostIP as nameserver, your hostIP will be 192.168.1.5 as explained later
    -> nameserver 192.168.1.5

# export http_proxy="http://192.168.36.204:8080"

the last step set the variable to our local proxy and port number , change this according to the connection on
your host machine.

I only found /sys/module/g_ether/ where is parameters folder with text
files dev_addr, host_addrm qmult
No such thing as g_ether.ko driver. Can't find any normal tutorial on
this.

Do I need to do something like insmod g_ether.ko on ubuntu, or maybe
everything already works by default?
Also I poorly understand all these IP, mask & gateway things.

If these are needed:

ifconfig on beagleboard gives:

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

usb0 Link encap:Ethernet HWaddr ca:40:b7:51:5e:ae
          inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: fe80::c840:b7ff:fe51:5eae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

ifconfig on my PC (ubuntu lucid) gives:

eth0 Link encap:Ethernet HWaddr 00:69:00:12:00:83
          UP BROADCAST MULTICAST MTU:1500 Metric:1

eth1 Link encap:Ethernet HWaddr 00:e0:4c:25:7e:6e
          inet addr:78.84.232.77 Bcast:78.84.255.255 Mask:255.255.224.0
          inet6 addr: fe80::2e0:4cff:fe25:7e6e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

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

usb0 Link encap:Ethernet HWaddr 0a:9e:e3:7d:bf:19
          inet6 addr: fe80::89e:e3ff:fe7d:bf19/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1494 Metric:1

Sorry if my request seems stupid, but I just need to get board
running, and all tutorials I find by google are mostly for Angstrom.
Thank you.

Alex

Recently got my beagleboard, and installed ubuntu (Ubuntu 10.04.1
LTS). I want to connect it to internet over USB OTG. It seems would be
much easier to connect over USB-Etheret adapter, but where I live
there are 2 options to get them: 1) from e-bay = 8$ + 1 month delivery
or 2) from local e-shops = >20$ + 6$ delivery in 3 days. Or I could
try connecting over USB.

Only tutorial I have found is this:
http://thoughtshubham.blogspot.com/2010/03/internet-over-usb-otg-on-beagleboard.html

But this is for Angstrom i think. At least this first part:

once you have logged in, enable g_ether.ko driver by

# cd /lib/modules/2.6.29-omap1/kernel/drivers/usb/gadget/
# insmod g_ether.ko

Now the driver is enabled. Now connect the USB-OTG cable between beagleboard and host computer.
Configure the connection as follows:-

# ifconfig usb0 192.168.1.1 netmask 255.255.255.0
# route add default gw 192.168.1.5
# vi /etc/resolv.conf
Add hostIP as nameserver, your hostIP will be 192.168.1.5 as explained later
-> nameserver 192.168.1.5

# export http_proxy="http://192.168.36.204:8080"

the last step set the variable to our local proxy and port number , change this according to the connection on
your host machine.

I only found /sys/module/g_ether/ where is parameters folder with text
files dev_addr, host_addrm qmult
No such thing as g_ether.ko driver. Can't find any normal tutorial on
this.

That module is already built-in, that's why you can't find the *.ko driver...

Do I need to do something like insmod g_ether.ko on ubuntu, or maybe
everything already works by default?
Also I poorly understand all these IP, mask & gateway things.

If these are needed:

ifconfig on beagleboard gives:

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

usb0 Link encap:Ethernet HWaddr ca:40:b7:51:5e:ae
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::c840:b7ff:fe51:5eae/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

ifconfig on my PC (ubuntu lucid) gives:

eth0 Link encap:Ethernet HWaddr 00:69:00:12:00:83
UP BROADCAST MULTICAST MTU:1500 Metric:1

eth1 Link encap:Ethernet HWaddr 00:e0:4c:25:7e:6e
inet addr:78.84.232.77 Bcast:78.84.255.255 Mask:255.255.224.0
inet6 addr: fe80::2e0:4cff:fe25:7e6e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

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

usb0 Link encap:Ethernet HWaddr 0a:9e:e3:7d:bf:19
inet6 addr: fe80::89e:e3ff:fe7d:bf19/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1494 Metric:1

Sorry if my request seems stupid, but I just need to get board
running, and all tutorials I find by google are mostly for Angstrom.
Thank you.

I personally have never used this type of networking setup, but some
users have claimed it's worked..

I usually point people to this tutorial from openmoko on setting up
usb-otg networking..

http://wiki.openmoko.org/wiki/USB_Networking

Regards,

I have the can not wait illness. I bought USB->ethernet at Radio shack $25

— On Sun, 9/26/10, Robert Nelson robertcnelson@gmail.com wrote:


> From: Robert Nelson robertcnelson@gmail.com
> Subject: Re: [beagleboard] Need help with internet over usb (running ubuntu lucid)
> To: beagleboard@googlegroups.com
> Date: Sunday, September 26, 2010, 4:35 PM
>
> On Sun, Sep 26, 2010 at 2:46 PM, thu s8_skorod_a@venta.lv wrote:
> > Recently got my beagleboard, and installed ubuntu (Ubuntu 10.04.1
> > LTS). I want to connect it to internet over USB OTG. It seems would be
> > much easier to connect over USB-Etheret adapter, but where I live
> > there are 2 options to get them: 1) from e-bay = 8$ + 1 month delivery
> > or 2) from local e-shops = >20$ + 6$ delivery in 3 days. Or I could
> > try connecting over USB.
> >
> > Only tutorial I have found is this:
> > http://thoughtshubham.blogspot.com/2010/03/internet-over-usb-otg-on-beagleboard.html
> >
> > But this is for Angstrom i think. At least this first part:
> >
> >> once you have logged in, enable g_ether.ko driver by
> >>
> >> # cd /lib/modules/2.6.29-omap1/kernel/drivers/usb/gadget/
> >> # insmod g_ether.ko
> >>
> >> Now the driver is enabled. Now connect the USB-OTG cable between beagleboard and host computer.
> >> Configure the connection as follows:-
> >>
> >> # ifconfig usb0 192.168.1.1 netmask 255.255.255.0
> >> # route add default gw 192.168.1.5
> >> # vi /etc/resolv.conf
> >> Add hostIP as nameserver, your hostIP will be 192.168.1.5 as explained later
> >> → nameserver 192.168.1.5
> >>
> >> # export http_proxy=“http://192.168.36.204:8080
> >>
> >> the last step set the variable to our local proxy and port number , change this according to the connection on
> >> your host machine.
> >
> > I only found /sys/module/g_ether/ where is parameters folder with text
> > files dev_addr, host_addrm qmult
> > No such thing as g_ether.ko driver. Can’t find any normal tutorial on
> > this.
>
> That module is already built-in, that’s why you can’t find the *.ko driver…
>
> >
> > Do I need to do something like insmod g_ether.ko on ubuntu, or maybe
> > everything already works by default?
> > Also I poorly understand all these IP, mask & gateway things.
> >
> > If these are needed:
> >
> > ifconfig on beagleboard gives:
> >
> >> 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
> >>
> >> usb0 Link encap:Ethernet HWaddr ca:40:b7:51:5e:ae
> >> inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
> >> inet6 addr: fe80::c840:b7ff:fe51:5eae/64 Scope:Link
> >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> >
> > ifconfig on my PC (ubuntu lucid) gives:
> >
> >> eth0 Link encap:Ethernet HWaddr 00:69:00:12:00:83
> >> UP BROADCAST MULTICAST MTU:1500 Metric:1
> >>
> >> eth1 Link encap:Ethernet HWaddr 00:e0:4c:25:7e:6e
> >> inet addr:78.84.232.77 Bcast:78.84.255.255 Mask:255.255.224.0
> >> inet6 addr: fe80::2e0:4cff:fe25:7e6e/64 Scope:Link
> >> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> >>
> >> 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
> >>
> >> usb0 Link encap:Ethernet HWaddr 0a:9e:e3:7d:bf:19
> >> inet6 addr: fe80::89e:e3ff:fe7d:bf19/64 Scope:Link
> >> UP BROADCAST RUNNING MULTICAST MTU:1494 Metric:1
> >
> > Sorry if my request seems stupid, but I just need to get board
> > running, and all tutorials I find by google are mostly for Angstrom.
> > Thank you.
>
> I personally have never used this type of networking setup, but some
> users have claimed it’s worked…
>
> I usually point people to this tutorial from openmoko on setting up
> usb-otg networking…
>
> http://wiki.openmoko.org/wiki/USB_Networking
>
> Regards,
>
> –
> Robert Nelson
> http://www.rcn-ee.com/
>
> –
> You received this message because you are subscribed to the Google Groups “Beagle Board” group.
> To post to this group, send email to beagleboard@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

|