BananaPro/Pi:Add Wifi driver

From BananaPro/Pi
Jump to: navigation, search


There is AP6181 Wifi module on the bananaPro,so we can install the wifi driver in order to support many applications which is related with the WIFI.
Some system which can be downloaded in has provided wifi driver by default.
but the other do not have the wifi driver.If you want to add wifi driver,you may operate step by step as follows.


Step 1: If you have not the BSP and linux kernel repository,you should get BSP and kernel repository firstly.

sudo git clone
sudo git clone

Step 2: Set default kernel configuration:

cd lemaker-bsp/linux-sunxi/
sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7i_defconfig

Step 3:You can open some kind of kernel configuring software or close the useless kernel configuration by editing your kernel configuration:

sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig

According to the flowing path,select “M” for AP6210. Device Drivers ---> [*] Network device support ---> [*] Wireless LAN ---> <M> AMPAK AP6210 wireless/bluetooth module support (/lib/firmware/ap6210/fw_bcmxxxx.bin) Firmware path (/lib/firmware/ap6210/nvram_apxxxx.txt) NVRAM path

Step 4: Building uImage and modules:

sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage 
sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

Step 5: create the full module tree:

sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules_install

The INSTALL_MOD_PATH option specifies the directory where the full module tree will be made available. In this example, it will be the output directory under the kernel build directory itself.
Now you have the following residing in your kernel tree:


Step 6: Copy arch/arm/boot/uImage file over to /boot on board and copy output/lib/modules/3.4.103/kernel/drivers/net/wireless/ap6210/ap6210.ko file over to /lib/modules/3.4.103/kernel/drivers/net/wireless/ap6210/ on board ,and then install it into your kernel with the following commands (on the device as root):

modprobe -r ap6210
install -p -m 644 ap6210.ko /lib/modules/3.4.103/kernel/drivers/net/wireless/
modprobe ap6210