User avatar
DougieLawson
Posts: 41900
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Sat Aug 07, 2021 7:06 pm

You don't have to hard code an address. Leave it set to 0.0.0.0 or set it as 169.254.3.14/24 and DHCP will re-assign it.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Twitter/LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Mon Aug 09, 2021 12:02 am

NOTE: The raspberry pi kernel has been updated to:

Code: Select all

Linux pi0 5.10.52+ #1441 Tue Aug 3 18:08:18 BST 2021 armv6l GNU/Linux
The preceding recipes from Dougie, for the driver build process, and for the interface wake-up process, still work when re-run under the new kernel.

But, at least in my case, they still don't set up the wireless in a permanent way; I would have to run the wake-up script after every boot. I still don't know why this new home-built driver doesn't "just work", like Mr Engman's did.

I still wonder whether he was using some different or modified version of the source.

spcharc
Posts: 36
Joined: Tue Jul 02, 2019 12:23 am

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

Mon Aug 09, 2021 12:41 am

Hi MrEngman,

It seems there are duplicate entries in your fetch_driver() function. For example:
1. "2357:0115" belongs to 8812au and 8822bu at the same time.
2. 8812au has two "2357:0122" entries.

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Mon Aug 09, 2021 2:33 pm

Another data point: the original Mr Engman drivers enable an LED on my wifi adapter, which slowly blinks all the time when up, and flashes quickly as an activity indicator. The new home-built driver never shows the LED. Is this another possible indication that he was using a different or modified source for the driver?

I seem to remember something about either the LED or different driver versions in this thread, but its going to be a real slog to go through all 64 pages to find any such references. Maybe I can automate the search somehow...

User avatar
DougieLawson
Posts: 41900
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Mon Aug 09, 2021 3:00 pm

The only thing I can find in the driver code is /sys/module/8188eu/parameters/rtw_led_enable which comes up with a value of 1 on my system.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Twitter/LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Mon Aug 09, 2021 3:43 pm

My adapters are all the TP-Link TL-WN725N as in the thread title; one is Ver:3.0, one is Ver: 3.8, and the other I don't know.

What is your adapter? Does it have an LED, did it ever light up using Mr Engman's driver, and does it light up now?

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Mon Aug 09, 2021 3:50 pm

More data: On a pi that's NOT been updated to the new kernel, and using one of the final Mr Engman drivers:

Code: Select all

pi@pi02:~ $ uname -a; lsmod | grep 8188
Linux pi02 5.10.17+ #1421 Thu May 27 13:58:02 BST 2021 armv6l GNU/Linux
8188eu               1191936  0
cfg80211              770048  1 8188eu
On a pi that HAS been updated to the latest kernel and which is using the new home-built driver:

Code: Select all

pi@pi0:~ $ uname -a; lsmod | grep 8188
Linux pi0 5.10.52+ #1441 Tue Aug 3 18:08:18 BST 2021 armv6l GNU/Linux
8188eu                761856  0
The difference is the presence of "cfg80211"? What's that?

User avatar
DougieLawson
Posts: 41900
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Mon Aug 09, 2021 4:19 pm

cfg80211 is the kernel WiFi control module, it's the one that loads the device driver.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Twitter/LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Mon Aug 09, 2021 5:37 pm

DougieLawson wrote:
Mon Aug 09, 2021 4:19 pm
cfg80211 is the kernel WiFi control module, it's the one that loads the device driver.
So why does it appear in the one case and not the other?

User avatar
DougieLawson
Posts: 41900
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Mon Aug 09, 2021 6:33 pm

tinker2much wrote:
Mon Aug 09, 2021 5:37 pm
So why does it appear in the one case and not the other?
I have no idea and we aren't able to ask Mr Engman to explain what he was building.
I'm also not bothered enough whether the LED on any WiFi adapter blinks or not.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Twitter/LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Mon Aug 09, 2021 6:53 pm

Just another data point, to show the differences between what Mr Engman's driver does and the one that you (very reasonably) produced by compiling the lwfinger code. I do appreciate your lead here, and I've been doggedly (though ignorantly) following along by stepping exactly in your footsteps.

I care less about the LED than the fact that this version doesn't start itself like his did.

User avatar
DougieLawson
Posts: 41900
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Mon Aug 09, 2021 8:38 pm

tinker2much wrote:
Mon Aug 09, 2021 6:53 pm
I care less about the LED than the fact that this version doesn't start itself like his did.
Mine works OK with
/etc/modprobe.d/8188eu.conf

Code: Select all

#blacklist brcmfmac
blacklist r8188eu
options 8188eu rtw_power_mgnt=0 rtw_enusbss=0 rtw_drv_log_level=0
to get it loaded during boot (and disable any other driver module).
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Twitter/LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Mon Aug 09, 2021 9:27 pm

I'll try that, thanks.

Here are various other possible source I found by grepping around for links in the downloaded sections of this thread. NOTE: I haven't actually gone and looked at each one of these yet; so I'm making no endorsement or recommendation of any of them by just listing them here! :

Code: Select all

0975 https://github.com/jenssegers/RTL8188-hostapd/archive/v2.0.tar.gz

1025 http://dl.lazyzhu.com/file/RTL8188EU/

1025 https://github.com/lwfinger/rtl8188eu

1100 http://www.tp-link.com/il/download/TL-WN725N.html#Driver

1350 https://github.com/lwfinger/rtl8188eu/tree/v5.2.2.4

1350 https://github.com/lutmm/rtl8188fu

1500 https://github.com/aircrack-ng/rtl8188eus

1550 https://github.com/lwfinger/rtl8188eu   (dougie)


tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Mon Aug 09, 2021 9:29 pm

Note: the numbers in my above post are the starting post number of the page on which I found each one. As in,

viewtopic.php?f=28&t=62371&start=1550

(Hover over to see the full link...)

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Tue Aug 10, 2021 2:22 am

DougieLawson wrote:
Mon Aug 09, 2021 8:38 pm
Mine works OK with
/etc/modprobe.d/8188eu.conf

Code: Select all

#blacklist brcmfmac
blacklist r8188eu[quote=tinker2much post_id=1899799 time=1628535236 user_id=270804]
I care less about the LED than the fact that this version doesn't start itself like his did.
[/quote]
options 8188eu rtw_power_mgnt=0 rtw_enusbss=0 rtw_drv_log_level=0
to get it loaded during boot (and disable any other driver module).
I have those same lines in /etc/modprobe.s/8188eu.conf. I can reboot, but wireless still doesn't come up for me unless I do this:

Code: Select all

#!/bin/bash
set -x
sudo /sbin/modprobe 8188eu
sudo /usr/bin/killall -v wpa_supplicant 
sudo /sbin/ifconfig wlan0 0.0.0.0/24 
sudo /sbin/ifconfig wlan0 up 
sudo /sbin/wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext  
sudo /sbin/ip link set wlan0 up
sudo /sbin/ip route add default via 192.168.0.1 dev wlan0
sudo systemctl restart dhcpdc5  
systemctl restart wpa_supplicant.service
I haven't tried leaving out different bits to learn which are the minimal magic set.

MikeCoder
Posts: 84
Joined: Fri Jan 24, 2020 12:05 am

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

Sun Aug 15, 2021 2:48 am

Hey, anyone know how to manually build a driver for 8812au wifi chip? A recent apt update upgraded my kernel to 5.10.52-v8+, and there isn't a build on http://downloads.fars-robotics.net/wifi ... u-drivers/ yet.

danjperron
Posts: 3891
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

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

Sun Aug 15, 2021 7:01 pm

Thanks Dougie, everything works!
except I had to add some settings into /etc/network/interface.d

Without it wlan0 didn't connect at boot up!

Code: Select all

$ cat /etc/network/interfaces.d/wlan0
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Yes my version is not 4.xx.xx but the usb dongle from TP-Link didn't work on my PI.

Raspberry Pi : Raspberry Pi Model B Rev 1
Usb wifi dongle : Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Code: Select all

pi@pibv1:~ $ uname -a
Linux pibv1.local 5.10.52+ #1441 Tue Aug 3 18:08:18 BST 2021 armv6l GNU/Linux

mikebridge
Posts: 1
Joined: Tue Aug 17, 2021 1:40 pm

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

Tue Aug 17, 2021 1:42 pm

ferociousdiablo wrote:
Thu Jul 29, 2021 7:30 pm
For those who updated to a newer kernel than 5.10.49 for which there is currently no wifi driver available try this:

Code: Select all

sudo rpi-update dc6dc9bc6692d808fcce5ace9d6209d33d5afbac
This will revert to 5.10.49 and you can then reboot and reinstall the wifi-driver using the MrEngman script :)

Just had to do this on both of my Pi2 B+ as I didn't think to check before updating them. Doh!
This seems to be the fastest simplest solution for now---I was up and running in just a couple minutes, thanks!

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Tue Aug 17, 2021 3:32 pm

danjperron wrote:
Sun Aug 15, 2021 7:01 pm
Thanks Dougie, everything works!
except I had to add some settings into /etc/network/interface.d

Without it wlan0 didn't connect at boot up!

Code: Select all

$ cat /etc/network/interfaces.d/wlan0
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Yes my version is not 4.xx.xx but the usb dongle from TP-Link didn't work on my PI.

Raspberry Pi : Raspberry Pi Model B Rev 1
Usb wifi dongle : Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Code: Select all

pi@pibv1:~ $ uname -a
Linux pibv1.local 5.10.52+ #1441 Tue Aug 3 18:08:18 BST 2021 armv6l GNU/Linux
Following Dougie's build process on a Pi Zero and then adding a wlan0 file like yours makes the interface come up after a reboot for me too, thank you!

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Tue Aug 17, 2021 8:05 pm

Using great suggestions and hunks of code from Dougie and from danjperron, I have a WORKING self-built 8188eu driver for my TP-Link TL-WN725N wifi adapter -- it's surviving a reboot, and the LED blinkenlights are flashing away.

I've split what I did into three parts. For the record, I ran all three steps on my three separate Raspberry Pi Zeros that use a TL-WN725N. I'm guessing that I could perhaps run it all on one zero, and copy over something of the results to the other two, but this works, and I've got the time.


Note: this first script gets rpi-source, which will then get you the latest kernel source. It only needs to be run in full one time; rpi-source will be kept updated by your usual "sudo apt full-upgrade". After the first time, whenever a kernel has been updated, just run "rpi-source" alone to get the source for that new kernel.

Code: Select all

sudo apt install rpi-source
sudo apt install libncurses5-dev
rpi-source

Note: the second script builds the updated driver for the updated kernel. It is set up as it should be for the very first time; you should modify it for later use, by replacing the git clone / cd with a cd / git pull. It should be run every time, after either the full first script, or a later run of just rpi-source, in order to build the driver.

Code: Select all

cd ~/Documents
git clone https://github.com/lwfinger/rtl8188eu
cd rtl8188eu
make
sudo make install
sudo modprobe 8188eu

Note: this third bit seems to be what makes the wifi survive a reboot. It only needs to be run once.

Code: Select all

cat <<EOF | sudo tee -a /etc/network/interfaces.d/wlan0
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
EOF
YMMV, but I hope this helps someone else.

User avatar
DougieLawson
Posts: 41900
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Wed Aug 18, 2021 12:39 pm

tinker2much wrote:
Tue Aug 17, 2021 8:05 pm
Using great suggestions and hunks of code from Dougie and from danjperron, I have a WORKING self-built 8188eu driver for my TP-Link TL-WN725N wifi adapter -- it's surviving a reboot, and the LED blinkenlights are flashing away.
If you run rpi-update today you'll have to build it all again. There's a new 5.10.59 kernel.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Twitter/LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

tinker2much
Posts: 317
Joined: Wed Jun 20, 2018 12:38 am

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

Wed Aug 18, 2021 3:36 pm

DougieLawson wrote:
Wed Aug 18, 2021 12:39 pm
If you run rpi-update today you'll have to build it all again. There's a new 5.10.59 kernel.
I just did rpi-update, rpi full-upgrade on all of mine and I didn't get a new kernel - all machines still still have one of the following as the latest:

Linux pi0 5.10.52+ #1441 Tue Aug 3 18:08:18 BST 2021 armv6l GNU/Linux
Linux pi2 5.10.52-v7+ #1441 SMP Tue Aug 3 18:10:09 BST 2021 armv7l GNU/Linux
Linux pi8 5.10.52-v7l+ #1441 SMP Tue Aug 3 18:11:56 BST 2021 armv7l GNU/Linux
Linux pi64 5.10.52-v8+ #1441 SMP PREEMPT Tue Aug 3 18:14:03 BST 2021 aarch64 GNU/Linux

Is there some kind of rolling release based on your time zone? I'm 5 or 6 hours behind you.

User avatar
DougieLawson
Posts: 41900
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Wed Aug 18, 2021 3:37 pm

tinker2much wrote:
Wed Aug 18, 2021 3:36 pm

Is there some kind of rolling release based on your time zone? I'm 5 or 6 hours behind you.
I'm not talking about apt update & apt dist-upgrade. I'm talking about rpi-update which gets the beta testing stuff from https://github.com/hexxeh/rpi-firmware
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Twitter/LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

User avatar
pi-anazazi
Posts: 1020
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

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

Thu Aug 19, 2021 7:19 am

I'm in mild distress. Is Mr. Engman only on holiday? Can I kick all my TP-Link sticks to the trashcan? Or will there be a driver in Bullseye?

Any answers out there? :-(
Kind regards

anazazi

User avatar
DougieLawson
Posts: 41900
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Thu Aug 19, 2021 8:30 am

pi-anazazi wrote:
Thu Aug 19, 2021 7:19 am
I'm in mild distress. Is Mr. Engman only on holiday? Can I kick all my TP-Link sticks to the trashcan? Or will there be a driver in Bullseye?

Any answers out there? :-(
Mr Engman is MIA since July (nothing has been updated on his website since 16/7).
So the best option right now is build your driver yourself.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on Twitter/LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

Return to “Troubleshooting”