Volumio 2 - Cubox WiFi work around

I find a work around to enable WiFi on my Cubox-i4pro. The following steps are the detail that need to be done on the Cubox.

  1. Download brcmfmac-4330-sdio.txt file and put it at /lib/firmware/brcm
    http://forum.solid-run.com/download/file.php?id=52&sid=ae54e543af0e8a819b444575b0efb548

  2. Reboot

  3. Run the following command to show your WiFi device, you should see wlan0
    iw dev

  4. Generate a wifi password config file
    wpa_passphrase [SSID] [wifi_password] > /etc/wpa_supplicant/wpa_supplicant.conf

  5. Connect to WiFi
    /sbin/wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

  6. Obtain IP
    /sbin/dhcpdc5 wlan0

In order to make it work after reboot, do the following
systemctl enable rc.local
add the following before exit 0 in /etc/rc.local
sleep 5
/sbin/wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
/sbin/dhcpdc5 wlan0

Cheers!