- Black Ewell case – it has a nice rubberised exterior and enough space for all of the other items I wanted to add;
- WD 1.0TB 2.5″ hard drive – the case is specific for 2.5″ disk and you can power it from the board. There is a 3.5″ adapter available, which requires a dedicated external power supply;
- 5300mAh Li-bartery – found on https://www.buyapi.ca/;
- 150M USB WiFi Module – explained lower why I use 2 WiFi adaptors;
- 2A USB power-supply – not necessary if you already have one and,
- Double-sided tape – to hold the battery in place.
Approximate over all cost is somewhere in $200-$250 (CAD): $100 of which was the 1TB drive (March 2014).
A WiFi hotspot
For a very small price, there is a USB WiFi Dongle (specifically for CubieBoard I and II) that I added to the set up to allow it to act as both a WiFi client and hotspot. Note: there are other ways that this would be possible, such as a script that auto-starts the hotspot after it detects there is no active WiFi, but I wanted to keep it simple for the initial project set up.
WiFi USB Dongle
$ sudo $ modprobe 8188eu $ ifconfig -a $ iwlist wlan1 scan
auto wlan1 iface wlan1 inte dhcp wpa-conf /etc/wpa.conf
$ ifconfig wlan1 down $ ifconfig wlan1 up $ ifconfig
Hotspot Software & Settings
Getting hostapd v2
$ sudo apt-get install git-core $ cd ~/ $ git clone git://w1.fi/srv/git/hostap.git $ cd hostap/hostapd $ cp defconfig .config $ sudo apt-get install -y build-essential pkg-config $ sudo apt-get install -y libnl-3-dev libnl-genl-3-dev libssl-dev
Edit the “.config” file and remove the ‘#’ from the beginning of the following lines:
CONFIG_LIBNL32=y CONFIG_IEEE80211N=y CONFIG_IEEE80211AC=y CONFIG_DEBUG_FILE=y CONFIG_HS20=y
$ sudo make $ sudo make install $ hostapd -v
Making a WiFi hotspot
interface=wlan0 driver=nl80211 ssid=test channel=1
I’m using the onboard WiFi ‘wlan0’ as the hotspot interface: to test, just start the hostapd application:
sudo hostapd /etc/hostapd.conf
use ‘control’ + ‘c’ keys together to terminate before continuing to the next bet.