Insert the dongle: BeagleBone WiFi

After forgetting to bring home an Ethernet dongle normally used to give the BBB Internet access, I had an excuse to set up wireless.

I used Michael Haberler’s instructions, which cover most of what you need; mainly, the location of linux-headers is missing and you’ll need to add dpkg. Here are the instructions that worked for me to install an RT8192-based WiFi dongle:

Install linux-headers:

sudo apt-get install dpkg
wget http://www.machinekit.net/deb/wheezy-armhf/v3.8.13xenomai-bone53/linux-headers-3.8.13xenomai-bone53_1.0cross_armhf.deb
sudo dpkg -i linux-headers-3.8.13xenomai-bone53_1.0cross_armhf.deb 

Build + install drivers:

git clone git://github.com/mhaberler/rtl8192cu_beaglebone.git
cd rtl8192cu_beaglebone
time make
sudo mv 8192cu.ko /lib/modules/$(uname -r)
sudo depmod -a
sudo bash -c 'echo "8192cu" > rtl8192cu-vendor.conf'
cd /etc/modprobe.d
sudo bash -c 'echo "install rtl8192cu /bin/false" >wifi_blacklist.conf'
sudo bash -c 'echo "install rtl8192c_common /bin/false" >>wifi_blacklist.conf'
sudo bash -c 'echo "install rtlwifi /bin/false" >>wifi_blacklist.conf'

Shut down, add the dongle, restart, and then check that it’s seen:

lsusb

Then add it to your network. Modify /etc/network/interfaces

# WiFi Example
auto wlan0
iface wlan0 inet dhcp
    wpa-ssid "network name goes here"
    wpa-psk  "password goes here"

Bring up the WiFi interface:

sudo ifdown wlan0
sudo ifup wlan0

That’s it! ~10 mins. The board should automatically connect after any reboot using DHCP.

Advertisements

One thought on “Insert the dongle: BeagleBone WiFi

  1. Pingback: Faster and easier! MachineKit install using packages | Design | Make | Share

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s