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.

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+:
http://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+:
http://tech.enekochan.com/wp-content/uploads/2013/rtl8188eu/liwei/2013-09-25-wheezy-raspbian-3-6-11/8188eu.ko

wget http://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
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: http://www.raspberrypi.org/downloads 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 ?

21 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 ~ $ 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

  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

  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

Reply to rolsch ¬
Cancel reply