Fixing WiFi on BananaPi Pro

Recently was turned on to DietPi through a YouTube video where it was recommended for use with ownCloud. I encountered issues with the wifi initially and found a simple, easy fix. I am posting this for my own record and if others encounter the same issue.

I wanted to try it out on my BananaPi Pro (armv71). Installed and started working on the first try, except the Wifi. I could enable WiFi through dietpi-config but ifup would fail lsmod did not show the device having loaded.

Initially I found older articles that advised that the ap6221 driver needed to be loaded. I started hunting around and found some odd methods to patch this through github. This did not feel like the right solution yet I did try the solutions I had found, none of them worked.

Looking into dmesg further, I noticed errors surrounding brcmfmac43362-sdio.txt not being found or loaded. Further investigation lead me to check the /lib/firmware/brcm/ folder and I could here find brcmfmac43362-sdio.bin yet no txt file.

I found a copy of the file in the bananian distro: https://github.com/nisenbeck/bananian/blob/master/deb/u-boot-m2-bananian_armhf/lib/firmware/brcm/brcmfmac43362-sdio.txt

I ran the following commands:

cd /lib/firmware/brcm/
wget https://raw.githubusercontent.com/nisenbeck/bananian/master/deb/u-boot-m2-bananian_armhf/lib/firmware/brcm/brcmfmac43362-sdio.txt
reboot

The wifi worked upon bootup.

If you are looking to use WiFi out of the box, here are (Optional) steps you can take:

Pre-configure Wifi Details for DietPi on BananaPi Pro

Enjoy!

Nice!!! Very cool, thanks for the walkthru