FreedomBen / rtl8188ce-linux-driver

This modified version of the RealTek WiFi driver fixes some issues with RealTek cards on Linux.
GNU General Public License v2.0
491 stars 108 forks source link

Can you port rtl8192cu to ubuntu 14.04? #17

Open facat opened 10 years ago

facat commented 10 years ago

When I checkout ubuntu 14.04 branch, the rtl8192cu folder disappears. I guess rtl8192cu only support arch linux, not ubuntu 14.04 yet. Can you port it to ubuntu 14.04? Or can you tell me how to do that?

FreedomBen commented 10 years ago

@facat I actually have rtl8192cu ported to Ubuntu 14.04 already, I just haven't merged it in to the main ubuntu-14.04 branch yet since I haven't had a chance to test it much. If you want to give it a shot it is on the f20-test-upgrades branch. When it asks you if it should switch branches for you, tell it no. If that works for you, let me know. It works for me but again I haven't had a lot of stick time on it. git checkout f20-test-upgrades

FreedomBen commented 10 years ago

Ok I totally lied. It is almost ported. I need to straighten out a symbol dependency issue real quick and then it should be good

FreedomBen commented 10 years ago

Ok, should be ready for you to give it a shot now. I am able to build and insert the module just fine on my machine. Let me know if you have any problems.

facat commented 10 years ago

@FreedomBen. My ubuntu was broken today. I'm afraid I cannot test it right now. I'l do that as soon as I fix my ubuntu. Thank you for your endeavor.

facat commented 10 years ago

@FreedomBen I tried. It doesn't work. I use modprobe to load rtl8192cu, but it says ERROR: could not insert 'rtl8192cu': Unknown symbol in module, or unknown parameter (see dmesg). When I see dmesg, it says [ 238.761315] rtl8192c_common: module verification failed: signature and/or required key missing - tainting kernel [ 238.770238] rtl8192cu: Unknown symbol rtl_usb_probe (err 0) [ 238.770397] rtl8192cu: Unknown symbol rtl_usb_disconnect (err 0)

I'm using ubuntu 14.04 64bit.

eberhab commented 10 years ago

Hi, I'd be very very interested as well. I am trying to get a wn8200nd from tp-link running under mint16/ 17 and lmde since days with no luck. This is about kernel 3.11 to 13. I even tried a plain wheezy with kernel 3.2 but no luck. I tried various methods that I found in different forums to get rtl8192cu running under all theses os'es and it always worked, the modules loaded, I could see a bunch of hotspots but it always failed to connect to them. The device itself is fine though as it seems to connect under windows ...

twain28 commented 10 years ago

Any news on this? I see some of the code has been changed 20 days-1 month ago...I might be interested in testing it: I got a SITECOM N300 USB WIFI ADAPTER WLA-2103, which apparently has this chipset. As of now, a few modded drivers do work, but monitor mode is offlimits and network manager is quite slow on Ubuntu 14.04LTS.

zorkerz commented 10 years ago

I've been using this driver with 14.04 since 14.04 came out. Works great here. Much much thanks!

On Thu, Sep 4, 2014 at 7:38 AM, twain28 notifications@github.com wrote:

Any news on this? I see some of the code has been changed 20 days-1 month ago...I might be interested in testing it: I got a SITECOM N300 USB WIFI ADAPTER WLA-2103, which apparently has this chipset. As of now, a few modded drivers do work, but monitor mode is offlimits and network manager is quite slow on Ubuntu 14.04LTS.

— Reply to this email directly or view it on GitHub https://github.com/FreedomBen/rtl8188ce-linux-driver/issues/17#issuecomment-54458485 .

twain28 commented 10 years ago

@zorkerz Thank you, I cloned and installed without issues yesterday. Now I just have to find out a way to uninstall the driver I am using right now and use this one...am_i_using_this_driver reports "nope" so far...

FreedomBen commented 10 years ago

@twain28 What does the am_i_using_this_driver report? Does it say you're using rtlwifi and rtl8192c_common?

twain28 commented 10 years ago

@FreedomBen script actually reports:

-e [*] Not running any rtlwifi
-e [*] Not running any rtl8192c_common
-e [*] Not running any rtl8192ce

Edit: I manually tried modprobing each of the listed drivers, and they load ok, then I tried with rtl8192cu, and the output reads:

modprobe: ERROR: could not insert 'rtl8192cu': Unknown symbol in module, or unknown parameter (see dmesg)

Am I missing something?

twain28 commented 10 years ago

A bit more infos. lsmod reads as follows:

Module                  Size  Used by
cfg80211              484040  0 
snd_hda_codec_hdmi     46368  4 
bnep                   19624  2 
rfcomm                 69160  0 
bluetooth             391136  10 bnep,rfcomm
joydev                 17381  0 
hid_generic            12548  0 
usbhid                 52570  0 
hid                   106148  2 hid_generic,usbhid
8192cu                527283  0 
snd_ca0106             44698  2 
snd_ac97_codec        130285  1 snd_ca0106
snd_hda_intel          56451  2 
ac97_bus               12730  1 snd_ac97_codec
snd_hda_codec         192906  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep              13602  1 snd_hda_codec
snd_pcm               102099  5 snd_ac97_codec,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_ca0106
snd_seq_midi           13324  0 
snd_seq_midi_event     14899  1 snd_seq_midi
snd_rawmidi            30144  2 snd_ca0106,snd_seq_midi
snd_page_alloc         18710  3 snd_pcm,snd_hda_intel,snd_ca0106
coretemp               13435  0 
snd_seq                61560  2 snd_seq_midi_event,snd_seq_midi
kvm_intel             143060  0 
kvm                   451511  1 kvm_intel
snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
usb_storage            62209  0 
snd_timer              29482  2 snd_pcm,snd_seq
usblp                  22891  0 
serio_raw              13462  0 
lpc_ich                21080  0 
nouveau              1097199  3 
snd                    69322  20 snd_ac97_codec,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_ca0106,snd_seq_midi
mxm_wmi                13021  1 nouveau
wmi                    19177  2 mxm_wmi,nouveau
video                  19476  1 nouveau
ttm                    85115  1 nouveau
drm_kms_helper         53081  1 nouveau
drm                   303102  5 ttm,drm_kms_helper,nouveau
ppdev                  17671  0 
soundcore              12680  1 snd
i2c_algo_bit           13413  1 nouveau
parport_pc             32701  1 
lp                     17759  0 
parport                42348  3 lp,ppdev,parport_pc
asus_atk0110           18657  0 
mac_hid                13205  0 
pata_acpi              13038  0 
psmouse               106678  0 
r8169                  67581  0 
mii                    13934  1 r8169
pata_jmicron           12758  0 
floppy                 69418  0

(yes, I still have a floppy drive :P )

actual loaded driver is 8192cu (I checked with modprobe), and here's its modinfo output:

filename:       /lib/modules/3.13.0-35-generic/kernel/drivers/net/wireless/8192cu.ko
version:        v4.0.2_9000.20130911
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     3DC37B92B147C1CFE4B117F
alias:          usb:v0BDAp8186d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p016Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0070d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0950d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v06F8pE035d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0100d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp2E2Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp1004d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0020d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0019d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846pF001d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846p9021d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17ABd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0061d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20F4p624Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp2103d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp2102d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v4855p0091d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07AAp0056d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p8178d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB2Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392p7822d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p341Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3309d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p330Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3307d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019p1201d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04F2pAFFCd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04F2pAFFBd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04F2pAFF8d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04F2pAFFAd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04F2pAFF9d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04F2pAFF7d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3358d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3359d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp317Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp0A8Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:vCDABp8011d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8176d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp094Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp1E1Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17BAd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:vCDABp8010d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p330Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB2Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019p4902d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846p9041d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v4856p0091d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp5088d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p005Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3357d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v4855p0090d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20F4p648Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB2Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp1102d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3308d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v103Cp1629d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v06F8pE033d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0EB0p9071d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p8189d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392p7811d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0052d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pED17d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1058p0631d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8191d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp817Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8178d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8177d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp17C0d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp018Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp818Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp817Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8754d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp817Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp817Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp817Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp817Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8170d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8176d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8191d*dc*dsc*dp*ic*isc*ip*in*
depends:        
vermagic:       3.13.0-35-generic SMP mod_unload modversions 
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_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_special_rf_path:int
parm:           rtw_antdiv_cfg: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_force_iol:Force to enable IOL (bool)
parm:           rtw_mc2u_disable:int
parm:           rtw_mac_phy_mode:int
parm:           rtw_80211d:int
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)

the driver I'm actually on should be the one located at https://code.google.com/p/realtek-8188cus-wireless-drivers-3444749-ubuntu-1304/downloads/list (I emphasize the should, since I had tried many different versions before that, but I distinctively remember my wifi adapter started working immediately after I installed that deb).

Next step was to sudo modprobe -r 8192cu. Off the wifi went. I re-ran the ./install.sh script, and surprisingly noticed only now the "[*] I wasn't able to find a Realtek card on your machine. Do you want to proceed anyway?" message....could it be my wifi card is not listed among the ones this rtl8192cu driver works for? (If so, just let me know if I have to create a new issue topic (I fear I am already off topic here).

FreedomBen commented 10 years ago

Hmm, the missing symbol problem is interesting. I'll have to take a look at that. What is your output from lsb_release -a? Can you also paste the output of lspci and lsusb?

FreedomBen commented 10 years ago

Yep, I'm seeing the missing symbol error now.

It may be a little while until I have time to work on it, but I'll try to get it figured out. In the mean time you could probably get immediate relief by upgrading your kernel. The symbol error isn't present in kernel 3.16, and maybe 3.14 and 3.15. Heck it may just be Ubuntu's kernel and a more vanilla 3.13 would work fine too, since they have a weird sort of hybrid where they take from newer kernels but only backport select things. Makes maintaining drivers on Ubuntu fun ;-)

If you could still paste the output of lspci and lsusb that would be helpful, so I can make sure the hardware detection routine is sane for the 8192cu.

twain28 commented 10 years ago

@FreedomBen Thanks for your support! I will definitely upgrade my kernel tonight. lsb-release -a prints the following:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:    14.04
Codename:   trusty

lspci reads as follows:

00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
00:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
00:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.1 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Port 2
00:1c.2 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 3
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
01:00.0 VGA compatible controller: NVIDIA Corporation GT216 [GeForce GT 220] (rev a2)
01:00.1 Audio device: NVIDIA Corporation GT216 HDMI Audio Controller (rev a1)
02:00.0 USB controller: Fresco Logic Device 1100 (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
04:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller
06:01.0 Multimedia audio controller: Creative Labs CA0106 Soundblaster

...while lsusb gets the following:

Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 03f0:b402 Hewlett-Packard PhotoSmart 7700 series
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0df6:0070 Sitecom Europe B.V. 
Bus 001 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 046d:c52e Logitech, Inc. 
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Device should be the one at Bus 001 Device 005: ID 0df6:0070 Sitecom Europe B.V.

Just let me know if you need anything more. ;)

twain28 commented 10 years ago

Just a very quick update: I updated my kernel to 16.2 (ubuntu release, just to try), and I was able to modprobe rtl8192cu. The driver seemed to load correctly, but still I got no wifi input.

twain28 commented 10 years ago

A few more cents on my card: as far as I understand it, the WLA-2103 shares the same device ID as the WLA-2102 (https://wikidevi.com/wiki/Sitecom_WLA-2102 , previous model, supporting only b and g freq), which, in fact, should be running on the same rtl8192cu driver.

nexusfallout commented 9 years ago

hi @FreedomBen
i use 8192cu chipset in kali 1.0.8(3.14) i installed your driver. now my device shows up in ifconfig but i am not getting any signals can u help?? :)