Below is a short video on getting started with the Beaglebone Black (BBB) using only the USB network adapter. This is a very useful feature of the BBB, as within a typical university network student laptops/tablets/phones have access via WiFi and to get started with a networked embedded system you typically need a wired network connection. Often for security reasons there are restrictions on IP traffic between networks, making getting started over Ethernet very difficult. The alternative is cross-over cables but this can make Internet access difficult. This video looks at how you can set up the BBB to use the USB network adapter under Windows making initial configuration very straightforward and resulting in the BBB having full internet connectivity.
The scripts mentioned in this video and source code examples are listed below:
echo "Setup script for the EE402 module - Derek Molloy"
echo "Setting up the default gateway"
/sbin/route add default gw 192.168.7.1
echo "Updating the nameserver entry"
echo "nameserver 184.108.40.206" >> /etc/resolv.conf
echo "Setting the time using the Irish ntp pool"
/usr/bin/ntpdate -b -s -u ie.pool.ntp.org
The git configuration:
sslVerify = true
sslCAinfo = /etc/ssl/certs/ca-certificates.crt
And the source code:
using namespace std;
cout << "Hello from the Beaglebone Black (cpp)!" << endl;
With the build configuration:
echo "EE402 - Building the Test C++ Program on the Beaglebone Black"
g++ test.cpp -o test