You are not logged in.

#1 2016-01-08 07:20:23

x-yuri
Member
Registered: 2013-01-06
Posts: 160

[SOLVED] TL-WN725N: firmware doesn't get loaded

In arch linux I get this:

$ cat /etc/issue
Arch Linux \r (\l)

$ uname -a
Linux yuri 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86_64 GNU/Linux

$ dmesg | tail
...
[   60.046693] usb 8-2: new high-speed USB device number 3 using ehci-pci
[   60.221207] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[   60.222648] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[   60.244773] usbcore: registered new interface driver r8188eu
[   60.253761] r8188eu 8-2:1.0 wlp0s29f7u2: renamed from wlan0

$ ip addr
...
3: wlp0s29f7u2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 60:e3:27:19:76:22 brd ff:ff:ff:ff:ff:ff

$ sudo ip link set wlp0s29f7u2 up
RTNETLINK answers: Operation not permitted

$ iwconfig wlp0s29f7u2
wlp0s29f7u2  unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

$ sudo iwlist wlp0s29f7u2 scan
wlp0s29f7u2  No scan results

In ubuntu this:

$ uname -a
Linux ubuntu-gnome 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/issue
Ubuntu 14.04.1 LTS \n \l

$ dmesg | tail
[  112.488060] usb 2-3: new high-speed USB device number 5 using ehci-pci
[  112.620453] usb 2-3: New USB device found, idVendor=0bda, idProduct=8179
[  112.620457] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  112.620464] usb 2-3: Product: 802.11n NIC
[  112.620467] usb 2-3: Manufacturer: Realtek
[  112.620469] usb 2-3: SerialNumber: 00E04C0001
[  112.671379] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[  112.673567] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[  112.696639] usbcore: registered new interface driver r8188eu
[  112.738475] cfg80211: Calling CRDA to update world regulatory domain
[  112.748660] R8188EU: Firmware Version 11, SubVersion 1, Signature 0x88e1
[  113.076321] MAC Address = 60:e3:27:19:76:22
[  113.078002] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  113.078030] cfg80211: World regulatory domain updated:
[  113.078034] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  113.078037] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  113.078039] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  113.078041] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  113.078043] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  113.078046] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  113.078315] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  113.080890] R8188EU: ERROR indicate disassoc
[  113.081674] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

$ ip addr
...
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 60:e3:27:19:76:22 brd ff:ff:ff:ff:ff:ff

$ iwconfig wlan0
wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

$ sudo iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: AC:CF:85:5A:87:9D
                    ESSID:"MobileWiFi-879d"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Encryption key:on
                    Bit Rates:108 Mb/s
                    Extra:rsn_ie =30180100000fac020200000fac04000fac020100000fac020c00
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    Quality:0  Signal level:0  Noise level:0
...

From what I can tell, the issues is with firmware not being loaded. What am I doing wrong? How to fix it?

Last edited by x-yuri (2016-01-09 22:22:46)

Offline

#2 2016-01-08 07:25:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] TL-WN725N: firmware doesn't get loaded


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-01-09 06:40:41

x-yuri
Member
Registered: 2013-01-06
Posts: 160

Re: [SOLVED] TL-WN725N: firmware doesn't get loaded

First, I already have rtl8188eufw.bin:

$ pacman -Qo /usr/lib/firmware/rtlwifi/rtl8188eufw.bin
/usr/lib/firmware/rtlwifi/rtl8188eufw.bin is owned by linux-firmware 20150904.6ebf5d5-1

Do I still need to install dkms-8188eu?

Second, I can see only 8188eu-dkms in aur. And the thing is I've got no wired connection for now, so I'm booting ubuntu, chroot to arch linux, `pacaur -S 8188eu-dkms`, but it says:

Your kernel headers for kernel 3.13.0-32-generic cannot be found at
/usr/lib/modules/3.13.0-32-generic/build or /usr/lib/modules/3.13.0-32-generic/source.
error: command failed to execute correctly

Which is ubuntu's kernel version. Is there anything I can do about it?

Offline

#4 2016-01-09 11:41:28

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [SOLVED] TL-WN725N: firmware doesn't get loaded

firmware is firmware, module is module; dkms is for building module.

Apparently ubuntu is using the same staging driver instead of what provided by the dkms package.

Btw have you tried loading the cfg80211 module manually? Is it loaded automatically? Coz I don't see r8188eu depends on it. Seems like a bug?

Offline

#5 2016-01-09 22:19:40

x-yuri
Member
Registered: 2013-01-06
Posts: 160

Re: [SOLVED] TL-WN725N: firmware doesn't get loaded

First, thanks for the link, jasonwryan, it now works. The trick was to begin installing it manually (without pacaur), run makepkg for it to downloaded all the needed files. And then retry after booting the installed OS (arch linux, not ubuntu running from usb). The thing that I don't really get is that 8188eu-dkms depends on dkms, and the later was successfully installed as well without internet connection. My conjecture would be that it was taken from cache.

And the other two strange things is that with dkms module it calls itself enp0s29f7u2, not wlp0s29f7u2. And here what I see in dmesg after plugging it in:

[   47.963364] usb 2-2: new high-speed USB device number 2 using ehci-pci
[   48.146787] RTL871X: module init start
[   48.146792] RTL871X: rtl8188eu v4.3.0.8_13968.20150417
[   48.148828] bFWReady == _FALSE call reset 8051...
[   48.168739] RTL871X: rtw_ndev_init(wlan0)
[   48.169096] usbcore: registered new interface driver rtl8188eu
[   48.169099] RTL871X: module init ret=0
[   48.176566] rtl8188eu 2-2:1.0 enp0s29f7u2: renamed from wlan0

Supposedly, it calls itself RTL871X. But still it works.

By the way, I couldn't make it work without reboot. And unloading r8188eu didn't help. (The dkms one is called 8188eu.) So I guess, one should either install dkms package if the adapter wasn't plugged in yet. Or install and reboot.

Then I did:

$ ip link set enp0s29f7u2 up

# wpa_supplicant -D n180211,wext -i enp0s29f7u2 -c <(wpa_passphrase MYSSID MYPASS)
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
enp0s29f7u2: Trying to associate with ac:cf:85:5a:87:9d (SSID='MobileWiFi-879d' freq=2462 MHz)
enp0s29f7u2: Association request to the driver failed
enp0s29f7u2: Associated with ac:cf:85:5a:87:9d
enp0s29f7u2: WPA: Key negotiation completed with ac:cf:85:5a:87:9d [PTK=CCMP GTK=TKIP]
enp0s29f7u2: CTRL-EVENT-CONNECTED - Connection to ac:cf:85:5a:87:9d completed [id=0 id_str=]

# dhcpcd enp0s29f7u2
DUID 00:01:00:01:1b:9e:7c:ee:00:1c:c0:94:38:53
enp0s29f7u2: IAID 27:19:76:22
enp0s29f7u2: rebinding lease of 192.168.1.100
enp0s29f7u2: soliciting an IPv6 router
enp0s29f7u2: probing static address 192.168.1.100/24
enp0s29f7u2: leased 192.168.1.100 for 86400 seconds
enp0s29f7u2: adding route to 192.168.1.0/24
enp0s29f7u2: adding default route via 192.168.1.1
forked to background, child pid 1160

# ip link set enp0s25 down  # my wired connection doesn't work for the moment
tom.ty89 wrote:

firmware is firmware, module is module; dkms is for building module.

For some reason I thought the fact that module is also there is obvious.

$ find /lib/firmware/ -name '*8188eu*' -exec pacman -Qo {} \;
/usr/lib/firmware/rtlwifi/rtl8188eufw.bin is owned by linux-firmware 20150904.6ebf5d5-1
$ find /lib/modules/`uname -r` -name '*8188eu*' -exec pacman -Qo {} \;
/usr/lib/modules/4.2.5-1-ARCH/build/drivers/staging/rtl8188eu/ is owned by linux-headers 4.2.5-1
/usr/lib/modules/4.2.5-1-ARCH/build/include/config/r8188eu.h is owned by linux-headers 4.2.5-1
/usr/lib/modules/4.2.5-1-ARCH/kernel/drivers/staging/rtl8188eu/ is owned by linux 4.2.5-1
/usr/lib/modules/4.2.5-1-ARCH/kernel/drivers/staging/rtl8188eu/r8188eu.ko.gz is owned by linux 4.2.5-1
tom.ty89 wrote:

Apparently ubuntu is using the same staging driver instead of what provided by the dkms package.

the one that comes with the kernel?

tom.ty89 wrote:

Btw have you tried loading the cfg80211 module manually? Is it loaded automatically? Coz I don't see r8188eu depends on it. Seems like a bug?

cfg80211 module is not loaded with or without dkms package being installed. That is, it doesn't need to be loaded for it to work from what I can tell. At least under arch linux. Loading it without installing 8188eu-dkms didn't help.

Thanks for your replies, guys.

P.S. The driver can also be found here. But that probably is the one that comes with dkms package.

Last edited by x-yuri (2016-01-09 22:22:28)

Offline

Board footer

Powered by FluxBB