Query: Ubuntu: RTL8192cu: wifi:

Hi Robert
I have 3.8.4-bone9 up on beaglebone [1] and i am trying to get usb
wifi dongle to work.
I have an Ourlink rtl8192cu based wifi usb device [2] attached to the bone.

a) Looks this device is not supported by default?
lsmod on bootup does not show rtl8192cu.ko being auto-loaded.
    #lsmod
    Module Size Used by
    ipv6 291001 15

b) Next i do a manual load and the driver does get loaded fine:
    #modprobe rtl8192c
    #lsmod
    Module Size Used by
    rtl8192cu 89015 0
    rtl8192c_common 60882 1 rtl8192cu
    rtlwifi 78438 1 rtl8192cu
    mac80211 501003 3 rtl8192cu,rtl8192c_common,rtlwifi
    cfg80211 426102 2 rtlwifi,mac80211
    rfkill 18341 1 cfg80211
    ipv6 291001 15

So looks the driver gets loaded fine, but dmesg does not give any
further details, and the device is still dead.

Any feedback?

regards
randy

[1]
# uname -a
Linux arm 3.8.4-bone9 #1 SMP Thu Mar 28 11:37:10 PDT 2013 armv7l
armv7l armv7l GNU/Linux

[2]
http://www.amazon.com/OURLINK-150Mbps-Wireless-receiver-transmitter/dp/B00A6RW6F4

Hi Robert
I have 3.8.4-bone9 up on beaglebone [1] and i am trying to get usb
wifi dongle to work.
I have an Ourlink rtl8192cu based wifi usb device [2] attached to the bone.

What's the lsusb of this device?

Hi Robert
I have 3.8.4-bone9 up on beaglebone [1] and i am trying to get usb
wifi dongle to work.
I have an Ourlink rtl8192cu based wifi usb device [2] attached to the bone.

What's the lsusb of this device?

Looks the usb driver is not getting loaded at bootup.

ubuntu@arm:~$ lsusb
Bus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp.
RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

And:
cat /sys/kernel/debug/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.08
S: Manufacturer=Linux 3.8.4-bone9 musb-hcd
S: Product=MUSB HDRC host driver
S: SerialNumber=musb-hdrc.1.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=8176 Rev= 2.00
S: Manufacturer=Realtek
S: Product=802.11n WLAN Adapter
S: SerialNumber=00e04c000001
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=ff Prot=ff Driver=
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=84(I) Atr=03(Int.) MxPS= 64 Ivl=125us

Hi Robert
I have 3.8.4-bone9 up on beaglebone [1] and i am trying to get usb
wifi dongle to work.
I have an Ourlink rtl8192cu based wifi usb device [2] attached to the bone.

What's the lsusb of this device?

Looks the usb driver is not getting loaded at bootup.

Also note that the hardware is just fine, since the same works well
with Angstrom distribution.
The driver gets loaded fine and wlan0 interface appears and is usable.

But as stated, my preference is to go with Ubuntu and hence exploring:

Logs on Angstrom:

root@beaglebone:~# uname -a
Linux beaglebone 3.2.32+ #50 Thu Mar 28 12:26:58 PDT 2013 armv7l GNU/Linux
root@beaglebone:~#
root@beaglebone:~#
root@beaglebone:~# cat /sys/kernel/debug/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.02
S: Manufacturer=Linux 3.2.32+ musb-hcd
S: Product=MUSB HDRC host driver
S: SerialNumber=musb-hdrc.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=8176 Rev= 2.00
S: Manufacturer=Realtek
S: Product=802.11n WLAN Adapter
S: SerialNumber=00e04c000001
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtl8192cu
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=84(I) Atr=03(Int.) MxPS= 64 Ivl=125us

Yeap, your comparing a known used in production for a good year v3.2.x
based kernel against something still in development..

I remember a time when users actually posted config/patches to this list. :wink:

Hint, not all the networking/wifi stuff is enabled with my config..

Regards,

Hi Robert
I have 3.8.4-bone9 up on beaglebone [1] and i am trying to get usb
wifi dongle to work.
I have an Ourlink rtl8192cu based wifi usb device [2] attached to the bone.

What's the lsusb of this device?

Looks the usb driver is not getting loaded at bootup.

Also note that the hardware is just fine, since the same works well
with Angstrom distribution.
The driver gets loaded fine and wlan0 interface appears and is usable.

Yeap, your comparing a known used in production for a good year v3.2.x
based kernel against something still in development..

I thought of that combination, so here is what i tried as well:

Userspace: ubuntu-12.10-console-armhf-2013-02-16
Kernel : 3.2.33-psp26.1

With this, only _sometimes_ i am able to get wifi to work perfectly fine.
Most of the times the system hangs on bootup with messages like:

[ 240.603759] INFO: task wpa_supplicant:491 blocked .
[ 240.611206] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 240.623901] INFO: task apache2:657 blocked for more than 120 seconds.
[ 240.630676] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.

Looks with this wifi usb device, its a dead end.
Maybe i should change to some other wifi usb dongle - Any recommendations?

You can always copy the Angstrom kernel/modules over to the ubuntu
root file system

Regards,

Hi Robert
I have 3.8.4-bone9 up on beaglebone [1] and i am trying to get usb
wifi dongle to work.
I have an Ourlink rtl8192cu based wifi usb device [2] attached to the bone.

What's the lsusb of this device?

Looks the usb driver is not getting loaded at bootup.

Also note that the hardware is just fine, since the same works well
with Angstrom distribution.
The driver gets loaded fine and wlan0 interface appears and is usable.

Yeap, your comparing a known used in production for a good year v3.2.x
based kernel against something still in development..

I thought of that combination, so here is what i tried as well:

Userspace: ubuntu-12.10-console-armhf-2013-02-16
Kernel : 3.2.33-psp26.1

With this, only _sometimes_ i am able to get wifi to work perfectly fine.
Most of the times the system hangs on bootup with messages like:

[ 240.603759] INFO: task wpa_supplicant:491 blocked .
[ 240.611206] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 240.623901] INFO: task apache2:657 blocked for more than 120 seconds.
[ 240.630676] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.

You can always copy the Angstrom kernel/modules over to the ubuntu
root file system

Will give it a shot in sometime now.

Meanwhile i switch to using KEEBOX usb wifi device, and this seems to
work fine out of the box on 3.8.4-bone9

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=14b2 ProdID=3c2c Rev=01.01
S: Manufacturer=Ralink
S: Product=802.11 n WLAN
S: SerialNumber=1.0
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=450mA
I: If#= 0 Alt= 0 #EPs= 7 Cls=ff(vend.) Sub=ff Prot=ff Driver=rt2800usb

However randomly i would get this message on console:
[...] phy0 -> rt2x00usb_vendor_request: Error - Vendor Request 0x07
failed for offset 0x7010 with error -110.

And then the kernel crashes.

Looks 3.8.4-bone9 may not be the most stable for use right now.

fyi: just pushed out v3.8.5-bone10 with most wifi/networking enabled,
give it shot.. :wink:

Regards,

Hi Robert
I have 3.8.4-bone9 up on beaglebone [1] and i am trying to get usb
wifi dongle to work.
I have an Ourlink rtl8192cu based wifi usb device [2] attached to the bone.

What's the lsusb of this device?

Looks the usb driver is not getting loaded at bootup.

Also note that the hardware is just fine, since the same works well
with Angstrom distribution.
The driver gets loaded fine and wlan0 interface appears and is usable.

Yeap, your comparing a known used in production for a good year v3.2.x
based kernel against something still in development..

I thought of that combination, so here is what i tried as well:

Userspace: ubuntu-12.10-console-armhf-2013-02-16
Kernel : 3.2.33-psp26.1

With this, only _sometimes_ i am able to get wifi to work perfectly fine.
Most of the times the system hangs on bootup with messages like:

[ 240.603759] INFO: task wpa_supplicant:491 blocked .
[ 240.611206] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 240.623901] INFO: task apache2:657 blocked for more than 120 seconds.
[ 240.630676] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.

You can always copy the Angstrom kernel/modules over to the ubuntu
root file system

Will give it a shot in sometime now.

fyi: just pushed out v3.8.5-bone10 with most wifi/networking enabled,
give it shot.. :wink:

I would be glad to give it a try - however:
Looks its broken.

Applying: Changing DT data to make selection of standard (i.e.
non-reduced blanking) modes the default
Applying: Enhancing to support extra device tree options for tilcdc:
ti,max_width (maximum width in pixels) ti,max_pixelclock (maximum
allowable pixel clock for the device) also added some extra debugging
enabled with drm debug to help understand why modes are being selected
or rejected.
/usr/lib/git-core/git-am: line 185:
/git/am/robertnelson/linux-dev/patches/not-capebus/0137-add-WIP-support-LCD4-rev-00A4.patch:
No such file or directory

Hi Robert
I have 3.8.4-bone9 up on beaglebone [1] and i am trying to get usb
wifi dongle to work.
I have an Ourlink rtl8192cu based wifi usb device [2] attached to the bone.

What's the lsusb of this device?

Looks the usb driver is not getting loaded at bootup.

Also note that the hardware is just fine, since the same works well
with Angstrom distribution.
The driver gets loaded fine and wlan0 interface appears and is usable.

Yeap, your comparing a known used in production for a good year v3.2.x
based kernel against something still in development..

I thought of that combination, so here is what i tried as well:

Userspace: ubuntu-12.10-console-armhf-2013-02-16
Kernel : 3.2.33-psp26.1

With this, only _sometimes_ i am able to get wifi to work perfectly fine.
Most of the times the system hangs on bootup with messages like:

[ 240.603759] INFO: task wpa_supplicant:491 blocked .
[ 240.611206] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 240.623901] INFO: task apache2:657 blocked for more than 120 seconds.
[ 240.630676] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.

You can always copy the Angstrom kernel/modules over to the ubuntu
root file system

Will give it a shot in sometime now.

fyi: just pushed out v3.8.5-bone10 with most wifi/networking enabled,
give it shot.. :wink:

I would be glad to give it a try - however:
Looks its broken.

Applying: Changing DT data to make selection of standard (i.e.
non-reduced blanking) modes the default
Applying: Enhancing to support extra device tree options for tilcdc:
ti,max_width (maximum width in pixels) ti,max_pixelclock (maximum
allowable pixel clock for the device) also added some extra debugging
enabled with drm debug to help understand why modes are being selected
or rejected.
/usr/lib/git-core/git-am: line 185:
/git/am/robertnelson/linux-dev/patches/not-capebus/0137-add-WIP-support-LCD4-rev-00A4.patch:
No such file or directory

Looks u updated the patches.sh script but not the real patches in:
from 0137-xxx to 0144-xxxx

linux-dev/patches/not-capebus

Yeah, missed that, pushed out the missing files pretty quick: go for
v3.8.5-bone11

http://rcn-ee.homeip.net:8080/job/github_linux-dev/lastSuccessfulBuild/consoleText

Regards,

Hi Robert
I have 3.8.4-bone9 up on beaglebone [1] and i am trying to get usb
wifi dongle to work.
I have an Ourlink rtl8192cu based wifi usb device [2] attached to the bone.

What's the lsusb of this device?

Looks the usb driver is not getting loaded at bootup.

Also note that the hardware is just fine, since the same works well
with Angstrom distribution.
The driver gets loaded fine and wlan0 interface appears and is usable.

Yeap, your comparing a known used in production for a good year v3.2.x
based kernel against something still in development..

I thought of that combination, so here is what i tried as well:

Userspace: ubuntu-12.10-console-armhf-2013-02-16
Kernel : 3.2.33-psp26.1

With this, only _sometimes_ i am able to get wifi to work perfectly fine.
Most of the times the system hangs on bootup with messages like:

[ 240.603759] INFO: task wpa_supplicant:491 blocked .
[ 240.611206] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
[ 240.623901] INFO: task apache2:657 blocked for more than 120 seconds.
[ 240.630676] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.

You can always copy the Angstrom kernel/modules over to the ubuntu
root file system

Will give it a shot in sometime now.

fyi: just pushed out v3.8.5-bone10 with most wifi/networking enabled,
give it shot.. :wink:

I would be glad to give it a try - however:
Looks its broken.

Applying: Changing DT data to make selection of standard (i.e.
non-reduced blanking) modes the default
Applying: Enhancing to support extra device tree options for tilcdc:
ti,max_width (maximum width in pixels) ti,max_pixelclock (maximum
allowable pixel clock for the device) also added some extra debugging
enabled with drm debug to help understand why modes are being selected
or rejected.
/usr/lib/git-core/git-am: line 185:
/git/am/robertnelson/linux-dev/patches/not-capebus/0137-add-WIP-support-LCD4-rev-00A4.patch:
No such file or directory

Looks u updated the patches.sh script but not the real patches in:
from 0137-xxx to 0144-xxxx

linux-dev/patches/not-capebus

Yeah, missed that, pushed out the missing files pretty quick: go for
v3.8.5-bone11

v3.8.5-bone11 builds/boots fine, but the wifi has the same problem still.
Realtek driver
ubuntu@arm:~$ uname -a
Linux arm 3.8.5-bone11 #1 SMP Thu Mar 28 16:47:11 PDT 2013 armv7l
armv7l armv7l GNU/Linux

The driver is modprob'd correctly, but does not get associated with
USB interface (Driver= none).

ubuntu@arm:~$ lsmod
Module Size Used by
rtl8192cu 88724 0
rtl8192c_common 60906 1 rtl8192cu
rtlwifi 78462 1 rtl8192cu
mac80211 501027 3 rtl8192cu,rtl8192c_common,rtlwifi
cfg80211 428559 2 rtlwifi,mac80211
rfkill 18365 1 cfg80211

ubuntu@arm:~$ sudo cat /sys/kernel/debug/usb/devices

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 3.08
S: Manufacturer=Linux 3.8.5-bone11 musb-hcd
S: Product=MUSB HDRC host driver
S: SerialNumber=musb-hdrc.1.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=8176 Rev= 2.00
S: Manufacturer=Realtek
S: Product=802.11n WLAN Adapter
S: SerialNumber=00e04c000001
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 4 Cls=ff(vend.) Sub=ff Prot=ff Driver=
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=84(I) Atr=03(Int.) MxPS= 64 Ivl=125us