Firefox working in BeagleBoard
NAT stands for Network Address Translation. This concept allows to route a packet with changed address header so that the packet can be transported from one network to another.
Here is how it works for BeagleBoard.
Power up the BeagleBoard and connect it to your host computer using USART using minicom.
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.
On the Host computer:-
# ifconfig usb0 192.168.1.5 netmask 255.255.255.0
# sudo vi /etc/sysctl.conf
uncomment the line net.ipv4.ip_forward=1 , to enable forwarding of packets.
# sudo sysctl -p
# sudo cat /proc/sys/net/ipv4/ip_forward
to check that the change has been made and routing is enabled
# sudo iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
# sudo iptables --append FORWARD --in-interface usb0 -j ACCEPT
Now you can realise the power of opkg and install the packages, driver directly from the repositories