Tag Archives: 8188eu

New script to compile TP-Link TL-WN725N version 2 lwfinger driver in Raspbian

This script overrides the old “Compile and install driver for TP-Link TL-WN725N version 2 in Raspbian“.

I’ve tried it with 3.10.33+ and worked perfectly but it failed for 3.10.24+ (I got the usual “ERROR: could not insert '8188eu': Exec format error“). It would be nice if people could give me their results for different kernel versions.


# Get linux source code, prepare config files and create symlinks
VERSION=`uname -r | awk -F'.' '{print $1"."$2}'`
cd ~
wget https://codeload.github.com/raspberrypi/linux/tar.gz/rpi-${VERSION}.y -O rpi-${VERSION}.y.tar.gz
sudo tar zxf rpi-${VERSION}.y.tar.gz -C /usr/src/
cd /usr/src/linux-rpi-${VERSION}.y/
sudo bash -c "zcat /proc/config.gz > /usr/src/linux-rpi-${VERSION}.y/.config"
# In the next step you may be prompted questions about the configuration
# if your /proc/config.gz does not answer them (new features for example)
sudo make oldconfig
sudo make modules_prepare
sudo wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers
sudo ln -s /usr/src/linux-rpi-${VERSION}.y /lib/modules/`uname -r`/source
sudo ln -s /usr/src/linux-rpi-${VERSION}.y /lib/modules/`uname -r`/build
# Optional
#sudo ln -s /usr/src/linux-rpi-${VERSION}.y /usr/src/linux-`uname -r`
#sudo ln -s /usr/src/linux-rpi-${VERSION}.y /usr/src/linux

# Get driver source, compile, install and load it
cd ~
git clone https://github.com/lwfinger/rtl8188eu.git
cd rtl8188eu
# This wil take around 20 minutes
make all
sudo make install
# After this step you should have those new files installed:
# /lib/modules/`uname -r`/kernel/drivers/net/wireless/8188eu.ko
# /lib/firmware/rtlwifi/rtl8188eufw.bin
sudo modprobe 8188eu

# Remove driver and linux source code to recover some space (around 700MB)
# Leave those lines commented if you want to keep the code for future compilations
#sudo rm /lib/modules/`uname -r`/source
#sudo rm /lib/modules/`uname -r`/build
#sudo rm /usr/src/linux-`uname -r`
#sudo rm /usr/src/linux
#sudo rm -R /usr/src/linux-rpi-${VERSION}.y
#cd ~
#rm rpi-${VERSION}.y.tar.gz
#rm -R rtl8188eu

TP-Link TL-WN725N

Ref: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=71&t=17666&p=179845

Disable power management for TL-WN725N (8188eu driver) in Raspbian

If your wifi connections switches off after being connected for some time sometimes it may be fixed by disabling the power management so it never goes to power saving mode. Create the file /etc/modprobe.d/8188eu.conf with this content:

options 8188eu rtw_power_mgnt=0 rtw_enusbss=0

Restart Raspbian and check those options with those commands:

$ cat /sys/module/8188eu/parameters/rtw_power_mgnt
$ cat /sys/module/8188eu/parameters/rtw_enusbss

TP-Link TL-WN725N

Ref: https://github.com/xbianonpi/xbian/issues/217

TP-Link TL-WN725N version 2 in Raspbian 2014-01-07-wheezy-raspbian with kernel 3.10.25+

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

Thanks to http://www.mendrugox.net I’ve been able to use the TP-Link TL-WN725N version 2 in the latest Raspbian 2014-01-07-wheezy-raspbian with kernel 3.10.25+. This was the procedure:

wget -O 8188eu_31024_614.zip http://www.mendrugox.net/downloads/14
unzip 8188eu_31024_614.zip
sudo mv 8188eu.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
sudo chown root:root /lib/modules/`uname -r`/kernel/drivers/net/wireless/8188eu.ko
sudo mv rtl8188eufw.bin /lib/firmware/rtlwifi/
sudo chown root:root /lib/firmware/rtlwifi/rtl8188eufw.bin
sudo depmod -a
sudo modprobe 8188eu

Edit /etc/netwok/interfaces like this and add your networks SSID and password:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0

iface wlan0 inet dhcp
        wpa-ssid "YOUR-NETWORK-SSID"
        wpa-psk "YOUR-PASSWORD"

Then reboot your Raspberry Pi and it should connect to your wifi network automatically. You should see the wlan0 device when running ifconfig:

$ ifconfig
wlan0     Link encap:Ethernet  HWaddr a0:f3:c1:14:53:ca
          inet addr:  Bcast:  Mask:
          RX packets:96 errors:0 dropped:4 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:18513 (18.0 KiB)  TX bytes:2746 (2.6 KiB)

TP-Link TL-WN725N

Ref: http://www.mendrugox.net/2013/08/tp-link-tl-wn725n-v2-working-on-raspberry-raspbian/

TP-Link TL-WN725N version 2 in Raspberry Pi

Version 2 of TP-Link TL-WN725N driver doesn’t come by default in Raspbian so it won’t work by just plug-ining it in.

TP-Link TL-WN725N

You can compile the driver by yourself (slow) or just download an already compiled one and install it.

Due to the problems people has been having with the error “ERROR: could not insert ’8188eu’: Exec format error.” I’ve compiled and tested the driver for both 2013-02-09-wheezy-raspbian and 2013-09-25-wheezy-raspbian for kernel 3.6.11+.

2013-02-09-wheezy-raspbian kernel 3.6.11+:
2013-09-25-wheezy-raspbian kernel 3.6.11+:
2014-01-07-wheezy-raspbian kernel 3.10.25+: Provided by http://www.mendrugox.net go to TP-Link TL-WN725N version 2 in Raspbian 2014-01-07-wheezy-raspbian with kernel 3.10.25+

wget https://tech.enekochan.com/wp-content/uploads/2013/rtl8188eu/liwei/2013-09-25-wheezy-raspbian-3-6-11/8188eu.ko
sudo install -p -m 644 8188eu.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
sudo depmod -a
sudo modprobe 8188eu

You’ll probably want your Raspberry PI to connect to the wifi on boot. In that case edit /etc/network/interfaces to configure the SSID and the password of your wifi network:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0

iface wlan0 inet dhcp
        wpa-ssid "ssid"
        wpa-psk "password"

Test it by turning down and up the connection and verifying with ifconfig that wlan0 now has an IP:

sudo ifdown wlan0
sudo ifup wlan0

If you see this messages don’t worry as far as everything works OK (I don’t know why those happend but the connection works anyway):

ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument

Previously I had been using the Wifi Config (wpa_gui) application to configure my wifi network settings under the desktop environment. This application automatically configures /etc/network/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf files:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev


But it stoped working with the lastest version of the driver.

If you use this method and want to force wpa_supplicant to reconnect to the wifi just run this:

sudo wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

I also had to configure the DNS servers to be able to resolve names from the internet. This is done by editing the /etc/resolv.conf file. Just add your DNS servers (usually your ISP gives you those IPs) or use and (DNS servers from Google):


Source: http://blog.pi3g.com/2013/05/tp-link-tl-wn725n-nano-wifi-adapter-v2-0-raspberry-pi-driver/