Bug 1370585

Summary: Driver For RTL8188EU is missing
Product: [Fedora] Fedora Reporter: Matthias31 <fiedler_matthias>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: af, gansalmon, ichavero, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab, mykartik.9389, rktspm
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Output of lsmod
none
Output of dmseg
none
output of lsusb
none
Steps to compile the rtl8188EUS Driver - and given errors none

Description Matthias31 2016-08-26 16:24:08 UTC
Created attachment 1194413 [details]
Output of lsmod

Description of problem:
in Kernel 4.6.7 is the driver for the RTL8188EU/ chipset not included only RTL8188EE can be found.

but  the RTL8188EU chipset shuld be included since kernel 4.3 so you can see here here:https://l.facebook.com/l.php?u=https%3A%2F%2Fwireless.wiki.kernel.org%2Fen%2Fusers%2Fdrivers%2Frtl819x&h=cAQH-amBP

The Given Driver from the Logilink WLO145a gives following Error when i run the install.sh:

Treiber gibt: make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.6.6-300.fc24.x86_64/build M=/home/mediacenter/Downloads/rtl8188eu  modules
make[1]: *** /lib/modules/4.6.6-300.fc24.x86_64/build: No such file or directory. finish.

Makefile:147: die Regel für Ziel „modules“ scheiterte
make: *** [modules] error 2

Version-Release number of selected component (if applicable):e4.6.7

How reproducible:everytime


Steps to Reproduce:
1.plugin a WLAn dongle with the RTL8188EU chipset e.g Logilink WLO145a
2.boot your PC


Actual results:
The RTL8188EU chipset will not work

Expected results:

The RTL8188EU shuld work
Additional info:

Comment 1 Matthias31 2016-08-26 16:24:47 UTC
Created attachment 1194414 [details]
Output of dmseg

Comment 2 Matthias31 2016-08-26 16:25:16 UTC
Created attachment 1194415 [details]
output of lsusb

Comment 3 Josh Boyer 2016-08-26 16:34:23 UTC
This driver is in staging still.  We don't enable staging drivers unless we have someone explicitly signed up to handle issues and bug reports with them.

Comment 4 Matthias31 2016-08-26 17:34:43 UTC
o i don´ t know it.

Can you me tell about WLAN Dongle,wat for dongle are running in fedora 24

e.g Chipsatz: Realtek RTL8191SU >>> http://www.linux-onlineshop.de/Hardware/Zubehoer-Co/WLAN-USB-Stick-150-Mbps-80211b/g/n.geek ?

Comment 5 rktspm 2016-08-29 20:07:12 UTC
I too would like to have this driver on Fedora. It is used by the TP-LINK TL-WN725N V2, which is a very popular USB adapter.

Right now, the only way to use this in Fedora is to compile the driver yourself.

Comment 6 Matthias31 2016-08-30 05:19:02 UTC
Yeah but it seems there is no way to comiple this driver while i get some errors

make
make: *** Es wurden keine Ziele angegeben und keine „make“-Steuerdatei gefunden.  Schluss.
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.6.7-200.fc23.x86_64/build M=/tmp/rtl8188eu  modules
make: *** /lib/modules/4.6.7-200.fc23.x86_64/build: No such file or directory.  Schluss

Comment 7 Matthias31 2016-08-30 09:11:55 UTC
Created attachment 1195795 [details]
Steps to compile the rtl8188EUS Driver - and given errors

here you can see that get any wrong when i Tried to compile the rtl8188EUS driver

Comment 8 Albert Flügel 2016-09-26 17:03:19 UTC
Regarding comment 3:
What is required to do handling issues and bug reports ?
Building the kernel package, too ? Or is this and packaging done by the kernel maintainers ?
Are there any guidelines ?
Thank you

Comment 9 Kartikay Sharma 2016-11-23 06:05:07 UTC
(In reply to rktspm from comment #5)
> I too would like to have this driver on Fedora. It is used by the TP-LINK
> TL-WN725N V2, which is a very popular USB adapter.
> 
> Right now, the only way to use this in Fedora is to compile the driver
> yourself.

Can you please, please tell me how to compile a driver for tp link wn725n on my own? I have no clue how to even begin and my internal wireless driver doesn't work. Please help.

Comment 10 Kartikay Sharma 2016-11-23 06:07:17 UTC
Please add this driver to Fedora. I really like Fedora a lot but I cannot use it because my internal wireless doesn't work. Please add it.

Comment 11 Albert Flügel 2016-11-23 09:08:46 UTC
Hi, i don't know, whether it is the right place to document this, however, below you can find, how i do it. This way, the driver is built automatically whenever a kernel update is installed and the system boots. The only thing you need to be aware of is, that the system will boot again after a minute or so, when the driver has been built and installed. It might be possible to go without the boot, but loading the driver is usually not the only thing to do. Network manager be restarted or whatever other stuff to be done, depending on how your system is configured. However, the boot after installing the driver does not hurt.

So here is how i do it:
At least the following packages must be installed:
kernel-devel
kernel-headers
make
gcc
So first do as root:
prompt# yum install kernel-devel kernel-headers gcc make

The init script that builds the driver expects the sources in
/opt/local/src/rtl8188eu , so as root create the directory:
prompt# mkdir -p /opt/local/src

(if you use a different directory, you must modify the value of the variable DRIVER_BUILD_DIR in the downloaded init script, please see below)

Go to the directory and obtain the sources:
prompt# cd /opt/local/src
prompt# git clone git://github.com/lwfinger/rtl8188eu

(explained here for Ubuntu: http://linuxforums.org.uk/index.php?topic=11261.0 ,
the command will create the subdirectory of /opt/local/src )

Now download the init script rebuild-rtl8188eu from
http://www.muc.de/~af/linux/rebuild-rtl8188eu

Put it into the directory /etc/init.d
Activate it:
prompt# systemctl enable rebuild-rtl8188eu

Now, for the first time, run it manually:
prompt# /etc/init.d/rebuild-rtl8188eu start

After a minute or so, your system will boot and if everything went well, have the driver loaded. The Script checks, if the driver already has been built for the current kernel and skips the rebuild in that case, so this is not done with every boot.

Comment 12 Matthias31 2016-11-23 16:52:45 UTC
@Albert Flügel will not work under fedora 25
 when i Try to enter /etc/init.d/rebuild-rtl8188eu start it will appear: bash: /etc/init.d/rebuild-rtl8188eu: Permission denied

Comment 13 Matthias31 2016-11-23 17:36:28 UTC
Hey Guys i´ve seen what went wrong in fedora 25

after:
prompt# systemctl enable rebuild-rtl8188eu

get in your terminal as root to: /etc/init.d/ 
and rum: chmod +x rebuild-rtl8188eu
then you can run:/etc/init.d/rebuild-rtl8188eu start
and something went fine

Comment 14 Matthias31 2016-11-27 18:21:25 UTC
after updating to  kernel 4.8.10 from the testing repos the driver will not rebuild while /lib/modules/4.8.10-300.fc25.x86_64/build not exists.

***

INFO: Rebuilding rtl8188eu driver in background ...
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.8.10-300.fc25.x86_64/build M=/opt/local/src/rtl8188eu  modules
make[1]: *** /lib/modules/4.8.10-300.fc25.x86_64/build: No such file or directory.  Schluss.
Makefile:147: die Regel für Ziel „modules“ scheiterte
make: *** [modules] Fehler 2
ERROR: Could not build driver rtl8188eu

So it seems you can never update your kernel or you lost your rtl8188eu
 WIFI stick

Comment 15 Albert Flügel 2016-11-27 19:55:30 UTC
You must also update the kernel-devel package. It is required to build the driver.

Always also name kernel-devel, whenever you update kernel.

Comment 16 Matthias31 2016-11-28 08:57:05 UTC
Thanks for help, now it works.

I´ve install kernel-devel for the 4.8.8 kernel but why didn´t update the kernel-devel package automaticly??

Comment 17 Albert Flügel 2016-11-28 09:04:26 UTC
I don't know. This is something that wonders me, too. However, this is not subject to this issue.

When you run "yum update" or "dnf update", everything is updated. When you update some packages explicitely passing them as arguments, dependencies are resolved. However, for the kernel related packages there seem no explicit dependencies defined, especially not to the versions. Probably because e.g. kernel-devel is optional and the kernel packages are usually not actually updated, but added, 3 versions left in place and older ones uninstalled. So if you want to update the kernel, you want to update all installed kernel-related packages. You can do this e.g. this way:

dnf update `rpm -qa --qf '%{NAME}\n' | grep '^kernel'|sort -u`

Comment 18 Matthias31 2017-02-03 10:54:43 UTC
lbert Flügel

i need the rebuild script agin but it  dosn´ t exists under the url you´ ve posted, can you reupload this script  e. g. google drive ?

thanks for help

Comment 19 Albert Flügel 2017-02-03 18:30:21 UTC
The program is in place again.

Comment 20 Matthias31 2017-02-03 18:49:55 UTC
Thanks for help.
whyyou have it delete from the web?

I think many other user need the driver for the rt8188eu, you shuld never delete the script until redhat release the driver in the kernel

Comment 21 Peter Robinson 2017-02-16 12:09:24 UTC
*** Bug 1397665 has been marked as a duplicate of this bug. ***