Getting wireless rtl8192cu to work on Arch-Rasp 3.10 kernel

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Getting wireless rtl8192cu to work on Arch-Rasp 3.10 kernel

Postby sepul » Sat Feb 08, 2014 1:22 pm

Hi,
I'm trying to get my usb wireless rtl8192cu device to work on Arch-arm-3.10, but no luck so far.
$this->bbcode_second_pass_code('', 'ip link') brings up the wlan0, but $this->bbcode_second_pass_code('', 'iw dev') complains with error message that nl80211 not found. The module doesn't seem to be loaded properly (faulty?) because 80211 modules are not loaded and connected to the 8192cu.

It's currently working on my PC's Arc 3.12.9 with no problems, but it seems that the built-in module for Arch-Arm 3.10 has problems with it.

I also can't build the official drivers from the realtek website, they seem outdated and generate compile errors with 3.10 kernel headers.

I also upgraded the system, but seems that 3.12 binaries are not ready yet thus not in the repo.
Any hints on what should I do ?
sepul
 
Posts: 9
Joined: Sat Feb 08, 2014 1:10 pm

Re: Getting wireless rtl8192cu to work on Arch-Rasp 3.10 ker

Postby moonman » Sun Feb 09, 2014 3:43 am

linux-raspberrypi-latest is 3.13. Driver in the raspberrypi kernel IS the one from realtek website, but it was integrated. On your desktop did you get 8192cu driver from aur or you just use the default one?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Getting wireless rtl8192cu to work on Arch-Rasp 3.10 ker

Postby sepul » Sun Feb 09, 2014 12:44 pm

yes, I know about linux-raspberrypi-latest, but is there any way that I get the binaries and not build the whole kernel ?

about the driver you mentioned, on my PC (Arch 3.12) , it works with built-in drivers, didn't use the AUR package.

I also got the AUR, applied the patch and built it on my raspberry, but it was the same as before, still seems faulty.
I also looked at the patch, which seems to do a lazy workaround by commenting out the whole problematic codes, doesn't look right to me.

thanks
sepul
 
Posts: 9
Joined: Sat Feb 08, 2014 1:10 pm

Re: Getting wireless rtl8192cu to work on Arch-Rasp 3.10 ker

Postby moonman » Sun Feb 09, 2014 12:52 pm

$this->bbcode_second_pass_quote('sepul', 'y')es, I know about linux-raspberrypi-latest, but is there any way that I get the binaries and not build the whole kernel ?


Binaries of what? linux-raspberrypi-latest is already precompiled, just install with pacman -Sy linux-raspberrypi-latest, if that's what you meant.

It may be worth a try to disable this raspberrypi out-of-tree driver and instead enable the in-tree one. dkms-8192cu is available separately anyway.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Getting wireless rtl8192cu to work on Arch-Rasp 3.10 ker

Postby sepul » Sun Feb 09, 2014 2:48 pm

my bad, couple of days ago I found the AUR of linux-raspberrypi-latest which tried to compile the kernel, didn't know it was on the repo

Anyway I installed the linux-raspberrypi-latest (which has couple of bugs), but still no change, ip link brings up wlan0 (UP) just like before, but iw dev shows nothing

lsmod also brings a single 8192cu module which indicates that is not working properly (not using by any 80211 modules)

Also installed dkms-8192cu, which I guess it's the same thing as the patched driver I built. still doesn't work.

The thing is on my PC, lsmod brings up this:
$this->bbcode_second_pass_code('', '
lsmod | grep rtl
rtl8192cu 64639 0
rtl_usb 9664 1 rtl8192cu
rtlwifi 47707 2 rtl_usb,rtl8192cu
rtl8192c_common 36637 1 rtl8192cu
mac80211 468058 3 rtl_usb,rtlwifi,rtl8192cu
cfg80211 412662 2 mac80211,rtlwifi
usbcore 180072 6 uhci_hcd,rtl_usb,ehci_hcd,ehci_pci,usbhid,rtl8192cu
')

Which is different from what rasp-pi version shows:
$this->bbcode_second_pass_code('', '
lsmod | grep 8192
8192cu 6324 0
')

Also this is the result of dmesg on rasp-pi:
$this->bbcode_second_pass_code('', '
dmesg | grep rtl
[ 12.298354] usbcore: registered new interface driver rtl8192cu
')

Tried to insmod different modules in /lib/modules/$(uname -r)/kernel/drivers/net/wireless, but none of them works
sepul
 
Posts: 9
Joined: Sat Feb 08, 2014 1:10 pm

Re: Getting wireless rtl8192cu to work on Arch-Rasp 3.10 ker

Postby moonman » Tue Feb 11, 2014 7:27 am

linux-raspberrypi-latest 3.13.2 will have the out of tree 8192cu driver disabled, and instead rtlwifi enabled. Whoever needs to can use dkms-8192cu package, it automatically blacklists rtlwifi.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Getting wireless rtl8192cu to work on Arch-Rasp 3.10 ker

Postby sepul » Tue Feb 11, 2014 8:33 am

yes, but rtlwifi doesn't even exist on rasp-pi version.
as I have shown u, the x86 version has it, and it's working ok.
rasp pi (and dkms) has 8192cu.ko which doesn't work
sepul
 
Posts: 9
Joined: Sat Feb 08, 2014 1:10 pm

Re: Getting wireless rtl8192cu to work on Arch-Rasp 3.10 ker

Postby moonman » Tue Feb 11, 2014 8:47 am

it does exist, but commented out. As i said, when 3.13.2 is available, it will have rtlwifi, and not 8192cu.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Getting wireless rtl8192cu to work on Arch-Rasp 3.10 ker

Postby moonman » Tue Feb 11, 2014 11:18 am

linux-raspberrypi-latest 3.13.2-2 is in the repository now. See if your wifi adapter works now.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Getting wireless rtl8192cu to work on Arch-Rasp 3.10 ker

Postby felis » Tue Feb 11, 2014 7:45 pm

I've installed the latest kernel (3.13.2-2), but the new rtl8192cu still doesn't work on my RTL8188RU. Like the 8192cu module, scanning for networks works, but it always fails to connect. I've tried disabling WPA as well, but still no luck.

I've tried multiple distro's now, but it seems that the RTL8188RU just refuses to work.
However, the RTL8188CUS that shares the same driver works flawlessly with either modules.

Been stuck on this for weeks now. Any suggestions would be appreciated.
felis
 
Posts: 3
Joined: Tue Feb 11, 2014 7:30 pm

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 78 guests