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.

UPDATE!
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+:
https://tech.enekochan.com/wp-content/uploads/2013/rtl8188eu/liwei/2013-02-09-wheezy-raspbian-3-6-11/8188eu.ko
2013-09-25-wheezy-raspbian kernel 3.6.11+:
https://tech.enekochan.com/wp-content/uploads/2013/rtl8188eu/liwei/2013-09-25-wheezy-raspbian-3-6-11/8188eu.ko
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
ifconfig

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
update_config=1

network={
       ssid="XXXX"
       psk="XXXXXXXXXXXX"
       proto=RSN
       key_mgmt=WPA-PSK
       pairwise=CCMP
       auth_alg=OPEN
}

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 8.8.4.4 and 8.8.8.8 (DNS servers from Google):

nameserver 8.8.4.4
nameserver 8.8.8.8

Source: http://blog.pi3g.com/2013/05/tp-link-tl-wn725n-nano-wifi-adapter-v2-0-raspberry-pi-driver/
https://www.zhujunsan.net/index.php/2013/03/make-tp-link-tl-wn725n-v2-work-on-raspbian/
http://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis

You might also like

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...

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...

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...

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...

Leave a comment ?

26 Comments.

  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@Pc-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@xbian ~ $ sudo depmod -a
    xbian@xbian ~ $ sudo modprobe 8188eu
    ERROR: could not insert ‘8188eu’: Exec format error

    • No soy Google. Soy una persona y debes tratarme como tal. Poniéndome así las cosas esperas que te ayude?

  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@rasp02:~# 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@raspberrypi ~ $ sudo modprobe 8188eu
    ERROR: could not insert ‘8188eu’: Exec format error

  11. Willie Medina

    Excelente man!! Me ayudaste enormemente.
    Gracias.

  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

This site uses Akismet to reduce spam. Learn how your comment data is processed.