rtl8188eu didn't work in Centos 7

Issues related to configuring your network
Post Reply
User avatar
rosen
Posts: 4
Joined: 2014/11/25 16:28:59

rtl8188eu didn't work in Centos 7

Post by rosen » 2018/03/24 14:49:52

I installed Centos 7 in my desktop computer and I want to access the wifi network,so I tried to install the Realtek wireless driver,it installed success,but I still can not access to the wireless network,I need someone who can help me.

This is my Centos 7 version:

Code: Select all

[root@rosen lucumt]# uname -a
Linux rosen 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@rosen lucumt]# lsb_release
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
When use lsusb,below is the output:

Code: Select all

[root@rosen lucumt]# lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 003 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 003 Device 004: ID 04d9:1702 Holtek Semiconductor, Inc. Keyboard LKS02
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The driver is RTL8188EUS,so I clone driver from https://github.com/lwfinger/rtl8188eu ,compile and install it without error.
Using lsmodand the output is below,so I think the rtl8188 driver is installed success.

Code: Select all

[root@rosen lucumt]# lsmod |grep 8188
8188eu                768700  0 
Using ifconfig -a,the output is below:

Code: Select all

[root@rosen lucumt]# ifconfig -a
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.40  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::4216:7eff:fee8:3e12  prefixlen 64  scopeid 0x20<link>
        ether 40:16:7e:e8:3e:12  txqueuelen 1000  (Ethernet)
        RX packets 322691  bytes 362079820 (345.3 MiB)
        RX errors 0  dropped 450  overruns 0  frame 0
        TX packets 117935  bytes 18881791 (18.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 416278  bytes 495254973 (472.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 416278  bytes 495254973 (472.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp0s20u3: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.1.5  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 08:57:00:33:df:e7  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 167708850 (159.9 MiB)
        RX errors 0  dropped 1617  overruns 0  frame 0
        TX packets 0  bytes 13670706 (13.0 MiB)
        TX errors 0  dropped 1 overruns 0  carrier 0  collisions 0
Then, using ifconfig wlp0s20u3 up to start it,since my wireless access point is called CMCC-ADyS,so I run as below:

Code: Select all

[root@rosen lucumt]# iwlist wlp0s20u3 scan|grep ADyS
                    ESSID:"CMCC-ADyS"
It can find out the wireless access point! Then using iwconfig to check it further:

Code: Select all

[root@rosen lucumt]# iwconfig
wlp0s20u3  IEEE 802.11bgn  ESSID:"CMCC-ADyS"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 04:25:C5:26:0F:44   
          Bit Rate:72.2 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=69/100  Signal level=-50 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lo        no wireless extensions.

enp3s0    no wireless extensions.
Now I tried to connect the wifi via wpa_supplicant,I created the wpa_supplicant.conf file and store my ssid and psk,but the result seems to show that it was not run success.

Code: Select all

[root@rosen lucumt]# wpa_supplicant -B -i wlp0s20u3 -c /etc/wpa_supplicant/wpa_supplicant.conf -D wext
Successfully initialized wpa_supplicant
rfkill: Cannot get wiphy information
ioctl[SIOCSIWAP]: Operation not permitted
Using dhclient seems to output nothing:

Code: Select all

root@rosen lucumt]# dhclient wlp0s20u3
dhclient(29548) is already running - exiting. 

This version of ISC DHCP is based on the release available
on ftp.isc.org.  Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.

Please report for this software via the CentOS Bugs Database:
    http://bugs.centos.org/

exiting.
Using nmcli also show nothing!

Code: Select all

[root@rosen lucumt]# nmcli dev wifi list
[root@rosen lucumt]# 
Using dmesg showing below:

Code: Select all

[root@rosen lucumt]# dmesg|grep 8188eu
[    0.934858] 8188eu: loading out-of-tree module taints kernel.
[    0.934879] WARNING: module '8188eu' built without retpoline-enabled compiler, may affect Spectre v2 mitigation
[    0.935127] 8188eu: module verification failed: signature and/or required key missing - tainting kernel
[    0.958911] usbcore: registered new interface driver r8188eu
I have turn off secure boot on BIOS and it still can not access to the wireless network,can anyone help me? Thanks in advance!

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: rtl8188eu didn't work in Centos 7

Post by TrevorH » 2018/03/24 17:11:22

I'd suggest undoing what you've done so far as it sounds like you've done a source install for the module. That means it will break on each and every kernel update in the future and will need rebuilding all the time. The ELRepo third party yum repo, which specialises in extra hardware support, has a kmod-8188eu-4.1.4_6773.20130222-3.el7_4.elrepo.x86_64 package that contains the 8188eu kernel module and that is built in such a way that it will survive most future kernel updates and avoid the rebuild requirement.

Also, when using multiple interfaces, things get complicated when you attempt to assign ip addresses in the same subnet to more than one interface. Your 2 have 192.168.1.40 and 192.168.1.5 which means that it will get very unhappy about packets arriving on one interface and then leaving by the one the default route is set up to use. Take down your other interface before you test this one.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
rosen
Posts: 4
Joined: 2014/11/25 16:28:59

Re: rtl8188eu didn't work in Centos 7

Post by rosen » 2018/03/25 10:52:01

@TrevorH,
Yes,when I do this test,I made a wired connection at the same time,now when I disable the wired connection and try again it works! :D ;)

The command I execute is listed as below:

Code: Select all

sudo ifconfig wlp0s20u3 up;
sudo wpa_supplicant -B -i wlp0s20u3 -c /etc/wpa_supplicant/wpa_supplicant.conf -D wext;
sudo dhclient wlp0s20u3
I found the last step dhclient can not missed,otherwise it will not work.

But I faced a weird thing: my computer can connect to the wireless network and the ping command works fine,but in the KDE network configuration panel,I can not see any available wireless connections!

Post Reply