http://shallowsky.com/blog/hardware/talking-to-beaglebone.html
On the beaglebone:
/sbin/route add default gw 192.168.7.1 echo "nameserver 8.8.8.8" >> /etc/resolv.confYou'll probably want to add these lines to the end of /usr/bin/g-ether-load.sh on the BBB, so they'll be run automatically every time you boot. Then, back on your Linux host, do this:
sudo iptables -A POSTROUTING -t nat -j MASQUERADE echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/nullNow you should be able to ping, ssh or otherwise use the BBB to get anywhere on the net.
Once your network is running, you might want to run
/usr/bin/ntpdate -b -s -u pool.ntp.org
to set the time, since the BBB doesn't have a real-time clock (RTC).Scripts for configuration after automatic connection
http://www.circuidipity.com/getting-started-with-beaglebone-black.html
No comments:
Post a Comment