Friday, October 30, 2015

RTL8188eu on Raspberry pi

Here's how to cross compile driver for RTL8188eu based wifi dongle

Before this, you need to compile your own raspibian kernel, see my old post:
After above process is OK, You'll have compiled kernel source and working root file system with working chroot (using qemu-arm-static) for raspberry pi board on your Desktop PC.

download source:
git clone

edit Makefile
ARCH ?= arm
CROSS_COMPILE ?= /arm-linux-gnueabihf-
KVER  :=
KSRC ?= 
MODDESTDIR := /modules//kernel/drivers/net/wireless/


As seen from Makefile
    install -p -m 644 8188eu.ko  $(MODDESTDIR)
    @if [ -a /lib/modules/$(KVER)/kernel/drivers/staging/rtl8188eu/r8188eu.ko ] ; then modprobe -r r8188eu; fi;
    @echo "blacklist r8188eu" > /etc/modprobe.d/50-8188eu.conf
    cp rtl8188eufw.bin /lib/firmware/.
    /sbin/depmod -a ${KVER}
    mkdir -p /lib/firmware/rtlwifi
    cp -n rtl8188eufw.bin /lib/firmware/rtlwifi/.

Now copy the 8188eu.ko & rtl8188eufw.bin to somewhere in your running raspberry system or chroot to raspberry folder with qemu-arm-static then do
install -p -m 644 8188eu.ko  /lib/modules/$(uname -r)/kernel/drivers/net/wireless/
depmod -a $(uname -r)
cp -n rtl8188eufw.bin /lib/firmware/rtlwifi/.

You can get my working copy of pre-compiled kernel 3.14y including working mt7601 & rtl8188eu driver from here:
Copy to your RaspberryPi SD Card somewhere, extract it, and forced copy to root folder, then Reboot with wifi dongle plugged, you should see the wlan in ifconfig.


No comments:

Post a Comment