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.

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+:

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):



You might also like

Compile and install driver for TP-Link TL-WN725N version 2 in Raspbian
NOTICE! This module is now deprecated as for kernel >= 3.10.0. If you update with rpi-update the module...
Make Raspbian run from an external USB hard drive or USB memory stick
Raspberry Pi can ONLY boot from the SD Card. If you want to use your Raspberry Pi from an external USB...
Install Raspbian RAW image into an SD Card in Mac OS X
First download a Raspbian RAW image from here: Plug-in your SD...
Fix locale problems in Raspbian
If you get errros like this while running commands on your Raspbian: perl: warning: Setting locale...
Leave a comment ?


  1. hi guys! does anybody know how to get this TP-Link TL-WN725N works on mac os x 10.8.3 ? did not find any working instruction on internet…thanks

  2. Hola amigo, una consulta, hago todo los pasos pero al final me sale este error:

    ericksystem ~ $ sudo modprobe 8188eu
    FATAL: Error inserting 8188eu (/lib/modules/3.5.0-17-generic/kernel/drivers/net/wireless/8188eu.ko): Invalid module format

    Que cosa podrá ser….. gracias

    • Esta guía es para instalar el driver en Raspbian. Veo que tu host se llama “Pc-ErickSystem” así que… lo estás ejecutando en un PC?

  3. xbian ~ $ sudo depmod -a
    xbian ~ $ sudo modprobe 8188eu
    ERROR: could not insert ’8188eu’: Exec format error

  4. be care of ssid need to be case sensitive, while its not in Windows world.

  5. Hi, I’m using this driver and I’ve been trying to change the MAC address for my wireless and it won’t seem to work. I’ve tried a few different methods to change it. When I use the ifconfig command like so:

    sudo lfconfig wlan0 down
    sudo ifconfig wlan0 hw ether
    sudo ifconfig wlan0 up

    The MAC address remains unchanged and I receive no error.

    When I use macchanger, I receive the following:

    ERROR: Can’t read permanent MAC: Operation not supported
    Permanent MAC: 00:00:00:00:00:00 (Xerox Corporation)
    Current MAC: 64:66:b3:09:24:6a (unknown)
    New MAC: 4e:53:50:4f:4f:46 (unknown)

    Does this driver simply not support changing the MAC address?

  6. Worked great. Thanks for posting this! Was stuck for a while trying to get this to work!

  7. Hola amigo, buena aportación… no tendrás el controlador para el WN723N?? estoy haciendo pruebas con ambos

    • El controlador del TL-WN723N viene ya integrado de origen en Raspbian. Funciona sin tener que hacer nada en el kernel.

  8. Hola, ya me he descargado el archivo que tu aportas. Y me gustaria saber como instalarlo. Lo meto en la SD de la raspberry? Me gustaria utilizarlo con RaspBMC. Y cuando lo instale como configuro eso que tu dices. Dandole a shift al principio cuando aparece para entrar?. Muchas gracias por tu ayuda y tu aporte y espero que me puedas ayudar.

  9. Buenas! Muchas gracias por tu articulo y por dejar en enlance del modulo compilado, he seguido las instrucciones y cuando llega la hora de probarlo da error de formato:

    root:~# sudo modprobe 8188eu
    ERROR: could not insert ’8188eu’: Exec format error

    he probado ambos links con el mismo resultado ¿? se te ocurre que puede ser? Gracias!

  10. With the last rpi update the files dont works:

    Linux raspberrypi 3.10.18+ #577 Tue Nov 5 12:33:36 GMT 2013 armv6l GNU/Linux

    pi ~ $ sudo modprobe 8188eu
    ERROR: could not insert ’8188eu’: Exec format error

  11. Excelente man!! Me ayudaste enormemente.

  12. Gracias por el driver!

    ¿Están las correcciones de los led y el debug en el driver que has compilado?

    • Pues la verdad es que no lo recuerdo jejeje

      • xD

        Se que es mucho pedir, pero podrías editar el rpi-rtl8188eu/include/autoconf.h y:
        - descomentar la línea #define CONFIG_LED
        - comentar la línea #define CONFIG_DEBUG_RTL819X

        Me pasé todo el domingo intentando comilar el driver y nada, errores de compilación por todos lados (daemonize, un fuente al que le falta algún include…)

        Gracias y un saludo!

      • Buenas otra vez
        ¿Si compilo con el repositorio de lwfinger en lugar de usar el de liwei podré compilar sin errores?
        ¿El driver funcionará en el raspbian?

        Un saludo!


Leave a Comment