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

This will take quite long…

Note: 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 is the 8188eu.ko I compiled my self.

Source: https://github.com/liwei/rpi-rtl8188eu

Leave a comment ?

20 Comments.

  1. Can you help us by specifing how should a noob behave in front of the hundreds of options when running “make modules_prepare” ?

  2. I’ve got this wifi dongle, I’ve the intention to use it in a prototype I am working on (http://traffic.integreen-life.bz.it/wiki/prototype),
    Do you know the difference between the two repositories github.com/lwfinger/rtl8188eu and github.com/liwei/rpi-rtl8188eu; I successfully compiled and used both.

    • I read somewhere that one of them used the blue led to show status of connection and such. I don’t know the internal differences.

  3. Hi there,

    i can’t use the precompiled driver. Therefore i tried it on my own and got stugged here:

    sudo zcat /proc/config.gz > .config
    -bash: .config: Permission denied

    How shall i get over this?

  4. Hey thx for reply,

    long story short, i made it. I had to create the emtpy file first, then chmod rights on it and that made the trick.
    Now i got my Pi running the TL-WN725N V2 on Soft-float Debian “wheezy” (2013-05-29-wheezy-armel).
    Therefore i would like to e-mail the file one of u to share it under github. Any volunteers?

    Greets

  5. when I send:

    zcat /proc/config.gz > .config

    I get:

    gzip: /proc/config.gz: No such file or directory

    • Are you using Raspbian?

      • No, I’m sorry… I was trying with xbian

      • anyway, xbian is based on raspbian, is there anything else I can do?

        • Google for “xbian /proc/config.gz”. Second result:

          check kernel .config setup (under /proc/config.gz – if missing, do a “sudo modprobe configs”).

          • just found it, now I’m trying to finish, I will post if it works, thank you

          • when I give:

            make modules_prepare

            I get:

            scripts/kconfig/conf –silentoldconfig Kconfig
            warning: (DRM) selects DMA_SHARED_BUFFER which has unmet direct dependencies (EXPERIMENTAL)
            *
            * Restart config…
            *
            *
            * General setup
            *
            Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [N/y/?] (NEW)

  6. Hi,
    thanks for this info!
    I built the module, but I get the following error with my and yours .ko
    “root ~/tplink/rpi-rtl8188eu # modprobe 8188eu
    ERROR: could not insert ’8188eu’: Exec format error”
    Do you have an idea of what is going wrong here?

    Thanks
    Dennis

  7. It asks for a usernamen and password!?

  8. I tried these instructions on my RPi model A, raspberrypi 3.6.11+ #541 PREEMPT, based on the original Wheezy images and all the updates.
    But it seems the last update breaks the driver.
    I followed all the steps, not an single error until last step “sudo modprobe 8188eu”, ERROR: could not insert ’8188eu’: Exec format error.

    Please help, I tried so many other webpages and this one looked promising.

Reply to enekochan ¬
Cancel reply

Trackbacks and Pingbacks: