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:
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.koNow 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:1usb0 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:1eth1 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:1lo 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:1usb0 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