ilCONDOR
Posts: 1
Joined: Sun May 22, 2016 11:40 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Sun May 22, 2016 11:43 am

Hi guys,

I have just updated my RaspPi 2 to the last kernel version 4.4.11.

I was wondering when appropriate drivers will be released.

Thank you

MrEngman
Posts: 3871
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Sun May 22, 2016 1:39 pm

ilCONDOR wrote:Hi guys,

I have just updated my RaspPi 2 to the last kernel version 4.4.11.

I was wondering when appropriate drivers will be released.

Thank you
Try this

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/8188eu-4.4.11-v7-887.tar.gz
tar xzf 8188eu-4.4.11-v7-887.tar.gz
./install.sh

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

jbaramidze1
Posts: 2
Joined: Sun May 22, 2016 8:10 pm

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Sun May 22, 2016 8:14 pm

Hello, I got core using those drivers with TL_WN723N V3:

[email protected]:~$ uname -a
Linux raspberrypi 4.4.10+ #885 Fri May 13 15:30:07 BST 2016 armv6l GNU/Linux

downloaded 8188eu-4.4.10-885.tar.gz.

[ 169.671835] ==> rtl8188e_iol_efuse_patch
[ 169.993880] RTL871X: nolinked power save leave
[ 169.993984] RTL871X: set ssid [AndroidAPppp] fw_state=0x00000008
[ 170.064269] RTL871X: start auth
[ 170.066247] RTL871X: auth success, start assoc
[ 170.071305] RTL871X: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[ 170.071385] RTL871X: assoc success
[ 170.074294] ------------[ cut here ]------------
[ 170.075305] WARNING: CPU: 0 PID: 6 at net/wireless/sme.c:714 __cfg80211_connect_result+0x2a8/0x3d8 [cfg80211]()
[ 170.075379] Modules linked in: 8188eu(O) cfg80211 snd_bcm2835 rfkill snd_pcm snd_timer snd bcm2835_gpiomem bcm2835_wdt uio_pdrv_genirq uio 6
[ 170.075461] CPU: 0 PID: 6 Comm: kworker/u2:0 Tainted: G O 4.4.10+ #885
[ 170.075496] Hardware name: BCM2708
[ 170.076321] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[ 170.076447] [<c0016c9c>] (unwind_backtrace) from [<c0013c20>] (show_stack+0x20/0x24)
[ 170.076519] [<c0013c20>] (show_stack) from [<c02e31fc>] (dump_stack+0x20/0x28)
[ 170.076561] [<c02e31fc>] (dump_stack) from [<c0021e54>] (warn_slowpath_common+0x8c/0xc4)
[ 170.076596] [<c0021e54>] (warn_slowpath_common) from [<c0021f48>] (warn_slowpath_null+0x2c/0x34)
[ 170.077465] [<c0021f48>] (warn_slowpath_null) from [<bf1173c4>] (__cfg80211_connect_result+0x2a8/0x3d8 [cfg80211])
[ 170.078974] [<bf1173c4>] (__cfg80211_connect_result [cfg80211]) from [<bf0f3088>] (cfg80211_process_wdev_events+0x17c/0x20c [cfg80211])
[ 170.080496] [<bf0f3088>] (cfg80211_process_wdev_events [cfg80211]) from [<bf0f3154>] (cfg80211_process_rdev_events+0x3c/0x74 [cfg80211])
[ 170.081989] [<bf0f3154>] (cfg80211_process_rdev_events [cfg80211]) from [<bf0ee208>] (cfg80211_event_work+0x24/0x2c [cfg80211])
[ 170.083120] [<bf0ee208>] (cfg80211_event_work [cfg80211]) from [<c00374d0>] (process_one_work+0x11c/0x39c)
[ 170.083213] [<c00374d0>] (process_one_work) from [<c0037790>] (worker_thread+0x40/0x4d0)
[ 170.083273] [<c0037790>] (worker_thread) from [<c003d114>] (kthread+0xdc/0xf8)
[ 170.083312] [<c003d114>] (kthread) from [<c000f8a8>] (ret_from_fork+0x14/0x2c)
[ 170.083352] ---[ end trace 41ead3b861f1d18a ]---

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue May 24, 2016 10:44 am

This project is really amazing but I wonder why this driver is not in the official repositories?

Not being in the official repositories is really a pain when you update your kernel.

As far as I know, if you update your kernel via SSH... and if you don't have a wired connection... and even if you have a keyboard and LCD for local access... the adapter will no longer works, thus no Internet so no easy update...

This means that you need another computer to download the driver, put the driver into a pen, plug the pen in the Rpi, access the Rpi locally (needs a keyboard and LCD) and manually update the driver.

Right?!

Even though, keep it up :)

Regards,

Vasco
Vasco Ferraz

MrEngman
Posts: 3871
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue May 24, 2016 12:05 pm

VascoFerraz wrote:This project is really amazing but I wonder why this driver is not in the official repositories?

Not being in the official repositories is really a pain when you update your kernel.

As far as I know, if you update your kernel via SSH... and if you don't have a wired connection... and even if you have a keyboard and LCD for local access... the adapter will no longer works, thus no Internet so no easy update...

This means that you need another computer to download the driver, put the driver into a pen, plug the pen in the Rpi, access the Rpi locally (needs a keyboard and LCD) and manually update the driver.

Right?!

Even though, keep it up :)

Regards,

Vasco
There is a driver now included in the image which will handle this wifi adapter but if you have been using the driver I compile it will be disabled. You can enable the built in driver by deleting the file /etc/modprobe.d/8188eu.conf which includes the line blacklist r8188eu which stops the built in driver loading. There are, however, a number of folks who appear to prefer the driver I compile which is why I still compile it.

I have a script which will allow you to update my driver if you do a kernel update using rpi-update. This will allow you to run rpi-update and then before rebooting update the driver to the one for the new version of the kernel. Then after rebooting you should find your Pi will be connected to the internet via the wifi.

Try this

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz
tar xzf install-wifi.tar.gz
Then run command ./install-wifi -h to show details on how to use it.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue May 24, 2016 1:18 pm

MrEngman wrote: There is a driver now included in the image which will handle this wifi adapter but if you have been using the driver I compile it will be disabled. You can enable the built in driver by deleting the file /etc/modprobe.d/8188eu.conf which includes the line blacklist r8188eu which stops the built in driver loading. There are, however, a number of folks who appear to prefer the driver I compile which is why I still compile it.

I have a script which will allow you to update my driver if you do a kernel update using rpi-update. This will allow you to run rpi-update and then before rebooting update the driver to the one for the new version of the kernel. Then after rebooting you should find your Pi will be connected to the internet via the wifi.

Try this

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz
tar xzf install-wifi.tar.gz
Then run command ./install-wifi -h to show details on how to use it.



MrEngman
Thanks :-)

Now I see why I was having trouble with my wifi adapter (TL-WN725N V2).

That is, my first adapter was this one (TL-WN725N V2) and I always used your driver (thanks!) which worked great.

Then I bought from eBay a RalinkRT5370 which worked out from the box on Raspbian... so I stopped using TL-WN725N V2.

However, yesterday I needed to go back to the TL-WN725N V2. As I read, a few months ago, that this adapter was now working out from the box I did not care about your driver. Well, in fact, I though it was your driver included in the image.

The problem is that the adapter with the built in driver included in the image is not working. Signal was zero (0/100) even though I have the RPi about 5 meters straightforward with no barriers from the router. I found that very strange.

So, I tried again with your driver... and guess what? Signal 100/100.

This means that it is NOT your driver on the image, and so my question is: Why use a driver which doesn't work with the version 2 of the TL-WN725N instead of including your driver?

Regards

Vasco
Vasco Ferraz

MrEngman
Posts: 3871
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue May 24, 2016 2:48 pm

VascoFerraz wrote:
MrEngman wrote: There is a driver now included in the image which will handle this wifi adapter but if you have been using the driver I compile it will be disabled. You can enable the built in driver by deleting the file /etc/modprobe.d/8188eu.conf which includes the line blacklist r8188eu which stops the built in driver loading. There are, however, a number of folks who appear to prefer the driver I compile which is why I still compile it.

I have a script which will allow you to update my driver if you do a kernel update using rpi-update. This will allow you to run rpi-update and then before rebooting update the driver to the one for the new version of the kernel. Then after rebooting you should find your Pi will be connected to the internet via the wifi.

Try this

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz
tar xzf install-wifi.tar.gz
Then run command ./install-wifi -h to show details on how to use it.



MrEngman
Thanks :-)

Now I see why I was having trouble with my wifi adapter (TL-WN725N V2).

That is, my first adapter was this one (TL-WN725N V2) and I always used your driver (thanks!) which worked great.

Then I bought from eBay a RalinkRT5370 which worked out from the box on Raspbian... so I stopped using TL-WN725N V2.

However, yesterday I needed to go back to the TL-WN725N V2. As I read, a few months ago, that this adapter was now working out from the box I did not care about your driver. Well, in fact, I though it was your driver included in the image.

The problem is that the adapter with the built in driver included in the image is not working. Signal was zero (0/100) even though I have the RPi about 5 meters straightforward with no barriers from the router. I found that very strange.

So, I tried again with your driver... and guess what? Signal 100/100.

This means that it is NOT your driver on the image, and so my question is: Why use a driver which doesn't work with the version 2 of the TL-WN725N instead of including your driver?

Regards

Vasco
I think the main problem with adding drivers to Linux is a general concept that the driver source should not include any firmware required and any firmware should be included as a separate binary file. This generally requires drivers that do have firmware included to be modified to remove the firmware from the driver source and added as a separate file before it can be included in the Linux source. This is what happened with the built in driver, which is now a heavily modified version of the version I used to use although I now use a rather newer version.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue May 24, 2016 3:56 pm

MrEngman wrote: I think the main problem with adding drivers to Linux is a general concept that the driver source should not include any firmware required and any firmware should be included as a separate binary file. This generally requires drivers that do have firmware included to be modified to remove the firmware from the driver source and added as a separate file before it can be included in the Linux source. This is what happened with the built in driver, which is now a heavily modified version of the version I used to use although I now use a rather newer version.

MrEngman
Thank you so much for explaining.
I'll keep using your driver with your automatic update script.
Thanks.
Vasco Ferraz

huangjiansword
Posts: 3
Joined: Wed May 25, 2016 8:14 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Wed May 25, 2016 8:37 am

@MrEngman

hi, MrEngman. I have a question about the source code location.

I find rtl8188eu source code from https://github.com/lwfinger/rtl8188eu, but the lastest version is v4.1.4_6773.20130222.

but your 8188eu.ko's version is v4.1.8_9499.20131104, did you modify the source code from https://github.com/lwfinger/rtl8188eu?

I meet a strange problem while using tl-wn725n v2 with raspberry A+.
At first, the wifi dongle works very well, but after some hours(30+hours or 1 hours), the singal level drops from 100% to 2% and never recover again.

If I reload 8188eu driver, the signal level will recover. The power supply is very good, 5V 5A, so I suppose it's maybe the problem of drvier?

User avatar
VascoFerraz
Posts: 80
Joined: Thu Aug 30, 2012 11:54 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Wed May 25, 2016 3:59 pm

huangjiansword wrote:@MrEngman

hi, MrEngman. I have a question about the source code location.

I find rtl8188eu source code from https://github.com/lwfinger/rtl8188eu, but the lastest version is v4.1.4_6773.20130222.

but your 8188eu.ko's version is v4.1.8_9499.20131104, did you modify the source code from https://github.com/lwfinger/rtl8188eu?

I meet a strange problem while using tl-wn725n v2 with raspberry A+.
At first, the wifi dongle works very well, but after some hours(30+hours or 1 hours), the singal level drops from 100% to 2% and never recover again.

If I reload 8188eu driver, the signal level will recover. The power supply is very good, 5V 5A, so I suppose it's maybe the problem of drvier?
Just to keep in mind that, with the same dongle (version 2) and while using the built in driver, I have the same issue from start.

That is, the signal is always bad... 0/100. Maybe this driver suffers from this issue but only after a few hours of work.
Vasco Ferraz

MrEngman
Posts: 3871
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Wed May 25, 2016 4:06 pm

huangjiansword wrote:@MrEngman

hi, MrEngman. I have a question about the source code location.

I find rtl8188eu source code from https://github.com/lwfinger/rtl8188eu, but the lastest version is v4.1.4_6773.20130222.

but your 8188eu.ko's version is v4.1.8_9499.20131104, did you modify the source code from https://github.com/lwfinger/rtl8188eu?

I meet a strange problem while using tl-wn725n v2 with raspberry A+.
At first, the wifi dongle works very well, but after some hours(30+hours or 1 hours), the singal level drops from 100% to 2% and never recover again.

If I reload 8188eu driver, the signal level will recover. The power supply is very good, 5V 5A, so I suppose it's maybe the problem of drvier?
The source I currently use and have used for quite a while now is v4.3.0.8_13968.20150417. I downloaded it from the internet but do not remember from where.

Are you using my wifi driver or the lwfinger version? It is possible your wifi is going into power saving mode. If you are using my wifi driver do you have a file /etc/modprobe.d/8188eu.conf with contents like

Code: Select all

blacklist r8188eu
options 8188eu rtw_power_mgnt=0 rtw_enusbss=0
which disables power management.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

huangjiansword
Posts: 3
Joined: Wed May 25, 2016 8:14 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Mon Jun 06, 2016 2:31 pm

MrEngman wrote:
huangjiansword wrote:@MrEngman

hi, MrEngman. I have a question about the source code location.

I find rtl8188eu source code from https://github.com/lwfinger/rtl8188eu, but the lastest version is v4.1.4_6773.20130222.

but your 8188eu.ko's version is v4.1.8_9499.20131104, did you modify the source code from https://github.com/lwfinger/rtl8188eu?

I meet a strange problem while using tl-wn725n v2 with raspberry A+.
At first, the wifi dongle works very well, but after some hours(30+hours or 1 hours), the singal level drops from 100% to 2% and never recover again.

If I reload 8188eu driver, the signal level will recover. The power supply is very good, 5V 5A, so I suppose it's maybe the problem of drvier?
The source I currently use and have used for quite a while now is v4.3.0.8_13968.20150417. I downloaded it from the internet but do not remember from where.

Are you using my wifi driver or the lwfinger version? It is possible your wifi is going into power saving mode. If you are using my wifi driver do you have a file /etc/modprobe.d/8188eu.conf with contents like

Code: Select all

blacklist r8188eu
options 8188eu rtw_power_mgnt=0 rtw_enusbss=0
which disables power management.



MrEngman
hi, MrEngman, did you download source code from http://xiaopan.co/forums/threads/rtl818 ... 6nhv.9328/?

MrEngman
Posts: 3871
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Mon Jun 06, 2016 2:56 pm

I don't think so. Fairly certain it was a Chinese site lazyhu or baidu but I can't access them now.

The file I downloaded was rtl8188eus_linux_v4.3.0.8_13968.20150417.zip and a search on the internet shows it available here http://filemare.com/en-gb/browse/60-249 ... 5504/Linux although I haven't verified it is identical to the file I downloaded.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

huangjiansword
Posts: 3
Joined: Wed May 25, 2016 8:14 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue Jun 07, 2016 6:57 am

MrEngman wrote:I don't think so. Fairly certain it was a Chinese site lazyhu or baidu but I can't access them now.

The file I downloaded was rtl8188eus_linux_v4.3.0.8_13968.20150417.zip and a search on the internet shows it available here http://filemare.com/en-gb/browse/60-249 ... 5504/Linux although I haven't verified it is identical to the file I downloaded.



MrEngman
Hi, MrEngman, I found the source code from tp-link website, http://www.tp-link.com/il/download/TL-W ... tml#Driver
you can follow the latest source code from here.
Concerning the sudden drop of the wifi dongle, I replaced the PSU( 8A, 5V) to exclude the PSU's problem. If I get more information, I'll post here.

Organon
Posts: 2
Joined: Tue Jun 14, 2016 1:21 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue Jun 14, 2016 1:35 am

Hi MrEngman,

I would like to thank you about your job! Congratulations!

A have a question.. I'm trying to install this dongle at an OSMC OS, but without success. This driver works for him?

I tried to download this file
wget https://dl.dropboxusercontent.com/u/802 ... 881.tar.gz

And changed the install.sh
#!/bin/bash

# kernel=4.4.8-v7+
kernel=4.4.8-3-osmc
driver=mt7610

[email protected]:~# lsusb
Bus 001 Device 004: ID 148f:761a Ralink Technology, Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[email protected]:~# uname -a
Linux osmc-Alastair 4.4.8-3-osmc #1 SMP PREEMPT Sun May 1 18:57:43 UTC 2016 armv7l GNU/Linux

**Pi 2B
**Archer T2U


Thank you

MrEngman
Posts: 3871
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue Jun 14, 2016 9:08 pm

Organon wrote:Hi MrEngman,

I would like to thank you about your job! Congratulations!

A have a question.. I'm trying to install this dongle at an OSMC OS, but without success. This driver works for him?

I tried to download this file
wget https://dl.dropboxusercontent.com/u/802 ... 881.tar.gz

And changed the install.sh
#!/bin/bash

# kernel=4.4.8-v7+
kernel=4.4.8-3-osmc
driver=mt7610

[email protected]:~# lsusb
Bus 001 Device 004: ID 148f:761a Ralink Technology, Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[email protected]:~# uname -a
Linux osmc-Alastair 4.4.8-3-osmc #1 SMP PREEMPT Sun May 1 18:57:43 UTC 2016 armv7l GNU/Linux

**Pi 2B
**Archer T2U


Thank you
Hi,

Sorry for not responding earlier but I've been struggling all day trying to compile the driver for osmc. They really make things difficult compared to raspbian.

Anyway, you will be pleased to hear I have 4.4.8-3-osmc running with an Archer T2U wifi module connected, so hopefully it will be OK for you as well.

You should be able to download and install using commands

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/mt7610-4.4.8-3-osmc.tar.gz
tar xzf mt7610-4.4.8-3-osmc.tar.gz
./install.sh
and install.sh is set up to install in osmc so do not edit this one :lol:

Let me know how you get on.




MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Organon
Posts: 2
Joined: Tue Jun 14, 2016 1:21 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Wed Jun 15, 2016 1:10 am

Don't worry, I was also working..

MrEngman.. I don't know how explain that.. You are a monster! It's working perfectly with 2.4 and 5Ghz

I didn't noticed any packed loss and testing the link, It worked at the limit of capacity

[email protected]:~# python speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from ...
Selecting best server based on latency...
Hosted by ... [58.33 km]: 16.909 ms
Testing download speed........................................
Download: 47.36 Mbit/s
Testing upload speed..................................................
Upload: 41.24 Mbit/s

"Tx Rate" and "Rx Rate" appear to be ok too, during a standby, they decreased the signal to 6 and when I did some stuff, they increased, with "Rx Rate" topping the 433.3 at my router.

Running around one hour and everything is OK

I really would like to thank you and congratulate for your effort!
And again, If I can help with something, I'll be glad to help you

ike87
Posts: 1
Joined: Tue Jun 28, 2016 6:23 am

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue Jun 28, 2016 6:28 am

Hi,
driver for kernel version 4.4.13 available? :D
Thanks

MrEngman
Posts: 3871
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue Jun 28, 2016 11:55 am

ike87 wrote:Hi,
driver for kernel version 4.4.13 available? :D
Thanks
Yes. What is the output from command uname -a so I can give you the commands to download and install the right version.

Or if you look at the major update section in the first post it will tell you how to get the right version.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

femape
Posts: 3
Joined: Mon Dec 28, 2015 2:07 pm

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Mon Jul 04, 2016 11:42 pm

Hello,
I have problems to install the driver with Jesse distro and I accidentally run an upgrade which upgrades the kernel to 4.4.x. As the drivers are not available yet for this kernel version I decided to install an old, well known Wheezy distro:

Code: Select all

[email protected] ~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Code: Select all

[email protected] ~ $ uname -r
3.18.11+
Next, I run the script provided by @LaFambe (thank you again!) and I have the following setup:

Regarding the driver, I added an automount when booting in /etc/rc.local

Code: Select all

##!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

sudo modprobe 8188eu

exit 0
The interfaces file is this:

Code: Select all

[email protected] ~ $ cat /etc/network/interfaces
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
The wpa_supplicant.conf is:

Code: Select all


[email protected] ~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf 
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="ID_here"
    psk="pass_here"
}
The status is the following:
  • ifconfig does not show any wlan0
  • lsmod shows that the driver 8188eu is there
  • lsusb shows that there is no Realtek USB dongle connected
BUT the blue light is on!

Then I clear the dmesg log running

Code: Select all

 sudo dmesg -C
Unplug and plug again the wifi dongle and I see this:

Code: Select all

[email protected] ~ $ dmesg 
[  397.249221] usb 1-1.4: new full-speed USB device number 4 using dwc_otg
[  397.329193] usb 1-1.4: device descriptor read/64, error -32
[  397.519168] usb 1-1.4: device descriptor read/64, error -32
[  397.709171] usb 1-1.4: new full-speed USB device number 5 using dwc_otg
[  397.789191] usb 1-1.4: device descriptor read/64, error -32
[  397.979247] usb 1-1.4: device descriptor read/64, error -32
[  398.169171] usb 1-1.4: new full-speed USB device number 6 using dwc_otg
[  398.588995] usb 1-1.4: device not accepting address 6, error -32
[  398.669186] usb 1-1.4: new full-speed USB device number 7 using dwc_otg
[  399.088997] usb 1-1.4: device not accepting address 7, error -32
[  399.089243] usb 1-1-port4: unable to enumerate USB device
The blue light is off at this point.
Do you have any idea on what is happening? Is the driver not the correct one?

PS: In case is needed, the booting dmesg is:

Code: Select all

[email protected] ~ $ dmesg 
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.18.11+ ([email protected]) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #781 PREEMPT Tue Apr 21 18:02:18 BST 2015
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine model: Raspberry Pi Model B Plus
[    0.000000] cma: Reserved 8 MiB at 0x17800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 98304
[    0.000000] free_area_init_node: node 0, pgdat c083d364, node_mem_map d74f4000
[    0.000000]   Normal zone: 768 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 98304 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 97536
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0x10 bcm2708.serial=0x944dfaec smsc95xx.macaddr=B8:27:EB:4D:FA:EC bcm2708_fb.fbswap=1 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 372252K/393216K available (5881K kernel code, 348K rwdata, 1868K rodata, 336K init, 733K bss, 20964K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd8800000 - 0xff000000   ( 616 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd8000000   ( 384 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07997a0   (7750 kB)
[    0.000000]       .init : 0xc079a000 - 0xc07ee000   ( 336 kB)
[    0.000000]       .data : 0xc07ee000 - 0xc084513c   ( 349 kB)
[    0.000000]        .bss : 0xc084513c - 0xc08fc8a8   ( 734 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:522
[    0.000025] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[    0.000075] Switching to timer-based delay loop, resolution 1000ns
[    0.000358] Console: colour dummy device 80x30
[    0.001440] console [tty1] enabled
[    0.001486] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.001560] pid_max: default: 32768 minimum: 301
[    0.001941] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002005] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003009] Initializing cgroup subsys memory
[    0.003102] Initializing cgroup subsys devices
[    0.003161] Initializing cgroup subsys freezer
[    0.003212] Initializing cgroup subsys net_cls
[    0.003262] Initializing cgroup subsys blkio
[    0.003381] CPU: Testing write buffer coherency: ok
[    0.003493] ftrace: allocating 19232 entries in 57 pages
[    0.108302] Setting up static identity map for 0x553398 - 0x5533d0
[    0.111145] devtmpfs: initialized
[    0.128649] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.131674] pinctrl core: initialized pinctrl subsystem
[    0.134357] NET: Registered protocol family 16
[    0.139859] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.141321] bcm2708.uart_clock = 3000000
[    0.144252] No ATAGs?
[    0.144318] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.144382] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.144448] mailbox: Broadcom VideoCore Mailbox driver
[    0.144611] bcm2708_vcio: mailbox at f200b880
[    0.145064] bcm_power: Broadcom power driver
[    0.145121] bcm_power_open() -> 0
[    0.145152] bcm_power_request(0, 8)
[    0.645867] bcm_mailbox_read -> 00000080, 0
[    0.645913] bcm_power_request -> 0
[    0.646111] Serial: AMBA PL011 UART driver
[    0.646349] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    1.033057] console [ttyAMA0] enabled
[    1.096317] SCSI subsystem initialized
[    1.100454] usbcore: registered new interface driver usbfs
[    1.106243] usbcore: registered new interface driver hub
[    1.111744] usbcore: registered new device driver usb
[    1.118908] Switched to clocksource stc
[    1.151163] FS-Cache: Loaded
[    1.154479] CacheFiles: Loaded
[    1.173748] NET: Registered protocol family 2
[    1.179726] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    1.186906] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    1.193683] TCP: Hash tables configured (established 4096 bind 4096)
[    1.200203] TCP: reno registered
[    1.203472] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.209398] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.216056] NET: Registered protocol family 1
[    1.221126] RPC: Registered named UNIX socket transport module.
[    1.227092] RPC: Registered udp transport module.
[    1.231929] RPC: Registered tcp transport module.
[    1.236661] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.244279] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    1.252416] bcm2708_dma: DMA manager at f2007000
[    1.257278] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.267011] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.273501] audit: initializing netlink subsys (disabled)
[    1.279088] audit: type=2000 audit(1.040:1): initialized
[    1.299780] VFS: Disk quotas dquot_6.5.2
[    1.304125] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.313580] FS-Cache: Netfs 'nfs' registered for caching
[    1.320750] NFS: Registering the id_resolver key type
[    1.325930] Key type id_resolver registered
[    1.330276] Key type id_legacy registered
[    1.335677] msgmni has been set to 743
[    1.342080] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.350102] io scheduler noop registered
[    1.354085] io scheduler deadline registered (default)
[    1.359830] io scheduler cfq registered
[    1.366215] BCM2708FB: allocated DMA memory 57c00000
[    1.371521] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.382138] Console: switching to colour frame buffer device 82x26
[    1.393953] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.403617] uart-pl011 dev:f1: no DMA platform data
[    1.411064] vc-cma: Videocore CMA driver
[    1.416673] vc-cma: vc_cma_base      = 0x00000000
[    1.423097] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.430175] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.450225] brd: module loaded
[    1.461783] loop: module loaded
[    1.466947] vchiq: vchiq_init_state: slot_zero = 0xd7800000, is_master = 0
[    1.476387] Loading iSCSI transport class v2.0-870.
[    1.484647] usbcore: registered new interface driver smsc95xx
[    1.492315] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.699983] Core Release: 2.80a
[    1.704717] Setting default values for core params
[    1.711120] Finished setting default values for core params
[    1.918387] Using Buffer DMA mode
[    1.923298] Periodic Transfer Interrupt Enhancement - disabled
[    1.930737] Multiprocessor Interrupt Enhancement - disabled
[    1.937884] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.943855] Dedicated Tx FIFOs mode
[    1.949337] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xd7c14000 dma = 0x57c14000 len=9024
[    1.962397] FIQ FSM acceleration enabled for :
[    1.962397] Non-periodic Split Transactions
[    1.962397] Periodic Split Transactions
[    1.962397] High-Speed Isochronous Endpoints
[    1.985438] dwc_otg: Microframe scheduler enabled
[    1.985551] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc03fad3c
[    1.993153] WARN::hcd_init_fiq:413: FIQ ASM at 0xc03fb014 length 36
[    2.001087] WARN::hcd_init_fiq:438: MPHI regs_base at 0xd8806000
[    2.008800] dwc_otg bcm2708_usb: DWC OTG Controller
[    2.015395] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    2.024381] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    2.031565] Init: Port Power? op_state=1
[    2.037075] Init: Power Port (0)
[    2.042288] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.050788] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.059679] usb usb1: Product: DWC OTG Controller
[    2.065970] usb usb1: Manufacturer: Linux 3.18.11+ dwc_otg_hcd
[    2.073425] usb usb1: SerialNumber: bcm2708_usb
[    2.080594] hub 1-0:1.0: USB hub found
[    2.086072] hub 1-0:1.0: 1 port detected
[    2.092224] dwc_otg: FIQ enabled
[    2.092248] dwc_otg: NAK holdoff enabled
[    2.092262] dwc_otg: FIQ split-transaction FSM enabled
[    2.092331] Module dwc_common_port init
[    2.092952] usbcore: registered new interface driver usb-storage
[    2.101177] mousedev: PS/2 mouse device common for all mice
[    2.109269] bcm2835-cpufreq: min=700000 max=700000
[    2.116007] sdhci: Secure Digital Host Controller Interface driver
[    2.123914] sdhci: Copyright(c) Pierre Ossman
[    2.130217] DMA channels allocated for the MMC driver
[    2.168987] Load BCM2835 MMC driver
[    2.176072] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.192176] ledtrig-cpu: registered to indicate activity on CPUs
[    2.200225] hidraw: raw HID events driver (C) Jiri Kosina
[    2.211887] usbcore: registered new interface driver usbhid
[    2.221272] usbhid: USB HID core driver
[    2.229352] TCP: cubic registered
[    2.235508] Initializing XFRM netlink socket
[    2.243674] NET: Registered protocol family 17
[    2.250085] Key type dns_resolver registered
[    2.257741] registered taskstats version 1
[    2.263797] vc-sm: Videocore shared memory driver
[    2.270249] [vc_sm_connected_init]: start
[    2.277102] [vc_sm_connected_init]: end - returning 0
[    2.285758] Waiting for root device /dev/mmcblk0p2...
[    2.292894] Indeed it is in host mode hprt0 = 00021501
[    2.304393] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.331061] mmc0: new high speed SDHC card at address b368
[    2.349027] mmcblk0: mmc0:b368 NCard 3.73 GiB 
[    2.360318]  mmcblk0: p1 p2
[    2.424023] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.435672] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.445975] devtmpfs: mounted
[    2.452077] Freeing unused kernel memory: 336K (c079a000 - c07ee000)
[    2.509211] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.517810] Indeed it is in host mode hprt0 = 00001101
[    2.729593] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.738296] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.749182] hub 1-1:1.0: USB hub found
[    2.758878] hub 1-1:1.0: 5 ports detected
[    3.049320] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.169722] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.178714] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.208253] smsc95xx v1.0.4
[    3.287366] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:4d:fa:ec
[    4.165254] udevd[159]: starting version 175
[   10.114324] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   10.567440] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   11.298681] random: nonblocking pool is initialized
[   20.366677] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   21.843344] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
[   28.658488] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS
[   29.717546] cfg80211: Calling CRDA to update world regulatory domain
[   29.840914] RTL871X: module init start
[   29.840958] RTL871X: rtl8188eu v4.3.0.8_13968.20150417
[   29.840973] RTL871X: build time: Sep 13 2015 22:14:30
[   29.843974] usbcore: registered new interface driver rtl8188eu
[   29.844015] RTL871X: module init ret=0

MrEngman
Posts: 3871
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue Jul 05, 2016 1:10 am

femape wrote:Hello,
I have problems to install the driver with Jesse distro and I accidentally run an upgrade which upgrades the kernel to 4.4.x. As the drivers are not available yet for this kernel version I decided to install an old, well known Wheezy distro:
I'm not sure why you are having problems. And you should not need the change you made to /etc/rc.local to load the module. The dmesg output shows the driver loaded but does not show the wifi being installed. Did you reboot with the wifi connected?

Drivers ARE available for the latest kernel versions. The filename format has changed and Lafambes script will not load them. I have made a new script which can be used for Raspbian kernel versions 3.18 - 4.4 and any newer versions as they become available.

Please read the section MAJOR UPDATE:- at the beginning of the first post in this thread for details of the filename format and how to download and install them. Details of the new script are also available which can be used to automatically select the correct driver and download and install it.

I would suggest download the new script and run it to load the correct driver.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

femape
Posts: 3
Joined: Mon Dec 28, 2015 2:07 pm

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Tue Jul 05, 2016 10:48 pm

MrEngman wrote: Drivers ARE available for the latest kernel versions. The filename format has changed and Lafambes script will not load them. I have made a new script which can be used for Raspbian kernel versions 3.18 - 4.4 and any newer versions as they become available.

Please read the section MAJOR UPDATE:- at the beginning of the first post in this thread for details of the filename format and how to download and install them. Details of the new script are also available which can be used to automatically select the correct driver and download and install it.

I would suggest download the new script and run it to load the correct driver.

MrEngman
Thank you for the information MrEngman, I decided to try with the latest distro Jessie-Lite. I put it on the SD, boot with eth connection and ran your script. At this point I had problems with the usb dongle, it was not listed on lsusb then the script could not go on. However I changed to another USB port and I saw the dongle with lsusb. At this point I was able to run the ./install_wifi.sh command.

After a reboot, the driver wasn't loaded automatically (not listed in lsmod) and this was weird. I found that my problem is a HW problem, the plastic case is really bad quality: if I apply a little force with my hand it works but if I don't apply the force it doesn't work! It was really odd that I could see the blue light but the Tx/Rx wasn't working. This took me sooo much time that I don't want to think about...

Thank you again for your time ;)

FuzzyRoll
Posts: 1
Joined: Sun Jul 10, 2016 3:27 pm

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Sun Jul 10, 2016 3:35 pm

MrEngman wrote: There is a driver now included in the image which will handle this wifi adapter but if you have been using the driver I compile it will be disabled. You can enable the built in driver by deleting the file /etc/modprobe.d/8188eu.conf which includes the line blacklist r8188eu which stops the built in driver loading. There are, however, a number of folks who appear to prefer the driver I compile which is why I still compile it.

I have a script which will allow you to update my driver if you do a kernel update using rpi-update. This will allow you to run rpi-update and then before rebooting update the driver to the one for the new version of the kernel. Then after rebooting you should find your Pi will be connected to the internet via the wifi.

Try this

Code: Select all

wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz
tar xzf install-wifi.tar.gz
Then run command ./install-wifi -h to show details on how to use it.

MrEngman
Have not registered here until now, but i have to say thank you! :D
I got my pi zero v1.3 and my wn725n adapter was between 0-10/100 in signal while being 2-3 meters from the router.
After i ran this script and used those drivers instead i have a signal between 99-100/100.

Don't know how it could be such a difference but it is.

//FuzzyRoll

marek.janac
Posts: 2
Joined: Fri Jul 15, 2016 7:07 pm

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Fri Jul 15, 2016 7:13 pm

Hi. Please have someone driver for RTL8188EU (TL-WN725N) for Raspbian with kernel (Linux raspberrypi 4.4.15+ #897 Tue Jul 12 18:38:58 BST 2016 armv6l GNU/Linux).

Thanks.

MrEngman
Posts: 3871
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: (UPDATE) Drivers for TL-WN725N V2 - 3.6.11+ -> 4.1.xx+

Fri Jul 15, 2016 8:30 pm

marek.janac wrote:Hi. Please have someone driver for RTL8188EU (TL-WN725N) for Raspbian with kernel (Linux raspberrypi 4.4.15+ #897 Tue Jul 12 18:38:58 BST 2016 armv6l GNU/Linux).

Thanks.
Raspbian has a driver for the TL-WN725N. It is r8188eu.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Return to “Troubleshooting”