Install WiFi dongle Drivers and configure
ErleBrain is supplied with Edimax USB WiFi dongles - Amazon: http://www.amazon.com/dp/B00FW6T36Y
First install linux kernel headers so that you can compile the driver on beaglebone itself.
Ref: http://dumb-looks-free.blogspot.jp/2014/06/beaglebone-black-bbb-kernal-headers.html
# Check what's available
apt-cache search linux-headers-
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install linux-headers-generic
# If the above doesn't work (e.g. headers for 3.8.13-bone64.1 is not available on https://rcn-ee.net/deb as it was custom built by Erle)
wget https://github.com/senzai/beaglebone-ubuntu-scripts/raw/master/bb-get-rcn-kernel-source.sh
# Change http to https in the script
# Add --no-check-certificate to wget commands in the script
Download the driver source
http://www.edimax.com/edimax/download/download/data/edimax/global/download/
Copy the driver source archive to /boot mounted on the host PC
On host Mac/Linux
cp rtl8812AU_*.tar.gz /Volumes/boot/Drivers/Linux
On BBB
cp /boot/uboot/Drivers/Linux/rtl8812AU_*.tar.gz ~/src/
# OR
cp /media/BEAGLEBONE/Drivers/Linux/rtl8812AU_*.tar.gz ~/src/
cd ~/src/
tar -xvzf rtl8812AU_*.tar.gz
Build the WiFi dongle driver
cd rtl8812AU_*
make ARCH=arm
sudo make install
*NOTE: Copying the driver to /lib/firmware/ won't do anything as the actual driver lives in vmlinuz/zImage. see: https://github.com/RobertCNelson/boot-scripts/issues/4 *
Setup WiFi network
apt-get install usbutils
lsusb
lsmod
iwconfig
wpa_passphrase your_ssid your_psk
# paste the output of the command above into the file below.
vim /etc/wpa_supplicant.conf
# Now start wpa_supplicant
wpa_supplicant -B -i interface -c /etc/wpa_supplicant.conf
# Check settings in these config files
/etc/udev/rules.d/70-persistent-net.rules
/etc/dnsmasq.conf
/etc/udhcpd.conf
/etc/udhcpd.conf-dual
/etc/init.d/apm4-startup.sh
sudo vim /etc/network/interfaces
sudo /etc/init.d/networking reload
sudo /etc/init.d/networking restart
sudo ifconfig wlan0 up
# For setting up a hotspot
vim /etc/hostapd/hostapd.conf
# change `ssid` and `wpa_passphrase` accordingly.
# If you want to use 2.4GHz instead of 5GHz, change `channel` to 9 and `h_mode` to g
# For 11g (2.4GHz)
channel=9
hw_mode=g
# For 11a (5GHz)
channel=40
hw_mode=a
References
- https://github.com/erlerobot/bbb-devicetree
- http://forum.erlerobotics.com/t/how-to-configure-your-wifi-dongle/162
- http://forum.erlerobotics.com/t/wifi-adapter-questions/77/5
- http://forum.erlerobotics.com/t/how-to-configure-your-wifi-dongle/162
- http://forum.erlerobotics.com/t/solved-cant-connect-to-apm-via-wifi/364
- http://erlerobotics.com/files/manuals/Getting_WIFI_in_Snappy_Ubuntu_Core_with_Erle-Copter.pdf
- https://wiki.debian.org/WiFi
- http://dumb-looks-free.blogspot.jp/2014/06/beaglebone-black-bbb-kernal-headers.html
- http://www.cubieforums.com/index.php?topic=3792.0
- https://learn.adafruit.com/beaglebone/wifi
- https://groups.google.com/forum/#!topic/beaglebone/Q92uD9F1us8
- http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=48&Level=5&Conn=4&ProdID=274&DownTypeID=3&GetDown=false&Downloads=true#2772
- http://www.cianmcgovern.com/getting-the-edimax-ew-7811un-working-on-linux/#comment-764845109
- http://derekmolloy.ie/beaglebone/beaglebone-adding-usb-wi-fi-building-a-linux-kernel/
- http://www.openrtm.org/openrtm/ja/content/beaglebone-blackの設定(os非依存)
- http://inspire.logicsupply.com/p/installing-wifi.html
- http://askubuntu.com/questions/380810/internet-over-usb-on-beaglebone-black
- http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Releases
- http://ubuntuforums.org/showthread.php?t=263136
- http://nordicgroup.us/bbb/wireless/
- https://groups.google.com/forum/#!topic/beaglebone/KB_zZ7f_vCk
- https://www.youtube.com/watch?v=Cf9hnscbSK8