The Linux Community Forum

Support => General Help & Advice => Topic started by: Mark Greaves (PCNetSpec) on November 05, 2013, 12:28:53 am

Title: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 05, 2013, 12:28:53 am
The 8188eu driver is for adapters with the following vendor:product ID strings:-

2001:330f
8179:07b8
0bda:0179
0bda:8179


This should work for Ubuntu based distros with the 3.8 kernel series .. probably all kernels >= 3.5 .. but I've only tested it in 3.8

Connect to your router with an ethernet cable, so you have an active internet connection
(these instruction won't work without an active internet connection)

Open a terminal (Ctrl+Alt+T) and run these commands in sequence:
Code: [Select]
sudo apt-get install build-essential linux-headers-generic git
then:
Code: [Select]
mkdir ~/RTL8188EU
then:
Code: [Select]
cd ~/RTL8188EU
then:
Code: [Select]
git clone git://github.com/lwfinger/rtl8188eu
then:
Code: [Select]
cd ~/RTL8188EU/rtl8188eu
then:
Code: [Select]
make
then:
Code: [Select]
sudo make install
then
Code: [Select]
sudo cp -v ~/RTL8188EU/rtl8188eu/rtl8188eufw.bin /lib/firmware/rtlwifi/
then:
Code: [Select]
sudo depmod -a
then:
Code: [Select]
sudo update-initramfs -u
then:
Code: [Select]
sudo modprobe 8188eu
Wireless should spring to life.

--
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Soullivaneuh on November 12, 2013, 01:08:57 am
Hi and thanks for the tips,

I followed all your instructions, one by one and the dongle come back to life... for a moment.

Indeed, my network manager connected succesfully to my Wi-Fi network and I have access to Internet. But after a few second, the network manager show me that there is a low wi-fi connection, I still connected to it, but no internet...

Did you have this trouble ? How did you fix it ?

Using Ubuntu 12.04.3-LTS linux-3.8.29-generic with TP-LINK TL-WN725N Ver:2.0

Thanks for help !
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 12, 2013, 01:34:57 am
Yeah someone else has mentioned the same thing, and I'm looking into it, but kinda difficult without the actual hardware.

You up for some experimentation ?

If so, can you post the output from:
Code: [Select]
lsusb
and
Code: [Select]
modinfo 8188eu | grep rtw_power_mgnt



[EDIT]

Try this .. it won't survive a reboot, but if it works we can make it permanent.
run:
Code: [Select]
sudo modprobe -r 8188eu
then
Code: [Select]
sudo modprobe 8188eu rtw_power_mgnt=0
how is wireless now ?

--
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: rubax on November 12, 2013, 12:21:25 pm
Hi,

Thanks for the tips. After hours of searching the net I still can't make my TP-LINK TL-WN725N dongle work in Linux Mint 15.

Would you mind sharing your thoughts?

After following the instructions I get no errors, but network manager still shows Realtek 802.11n NIC as disconnected and no wireless networks show up.

I also tried the commands in your last post, but still no success:
Code: [Select]
> sudo modprobe 8188eu rtw_power_mgnt=0

Background story:
I have a built-in wifi adapter which in network manager is named RTL8191SEvB. However, it is unstable on enterprise wifi (802.1X) which my university uses everywhere. After hours of trying to make that work better I gave up and I intended to buy a TP-LINK TL-WN722N dongle which should work out of the box in linux, but mistakenly I bought the TP-LINK TL-WN725N dongle.

Output snips from various commands:

Code: [Select]
> sudo lshw
*-network
       description: Wireless interface
       physical id: 2
       bus info: usb@2:1
       logical name: wlan2
       serial: 10:fe:ed:12:02:cf
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=r8188eu multicast=yes wireless=unassociated

Code: [Select]
> uname -r
3.8.0-30-generic

Code: [Select]
> iwconfig
wlan2     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

Code: [Select]
> lsusb
Bus 002 Device 002: ID 0bda:8179 Realtek Semiconductor Corp.

Code: [Select]
>  modinfo 8188eu | grep rtw_power_mgnt
parm:           rtw_power_mgnt:int
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 12, 2013, 12:58:20 pm
Hi rubax, and welcome to the forum :)

I notice your lshw output says it's using the r8188eu driver and not 8188eu .. maybe you have a conflicting driver

Can you post the output from:
Code: [Select]
lsmod

If you've compiled the driver above (and I guess you must have if you got output from "modinfo 8188eu"), try running:
Code: [Select]
sudo modprobe -r r8188eu
then
Code: [Select]
sudo sudo modprobe -r 8188eu
then
Code: [Select]
sudo modprobe 8188eu rtw_power_mgnt=0
did that do anything ?

If so, you'll need to blacklist the r8188eu driver .. and possibly set the 8188eu driver to be loaded at boot with the power management option set off

--
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: rubax on November 12, 2013, 02:08:10 pm
Hi Mark,

Thank you for the quick reply. Maybe the driver name in lshw is an error? At least when I try your suggestion I get the following:
Code: [Select]
> sudo modprobe -r r8188eu
FATAL: Module r8188eu not found.

The next command works and the dongle disappears from the list in networkmanager:
Code: [Select]
sudo modprobe -r 8188eu

The next command also works and the dongle reappears in the list in networkmanager:
Code: [Select]
sudo modprobe 8188eu rtw_power_mgnt=0

The output of lsmod:
Code: [Select]
Module                  Size  Used by
hid_generic            12540  0
usbhid                 47074  0
hid                   101002  2 hid_generic,usbhid
pci_stub               12622  1
vboxpci                23194  0
vboxnetadp             25670  0
vboxnetflt             27613  0
vboxdrv               335371  3 vboxnetadp,vboxnetflt,vboxpci
parport_pc             28152  0
ppdev                  17073  0
rfcomm                 42641  12
bnep                   18036  2
joydev                 17377  0
8188eu                692712  0
coretemp               13355  0
kvm                   443165  0
snd_hda_codec_conexant    62000  1
snd_hda_intel          39619  3
snd_hda_codec         136498  2 snd_hda_codec_conexant,snd_hda_intel
snd_hwdep              13602  1 snd_hda_codec
btusb                  22474  0
bluetooth             228667  22 bnep,btusb,rfcomm
snd_pcm                97451  2 snd_hda_codec,snd_hda_intel
dm_multipath           22843  0
scsi_dh                14843  1 dm_multipath
snd_page_alloc         18710  2 snd_pcm,snd_hda_intel
snd_seq_midi           13324  0
snd_seq_midi_event     14899  1 snd_seq_midi
snd_rawmidi            30180  1 snd_seq_midi
psmouse                95905  0
pcmcia                 49007  0
thinkpad_acpi          81222  0
nvram                  14362  1 thinkpad_acpi
microcode              22881  0
arc4                   12615  2
serio_raw              13215  0
r852                   18241  0
lpc_ich                17061  0
sm_common              16860  1 r852
nand                   58949  2 r852,sm_common
snd_seq                61554  2 snd_seq_midi_event,snd_seq_midi
tpm_tis                18675  0
nand_ecc               13273  1 nand
nand_bch               13147  1 nand
bch                    17434  1 nand_bch
nand_ids               12723  1 nand
mtd                    45202  2 nand,sm_common
yenta_socket           31817  0
r592                   18019  0
pcmcia_rsrc            18288  1 yenta_socket
snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
memstick               16554  1 r592
mac_hid                13205  0
pcmcia_core            22569  3 pcmcia,pcmcia_rsrc,yenta_socket
snd_timer              29425  2 snd_pcm,snd_seq
rtl8192se              63284  0
rtlwifi                79673  1 rtl8192se
mac80211              606457  2 rtlwifi,rtl8192se
snd                    68876  16 snd_hwdep,snd_timer,snd_hda_codec_conexant,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,thinkpad_acpi,snd_seq_device
cfg80211              510937  2 mac80211,rtlwifi
mei                    41158  0
soundcore              12680  1 snd
lp                     17759  0
parport                46345  3 lp,ppdev,parport_pc
btrfs                 785967  0
zlib_deflate           26885  1 btrfs
libcrc32c              12615  1 btrfs
dm_raid45              76725  0
xor                    17116  1 dm_raid45
dm_mirror              21946  0
dm_region_hash         20820  1 dm_mirror
dm_log                 18529  3 dm_region_hash,dm_mirror,dm_raid45
firewire_ohci          40103  0
sdhci_pci              18590  0
sdhci                  32522  1 sdhci_pci
firewire_core          64508  1 firewire_ohci
crc_itu_t              12707  1 firewire_core
wmi                    19070  0
ahci                   25731  2
libahci                31364  1 ahci
e1000e                198832  0
i915                  600349  2
video                  19390  1 i915
i2c_algo_bit           13413  1 i915
drm_kms_helper         49394  1 i915
drm                   286028  3 i915,drm_kms_helper

Can my internal card somehow cause conflicts?

Edit:
I initially followed the very short instruction here:
http://the8thlayerof.net/2013/10/16/beagle-bone-black-notes-wifi-rtl8192cu-rtl8188cus-rtl8188eu-wifi-module-tp-link-tl-wn725n/
so I didn't clone the directory via git, but just downloaded the zip from github, but I guess that is irrelevant. For a long time I didn't copy the firmware to the appropriate directory, and when I saw your post I thought that was the solution. Is there anyway to check the firmware is loaded correctly?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 12, 2013, 03:02:04 pm
Yeah, what's the output from:
Code: [Select]
ls -l /lib/firmware/rtlwifi/rtl8188eufw.bin

What happens if you run:
Code: [Select]
sudo modprobe -r rtl8192se rtlwifi mac80211 8188eu
then
Code: [Select]
sudo modprobe 8188eu
?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: rubax on November 12, 2013, 03:10:27 pm
You sir, are a genius!

Code: [Select]
> ls -l /lib/firmware/rtlwifi/rtl8188eufw.bin
-rw-r--r-- 1 root root 13904 Nov 12 11:51 /lib/firmware/rtlwifi/rtl8188eufw.bin

Code: [Select]
> sudo modprobe -r rtl8192se rtlwifi mac80211 8188eu
made me lose all wifi connections.

Code: [Select]
sudo modprobe 8188eu
made wlan2 work.

I have not yet tested whether the wifi-adapter is better at 802.1X than the built in one, but at least it works now.
How do I make the changes permanent?
And is there some way I can still have access to wlan0 as a backup in case I need to pull out the dongle?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 12, 2013, 03:43:27 pm
[EDIT]

BEFORE reading this posting .. read my next

[END EDIT]


Quote
And is there some way I can still have access to wlan0 as a backup in case I need to pull out the dongle?

Erm .. not really, as we'll need to blacklist its drivers (well after blacklisting, I suppose manually modprobing the rtl8192se driver will reload it .. but there's no way to have both at bootup, as they seem to conflict)

Anyway, once you're happy 8188eu is working properly...

Code: [Select]
sudo gedit /etc/modprobe.d/blacklist.conf

add a NEW line at the bottom that reads:
Code: [Select]
blacklist rtl8192se
SAVE the file and exit gedit.

Now run:
Code: [Select]
sudo gedit /modprobe.d/8188eu.conf
when a BLANK file opens, add a single line that reads:-
Code: [Select]
options 8188eu rtw_power_mgnt=0
SAVE the file, and exit gedit.

Now reboot to see if 8188eu is autoloaded at bootup .. if so, you're done

if not, let me know and we'll add it to /etc/modules to be autoloaded.



If it doesn't autoload after your reboot .. manually load it with:
Code: [Select]
sudo modprobe 8188eu rtw_power_mgnt=0

or

for the old card:
Code: [Select]
sudo modprobe rtl8192se

--
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 12, 2013, 03:54:04 pm
Sorry I missed out the power management option in that modprobe.

Is the connection stable .. or does it disappear after a minute or two ?

if it's unstable, try:
Code: [Select]
sudo modprobe -r 8188eu
then just in case you've rebooted:
Code: [Select]
sudo modprobe -r rtl8192se rtlwifi mac80211
then
Code: [Select]
sudo modprobe 8188eu rtw_power_mgnt=0

and let me know if it's NOW stable.

if so, THEN we'll carry on.

--
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Soullivaneuh on November 12, 2013, 06:34:25 pm
Experimentations ? Oh yeah I love that ! :D

So, here is my lsub results:
Code: [Select]
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 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 002 Device 007: ID 046a:0023 Cherry GmbH CyMotion Master Linux Keyboard
Bus 002 Device 003: ID 0bda:8179 Realtek Semiconductor Corp.
Bus 002 Device 008: ID 045e:077d Microsoft Corp.

And for modinfo:
Code: [Select]
sullivan@sweethtpc:~$ modinfo 8188eu | grep rtw_power_mgnt
parm:           rtw_power_mgnt:int

I try your command with rtw_power_mgnt, but after that...
Code: [Select]
sullivan@sweethtpc:~$ ping -I wlan1 google.com
PING google.com (173.194.45.64) from 192.168.137.222 wlan1: 56(84) bytes of data.
From sweethtpc.local (192.168.0.16) icmp_seq=1 Destination Host Unreachable
From sweethtpc.local (192.168.0.16) icmp_seq=2 Destination Host Unreachable
From sweethtpc.local (192.168.0.16) icmp_seq=3 Destination Host Unreachable
^C
--- google.com ping statistics ---

Does't works... :/
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Soullivaneuh on November 12, 2013, 06:43:24 pm
Sorry I missed out the power management option in that modprobe.

Is the connection stable .. or does it disappear after a minute or two ?

if it's unstable, try:
Code: [Select]
sudo modprobe -r 8188eu
then just in case you've rebooted:
Code: [Select]
sudo modprobe -r rtl8192se rtlwifi mac80211
then
Code: [Select]
sudo modprobe 8188eu rtw_power_mgnt=0

and let me know if it's NOW stable.

if so, THEN we'll carry on.

--

Tested that too, doen't works either...

But I have a connection and an IP adress, see that:

Code: [Select]
wlan1     Link encap:Ethernet  HWaddr 64:66:b3:23:fc:2b  
          inet addr:192.168.0.16  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::6666:b3ff:fe23:fc2b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25 errors:0 dropped:52 overruns:0 frame:0
          TX packets:55 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3185 (3.1 KB)  TX bytes:10960 (10.9 KB)

Very weird...
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: rubax on November 13, 2013, 08:14:12 am
Hi again,

Sorry for the slow response. Just after sending my last post my kids required immediate attention, and I simply shut down the computer without doing anything else.

This morning when I booted, but wifi adapters are present i networkmanager and appear to work (at least they see the list of SSIDs and I'm able to connect to a SSID with the dongle). I'm still plugged into ethernet through a docking station, so I'm not really using the wifi connection, but I will start experimenting with that straight away.

In summary:
Code: [Select]
> sudo modprobe -r rtl8192se rtlwifi mac80211 8188eu
> sudo modprobe 8188eu
and then a reboot made everything appear to work. No editing blacklist.conf etc. I'm a bit puzzled... Maybe I will be back reporting problems soon  ;)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: rubax on November 13, 2013, 08:42:41 am
Ok, the wifi is very unstable. It was showing signal strength off about 30%, and I couldn't ping anything.
I did:
> sudo modprobe -r 8188eu
> sudo modprobe 8188eu rtw_power_mgnt=0
and the signal strength immediately looked good and I was able to ping Google. I let the ping run and after packet 19 it stopped working for some time and then came back to life after packet 62ish:
Code: [Select]
....
64 bytes from ea-in-f105.1e100.net (74.125.136.105): icmp_req=18 ttl=47 time=24.0 ms
64 bytes from ea-in-f105.1e100.net (74.125.136.105): icmp_req=19 ttl=47 time=24.3 ms
From abel.local (172.17.56.236) icmp_seq=62 Destination Host Unreachable
From h236.aau-1-day-2a.wlan.aalborguniversitet.dk (172.17.56.236) icmp_seq=63 Destination Host Unreachable
From h236.aau-1-day-2a.wlan.aalborguniversitet.dk (172.17.56.236) icmp_seq=64 Destination Host Unreachable
64 bytes from ea-in-f105.1e100.net (74.125.136.105): icmp_req=65 ttl=47 time=23.9 ms
64 bytes from ea-in-f105.1e100.net (74.125.136.105): icmp_req=66 ttl=47 time=24.3 ms
.....
Then I quit the ping command and hoped that now it was working, but shortly after it stopped working again, and now I'm writing this from eth0...

My next step will be to try to kill the internal wifi adapter with the combined modprobe -r command you provided and see if that helps.

I will report back soon.

[EDIT]
I tried the other commands with the same results:

Code: [Select]
> sudo modprobe -r rtl8192se rtlwifi mac80211
> sudo modprobe 8188eu rtw_power_mgnt=0
Very good signal strength for about 20 seconds and then the signal drops to 12% and I can't ping anything.
[END EDIT]
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 13, 2013, 04:08:51 pm
It seems a lot of people were having the same issue with packet loss, but it was *supposed* to have been fixed in the latest version .. I'm looking for a solution, but it's not easy without the hardware.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: rubax on November 17, 2013, 11:15:06 am
That is very frustrating, but I guess there isn't much to do about it at the moment. Thank you so much for your help anyway.

Please let me know if you think of some experiment I can try or there is a new version of the driver available (I will stay subscribed to this thread).
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: xzhh on January 26, 2014, 01:35:34 pm
Hi, it works fine but not as a hotspot.
I tried system settings>network>use as hotspot, and ap-hotspot & hostapd as well.
Do u think it is the problem due to the installation or the driver?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on January 27, 2014, 02:07:04 pm
"Probably", can't say for sure .. but welcome to the forum :)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newbielinuxuser on July 10, 2014, 07:08:18 am
I'm so sorry for reviving this topic, I have look around all the solution that google provided me and tried almost each of them, but none of them works, maybe i'm too newbie in linux, so please help me with this and the information will be stated below, please do let me know if i missed something, any help is much appreciate...
Wireless Device Full Name : D-Link Wireless N 150 USB Adapter
Wireless Adapter Model : DWA-125D1, for this model information, please visit here, https://wikidevi.com/wiki/D-Link_DWA-125_rev_D1 (https://wikidevi.com/wiki/D-Link_DWA-125_rev_D1)
Code: [Select]
uname -a
Linux kali 3.14-kali1-amd64 #1 SMP Debian 3.14.4-1kali1 (2014-05-14) x86_64 GNU/Linux

Code: [Select]
lsusb
Bus 001 Device 002: ID 2001:3310 D-Link Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Code: [Select]
iwconfig
eth0      no wireless extensions.
lo        no wireless extensions.
wlan0     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
          Encryption key: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

Code: [Select]
ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:29:fe:13:78 
          inet addr:192.168.5.132  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fefe:1378/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:46785 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15854 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:56439010 (53.8 MiB)  TX bytes:1156267 (1.1 MiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:60 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3600 (3.5 KiB)  TX bytes:3600 (3.5 KiB)

P/S :
root@kali:~/Desktop/rtl8188eu/rtl8188eu# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.14-kali1-amd64/build M=/root/Desktop/rtl8188eu/rtl8188eu  modules
make: *** /lib/modules/3.14-kali1-amd64/build: No such file or directory.  Stop.
make: *** [modules] Error 2


Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on July 10, 2014, 03:07:55 pm
Make sure you have the build tools and kernel headers installed
Code: [Select]
sudo apt-get install build-essential linux-headers-generic
then try compiling the drivers again.

If that errors out, what distro/version are you running ?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newbielinuxuser on July 10, 2014, 04:45:52 pm
Code: [Select]
sudo apt-get install biuld-essential linux-headers-generic
root@kali:~# sudo apt-get install biuld-essential linux-headers-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package biuld-essential
E: Package 'linux-headers-generic' has no installation candidate


This virtual machine is running Ubuntu 64-bit
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on July 10, 2014, 04:57:30 pm
a) you spelled "build-essential" wrong in your command

and

b) you're running a non standard kernel (so the headers probably won't be in the repos) .. which virtualisation software are you running, and how did you create the VM ?

and can you post the output from:
Code: [Select]
apt-cache search linux-headers
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newbielinuxuser on July 10, 2014, 05:22:17 pm
a)
Code: [Select]
sudo apt-get install build-essential linux-headers-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-headers-generic' has no installation candidate

b) I'm using the VMware Player(Non-commerce usage) to create this virtual machine, should i include the hardware configuration information?
And
the output of this
Code: [Select]
apt-cache search linux-headers
linux-headers-3.12-kali1-all - All header files for Linux 3.12 (meta-package)
linux-headers-3.12-kali1-all-amd64 - All header files for Linux 3.12 (meta-package)
linux-headers-3.12-kali1-amd64 - Header files for Linux 3.12-kali1-amd64
linux-headers-3.12-kali1-common - Common header files for Linux 3.12-kali1
linux-headers-3.12-kali1-common-rt - Common header files for Linux 3.12-kali1-rt
linux-headers-3.12-kali1-rt-amd64 - Header files for Linux 3.12-kali1-rt-amd64
linux-headers-3.14-kali1-all - All header files for Linux 3.14 (meta-package)
linux-headers-3.14-kali1-all-amd64 - All header files for Linux 3.14 (meta-package)
linux-headers-3.14-kali1-amd64 - Header files for Linux 3.14-kali1-amd64
linux-headers-3.14-kali1-common - Common header files for Linux 3.14-kali1
linux-headers-3.14-kali1-common-rt - Common header files for Linux 3.14-kali1-rt
linux-headers-3.14-kali1-rt-amd64 - Header files for Linux 3.14-kali1-rt-amd64
linux-headers-amd64 - Header files for Linux amd64 configuration (meta-package)
linux-headers-rt-amd64 - Header files for Linux rt-amd64 configuration (meta-package)
linux-headers-3.12-kali1-486 - Header files for Linux 3.12-kali1-486
linux-headers-3.12-kali1-686-pae - Header files for Linux 3.12-kali1-686-pae
linux-headers-3.12-kali1-all-i386 - All header files for Linux 3.12 (meta-package)
linux-headers-3.12-kali1-rt-686-pae - Header files for Linux 3.12-kali1-rt-686-pae
linux-headers-3.14-kali1-486 - Header files for Linux 3.14-kali1-486
linux-headers-3.14-kali1-686-pae - Header files for Linux 3.14-kali1-686-pae
linux-headers-3.14-kali1-all-i386 - All header files for Linux 3.14 (meta-package)
linux-headers-3.14-kali1-rt-686-pae - Header files for Linux 3.14-kali1-rt-686-pae
linux-headers-486 - Header files for Linux 486 configuration (meta-package)
linux-headers-686-pae - Header files for Linux 686-pae configuration (meta-package)
linux-headers-rt-686-pae - Header files for Linux rt-686-pae configuration (meta-package)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on July 10, 2014, 05:40:36 pm
OK, first let's get build-essential installed, so we can forget about that one:
Code: [Select]
sudo apt-get install build-essential

Now what happens if you run:
Code: [Select]
sudo apt-get install linux-headers-$(uname -r)
do the kernel headers get installed ?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newbielinuxuser on July 10, 2014, 06:00:13 pm
Code: [Select]
sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 56 not upgraded.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on July 10, 2014, 06:17:59 pm
Just let us know how it goes .. if the kernel headers get installed, try compiling the wireless driver again.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newbielinuxuser on July 10, 2014, 06:36:49 pm
Code: [Select]
sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  linux-headers-3.14-kali1-common linux-kbuild-3.14
The following NEW packages will be installed:
  linux-headers-3.14-kali1-amd64 linux-headers-3.14-kali1-common
  linux-kbuild-3.14
0 upgraded, 3 newly installed, 0 to remove and 56 not upgraded.
Need to get 5,006 kB of archives.
After this operation, 33.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://http.kali.org/kali/ kali/main linux-headers-3.14-kali1-common amd64 3.14.5-1kali2 [4,313 kB]
Get:2 http://http.kali.org/kali/ kali/main linux-kbuild-3.14 amd64 3.14-1kali1 [258 kB]
Get:3 http://http.kali.org/kali/ kali/main linux-headers-3.14-kali1-amd64 amd64 3.14.5-1kali2 [435 kB]
Fetched 5,006 kB in 7min 14s (11.5 kB/s)                                       
Selecting previously unselected package linux-headers-3.14-kali1-common.
(Reading database ... 337446 files and directories currently installed.)
Unpacking linux-headers-3.14-kali1-common (from .../linux-headers-3.14-kali1-common_3.14.5-1kali2_amd64.deb) ...
Selecting previously unselected package linux-kbuild-3.14.
Unpacking linux-kbuild-3.14 (from .../linux-kbuild-3.14_3.14-1kali1_amd64.deb) ...
Selecting previously unselected package linux-headers-3.14-kali1-amd64.
Unpacking linux-headers-3.14-kali1-amd64 (from .../linux-headers-3.14-kali1-amd64_3.14.5-1kali2_amd64.deb) ...
Setting up linux-headers-3.14-kali1-common (3.14.5-1kali2) ...
Setting up linux-kbuild-3.14 (3.14-1kali1) ...
Setting up linux-headers-3.14-kali1-amd64 (3.14.5-1kali2) ...

Thank you for your patience, the downloads is complete, so what is the next step ?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on July 10, 2014, 07:03:30 pm
install git with:
Code: [Select]
sudo apt-get install git
then start at the second command here:
http://linuxforums.org.uk/index.php?topic=11261.msg89502#msg89502 (http://linuxforums.org.uk/index.php?topic=11261.msg89502#msg89502)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newbielinuxuser on July 10, 2014, 07:42:59 pm
Wow! You're amazing ! Finally I can use wireless right now! I thought I could never work this out! Do you mind briefly explain how it works? Because all I know was to get a driver installed to make it work, because I never been through all these linux headers before, I didn't know that installing a driver could be this tough not to mention 2-3 days were used just to figure how to work this out.

Off Topic :
So now I can connect to my wireless, however some of the programs did not recognize my wireless, does it require a reboot or something ?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on July 10, 2014, 08:01:16 pm
What do you mean by:-  however some of the programs did not recognize my wireless

?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newbielinuxuser on July 10, 2014, 08:11:37 pm
Like for example, when i did airmon-ng wlan0 (wlan0 my interface name), the chipset is displayed as Unknown, same goes to fern-wifi software, there isn't any wireless device detected during the process
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on July 10, 2014, 08:14:06 pm
I seriously doubt if either of those programs can be made to work with these drivers yet .. and on the whole I don't give support for them.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newbielinuxuser on July 10, 2014, 08:38:12 pm
Aw, that's too bad then... So there's nothing I can do now, right?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on July 10, 2014, 08:42:22 pm
You're best off asking on the aircrack-ng forum:
http://forum.aircrack-ng.org/ (http://forum.aircrack-ng.org/)

I know little about it.

It's my intention to help people with Linux problems, not breaking wireless encryption (even for legitimate purposes).
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newbielinuxuser on July 10, 2014, 09:36:24 pm
Alright, You already helped me a lot and thank you =)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on July 10, 2014, 10:19:44 pm
You're most welcome :)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newquestion12 on February 10, 2015, 01:13:32 pm
Hello Marc

I need little help with the same issue here
after:
Code: [Select]
sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

and then I run

Code: [Select]
sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.14-kali1-amd64
E: Couldn't find any package by regex 'linux-headers-3.14-kali1-amd64'

and this is from git

Code: [Select]
sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Code: [Select]
uname -a
Linux ema 3.14-kali1-amd64 #1 SMP Debian 3.14.5-1kali1 (2014-06-07) x86_64 GNU/Linux

Any ideas ?

Thank you
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on February 10, 2015, 01:24:22 pm
Their repo's now only seem to contain the kernel headers for the 3.16 and 3.18 series kernels:
http://http.kali.org/kali/pool/main/l/linux/ (http://http.kali.org/kali/pool/main/l/linux/)

are you fully up to date ?
(because you seem to be running a 3.14 series kernel)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newquestion12 on February 10, 2015, 01:45:12 pm
I think so.... not sure

Code: [Select]
sudo apt-get dist-upgrade                                                                                                                                                                 [sudo] 
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on February 10, 2015, 01:49:52 pm
did you update the package cache first
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get dist-upgrade

and which version of kali are you running ? .. is it still supported ?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newquestion12 on February 10, 2015, 02:05:42 pm
update and dist-upgrade all done
ver 1.0.9 x64
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on February 10, 2015, 02:09:26 pm
REBOOT .. then post the output from:
Code: [Select]
uname -a
It's IMPORTANT that you reboot first.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newquestion12 on February 10, 2015, 02:13:10 pm
output from uname -a if in the first post
reboot was done few hours ago
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newquestion12 on February 10, 2015, 02:15:22 pm
my mistake :)
after reboot
Code: [Select]
Linux ema 3.18.0-kali1-amd64 #1 SMP Debian 3.18.3-1~kali4 (2015-01-22) x86_64 GNU/Linux
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on February 10, 2015, 02:17:09 pm
OK, NOW you have the 3.18 kernel, so try:
Code: [Select]
sudo apt-get install linux-headers-$(uname -r)
again.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: newquestion12 on February 10, 2015, 02:23:47 pm
yes, now all works correctly
so it was all my fault
my distro was well upgraded but without reboot ;)

Sorry for disturbing and tnx for the advice
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on February 10, 2015, 02:32:13 pm
No problem .. kernel updates won't get loaded until after a reboot, so if you're telling it to get the headers for the CURRENT kernel.... ;)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Abel408 on April 07, 2015, 06:22:38 pm
I'm having trouble compiling this driver. Here is my distro information:
3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

When I run make, this is what I receive:
Code: [Select]
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.16.0-30-generic/build M=/root/RTL8188EU/rtl8188eu  modules
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-30-generic'
  CC [M]  /root/RTL8188EU/rtl8188eu/core/rtw_ap.o
In file included from /root/RTL8188EU/rtl8188eu/include/rtw_ht.h:24:0,
                 from /root/RTL8188EU/rtl8188eu/include/drv_types.h:36,
                 from /root/RTL8188EU/rtl8188eu/core/rtw_ap.c:23:
/root/RTL8188EU/rtl8188eu/include/wifi.h:636:29: error: field ‘mcs’ has incomplete type
   struct ieee80211_mcs_info mcs;
                             ^
make[2]: *** [/root/RTL8188EU/rtl8188eu/core/rtw_ap.o] Error 1
make[1]: *** [_module_/root/RTL8188EU/rtl8188eu] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-30-generic'
make: *** [modules] Error 2

Any help is greatly appreciated!
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: malibusurfer on April 21, 2015, 05:07:12 pm
How can you get the driver to stick upon reboot? I have the rtl8188ee driver working pretty well, but upon reboot or cold start, I have to open a terminal and run sudo modprobe rtl8188ee to get wireless working again on my Toshiba Satellite laptop.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on April 22, 2015, 06:15:31 am
Add it to the "modules" file, so it's loaded each boot

Open a terminal and run:
Code: [Select]
sudo gedit /etc/modules
then add a single new line at the bottom that reads:-

rtl8188ee

SAVE the file .. reboot to test
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: malibusurfer on April 26, 2015, 09:37:07 pm
Thanks. Solved the problem. Linux rules! Realtek not so much.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on April 27, 2015, 12:09:20 am
LOL .. you're welcome :)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distro
Post by: dheeru0071 on May 01, 2015, 08:50:50 pm
hi mark I am facing the problem while installing RTL8188EU wireless drivers in 3.19 kernel Ubuntu based distros. I am using ubuntu 15.04 32 bit and i have tried whatever you have suggested in this post. Please suggest me something.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on May 01, 2015, 09:42:14 pm
With your PC connected to your router via an ethernet cable, open a terminal and run these commands in sequence:
Code: [Select]
sudo apt-get install linux-headers-generic build-essential dkms git
then
Code: [Select]
mkdir ~/rtl8188eu
then
Code: [Select]
cd ~/rtl8188eu
then
Code: [Select]
git clone git://github.com/lwfinger/rtl8188eu
then
Code: [Select]
sudo cp -v rtl8188eu/rtl8188eufw.bin /lib/firmware/rtlwifi/
then
Code: [Select]
sudo dkms add ./rtl8188eu
then
Code: [Select]
sudo dkms build 8188eu/1.0
then
Code: [Select]
sudo dkms install 8188eu/1.0
if any of that throws an error STOP and say which command caused the error, and what the error was.

if it all went well, reboot

then if necessary modprobe the driver
Code: [Select]
sudo modprobe 8188eu

if still nothing, post the output from:
Code: [Select]
sudo lshw -C network
and
Code: [Select]
modinfo 8188eu | grep filename
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: dheeru0071 on May 03, 2015, 09:32:29 am
I have formatted my laptop and installed kubuntu14.04 in it and followed the same you told me now. I also tried the commands in the beginning of this thread but nothing happed. The output as asked by you are

dheer@dheer-HP-Compaq-nc6220-ER512EP-UUF:~$ sudo lshw -C network
[sudo] password for dheer:
  *-network               
       description: Ethernet interface
       product: NetXtreme BCM5751M Gigabit Ethernet PCI Express
       vendor: Broadcom Corporation
       physical id: 0
       bus info: pci@0000:10:00.0
       logical name: eth0
       version: 11
       serial: 00:14:c2:e4:09:ff
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.134 duplex=full firmware=5751m-v3.29a ip=192.168.11.95 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:16 memory:d0000000-d000ffff
dheer@dheer-HP-Compaq-nc6220-ER512EP-UUF:~$ modinfo 8188eu | grep filename
modinfo: ERROR: Module 8188eu not found.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on May 03, 2015, 03:44:31 pm
if the 8188eu module wasn't compiled and installed, then (at least) one of the commands MUST have thrown an error .. I cannot help you if you don't say which command, and what the error was.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: dheeru0071 on May 03, 2015, 06:06:47 pm
Sorry I have done these steps again and now the output it is showing is

dheer@dheer-HP-Compaq-nc6220-ER512EP-UUF:~/rtl8188eu$ sudo lshw -C network
  *-network               
       description: Ethernet interface
       product: NetXtreme BCM5751M Gigabit Ethernet PCI Express
       vendor: Broadcom Corporation
       physical id: 0
       bus info: pci@0000:10:00.0
       logical name: eth0
       version: 11
       serial: 00:14:c2:e4:09:ff
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.134 duplex=full firmware=5751m-v3.29a ip=192.168.11.95 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:16 memory:d0000000-d000ffff
dheer@dheer-HP-Compaq-nc6220-ER512EP-UUF:~/rtl8188eu$ modinfo 8188eu | grep filename
filename:       /lib/modules/3.13.0-51-generic/updates/dkms/8188eu.ko
dheer@dheer-HP-Compaq-nc6220-ER512EP-UUF:~/rtl8188eu$
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: dheeru0071 on May 03, 2015, 07:04:57 pm
Now it is showing the wireless networks but I am unable to make a hotspot in it for my mobile. Can you tell me how to make it? I am using kubuntu 14.04
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on May 03, 2015, 08:46:52 pm
I have no idea about hotspots, I've never tried to set one up

It is however worrying that the lshw output deosn't show a wireless adapter at all ???
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: dheeru0071 on May 04, 2015, 01:31:18 am
i don't know about it that why it is showing no adapter but i am able to connect to wifi networks but unable to make any hotspot though
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: johnywhy on September 02, 2015, 09:24:55 am
hi, thx for this STILL RELEVANT thread. The basic steps at the beginning of the thread got me connected.

minor hitch, my xfce connection list on the newly installed adapter is doing something strange:

connections i've never connected to before show zero bars, but connections i've connected to before show bars. In other words, connections that have good strength, to which i AM able to connect no problem, show no bars before the 1st time i connect to them.

You can tell the Realtek adapter is failing to register connection strength correctly, by comparing to the Ralink adapter (which is correctly registering strength).

this is a minor issue, as i am able to connect on the Realtek adapter, even tho showing no bars.

any ideas?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 09, 2015, 11:26:01 pm
I tried to follow the tutorial at the Reply 53 but when I digit
Code: [Select]
sudo dkms build 8188eu/1.0
I found an error:
"Your kernel headers for kernel 3.18.0-25-rpi2 cannot be found. Please install the linux-headers3.18.0-25-rpi2 package, or...(and so on)".

What can I do?

I use a Raspberry Pi 2 with Ubuntu Mate.
Thank you.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 09, 2015, 11:35:43 pm
Hi Leonarduino87, and welcome to the forum :)

Try:
Code: [Select]
sudo apt-get install linux-headers-$(uname -r) build-essential dkms git

or maybe download the linux-headers-3.18.0-25-rpi2 .deb from here:
https://launchpad.net/~fo0bar/+archive/ubuntu/rpi2/+sourcepub/5193147/+listing-archive-extra
and install it.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 23, 2015, 10:03:02 pm
I tried but the terminal says:

E: Unable to locate package linux-headers-4.1.10-v7
E: Couldn't find any package by regex 'linux-headers-4.1.10-v7'

Some hint?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 24, 2015, 11:05:12 am
Somewhere along the line it looks like you've changed from the 3.8 kernel to the 4.1 kernel (?)

What's the output from:
Code: [Select]
uname -a
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 27, 2015, 09:58:44 pm
Linux leo-desktop 4.1.10-v7+ #821 SMP PREEMPT Sat Oct 10 00:16:28 BST 2015 armv7l armv7l GNU/Linux

It's a Raspberry Pi 2 with Ubuntu Mate.
My problem is that when I use at the same time the wifi (TL-WN725N) and the bluetooth (CLS bluetooth v4) the internet connection is too slow and unstable.
When I remove the bluetooth internet is fast like a normal pc.
Maybe is a current problem (not enough Ampere in the USB devices) but maybe is a driver's problem.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 27, 2015, 10:35:17 pm
Have you not got a powered USB hub you could try ?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 28, 2015, 10:39:48 am
No, I haven't.

But how can I understand if the drivers are correctly installed?
I tried

sudo iwconfig

and the terminal says:
no wireless extensions.
Is it normal? And if I write:

lsusb

I'll have a Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter.
I'm a little bit confused.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 28, 2015, 10:56:52 am
What's the output from:
Code: [Select]
sudo lshw -C network
and
Code: [Select]
lspci -vnn | grep -iA2 net
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 28, 2015, 11:23:52 am
What's the output from:
Code: [Select]
sudo lshw -C network
and
Code: [Select]
lspci -vnn | grep -iA2 net

  *-network:0             
       description: Ethernet interface
       physical id: 2
       logical name: enxb827eb89de31
       serial: b8:27:eb:89:de:31
       size: 10Mbit/s
       capacity: 100Mbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=smsc95xx driverversion=22-Aug-2005 duplex=half firmware=smsc95xx USB 2.0 Ethernet link=no multicast=yes port=MII speed=10Mbit/s
  *-network:1
       description: Wireless interface
       physical id: 3
       bus info: usb@1:1.3
       logical name: wlxc4e9840f0b3a
       serial: c4:e9:84:0f:0b:3a
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=r8188eu ip=192.168.1.111 multicast=yes wireless=IEEE 802.11bgn

and

pcilib: Cannot open /proc/bus/pci
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 28, 2015, 01:28:42 pm
Okay, can we have the output from:
Code: [Select]
lsusb
instead then please.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 28, 2015, 01:39:04 pm
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 28, 2015, 08:08:47 pm
is there any output from:
Code: [Select]
rfkill list
?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 28, 2015, 08:20:53 pm
0: hci0: Bluetooth
   Soft blocked: no
   Hard blocked: no
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 28, 2015, 08:58:46 pm
Okay it seems you can download the headers for your arm kernel (4.1.10-v7) from here:
http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-4.1.10-v7%2B_4.1.10-v7%2B-2_armhf.deb (http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-4.1.10-v7%2B_4.1.10-v7%2B-2_armhf.deb)
parent directory link:
http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/ (http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 28, 2015, 10:47:43 pm
And then?
I'm so sorry but I'm a newbie  :D :D :D
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 29, 2015, 02:02:13 pm
With your PC connected to your router via an ethernet cable, open a terminal and run these commands in sequence:
Code: [Select]
mkdir ~/kernel-headers
then
Code: [Select]
cd ~/kernel-headers
then
Code: [Select]
wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-4.1.10-v7%2B_4.1.10-v7%2B-2_armhf.deb
then
Code: [Select]
sudo dpkg -i *.deb
then
Code: [Select]
sudo apt-get install build-essential dkms git
then
Code: [Select]
mkdir ~/rtl8188eu
then
Code: [Select]
cd ~/rtl8188eu
then
Code: [Select]
git clone git://github.com/lwfinger/rtl8188eu
then
Code: [Select]
sudo cp -v rtl8188eu/rtl8188eufw.bin /lib/firmware/rtlwifi/
then
Code: [Select]
sudo dkms add ./rtl8188eu
then
Code: [Select]
sudo dkms build 8188eu/1.0
then
Code: [Select]
sudo dkms install 8188eu/1.0
if any of that throws an error STOP and say which command caused the error, and what the error was.

if it all went well, reboot

then if necessary (if wireless didn't automatically start) modprobe the driver
Code: [Select]
sudo modprobe 8188eu

if still nothing, post the output from:
Code: [Select]
sudo lshw -C network
and
Code: [Select]
modinfo 8188eu | grep filename
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 29, 2015, 10:15:34 pm
leo@leo-desktop:~/kernel-headers$ sudo dpkg -i *.deb
[sudo] password for leo:
Selecting previously unselected package linux-headers-4.1.10-v7+.
(Reading database ... 197729 files and directories currently installed.)
Preparing to unpack linux-headers-4.1.10-v7+_4.1.10-v7+-2_armhf.deb ...
Unpacking linux-headers-4.1.10-v7+ (4.1.10-v7+-2) ...
dpkg: dependency problems prevent configuration of linux-headers-4.1.10-v7+:
 linux-headers-4.1.10-v7+ depends on gcc-4.7; however:
  Package gcc-4.7 is not installed.

dpkg: error processing package linux-headers-4.1.10-v7+ (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-headers-4.1.10-v7+
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 30, 2015, 12:39:01 am
Run these in sequence:
Code: [Select]
sudo apt-get install build-essential dkms git
then
Code: [Select]
cd ~/kernel-headers
then
Code: [Select]
wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-4.1.10-v7%2B_4.1.10-v7%2B-2_armhf.deb
then
Code: [Select]
sudo dpkg -i *.deb
then
Code: [Select]
mkdir ~/rtl8188eu
then
Code: [Select]
cd ~/rtl8188eu
then
Code: [Select]
git clone git://github.com/lwfinger/rtl8188eu
then
Code: [Select]
sudo cp -v rtl8188eu/rtl8188eufw.bin /lib/firmware/rtlwifi/
then
Code: [Select]
sudo dkms add ./rtl8188eu
then
Code: [Select]
sudo dkms build 8188eu/1.0
then
Code: [Select]
sudo dkms install 8188eu/1.0
if any of that throws an error STOP and say which command caused the error, and what the error was.

if it all went well, reboot

then if necessary (if wireless didn't automatically start) modprobe the driver
Code: [Select]
sudo modprobe 8188eu

if still nothing, post the output from:
Code: [Select]
sudo lshw -C network
and
Code: [Select]
modinfo 8188eu | grep filename
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 30, 2015, 08:34:04 am
leo@leo-desktop:~$ sudo apt-get install build-essential dkms git
[sudo] password for leo:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
git is already the newest version.
dkms is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-headers-4.1.10-v7+ : Depends: gcc-4.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on November 30, 2015, 03:45:13 pm
try:
Code: [Select]
sudo apt-get -f install
then start again
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on November 30, 2015, 05:37:19 pm
leo@leo-desktop:~$ sudo apt-get install build-essential dkms git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
git is already the newest version.
dkms is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up linux-headers-4.1.10-v7+ (4.1.10-v7+-2) ...
make: Entering directory '/usr/src/linux-headers-4.1.10-v7+'
*** Default configuration is based on 'bcm2709_defconfig'
#
# configuration written to .config
#
make: Leaving directory '/usr/src/linux-headers-4.1.10-v7+'
make: Entering directory '/usr/src/linux-headers-4.1.10-v7+'
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
grep: scripts/../arch/x86/syscalls/syscall_32.tbl: No such file or directory
make: Leaving directory '/usr/src/linux-headers-4.1.10-v7+'
dpkg-query: package '8188eu-dkms' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: 8188eu-dkms is not installed
dpkg: error processing package linux-headers-4.1.10-v7+ (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-headers-4.1.10-v7+
E: Sub-process /usr/bin/dpkg returned an error code (1)

It's something impossible  ;D ;D ;D

Is it better that I format the MicroSD?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on December 01, 2015, 03:10:40 am
OK one step at a time....

What's the output from:
Code: [Select]
cd ~/kernel-headers
then
Code: [Select]
sudo dpkg -i linux-headers-4.1.10-v7+_4.1.10-v7+-2_armhf.deb
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on December 01, 2015, 09:27:54 am
I formatted the MicroSD and I restarted with

sudo apt-get build-essential dkms git
 
Then:
leo@leo-desktop:~/kernel-headers$ sudo dpkg -i linux-headers-4.1.10-v7+_4.1.10-v7+-2_armhf.deb
dpkg: error processing archive linux-headers-4.1.10-v7+_4.1.10-v7+-2_armhf.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 linux-headers-4.1.10-v7+_4.1.10-v7+-2_armhf.deb
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: SeZo on December 01, 2015, 06:54:39 pm
Did you do this part?
Code: [Select]
cd ~/kernel-headers
then
Code: [Select]
wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-4.1.10-v7%2B_4.1.10-v7%2B-2_armhf.deb
before
Code: [Select]
sudo dpkg -i linux-headers-4.1.10-v7+_4.1.10-v7+-2_armhf.deb
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on December 01, 2015, 08:11:51 pm
So you've done a fresh install ?

If so we'll have to start from the beginning again .. what's the output from:
Code: [Select]
uname -a
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on December 02, 2015, 03:36:14 pm
I've done everything!!!
How could I see if everything works correctly?
But, when I boot the Raspberry it's possible to read [   5.575058] Error: Driver 'r8188eu' is already registered, aborting...
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on December 03, 2015, 12:49:15 am
run:
Code: [Select]
echo "blacklist r8188eu" | sudo tee -a /etc/modprobe.d/blacklist.conf
then REBOOT.

Do you still get that message ?

After the above, what's the output from:
Code: [Select]
lsmod
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on December 03, 2015, 08:33:10 pm
leo@leo-desktop:~$ lsmod
Module                  Size  Used by
rfcomm                 34759  14
hid_magicmouse          5391  0
evdev                  10216  2
joydev                  9047  0
hid_apple               4840  0
hidp                   13516  2
fuse                   81710  3
cfg80211              420690  0
bnep                   10642  2
bcm2835_gpiomem         3023  0
8188eu                736401  0
uio_pdrv_genirq         2966  0
uio                     8235  1 uio_pdrv_genirq
btusb                  29247  0
btbcm                   4430  1 btusb
btintel                 1381  1 btusb
bluetooth             327544  47 bnep,hidp,btbcm,btusb,rfcomm,btintel
rfkill                 16659  5 cfg80211,bluetooth
bcm2708_rng              980  0
snd_bcm2835            19769  1
snd_pcm_oss            37207  0
snd_mixer_oss          14367  1 snd_pcm_oss
snd_pcm                74825  2 snd_bcm2835,snd_pcm_oss
snd_seq_dummy           1124  0
snd_seq_oss            31795  0
snd_seq_midi            4472  0
snd_rawmidi            18068  1 snd_seq_midi
snd_seq_midi_event      5383  2 snd_seq_oss,snd_seq_midi
snd_seq                53561  6 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy,snd_seq_midi
snd_seq_device          3650  4 snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_midi
snd_timer              18157  2 snd_pcm,snd_seq
snd                    52116  11 snd_bcm2835,snd_pcm_oss,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_seq_oss,snd_seq_device,snd_mixer_oss
ipv6 
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on December 04, 2015, 11:32:15 pm
Do you still get the error message ?

does wireless now work ?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Leonarduino87 on December 12, 2015, 09:40:16 pm
Yes,
everything works well.
Good job!
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: kbrown on December 16, 2015, 09:15:24 pm
Hi,

I followed the instructions on the first post of this thread in attempt to get my old 32bit linuxcnc machine (debian wheezy based, 3.4.9-rtai kernel) connected to my wifi hub which is a BT Home Hub 2 I believe. The driver compiled, installed and gets loaded just fine but no matter what I try I cannot get the machine to authenticate with the hub. It sees the network but cannot connect. I tries but then just asks for the password over and over again. I've tried everything I can with the network settings and checked the password several times but no avail.

Strangely enough I can connect to my Raspberry Pi which I've set up as a WiFi access point for other purposes.

Any help would be appreciated.

Ta,
Kari
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on December 16, 2015, 09:20:42 pm
Try setting a static IP for your IPv4 profile in network manager.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: kbrown on December 16, 2015, 10:37:09 pm
Thanks for the quick answer. Unfortunately the result remains the same. The syslog below indicates some kind of timeout during authentication. Not sure what this means...

Just for sake of testing I plugged in the mini wifi usb dongle (rtl8192cu based) from my Raspberry Pi into this machine and it worked. However I'd rather get this D-Link GO-USB-N150 to work with it instead as it's bigger and not really suitable for Raspberry Pi because of that.

Here's the syslog. Hope it tells you something:

Code: [Select]
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: get_secret_flags: assertion `is_secret_prop (setting, secret_name, error)' failed
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) scheduled...
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) started...
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> (wlan1): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) scheduled...
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 1 of 5 (Device Prepare) complete.
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) starting...
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> (wlan1): device state change: prepare -> config (reason 'none') [40 50 0]
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1/wireless): connection 'BTHomeHub2-6G7C' has security, and secrets exist.  No new secrets needed.
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Config: added 'ssid' value 'BTHomeHub2-6G7C'
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Config: added 'scan_ssid' value '1'
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Config: added 'psk' value '<omitted>'
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Activation (wlan1) Stage 2 of 5 (Device Configure) complete.
Dec 16 20:21:50 linuxcnc NetworkManager[2885]: <info> Config: set interface ap_scan to 1
Dec 16 20:21:51 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: disconnected -> scanning
Dec 16 20:21:52 linuxcnc wpa_supplicant[3350]: wlan1: Trying to associate with 00:20:4d:2b:e6:50 (SSID='BTHomeHub2-6G7C' freq=2457 MHz)
Dec 16 20:21:52 linuxcnc wpa_supplicant[3350]: wlan1: Association request to the driver failed
Dec 16 20:21:52 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: scanning -> associating
Dec 16 20:21:52 linuxcnc wpa_supplicant[3350]: wlan1: Associated with 00:20:4d:2b:e6:50
Dec 16 20:21:52 linuxcnc kernel: [ 2501.097840] R8188EU: INFO assoc success
Dec 16 20:21:52 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: associating -> associated
Dec 16 20:22:02 linuxcnc wpa_supplicant[3350]: wlan1: Authentication with 00:20:4d:2b:e6:50 timed out.
Dec 16 20:22:02 linuxcnc kernel: [ 2511.099580] R8188EU: INFO indicate disassoc
Dec 16 20:22:02 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Dec 16 20:22:02 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: associated -> disconnected
Dec 16 20:22:03 linuxcnc kernel: [ 2512.421088] R8188EU: INFO indicate disassoc
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Trying to associate with 00:20:4d:2b:e6:50 (SSID='BTHomeHub2-6G7C' freq=2457 MHz)
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Association request to the driver failed
Dec 16 20:22:03 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: disconnected -> associating
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:20:4d:2b:e6:50 reason=0
Dec 16 20:22:03 linuxcnc kernel: [ 2512.463413] R8188EU: INFO assoc success
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Trying to associate with 00:20:4d:2b:e6:50 (SSID='BTHomeHub2-6G7C' freq=2457 MHz)
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Association request to the driver failed
Dec 16 20:22:03 linuxcnc kernel: [ 2512.482090] R8188EU: INFO indicate disassoc
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Associated with 00:00:00:00:00:00
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:20:4d:2b:e6:50 reason=0
Dec 16 20:22:03 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: associating -> disconnected
Dec 16 20:22:03 linuxcnc wpa_supplicant[3350]: wlan1: Associated with 00:20:4d:2b:e6:50
Dec 16 20:22:03 linuxcnc kernel: [ 2512.568101] R8188EU: INFO assoc success
Dec 16 20:22:03 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: disconnected -> associated
Dec 16 20:22:13 linuxcnc wpa_supplicant[3350]: wlan1: Authentication with 00:20:4d:2b:e6:50 timed out.
Dec 16 20:22:13 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Dec 16 20:22:13 linuxcnc kernel: [ 2522.568921] R8188EU: INFO indicate disassoc
Dec 16 20:22:13 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: associated -> disconnected
Dec 16 20:22:15 linuxcnc kernel: [ 2523.892974] R8188EU: INFO indicate disassoc
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: Trying to associate with 00:20:4d:2b:e6:50 (SSID='BTHomeHub2-6G7C' freq=2457 MHz)
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: Association request to the driver failed
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: disconnected -> associating
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:20:4d:2b:e6:50 reason=0
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <warn> Activation (wlan1/wireless): association took too long.
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <info> (wlan1): device state change: config -> need-auth (reason 'none') [50 60 0]
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <warn> Activation (wlan1/wireless): asking for new secrets
Dec 16 20:22:15 linuxcnc kernel: [ 2524.035647] R8188EU: INFO assoc success
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: Trying to associate with 00:20:4d:2b:e6:50 (SSID='BTHomeHub2-6G7C' freq=2457 MHz)
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: Association request to the driver failed
Dec 16 20:22:15 linuxcnc kernel: [ 2524.053837] R8188EU: INFO indicate disassoc
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <info> (wlan1): supplicant interface state: associating -> disconnected
Dec 16 20:22:15 linuxcnc NetworkManager[2885]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: Associated with 00:00:00:00:00:00
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: No network configuration found for the current AP
Dec 16 20:22:15 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Dec 16 20:22:15 linuxcnc kernel: [ 2524.137869] R8188EU: INFO assoc success
Dec 16 20:22:15 linuxcnc kernel: [ 2524.138464] R8188EU: INFO indicate disassoc
Dec 16 20:22:16 linuxcnc wpa_supplicant[3350]: wlan1: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
Dec 16 20:22:16 linuxcnc kernel: [ 2525.469342] R8188EU: INFO indicate disassoc
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on December 17, 2015, 12:17:47 am
is it picking up your router with:
Code: [Select]
iwlist scan
?

and can you post the output from:
Code: [Select]
lsmod
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: kbrown on December 17, 2015, 12:51:01 am
Yes. Among a few others iwlist scan finds my router:
Code: [Select]
          Cell 02 - Address: 00:23:4D:2B:E6:50
                    ESSID:"BTHomeHub2-6G7C"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.457 GHz (Channel 10)
                    Encryption key:on
                    Bit Rates:130 Mb/s
                    Extra:wpa_ie =dc1c0050f20101000050f20202000050f2040050f20201000050f2020c00
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    Extra:rsn_ie =31180100000fac020200000fac04000fac020100000fac020c00
                    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

And lsmod says:
Code: [Select]
Module                  Size  Used by
8188eu                637056  0
ppdev                  12591  0
lp                     12767  0
bnep                   17186  2
rfcomm                 36117  0
bluetooth             166348  10 bnep,rfcomm
rfkill                 18403  3 bluetooth
uinput                 17057  1
nfsd                  202675  2
nfs                   277039  0
nfs_acl                12464  2 nfs,nfsd
auth_rpcgss            32226  2 nfs,nfsd
fscache                35490  1 nfs
lockd                  56898  2 nfs,nfsd
sunrpc                151263  6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
loop                   21832  0
snd_intel8x0           22341  1
snd_ac97_codec         96201  1 snd_intel8x0
snd_pcm                69181  2 snd_ac97_codec,snd_intel8x0
snd_page_alloc         12842  2 snd_intel8x0,snd_pcm
snd_seq                43338  0
snd_seq_device         12981  1 snd_seq
snd_timer              22188  2 snd_pcm,snd_seq
snd                    46731  8 snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm,snd_seq,snd_seq_device
shpchp                 30674  0
soundcore              12891  1 snd
ac97_bus               12463  1 snd_ac97_codec
k8temp                 12476  0
evdev                  17099  9
parport_pc             21896  1
parport                35208  3 lp,ppdev,parport_pc
i2c_nforce2            12521  0
i2c_core               23097  1 i2c_nforce2
button                 12818  0
ext4                  270189  1
crc16                  12328  2 ext4,bluetooth
jbd2                   54294  1 ext4
mbcache                12899  1 ext4
sg                     25482  0
sd_mod                 43403  3
crc_t10dif             12333  1 sd_mod
usbhid                 39608  0
ata_generic            12440  0
hid                    72252  1 usbhid
pata_amd               13084  2
sata_nv                22085  0
floppy                 51935  0
libata                152992  3 sata_nv,pata_amd,ata_generic
scsi_mod              125436  3 sg,libata,sd_mod
ohci_hcd               26266  0
ehci_hcd               43561  0
forcedeth              56263  0
usbcore               124257  5 ohci_hcd,ehci_hcd,usbhid,8188eu
usb_common             12339  1 usbcore

Appreciate your help!
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on December 17, 2015, 01:57:57 pm
will it connect if you temporarily (just as a test) disable wireless security in your router ?

and can you post the output from:
Code: [Select]
modinfo 8188eu
and
Code: [Select]
ls -l /lib/firmware/rtlwifi/rtl8188eufw.bin
and
Code: [Select]
sudo lshw -C network

[EDIT]

Quote
                    Bit Rates:130 Mb/s

There's normally a list of possible connection speeds here...

Can you check if wireless in your router is set to wireless "N" only .. if it is, try setting it to "B/G/N"
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: kbrown on December 17, 2015, 06:57:36 pm
Ok. Getting some progress now. I was able to connect when I changed the security from wpa/wpa2 personal to none. The router was already set to 802.11 b/g/n so I didn't change it. In the router's settings page it also says "Actual data transfer speed 65 Mbps". Not sure where the 130 came from...

Anyway here are the outputs you asked for:

modinfo 8188eu
Code: [Select]
filename:       /lib/modules/3.4-9-rtai-686-pae/kernel/drivers/net/wireless/8188eu.ko
version:        v4.1.4_6773.20130222
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     BB97F7E3F4F970628EC7EA3
alias:          usb:v056Ep4008d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v2001p3311d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v2001p3310d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v2001p330Fd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0DF6p0076d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v07B8p8179d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0BDAp0179d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0BDAp8179d*dc*dsc*dp*ic*isc*ip*
depends:        usbcore
vermagic:       3.4-9-rtai-686-pae SMP preempt mod_unload modversions 686
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           ifname:The default name to allocate for first interface (charp)
parm:           if2name:The default name to allocate for second interface (charp)
parm:           rtw_initmac:charp
parm:           rtw_channel_plan:int
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_mp_mode:int
parm:           rtw_wmm_enable:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_busy_thresh:int
parm:           rtw_ht_enable:int
parm:           rtw_cbw40_enable:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_ampdu_amsdu:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_rf_config:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_enusbss:int
parm:           rtw_hwpdn_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_fw_iol:FW IOL (int)
parm:           rtw_mc2u_disable:int
parm:           rtw_80211d:Enable 802.11d mechanism (int)
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm:           debug:Set debug level (1-9) (default 1) (int)

ls -l /lib/firmware/rtlwifi/rtl8188eufw.bin
Code: [Select]
root@linuxcnc:~# ls -l /lib/firmware/rtlwifi/rtl8188eufw.bin 
-rw-r--r-- 1 root root 13904 Dec 16 02:44 /lib/firmware/rtlwifi/rtl8188eufw.bin

sudo lshw -C network (while connected to the open wifi network)
Code: [Select]
  *-network
       description: Wireless interface
       physical id: 1
       bus info: usb@1:7
       logical name: wlan1
       serial: c4:a8:1d:f3:04:98
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=r8188eu ip=192.168.1.69 multicast=yes wireless=IEEE 802.11bgn


sudo lshw -C network (while wpa/wpa2 security on and unable to connect)
Code: [Select]
  *-network
       description: Wireless interface
       physical id: 1
       bus info: usb@1:7
       logical name: wlan1
       serial: c4:a8:1d:f3:04:98
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=r8188eu multicast=yes wireless=unassociated
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on December 17, 2015, 09:21:11 pm
What happens if you run:
Code: [Select]
sudo rmmod r8188eu
then
Code: [Select]
sudo modprobe 8188eu
are you then able to connect ?

if not, can you post the output from:
Code: [Select]
lsmod
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: kbrown on December 17, 2015, 09:41:20 pm
Thanks for trying. My system does not have a module named r8188eu so the result of lsmod is identical to my reply #95.

I found a few other hits online regarding WPA/WPA2 authentication problems with Realtek chips in Linux. Few of them turned out to be a bug in the driver so I've raised an issue at GitHub (https://github.com/lwfinger/rtl8188eu/issues). I will reply here if I get a solution to this.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on December 17, 2015, 11:55:36 pm
OK, I find this a bit odd then
Quote
  *-network
       description: Wireless interface
       physical id: 1
       bus info: usb@1:7
       logical name: wlan1
       serial: c4:a8:1d:f3:04:98
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=r8188eu multicast=yes wireless=unassociated
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: kbrown on December 18, 2015, 12:26:04 am
Yes it is a bit odd... I saw that too but sudo rmmod r8188eu just resulted in an error. It was never loaded and doesn't seem to exist.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on December 18, 2015, 12:49:00 am
does it exist though ?

do you get any output from:
modinfo r8188eu
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: kbrown on December 18, 2015, 01:03:31 am
Nope. I just get a module not found error. Even find doesn't find anything containing r8188eu.
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: CrypticBit on September 26, 2016, 10:58:15 am
Howdy, sorry if this is in the wrong spot.
I've been trying to install this driver without much success, I think I'm installing the wrong version but not sure how to fix that.

Linux raspberrypi 3.18.9-v7 #7 SMP PREEMPT Sun Jun 28 09:33:18 CST 2015 armv7l GNU/Linux

Edit: I seem to have got it working however it's constantly connecting and then drops out. I can SSH into the pi through wifi though. It's odd does anyone know what could be causing this?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Rebel450 on October 13, 2016, 11:19:32 pm
The 8188eu driver is for adapters with the following vendor:product ID strings:-

.....
0bda:8179[/b]

This should work for Ubuntu based distros with the 3.8 kernel series .. probably all kernels >= 3.5 .. but I've only tested it in 3.8
.......
Wireless should spring to life.

--

I just registered just to say  - thanx !
That USB dongle made me mad ( I got 20 piece of them..)
- but your How2 saved my day :-)

By the way:
It also works on 4.4.0-43 Kernel (in my case Linux Mint 18 Cinnamon 64bit) already after the 1st try.
The USB dongle is a " COMFAST.  Modell: CF-WU810N"  bought on eBay for 1,79€  from Hong Kong...
Now it works fine - before it seems to connect, but dropped the internet connection every now and then - and  funny thing:
The Network Manager (in tray) shows 255% signal strength.

So, if someone similar issues = you can take this how2 for Linux Mint Sarah as well.

Kind Regards
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on October 16, 2016, 02:26:29 pm
Many thanks Rebel450, great to know the "how to" still works :)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: chung1608 on May 27, 2017, 03:14:13 pm
I do follow topic but have the error, plz help me fix it  :'( :'( :'( (http://i243.photobucket.com/albums/ff247/kinglord1608/Untitled_zpsuxpt08ua.png) (http://s243.photobucket.com/user/kinglord1608/media/Untitled_zpsuxpt08ua.png.html)
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: Mark Greaves (PCNetSpec) on June 29, 2017, 02:56:36 pm
Which distro and version is this ?
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: inyotef on October 15, 2017, 02:18:28 am
root@inyotef:~# cd ~/RTL8188EU/rtl8188eu
root@inyotef:~/RTL8188EU/rtl8188eu# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.13.0-kali1-amd64/build M=/root/RTL8188EU/rtl8188eu  modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-kali1-amd64'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-kali1-amd64'
Title: Re: How to install RTL8188EU wireless drivers in 3.8 kernel Ubuntu based distros
Post by: inyotef on October 15, 2017, 02:21:17 am
Code: [Select]
root@inyotef:~# cd ~/RTL8188EU/rtl8188eu
root@inyotef:~/RTL8188EU/rtl8188eu# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.13.0-kali1-amd64/build M=/root/RTL8188EU/rtl8188eu  modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-kali1-amd64'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-kali1-amd64'
Code: [Select]

root@inyotef:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0e0f:0008 VMware, Inc.
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@inyotef:~# dpkg -l linux-headers-\* | grep ii
ii  linux-headers-4.13.0-kali1-amd64  4.13.4-1kali1 amd64        Header files for Linux 4.13.0-kali1-amd64
ii  linux-headers-4.13.0-kali1-common 4.13.4-1kali1 all          Common header files for Linux 4.13.0-kali1
root@inyotef:~# uname -a
Linux inyotef 4.13.0-kali1-amd64 #1 SMP Debian 4.13.4-1kali1 (2017-10-03) x86_64 GNU/Linux


Code: [Select]
root@inyotef:~# dpkg -l linux-image-\* | grep ii
ii  linux-image-4.13.0-kali1-amd64 4.13.4-1kali1  amd64        Linux 4.13 for 64-bit PCs
root@inyotef:~#
SimplePortal 2.3.3 © 2008-2010, SimplePortal