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.
[youtube id=”fzRVVtGNfj8″ width=”600″ height=”350″]
The scripts mentioned in this video and source code examples are listed below:
StartUSBNetwork:
1 2 3 4 5 6 7 8 9 10 |
#!/bin/sh 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 8.8.8.8" >> /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:
1 2 3 |
[http] sslVerify = true sslCAinfo = /etc/ssl/certs/ca-certificates.crt |
And the source code:
1 2 3 4 5 6 |
#include<iostream> using namespace std; int main(){ cout << "Hello from the Beaglebone Black (cpp)!" << endl; } |
With the build configuration:
1 2 3 4 |
#!/bin/bash echo "EE402 - Building the Test C++ Program on the Beaglebone Black" g++ test.cpp -o test echo "Finished" |