macmpi
Posts: 38
Joined: Tue Dec 15, 2015 9:39 pm

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

Mon Mar 19, 2018 4:40 pm

@fgimenez is your dongle connected directly to Pi, or through a USB hub? Sometimes hubs may introduce issues. Make sure Pi has sufficient power too.

fgimenez
Posts: 30
Joined: Sun May 05, 2013 4:54 am

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

Mon Mar 19, 2018 8:32 pm

Directly to Pi and no other usb device plugged in.
I guess my power source is on the edge and newer kernels push it harder than older kernels... that’s the only idea I have so far.

macmpi
Posts: 38
Joined: Tue Dec 15, 2015 9:39 pm

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

Thu Mar 22, 2018 4:27 pm

@mrengman,
With new stable kernel 4.9.80-1098, may you release your driver suite?
Thanks!

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

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

Thu Mar 22, 2018 8:08 pm

macmpi wrote:
Thu Mar 22, 2018 4:27 pm
@mrengman,
With new stable kernel 4.9.80-1098, may you release your driver suite?
Thanks!
They've been available for a few days now.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

fgimenez
Posts: 30
Joined: Sun May 05, 2013 4:54 am

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

Thu Mar 22, 2018 9:51 pm

macmpi wrote:
Thu Mar 22, 2018 4:27 pm
@mrengman,
With new stable kernel 4.9.80-1098, may you release your driver suite?
Thanks!
The URL has changed but the initial post on page 1 still has the old info.
Check the post in page 53 ( viewtopic.php?f=28&t=62371&start=1300#p1271965 ) where it explains the new URLs and directory structure.

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

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

Thu Mar 22, 2018 10:02 pm

fgimenez wrote:
Thu Mar 22, 2018 9:51 pm
macmpi wrote:
Thu Mar 22, 2018 4:27 pm
@mrengman,
With new stable kernel 4.9.80-1098, may you release your driver suite?
Thanks!
The URL has changed but the initial post on page 1 still has the old info.
Check the post in page 53 ( viewtopic.php?f=28&t=62371&start=1300#p1271965 ) where it explains the new URLs and directory structure.
And if you use my install-wifi script, also detailed in that post, it will take care of any changes automatically and download and install the necessary wifi driver.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

fgimenez
Posts: 30
Joined: Sun May 05, 2013 4:54 am

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

Sat Mar 24, 2018 3:32 am

Speaking of install scripts, I'm using a slightly modified version of your scripts.
My version, instead of checking the current kernel and looking for a matching driver, it checks for the next boot's kernel by looking at /boot/kernel.img and installs the driver for that version.
That way I can update the kernel, then run the script and then reboot and still get wifi without using any ethernet at any time.

Your script already has code to check for the kernel version of the /boot/kernel.img file but during initialization it does this:

Code: Select all

kernel=$(uname -r | tr -d '+')
build=${build:-$(uname -v | awk '{print $1}' | tr -d '#')}
my version does something like this instead (borrowed from other parts of your script):

Code: Select all

cp /boot/kernel.img .kernel
strings -n 10 .kernel | grep "Linux version" > .uname_string
if [ ! -s .uname_string ] ; then
        ./mkknlimg1 .kernel .kernel1
        mv .kernel1 .kernel
        strings -n 10 .kernel | grep "Linux version" > .uname_string
fi

kernel=$(cat .uname_string | awk '{print $3}' | tr -d '+')
build=$(grep -Po '(?<=#)[^[]*' .uname_string | awk '{print $1}')

rm .kernel .uname_string
and then I have a wrapper for "uname" since the other script inside the tar.gz uses it but I need it to return the string for the next boot's kernel, not the current one.

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

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

Sun Mar 25, 2018 8:19 pm

fgimenez wrote:
Sat Mar 24, 2018 3:32 am
Speaking of install scripts, I'm using a slightly modified version of your scripts.
My version, instead of checking the current kernel and looking for a matching driver, it checks for the next boot's kernel by looking at /boot/kernel.img and installs the driver for that version.
That way I can update the kernel, then run the script and then reboot and still get wifi without using any ethernet at any time.

Your script already has code to check for the kernel version of the /boot/kernel.img file but during initialization it does this:

Code: Select all

kernel=$(uname -r | tr -d '+')
build=${build:-$(uname -v | awk '{print $1}' | tr -d '#')}
my version does something like this instead (borrowed from other parts of your script):

Code: Select all

cp /boot/kernel.img .kernel
strings -n 10 .kernel | grep "Linux version" > .uname_string
if [ ! -s .uname_string ] ; then
        ./mkknlimg1 .kernel .kernel1
        mv .kernel1 .kernel
        strings -n 10 .kernel | grep "Linux version" > .uname_string
fi

kernel=$(cat .uname_string | awk '{print $3}' | tr -d '+')
build=$(grep -Po '(?<=#)[^[]*' .uname_string | awk '{print $1}')

rm .kernel .uname_string
and then I have a wrapper for "uname" since the other script inside the tar.gz uses it but I need it to return the string for the next boot's kernel, not the current one.
Interesting but my script as it is is also able to update the driver for the new kernel being updated and not necessarily just for the kernel currently installed without requiring a wired internet connection if the wifi is already installed and working.

However, my script has an issue if the kernel is updated when using apt-get upgrade/dist-upgrade and the change you have made partially fixes that issue. The only problem is it cannot check what kernel version will be installed if using upgrade/dist-upgrade so if a wifi driver is not available for the kernel version being installed a wifi driver will not be installed and the wifi will not be working with the updated kernel version.

I generally use rpi-update to update my kernels and using my script I can check if a driver exists for the kernel that will be installed when using rpi-update before running rpi-update and then install the new driver after rpi-update has been run and then when rebooting the wifi will be set up for the new kernel as your change allows you to do.

As an example I often use the command

Code: Select all

sudo install-wifi -c rpi-update && sudo rpi-update && sudo install-wifi -u rpi-update
This command will first check if a new driver is available for the kernel that will be installed by rpi-update using

Code: Select all

sudo install-wifi -c rpi-update
If there is a driver available it will then run rpi-update and when rpi-update is finished it will install the driver for the kernel installed by rpi-update using

Code: Select all

sudo install-wifi -u rpi-update
I can then reboot and the wifi will reconnect with the new kernel installed by rpi-update. No need to use wired internet to update the wifi driver. If a wifi driver is not available for the kernel version rpi-update will install then the command will not run rpi-update.

Similarly I can also update the wifi if I want to revert my kernel back to an older version. Say I want to change the kernel version back to kernel 4.9.50 I could use the command

Code: Select all

sudo install-wifi -c a31db890da1e5135fe666909d562bdc6113c14d6 && sudo rpi-update a31db890da1e5135fe666909d562bdc6113c14d6 && sudo install-wifi -u a31db890da1e5135fe666909d562bdc6113c14d6
These commands use the commit id from github.com/hexxeh/rpi-firmware to define the kernel version I want to install. Again it first checks if a driver is available for kernel 4.9.50, then if it is runs rpi-update and then installs the new wifi driver required by kernel 4.9.50.

As my script is currently there are problems if the kernel version is updated if running apt-get upgrade/dist-upgrade. Your change fixes this and will update the wifi driver for a new kernel version installed by apt-get upgrade/dist-upgrade provided a wifi driver is available for the new kernel installed.

The main issue I have is being able to determine the kernel that will be installed if using apt-get upgrade/dist-upgrade before running upgrade/dist-upgrade so I can check if a driver is available.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

fgimenez
Posts: 30
Joined: Sun May 05, 2013 4:54 am

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

Tue Mar 27, 2018 11:51 pm

MrEngman wrote:
Sun Mar 25, 2018 8:19 pm
The main issue I have is being able to determine the kernel that will be installed if using apt-get upgrade/dist-upgrade before running upgrade/dist-upgrade so I can check if a driver is available.
Right, but I run the script *after* doing the apt-get so the kernel is already installed, just not yet booted.

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

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

Wed Mar 28, 2018 12:02 am

fgimenez wrote:
Tue Mar 27, 2018 11:51 pm
MrEngman wrote:
Sun Mar 25, 2018 8:19 pm
The main issue I have is being able to determine the kernel that will be installed if using apt-get upgrade/dist-upgrade before running upgrade/dist-upgrade so I can check if a driver is available.
Right, but I run the script *after* doing the apt-get so the kernel is already installed, just not yet booted.
OK I realise that, but if a driver has not been compiled for the kernel installed by apt-get then you will have a problem with your wifi. Unless, of course, you don't reboot until one is available.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

fgimenez
Posts: 30
Joined: Sun May 05, 2013 4:54 am

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

Wed Mar 28, 2018 10:58 am

Agreed. Luckily your driver is usually available since you target rpi-update and apt-get is lagging way behind :-)

Schorschi
Posts: 202
Joined: Thu Nov 22, 2012 9:38 pm

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

Wed Apr 11, 2018 2:35 pm

Unfortunately, the http://www.daveconroy.com/turn-your-ras ... s-chipset/ link or source you referenced above is dead. Get 404 error.

Schorschi
Posts: 202
Joined: Thu Nov 22, 2012 9:38 pm

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

Wed Apr 11, 2018 2:36 pm

By the way, Mr E. You install-wifi script is WONDERFUL! Big THANK YOU for that.

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

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

Wed Apr 11, 2018 3:09 pm

Schorschi wrote:
Wed Apr 11, 2018 2:35 pm
Unfortunately, the http://www.daveconroy.com/turn-your-ras ... s-chipset/ link or source you referenced above is dead. Get 404 error.
So it is. Haven't accessed it for some time now, but it's unfortunate that all the stuff referencing the Pi is no longer available. Was quite useful although was fairly old.
Schorschi wrote:
Wed Apr 11, 2018 2:36 pm
By the way, Mr E. You install-wifi script is WONDERFUL! Big THANK YOU for that.
Thank you.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

LouxTheFuture
Posts: 1
Joined: Fri Apr 20, 2018 3:30 pm

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

Fri Apr 20, 2018 3:33 pm

Hello,
I've just upgrade to Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux
the compiled driver doesn't seems to be available for this kernel yet, right ?

wget http://fars-robotics.net/8192eu-4.14.34-v7-1110.tar.gz

Regards,
Louis

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

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

Fri Apr 20, 2018 5:51 pm

LouxTheFuture wrote:
Fri Apr 20, 2018 3:33 pm
Hello,
I've just upgrade to Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux
the compiled driver doesn't seems to be available for this kernel yet, right ?

wget http://fars-robotics.net/8192eu-4.14.34-v7-1110.tar.gz

Regards,
Louis
The web site has changed. http://downloads.fars-robotics.net Try:-

Code: Select all

wget http://downloads.fars-robotics.net/wifi-drivers/8192eu-drivers/8192eu-4.14.34-v7-1110.tar.gz
With the new site it is possible to view the available drivers and download using a browser if necessary.

It would be rather easier if you used my install-wifi script. Running the script will automatically determine the driver you need and download and install it. You can install the script using commands

Code: Select all

sudo wget http://downloads.fars-robotics.net/wifi-drivers/install-wifi -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi
Command

Code: Select all

sudo install-wifi -h
will show usage details. To download the driver to your current kernel use command

Code: Select all

sudo install-wifi
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

paDoc
Posts: 1
Joined: Thu Apr 26, 2018 4:47 pm

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

Thu Apr 26, 2018 5:24 pm

@MrEngman

thanks you very much Sir for your driver and general involvement in all this !
your driver work out of the box where the embedded version in official pi image doesn't ! thanks again for your hard work

my wifi device is an TPlink WN725N :

Code: Select all

Bus 001 Device 005: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
I can't however activate 150Mbps mode, I'm stuck with 75Mbps at most. After some research, I've found that it may be related to hostapd which disable 40 MHz channel width when it detect others channels... Openwrt even have an option (noscan) to force 40Mhz but unfortunatly, the hostapd raspbian version for pi doesn't. Can you help us with that by compiling a patched version of hostapd or may could you explain how to do it ourself ?

Edit: yes hostapd is limiting you. I've managed to build a patched version (hostapd v2.4), now I can connect @150Mpbs vs 72Mbps before. Although, the actual gain in pure speed is dependant on your radio environment.

For thoses who want to try, I've uploaded it here :

Get the patched version there in .DEB format


install with :

Code: Select all

dpkg -i hostapd_2.4-1+deb9u1x_armhf.deb
to go back to official version, just do :

Code: Select all

apt-get install hostapd
feel free to comment if it worked for u

tvg
Posts: 1
Joined: Sat May 19, 2018 7:47 am

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

Sat May 19, 2018 7:51 am

paDoc wrote:
Thu Apr 26, 2018 5:24 pm
Edit: yes hostapd is limiting you. I've managed to build a patched version (hostapd v2.4), now I can connect @150Mpbs vs 72Mbps before. Although, the actual gain in pure speed is dependant on your radio environment.

feel free to comment if it worked for u
Hey, man! Thank you so much!

Your patched version is the only version that worked for me on Realtek 8188EUS on Raspberry Pi 3 B+. I user a driver from http://downloads.fars-robotics.net/ , not sure if it works with the built-in Raspbian stretch driver, but I will try.

Could you explain what patches have you used when building this deb? Thanks!

bytebeaver
Posts: 1
Joined: Wed Jun 06, 2018 2:27 pm

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

Wed Jun 06, 2018 2:39 pm

Hi MrEngman,

Thanks a lot! Following your instructions, I just got my wifi dongle working on my Pi2! :D :!:

I am greatly indebted for your valuable post as I had been searching for help and struggling to get the dongle working till I came past your post!

-Byte
MrEngman wrote:
Mon Dec 02, 2013 10:22 pm
Driver files available for the TP-LINK TL-WN725N V2 and similar wifi dongles using the 8188eu driver module for systems using the Raspbian image.

LAST UPDATED: 25/03/2018

MAJOR UPDATE:-

The list of drivers available generally covers kernel versions 3.18, 4.0, 4.1, 4.4, 4.9 and 4.14 although there may be limitations for some of the drivers.

I have changed the filename format which now makes it unnecessary to list the files as the filename uses data from command uname -a to create the filename. Use command uname -a to find the kernel version and build for the kernel you are using and the wifi driver filename is now formed using those values like 8188eu-kernel-build.tar.gz. Drivers for kernel versions 3.18, 4.0, 4.1, 4.4, 4.8/9 and 4.14 are available using this new filename format.

For example, for the Pi 2 B or 3 B, if uname -a shows Linux raspberrypi 4.4.8-v7+ #881 SMP Sat Apr 30 12:16:50 BST 2016 armv7l GNU/Linux the file to download is 8188eu-4.4.8-v7-881.tar.gz.

I have changed the web site address to http://downloads.fars-robotics.net. It is now possible to view and download all available drivers using a web browser.

Directory structure is

Code: Select all

downloads.fars-robotics.net 
             |
             - wifi-drivers 
                     |
                     - 8188eu-drivers
                     - 8192eu-drivers
                     - 8812au-drivers
		     - 8822bu-drivers
                     - mt7610-drivers
                     - mt7612-drivers
To download 8188eu drivers use address http://downloads.fars-robotics.net/wifi ... -file-name where driver-file-name uses my standard filename format as described above.

Also I have made a script which will automatically install the right driver version if it is available. The script can be downloaded using

Code: Select all

sudo wget http://downloads.fars-robotics.net/wifi-drivers/install-wifi -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi
Use command sudo install-wifi -h for details on how you can use it to download or update the wifi driver. This script will automatically determine the wifi you are using and search for the correct driver to download for the kernel version you are using. The script can also install wifi drivers for wifi modules using 8192eu, 8812au, mt7610 or mt7612 drivers.

End of update
MrEngman

corrobor
Posts: 7
Joined: Thu Jun 07, 2018 6:13 pm

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

Thu Jun 07, 2018 6:27 pm

Hi. I bought an archer T1u (2357:0105) to give wifi 5ghz to my raspberry pi 2.

I followed the guide in the first post and it installed without problems (driver mt7610 for kernel 4.14.44-v7).

it works very well but now I have a strange problem: if I reboot my raspberry (i have only command line so by doing "sudo reboot" or "sudo shutdown now -r) the raspberry don't reboot but it freeze and the green led of the archer t1u flashes and I have only to unplug and plug the power supply. why?? Can i do? I have to do a command before reboot? (or make a reboot script)?
thanks!

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

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

Thu Jun 07, 2018 10:37 pm

Hi corrobor,

Been running one of my Pi 2B with kernel 4.14.44-v7 with the T1U wifi for a few hours and tried rebooting several times and I've not had any problems.

After issuing command sudo reboot the LED on the T1U flashes a couple of times and then turns off, then after a short time the LED on the T1U starts flashing again and the Pi completes rebooting.

I only have the T1U connected to my Pi and no other devices connected to it. I connect to my Pi using SSH via the wifi to control it.

Not sure why you are having issues when rebooting although there are situations that can cause the kernel to crash when using the mt7610 driver, like plugging or unplugging the wifi adapter while the Pi is powered on.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

corrobor
Posts: 7
Joined: Thu Jun 07, 2018 6:13 pm

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

Fri Jun 08, 2018 5:31 am

MrEngman thanks. I connect to raspberry only with ssh and wifi.
I try to do sudo halt and the issue is the same. The t1u get a "loop flashing".
What can I do?

corrobor
Posts: 7
Joined: Thu Jun 07, 2018 6:13 pm

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

Fri Jun 08, 2018 2:45 pm

I tried to reinstall stock kernel (sudo apt-get install --reinstall raspberrypi-bootloader raspberry pi-kernel) and after reboot (with t1u not working) sudo rpi-update && sudo install-wifi && sudo rpi-update. The t1u work again but if I do a reboot it freeze. :(

I tried to plug a hdmi monitor and keyboard: when I do sudo reboot, sudo halt or sudo ifconfig wlan0down (or sudo service networking stop) the result is the same : command line freeze and raspberry not reboot. It remain up and network freeze.

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

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

Fri Jun 08, 2018 6:39 pm

Hi corrobor,

It would appear the issue is to do with Raspbian Stretch and the mt7610u driver.

When I checked the driver and it was OK when rebooting or using shutdown or halt it appears the kernel I was using was Raspbian Jessie although it was updated to kernel 4.14.44-v7+.

I made a new SD card with Raspbian Stretch and now I am getting the same problem you see when the kernel appears to crash when using reboot or shutdown/halt.

I have no idea why it is happening and I've been looking for some different source code to try but have not been able to find any yet.

I am trying to find a driver that works but I don't know how long that will take.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

corrobor
Posts: 7
Joined: Thu Jun 07, 2018 6:13 pm

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

Fri Jun 08, 2018 6:54 pm

Ok! So I'm waiting for your solution :)

Return to “Troubleshooting”

Who is online

Users browsing this forum: 6by9 and 44 guests