Page 1 of 1

[GUIDE] RTL8188EU WiFi module (TP-Link TL-WN725N V2)

Unread postPosted: Sun Jul 07, 2013 10:28 pm
by saliamis
wireless.jpg
The WiFi module used
wireless.jpg (66.25 KiB) Viewed 22110 times


Hi all,

I was able to use micro TL-WN725N v2 WiFi module successfully with ODROID U2 & connect to WPA2-PSK protected AP.
Since the driver is not available off-the-shelf, one needs to recompile the module driver source using correct kernel version sources.
My OS is the official Debian Wheezy distro availble from here: viewtopic.php?f=9&t=1608

This guide is highly based on this source with some exceptions: https://zozs.se/2013/05/23/tp-link-wn72 ... linux-arm/

Here are the detailed steps on how to compile the 8188EU module:

1. Update your OS kernel to latest version (can be skipped if your OS version is same as the kernel sources that will be downloaded later - see step 2)
Code: Select all
wget http://builder.mdrjr.net/tools/kernel-update.sh
chmod +x kernel-update.sh
sudo ./kernel-update.sh

2. Download latest kernel sources & unpack to /usr/src/linux
Code: Select all
wget https://github.com/hardkernel/linux/archive/odroid-3.8.y.zip
mv odroid-3.8.y.zip /usr/src/linux.zip
cd /usr/src
7z x -y linux.zip
# add a symlink to the source tree
ln -s linux-odroid-3.8.y linux

3. Ensure the downloaded kernel sources version matches your system kernel version
Code: Select all
cd /usr/src/linux
# compare the versions after issuing commands below - if versions do not match - update the kernel (see step 1)
uname -a
head Makefile

4. Copy the required configuration file to kernel source main directory
Code: Select all
# see which ODROID configuration files are availabe to you and copy the required one to the source directory
ll arch/arm/configs
cp arch/arm/configs/odroidu2_defconfig ./.config

5. (optional) Install ncurses library (may be required when configuring kernel using menuconfig)
Code: Select all
apt-get install libncurses5-dev

6. Run kernel source configuration
Code: Select all
# when menu shows up just select "Exit" to save default configuration file
make menuconfig
make prepare
make modules_prepare

7. Download the wifi 8188EU module driver source
Code: Select all
git clone https://github.com/lwfinger/rtl8188eu

8. Build the driver from source
Code: Select all
cd rtl8188eu
make clean
CONFIG_RTL8188EU=m make -C /usr/src/linux M=`pwd`

9. Copy the built driver to modules directory & install it
Code: Select all
cp 8188eu.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
depmod -a
modprobe 8188eu

10. Check if module has installed successfully (should be listed as "8188eu" in loaded modules after running the command below)
Code: Select all
lsmod

Ensure that "wlan0" has appeared by invoking:
Code: Select all
ifconfig

11. Do a simple scan to see if WiFi is working
Code: Select all
iwlist wlan0 scan

Ok, now you're done. If all went successfully, the WiFi can be further configured & used. Example configuration steps are given below (for WPA).
The built .ko file can be downloaded below.


Compiled for version: Linux odroid-wheezy 3.8.13.3 #1 SMP PREEMPT Sat Jun 22 00:52:21 BRT 2013 armv7l GNU/Linux
https://drive.google.com/file/d/0B_dz2N ... sp=sharing

------------------------------------------------------------------------------------------------
Troubleshooting:

NOTE: If installation failed, then check kernel debug messages for some info, run:
Code: Select all
dmesg

If you see something like:
8188eu: version magic '3.8.13.4 SMP preempt mod_unload ARMv7 p2v8 ' should be '3.8.13.3 SMP preempt mod_unload ARMv7 p2v8 '
This means that the OS kernel version and used kernel source version differs (see step 1 to update OS kernel version to latest version, re-check kernel source version, repeat all the build steps). If it still does not work, try removing version information & re-copy new driver file to module directory:
Code: Select all
make strip
cp 8188eu.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/


------------------------------------------------------------------------------------------------
Example WiFi configuration steps (WPA):

1. Generate WPA configuration file (replace ESSID with your WiFi access point name & "passwd" with your password for it)
Code: Select all
wpa_passphrase ESSID passwd > /etc/wpa_supplicant.conf

2. Configure the wlan0 interface by appending this configuration to /etc/network/interfaces file:
Code: Select all
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf

3. Restart your ODROID
Code: Select all
reboot

Re: [GUIDE] RTL8188EU WiFi module (TP-Link TL-WN725N V2)

Unread postPosted: Fri Jun 13, 2014 5:56 pm
by pmousoul
Hello guys,

I've tried this guide with the 3.8.13.23 kernel but no luck.

Does anyone have better results with this wifi module and the recent 3.8.13.23 kernel?


BTW, executing ifconfig, I get the following:

Code: Select all
root@odroid:/usr/src/linux/rtl8188eu# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 1e:f6:d7:be:00:ad 
          inet addr:10.0.1.172  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::1cf6:d7ff:febe:ad/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:113123 errors:0 dropped:0 overruns:0 frame:0
          TX packets:76305 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:160361039 (160.3 MB)  TX bytes:7030183 (7.0 MB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1172 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1172 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:157811 (157.8 KB)  TX bytes:157811 (157.8 KB)

lxcbr0    Link encap:Ethernet  HWaddr 4e:86:3b:59:89:76 
          inet addr:10.0.3.1  Bcast:10.0.3.255  Mask:255.255.255.0
          inet6 addr: fe80::4c86:3bff:fe59:8976/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:10327 (10.3 KB)

wlan12    Link encap:Ethernet  HWaddr e8:94:f6:23:5e:aa 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)



So, the TP-Link TL-WN725N V2 appears as wlan12.

When I give the ifconfig wlan12 up i get

Code: Select all
root@odroid:/usr/src/linux/rtl8188eu# ifconfig wlan12 up
SIOCSIFFLAGS: Operation not permitted



The output of iwlist wlan12 scan is

Code: Select all
root@odroid:/usr/src/linux/rtl8188eu# iwlist wlan12 scan
wlan12    No scan results



And finally the GUI app says in WiFi networks that "device is not ready".


So, if anyone has something to propose, please do! :)

Thanks for your time,
Panayiotis

Re: [GUIDE] RTL8188EU WiFi module (TP-Link TL-WN725N V2)

Unread postPosted: Sat Jun 14, 2014 4:33 pm
by pmousoul
It seems that the problem was the missing firmware.. so from the driver git link:

Code: Select all
The network manager says: "Device is not ready"!

Make sure you copied the firmware (rtl8188eufw.bin) to /lib/firmware/rtlwifi/


I followed this and problem solved.


Cheers,
Panayiotis

Re: [GUIDE] RTL8188EU WiFi module (TP-Link TL-WN725N V2)

Unread postPosted: Tue Jun 24, 2014 4:42 pm
by lzy
Does this work for XU?

Re: [GUIDE] RTL8188EU WiFi module (TP-Link TL-WN725N V2)

Unread postPosted: Wed Nov 12, 2014 11:38 pm
by sirblimes
Does it work for ODROID-XU3 ?

Re: [GUIDE] RTL8188EU WiFi module (TP-Link TL-WN725N V2)

Unread postPosted: Sat Mar 28, 2015 4:59 am
by RamblingBarba
I am a linux newbie as well as a Odroid newbie. I have a U3 that I received this week. I have run the above code and I can't get the Dongle running. I am using the 14.04.2 IMG from the Odroid site. I opened the browser on the U3 so I could copy/paste the code so as not to miss anything. I am a little hemmed in by the HDMI+Ethernet combo. I only have a short time to try to get the wifi connected then I have to take down my setup.

I get to the 3rd part of step 8-- CONFIG_RTL8188EU=m make -C /usr/src/linux M=`pwd` in the out in the terminal I get these lines--

Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

What will I need to post the next time to help discover my problem?
Do I use the above code as written or do I need to change references? I see that the OP uses WHeezy.
Thanks for any help you may be able to provide.

EDIT**** I got it working!! :D What I found was if I left out the steps in box 4

# see which ODROID configuration files are availabe to you and copy the required one to the source directory
ll arch/arm/configs
cp arch/arm/configs/odroidu2_defconfig ./.config

Then it ran and compiled a driver the very first time I ran it. If I used those commands then I got errors. I have connected and am updating software through this Wifi dongle now. This for U3 using the Ubuntu 14.04.2 IMG from 2/25/15.

Re: [GUIDE] RTL8188EU WiFi module (TP-Link TL-WN725N V2)

Unread postPosted: Sun May 03, 2015 7:59 am
by imbur
Hi!
Big thanks for the post, it helped me. I want to add, that it can be important to use 7z tool to unzip the sources, because unzip messed up the Kconf files for me.
If anyone is interested, I uploaded a working version for Odroid-U3 with kernel version 3.8.13.30.
download link: https://www.dropbox.com/s/1my2ubiip4ive ... eu.ko?dl=0
Cheers,
Marci

Re: [GUIDE] RTL8188EU WiFi module (TP-Link TL-WN725N V2)

Unread postPosted: Fri Jun 19, 2015 4:46 am
by pmonjo
I just wanted to thank you. Your very comprehensive post guided me and now I have my wifi adapter working. :-)

Re: [GUIDE] RTL8188EU WiFi module (TP-Link TL-WN725N V2)

Unread postPosted: Sun Jan 14, 2018 12:52 am
by wheely
Just saying
Big thanks for the post, it helped me.
If anyone is interested, I uploaded a working version for Odroid-XU4 with kernel version 4.14.13+
download link: https://drive.google.com/open?id=1JLs26lf3rRomDRamgdQpb6AVu-_zHFlR

see ya ;-)