Compile and install driver for TP-Link TL-WN725N version 2 in Raspbian

UPDATE: Read this post if you have another version of the kernel and want a script to compile the driver by yourself: New script to compile TP-Link TL-WN725N version 2 lwfinger driver in Raspbian

Eneko
enekochan
2 min readMay 29, 2013

--

NOTICE!

If you are using Raspbian 2014–01–07-wheezy-raspbian with kernel 3.10.25+ go to TP-Link TL-WN725N version 2 in Raspbian 2014–01–07-wheezy-raspbian with kernel 3.10.25+. This module is now deprecated as for kernel >= 3.10.0. If you update with rpi-update the module will stop working. Linux kernel 3.12 now has built-in support for this wifi dongle.

Compiling the kernel module for this wifi device takes quite long (30 minutes more or less). If you don’t want to wait follow the instructions in how to install TP-Link TL-WN725N version 2.

git clone https://github.com/liwei/rpi-rtl8188eu.git
git clone --depth 1 git://github.com/raspberrypi/linux.git rpi-linux
git clone --depth 1 git://github.com/raspberrypi/firmware.git rpi-firmware
cd rpi-linux
make mrproper
zcat /proc/config.gz > .config
make modules_prepare
cp ../rpi-firmware/extra/Module.symvers .
cd ../rpi-rtl8188eu
CONFIG_RTL8188EU=m make -C ../rpi-linux M=`pwd`
sudo rmmod 8188eu
sudo install -p -m 644 8188eu.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
sudo depmod -a
sudo modprobe 8188eu

This wifi dongle comes with a small LED that blinks when it is active. By default this driver doesn’t use it. If you want it to be active edit the rpi-rtl8188eu/include/autoconf.h file and uncomment this line:

#define CONFIG_LED

This module also is very verbose at boot time because it has a debug flag defined. To get rid of those messages comment this line:

#define CONFIG_DEBUG_RTL819X

This is the 8188eu.ko I compiled myself from liwei repo for 2013–02–09-wheezy-raspbian with kernel Linux 3.6.11+.
This is the 8188eu.ko I compiled myself from liwei repo for 2013–09–25-wheezy-raspbian with kernel Linux 3.6.11+.

Source: https://github.com/liwei/rpi-rtl8188eu
http://bitacora.eniac2000.com/?p=3439

--

--