cphag
Posts: 2
Joined: Sat May 22, 2021 2:23 pm

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

Sat May 22, 2021 2:30 pm

Hello @MrEngman

Thank you for your hard work keeping all of our wifi's running :-)

I have a problem with my TL-WN725 V3, trying to get it to work on my Raspberry Pi .

I'v run your install-wifi script, with the following result:
*** Raspberry Pi wifi driver installer by MrEngman.
*** Performing self-update
*** Relaunching after update

*** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 5.10.38-v7+
Your current kernel build = #2

Checking for a wifi module to determine the driver to install.

Your wifi module is Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter

And it uses the 8188eu driver.


Your Pi revision number is a02082
You have a Pi 3B v1.2
Checking for a 8188eu wifi driver module for your current kernel.
A driver does not exist for this update.
I think my kernel version is too new ?

Can you help me ?


Thanks

Christian

cphag
Posts: 2
Joined: Sat May 22, 2021 2:23 pm

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

Sun May 23, 2021 1:03 pm

Hi - allow me to answer my own post :-)

I just reinstalled the latest Raspberry pi image on my raspi.

Since it is now running a slightly older kernelversion (5.10.17-v7+), the install-wifi script works.

I now have working wifi on my raspi! Yeah :D

Thanks

Christian

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

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

Sat May 29, 2021 1:28 am

There was a newly released Raspberry Pi kernel package, dated yesterday, for which there isn't yet an 8188eu module? I use that that module on my three zeros. I think the last module I used was "http://downloads.fars-robotics.net/wifi ... 414.tar.gz".

My zero W's got the update and their uname -a is now "Linux pi0w4 5.10.17+ #1421 Thu May 27 13:58:02 BST 2021 armv6l".

I appreciate you keeping up this whole process for so long, for the benefit of so many of us. I hope that you've got an automated process for this, which just hasn't yet caught up, and not that this is something you're aware of and I'm just annoyingly whining and nagging...

Pulsus
Posts: 1
Joined: Sat May 29, 2021 7:51 pm

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

Sat May 29, 2021 7:56 pm

Hello @MrEngman

First I would like to thank you for your job on maintaning a drivers database for these wifi modules.

I would like to ask you to provide a driver for 5.10.17-v7+ #1421 kernel version as I tried to update my rapsberry pi (sudo apt-get update) but now it can't find the proper wifi driver for my wifi dongle.

Unfortunatelly sudo rpi-update is not an option as it uptades to 5.10.39-v7+ #1421 kernel version, which also does not have a wifi driver available.

Thanks again and best regards,

Pulsus

Code: Select all

$ sudo install-wifi

 *** Raspberry Pi wifi driver installer by MrEngman.
 *** Performing self-update
 *** Relaunching after update

 *** Raspberry Pi wifi driver installer by MrEngman.

Your current kernel revision = 5.10.17-v7+
Your current kernel build    = #1421

Checking for a wifi module to determine the driver to install.

Your wifi module is Bus 001 Device 004: ID 2357:0126 TP-Link

And it uses the 8192eu driver.


Your Pi revision number is a21041
You have a Pi 2B v1.1
Checking for a 8192eu wifi driver module for your current kernel.
A driver does not exist for this update.

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 Jun 02, 2021 6:25 pm

tinker2much wrote:
Sat May 29, 2021 1:28 am
There was a newly released Raspberry Pi kernel package, dated yesterday, for which there isn't yet an 8188eu module? I use that that module on my three zeros. I think the last module I used was "http://downloads.fars-robotics.net/wifi ... 414.tar.gz".

My zero W's got the update and their uname -a is now "Linux pi0w4 5.10.17+ #1421 Thu May 27 13:58:02 BST 2021 armv6l".

I appreciate you keeping up this whole process for so long, for the benefit of so many of us. I hope that you've got an automated process for this, which just hasn't yet caught up, and not that this is something you're aware of and I'm just annoyingly whining and nagging...
The desired driver file is there now. I downloaded and installed it and and my zeros are back in business. Thank you!

User avatar
abishur
Posts: 4498
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

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

Tue Jun 29, 2021 5:20 am

I just got this adapter. My Pi Zero W is on version is 5.10.46+ #1430 is it possible to use the 5.10.44-1429 drivers? If not, any ideas when the updated package will be released?
Dear forum: Play nice ;-)

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

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

Thu Jul 29, 2021 2:27 pm

I just updated and got a new raspberry pi kernel, here's the info from uname -u:

Code: Select all

Linux pi0w5 5.10.52+ #1440 Tue Jul 27 09:53:08 BST 2021 armv6l
I'm seeking the driver files for my USB dongle, but the script I've written to get the driver is failing because the driver file isn't there (yet):

Code: Select all

wget returned error 8 on http://downloads.fars-robotics.net/wifi-drivers/8188eu-drivers/8188eu-5.10.52-1440.tar.gz, exiting 

tmheroes
Posts: 3
Joined: Tue Feb 09, 2021 5:33 am

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

Thu Jul 29, 2021 3:38 pm

Same as mine with 5.10.52+ latest kernel. Cannot get the driver for my 8821CU.

Please update the wifi drivers.

Thanks a lot.

Tom

HankB
Posts: 140
Joined: Fri Jan 01, 2016 2:45 pm

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

Thu Jul 29, 2021 5:18 pm

MrEngman,
Many thanks for making this resource available. On one of my hosts I was easily able to get the TP-Link TL-WN725N USB adapter working. On another one, not so much. It was running

Code: Select all

hbarta@meeker:/etc/network/interfaces.d $ uname -a
Linux meeker 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux
hbarta@meeker:~ $
And it was not obvious to me if I had the correct version downloaded, though I tried several. The install.sh script reported errors with directories and after fiddling with that a bit, I ran rpi-update which brought me to

Code: Select all

hbarta@meeker:~ $ uname -a
Linux meeker 5.10.52-v7+ #1440 SMP Tue Jul 27 09:54:13 BST 2021 armv7l GNU/Linux
hbarta@meeker:~ $ 
As others have reported, there is no version for that. I downloaded and unpacked 8188eu-5.10.49-v7-1436.tar.gz. After modifying the kernel variable to kernel=5.10.52-v7+ the script ran without error (the target directory for the module already existed.) However on subsequent boot the module does not load and in dmesg output I see

Code: Select all

[    9.070067] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    9.236371] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    9.339769] 8188eu: disagrees about version of symbol module_layout
Going back to the previous attempt (with 4.19.97 kernel) I saw errors that looked like

Code: Select all

sudo install -p -m 644 8188eu.ko /lib/modules/4.19.97-v7+/kernel/drivers/net/wireless
install: cannot create regular file '/lib/modules/4.19.97-v7+/kernel/drivers/net/wireless': No such file or directory
sudo depmod 4.19.97-v7+
depmod: ERROR: could not open directory /lib/modules/4.19.97-v7+: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
I guess for now I keep the Ethernet cable in place.

best,
hank

ferociousdiablo
Posts: 1
Joined: Thu Jul 29, 2021 7:24 pm

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

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!
Last edited by ferociousdiablo on Thu Jul 29, 2021 7:41 pm, edited 1 time in total.

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 02, 2021 3:55 pm

Mr Engman, could you post (or point us to) the source code for the drivers, and also post the scripts you use to prepare them? Then we could attempt making them ourselves.

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 02, 2021 6:18 pm

tinker2much wrote:
Mon Aug 02, 2021 3:55 pm
Mr Engman, could you post (or point us to) the source code for the drivers, and also post the scripts you use to prepare them? Then we could attempt making them ourselves.
Mr Engman hasn't made any update to any driver since June 16th.

I found the source for my driver 8188eu with a trivial Google search - https://github.com/lwfinger/rtl8188eu.
It needs the kernel source tree so I downloaded that with rpi-source.

It's a pain having to build from source, but it works OK building it on my RPi1B that has the 8188EU dongle.
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+

Tue Aug 03, 2021 9:19 pm

DougieLawson wrote:
Mon Aug 02, 2021 6:18 pm
I found the source for my driver 8188eu with a trivial Google search - https://github.com/lwfinger/rtl8188eu.
It needs the kernel source tree so I downloaded that with rpi-source.

It's a pain having to build from source, but it works OK building it on my RPi1B that has the 8188EU dongle.
Well, I haven't done any of this before, but I'm game. I took notes as I went:

20210803 try to build 8188eu driver for the pi zeros' wifi dongles
NOTE: doing this on a pi zeroW for the pi zeros
sudo apt install rpi-source
sudo apt install libncurses5-dev
look at the documentation on rpi-source
https://github.com/RPi-Distro/rpi-sourc ... /README.md
man rpi-source
rpi-source -d ~/Documents -v
* works, takes quite a while *
NOTE: since I did this from within Documents, it created a link *there* just called "linux" to the new linux-blah-blah folder within Documents, guessing that the driver might be more accustomed to this being at ~, I moved the linux link to ~; it still points where it did ...

note: at the end of its process, rpi-source posts a link to
https://github.com/RPi-Distro/rpi-sourc ... /README.md
which has "Examples on how to build various modules"
one of which is TP-Link TL-WN725N version 2 lwfinger

which sounded like just what I wanted, so, I did what it said, I've copied that part of the web page below ...

https://github.com/RPi-Distro/rpi-sourc ... 2-lwfinger
TP-Link TL-WN725N version 2 lwfinger
Ref: http://tech.enekochan.com/2014/03/08/ne ... -raspbian/

$ uname -a
Linux raspberrypi 3.12.21+ #1 PREEMPT Sat Jun 14 13:44:18 CEST 2014 armv6l GNU/Linux

$ git clone https://github.com/lwfinger/rtl8188eu.git
$ cd rtl8188eu

$ make all

(part above done on the zeroW)
(part below done on the zero, after copying the results of the build over)

$ sudo make install

$ sudo depmod

$ sudo modprobe 8188eu

$ lsmod (actually the output of this was edited for the web page - there was a lot more output when I did it)
Module Size Used by
8188eu 796381 0

That all SEEMED to work, except after rebooting, wireless doesn't work for me, all I can do is attach a USB ethernet adapter to get there.
Also, I noted that the 8188eu.ko file is SMALLER (907,324) than the last one MR. Engman built (1,477,248).
I'm not sure that this is the source he uses.

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 04, 2021 1:46 pm

I tried this again, doing it all on the pi for which it's intended (a Pi zero). Again, it all seemed to work.

Yet, still, "no wireless interfaces found" .

Anyone have any ideas about what I can do, or what to check?

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 04, 2021 3:03 pm

tinker2much wrote:
Wed Aug 04, 2021 1:46 pm

Anyone have any ideas about what I can do, or what to check?
Have you run sudo make install?
Can you find your new module in /lib/modules/$(uname -r)?
Have you run sudo modprobe 8188eu?
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 04, 2021 6:54 pm

DougieLawson wrote:
Wed Aug 04, 2021 3:03 pm
tinker2much wrote:
Wed Aug 04, 2021 1:46 pm

Anyone have any ideas about what I can do, or what to check?
Have you run sudo make install?
Can you find your new module in /lib/modules/$(uname -r)?
Have you run sudo modprobe 8188eu?
sudo make install - yes, i did it

lib/modules/$(uname -r) ----> not sure what all ought to be here, but there are links to my new linux files, and other stuff dated this morning:

Code: Select all

pi@pi0:~ $ ls -al /lib/modules/$(uname -r)
total 2360
drwxr-xr-x  3 root root   4096 Aug  4 08:39 .
drwxr-xr-x 12 root root   4096 Jul 29 08:43 ..
lrwxrwxrwx  1 root root     14 Aug  4 06:22 build -> /home/pi/linux
drwxr-xr-x 11 root root   4096 Jul 29 08:41 kernel
-rw-r--r--  1 root root 566632 Aug  4 08:39 modules.alias
-rw-r--r--  1 root root 594136 Aug  4 08:39 modules.alias.bin
-rw-r--r--  1 root root  13162 Jul 27 17:15 modules.builtin
-rw-r--r--  1 root root  23504 Jul 27 17:15 modules.builtin.alias.bin
-rw-r--r--  1 root root  14165 Aug  4 08:39 modules.builtin.bin
-rw-r--r--  1 root root  71963 Jul 27 17:15 modules.builtin.modinfo
-rw-r--r--  1 root root 196626 Aug  4 08:39 modules.dep
-rw-r--r--  1 root root 271592 Aug  4 08:39 modules.dep.bin
-rw-r--r--  1 root root    324 Aug  4 08:39 modules.devname
-rw-r--r--  1 root root  65025 Jul 27 17:15 modules.order
-rw-r--r--  1 root root    380 Aug  4 08:39 modules.softdep
-rw-r--r--  1 root root 249807 Aug  4 08:39 modules.symbols
-rw-r--r--  1 root root 304376 Aug  4 08:39 modules.symbols.bin
lrwxrwxrwx  1 root root     14 Aug  4 06:22 source -> /home/pi/linux

Code: Select all

pi@pi0:~ $ sudo modprobe 8188eu
pi@pi0:~ $ 

Code: Select all

pi@pi0:~ $ lsmod | grep 8188
8188eu                761856  0

HaSch
Posts: 1
Joined: Wed Aug 04, 2021 7:23 pm

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

Wed Aug 04, 2021 7:30 pm

I'm looking for a 8188EU driver for kernel version 5.10.52+ #1440. I would like to use a Edimax EW-7811UN V2 nano adapter on an older Raspberry Pi. Are you able to provide one?

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 05, 2021 3:02 pm

HaSch wrote:
Wed Aug 04, 2021 7:30 pm
I'm looking for a 8188EU driver for kernel version 5.10.52+ #1440. I would like to use a Edimax EW-7811UN V2 nano adapter on an older Raspberry Pi. Are you able to provide one?
Build it yourself from source. It's not too difficult.

Install the new kernel and connect to your network with a cable.

sudo apt install git bc bison flex libssl-dev

Get a copy of rpi-source from https://github.com/RPi-Distro/rpi-source

git clone https://github.com/RPi-Distro/rpi-source
cd rpi-source
./rpi-source


That gets you the Linux kernel source tree and leaves it ready to build kernel modules (you'll need to boil a kettle while it's running, it's not quick on a RPi1B).

Get the driver source from https://github.com/lwfinger/rtl8188eu

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


Again you've got a chance to boil the kettle. If you make a pot of tea first time round, here's your chance to pour out the second cuppa.
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+

Fri Aug 06, 2021 7:44 pm

I've just done all the steps from your last post, all seem to have succeeded, but I still can't access that pi over wireless, I can only use an ethernet cable.

Dougie, any thoughts about what could be preventing this from working as well for me as it does for you?

HankB
Posts: 140
Joined: Fri Jan 01, 2016 2:45 pm

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

Sat Aug 07, 2021 2:18 am

Thanks, Dougie, for the detailed instructions. I went through them and they conpleted w/out any errors.

Code: Select all

hbarta@meeker:~/Downloads/rpi-source/rtl8188eu $ sudo make install
[sudo] password for hbarta: 
install -p -m 644 8188eu.ko  /lib/modules/5.10.52-v7+/kernel/drivers/net/wireless
cp rtl8188eufw.bin /lib/firmware/.
/sbin/depmod -a 5.10.52-v7+
mkdir -p /lib/firmware/rtlwifi
cp rtl8188eufw.bin /lib/firmware/rtlwifi/.
hbarta@meeker:~/Downloads/rpi-source/rtl8188eu $ sudo modprobe 8188eu
hbarta@meeker:~/Downloads/rpi-source/rtl8188eu $
Following reboot I see:

Code: Select all

hbarta@meeker:~ $ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:aa:e6:2f brd ff:ff:ff:ff:ff:ff
    inet 192.168.20.106/24 brd 192.168.20.255 scope global dynamic noprefixroute eth0
       valid_lft 6656sec preferred_lft 5756sec
    inet6 2601:249:1680:36f0:18c1:b576:917a:596c/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 86393sec preferred_lft 14393sec
    inet6 2601:249:1680:36f1:cc59:906:968c:6272/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 86397sec preferred_lft 14397sec
    inet6 fe80::2d51:b30b:140a:9dd6/64 scope link 
       valid_lft forever preferred_lft forever
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 60:e3:27:1a:08:3e brd ff:ff:ff:ff:ff:ff
hbarta@meeker:~ $ sudo iwlist wlan0 scanning|grep ESSID | wc -l
9
hbarta@meeker:~ $ lsmod|grep 8188eu
8188eu                798720  0
hbarta@meeker:~ $ 
From dmesg I find what seem to be the only messages related to this WiFi dongle

Code: Select all

[    8.645451] 8188eu: loading out-of-tree module taints kernel.
[    8.739656] 8188eu: unknown parameter 'rtw_drv_log_level' ignored
[    8.745964] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[    8.802428] EEPROM ID = 0x8129
[    8.815427] usbcore: registered new interface driver r8188eu
[   10.627258] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: discard
[   12.330115] random: crng init done
[   12.330157] random: 7 urandom warning(s) missed due to ratelimiting
[   12.763428] 8021q: 802.1Q VLAN Support v1.8
[   12.998343] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   13.139527] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[   13.233317] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   15.413204] SMSC LAN8700 usb-001:003:01: attached PHY driver [SMSC LAN8700] (mii_bus:phy_addr=usb-001:003:01, irq=POLL)
[   15.413845] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   15.431357] smsc95xx 1-1.1:1.0 eth0: Link is Down
[   15.431688] R8188EU: Firmware Version 11, SubVersion 1, Signature 0x88e1
[   15.819894] MAC Address = 60:e3:27:1a:08:3e
the iwlist scanning command does see my access point.

I've checked, double checked and triple /etc/woa_supplicant/wpa_supplicant.conf and it looks right.

Any ideas what I've overlooked?

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 8:09 am

@HankB @tinker2much

Try this script (with your local IP address and router address) to get it running

Code: Select all

#!/bin/bash
sudo /sbin/modprobe 8188eu
sudo /usr/bin/killall -v wpa_supplicant
sudo /sbin/ifconfig wlan0 192.168.3.14/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.3.254 dev wlan0 
Last edited by DougieLawson on Sat Aug 07, 2021 10:53 am, edited 1 time in total.
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.

HankB
Posts: 140
Joined: Fri Jan 01, 2016 2:45 pm

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

Sat Aug 07, 2021 10:44 am

Note fix in next to last line "/sbin ip" => "/sbin/ip" and "set -x" to show which command produces what output. Looks like it is working But no dhcp?

Code: Select all

hbarta@meeker:~ $ wf.sh
+ sudo /sbin/modprobe 8188eu
+ sudo /usr/bin/killall -v wpa_supplicant
Killed wpa_supplicant(21574) with signal 15
+ sudo /sbin/ifconfig wlan0 192.168.20.14/24
+ sudo /sbin/ifconfig wlan0 up
+ sudo /sbin/wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
rfkill: Cannot get wiphy information
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
+ sudo /sbin/ip link set wlan0 up
+ sudo /sbin/ip route add default via 192.168.20.254 dev wlan0
hbarta@meeker:~ $ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:aa:e6:2f brd ff:ff:ff:ff:ff:ff
    inet 192.168.20.106/24 brd 192.168.20.255 scope global dynamic noprefixroute eth0
       valid_lft 4652sec preferred_lft 3752sec
    inet6 2601:249:1680:36f0:18c1:b576:917a:596c/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 86397sec preferred_lft 14397sec
    inet6 2601:249:1680:36f1:cc59:906:968c:6272/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 86400sec preferred_lft 14400sec
    inet6 fe80::2d51:b30b:140a:9dd6/64 scope link 
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 60:e3:27:1a:08:3e brd ff:ff:ff:ff:ff:ff
    inet 192.168.20.14/24 brd 192.168.20.255 scope global wlan0
       valid_lft forever preferred_lft forever
    inet 192.168.20.200/24 brd 192.168.20.255 scope global secondary dynamic noprefixroute wlan0
       valid_lft 6871sec preferred_lft 6007sec
    inet6 2601:249:1680:36f0:4b26:c565:a15b:fd7e/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 86398sec preferred_lft 14398sec
    inet6 2601:249:1680:36f1:44c8:6a97:7816:155d/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 86400sec preferred_lft 14400sec
    inet6 fe80::7b65:a61d:148e:9428/64 scope link 
       valid_lft forever preferred_lft forever
hbarta@meeker:~ $ 

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 10:55 am

To get DHCP either reboot or sudo systemctl restart dhcpcd5
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.

HankB
Posts: 140
Joined: Fri Jan 01, 2016 2:45 pm

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

Sat Aug 07, 2021 3:30 pm

Code: Select all

To get DHCP either reboot or sudo systemctl restart dhcpcd5
Not sufficient.

It seems that restarting wpa_supplicant is what is required. I'll have to study the command line arguments and try to figure out why the default does not work.

thanks again.,

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

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

Sat Aug 07, 2021 6:03 pm

If I do ALL of the above-mentioned steps, see everything I'm doing in the modified script below

Code: Select all

#!/bin/bash
set -x
sudo /sbin/modprobe 8188eu
sudo /usr/bin/killall -v wpa_supplicant
sudo /sbin/ifconfig wlan0 192.168.0.101/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
It brings up the wireless. I can then disconnect the ethernet cable from the USB ethernet adapter, exit my ssh session, and reconnect to the pi over just the wireless.

But I don't want to be hard-coding the address, nor have to execute this script via cron on every reboot.

So what's really going on here? Everything relating to wireless was set up before and worked fine with the Mr. Engman supplied driver. Now, with this home-built version, not so much. Why isn't the existing wireless setup sufficient to reliably enable and bring up the wireless using the new driver?

Sorry if I misunderstood this script as a "solution" if it was just intended as a bit of diagnosis.

Return to “Troubleshooting”