Jump to content

Orange Pi PC Wireless RTL8188CUS


TheStane

Recommended Posts

I've just started using armbian yesterday and one of the first things that i'm trying to do is use my cheap USB wireless module. The chipset is the RTL8188, but the armbian originally recognised and loaded the RTL8192eu driver. When trying to connect with 8192 driver it always returned "Bad Password". 

 

Changing the /etc/modules-load.d/modules.conf to 8188cus initially seemed to work, but on the validation stage itsimply freezed and automatically rebooted, repeating it for as many times as i tried.

 

I've also test with others like 8192eu/8192cus/8188eu/8188cu and all of then either returned no wireless network found or freeze and reboot. Is there any way to solve that?

Link to comment
Share on other sites

Random freeze and reboot is most likely due to a bad PSU. Try swapping the power supply with another one and maybe try a different cable as well.

 

Please provide the output from below commands with the USB WiFi dongle connected:

 

lsusb

lsmod

uname -a

Link to comment
Share on other sites

Random freeze and reboot is most likely due to a bad PSU. Try swapping the power supply with another one and maybe try a different cable as well.

 

Please provide the output from below commands with the USB WiFi dongle connected:

 

lsusb

lsmod

uname -a

My PSU os the one provided by the seller kit, is it of bad quality?

I will execute the command and will post the results!

Link to comment
Share on other sites

Same problem here, bad password issue with a fresh install, then instant system freeze when hot plugging after following this tutorial for opi one -> http://forum.armbian.com/index.php/topic/1237-tutorial-opi-one-wireless-success/

 

Some info:

> uname -a
Linux orangepipc 3.4.112-sun8i #14 SMP PREEMPT Tue Jul 5 16:28:14 CEST 2016 armv7l GNU/Linux

> lsusb
Bus 003 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

> /etc/modules-load.d/modules.conf   
#8189es
...
8192cu

> lsmod
Module                  Size  Used by
rtl8192cu              61143  0 
rtlwifi                45784  1 rtl8192cu
rtl8192c_common        33420  1 rtl8192cu
mac80211              358429  3 rtlwifi,rtl8192c_common,rtl8192cu
mali_drm                2732  1 
drm                   178255  2 mali_drm
mali                  123208  0 
ump                    29379  3 mali

> /etc/network/interfaces
allow-hotplug wlan0
        iface wlan0 inet dhcp
                wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

> /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="***"
        key_mgmt=WPA-PSK
        psk=***
}
Link to comment
Share on other sites

Little update:

 

Today I got another usb module with rtl8188 and the problem persisted I even swapped the power supply with a 24W rated brick and the cable with a beefier one with no success.

Then I tried connecting an rtl8187 module and it was working out of the box with no issues. For various reasons I can't use this adapter with the orange pi (it's a 500mW RF output adapter with a bulky enclosure) so I would really like to make the 8188 models work.

 

Details of the modules loaded with the 8187:

> lsusb

Bus 003 Device 002: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter

> lsmod

Module                  Size  Used by
rtl8187                48812  0
eeprom_93cx6            2375  1 rtl8187
mac80211              358429  1 rtl8187
mali_drm                2732  1
drm                   178255  2 mali_drm
mali                  123208  0
ump                    29379  3 mali

Waiting for suggestions on what to try to stop these reboots, also hoping that the op solved the issue somehow and will report back.

Link to comment
Share on other sites

For both the devices this is what Windows has under the "Hardware Ids" tab:

USB\VID_0BDA&PID_8176&REV_0200
USB\VID_0BDA&PID_8176

When connected they are automatically recognized as Realtek RTL8188CU Wireless LAN 802.11n USB 2.0 Network Adapter.
 

Link to comment
Share on other sites

Big update here, after obtaining access to the logs during system crash it seems to be caused by a kernel bug. I'm not qualified to solve a kernel issue, can't even understand the error report, so I'll post it here in case someone want to take a look at it.

 

 

[ 692.530088] usb 3-1: new high-speed USB device number 6 using sunxi-ehci
[ 692.820735] rtl8192cu: Chip version 0x10
[ 692.942798] rtl8192cu: MAC address: 00:13:ef:62:0a:ee
[ 692.948419] rtl8192cu: Board Type 0
[ 692.952665] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 692.959171] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
[ 692.966225] usbcore: registered new interface driver rtl8192cu
[ 692.979900] rtlwifi: wireless switch is on
[ 693.050636] systemd-udevd[1031]: renamed network interface wlan0 to wlan1
[ 693.405141] rtl8192cu: MAC auto ON okay!
[ 693.442205] rtl8192cu: Tx queue select: 0x05
[ 693.887470] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 694.815033] ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 694.826756] ------------[ cut here ]------------
[ 694.831890] Kernel BUG at c0044c9c [verbose debug info unavailable]
[ 694.836691] sunxi oops: enable sdcard JTAG interface
[ 694.836691] sunxi oops: cpu frequency: 1008 MHz
[ 694.836691] sunxi oops: ddr frequency: 624 MHz
[ 694.836691] sunxi oops: gpu frequency: 252 MHz
[ 694.836691] sunxi oops: cpu temperature: 42
[ 694.836691] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[ 694.836691] Modules linked in: rtl8192cu rtlwifi rtl8192c_common mac80211 option usb_wwan usbserial mali_drm drm mali ump [last unloaded: scsi_wait_scan]
[ 694.836691] CPU: 2 Not tainted (3.4.112-sun8i #14)
[ 694.888128] PC is at __queue_work+0x23c/0x3d8
[ 694.888128] LR is at __queue_work+0x204/0x3d8
[ 694.888128] pc : [] lr : [] psr: 000f0193
[ 694.888128] sp : ef0f1d38 ip : ef0f1d38 fp : ef0f1d6c
[ 694.888128] r10: 0000000a r9 : 400f0113 r8 : 00000188
[ 694.888128] r7 : ef01d0c0 r6 : ee1a9438 r5 : c1486a00 r4 : c14815c0
[ 694.888128] r3 : ee1a943c r2 : 00000000 r1 : ef01d0c0 r0 : c1486a00
[ 694.888128] Flags: nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 694.888128] Control: 10c5387d Table: 6e71806a DAC: 00000015
[ 694.888128]
[ 694.888128] PC: 0xc0044c1c:
[ 694.888128] 4c1c e5933004 e1570003 01a04005 0a00000a e1a01009 e1a00005 eb1919fe e1a00004
[ 694.888128] 4c3c eb191bc0 e1a09000 ea000003 e59f01e0 eb191bbc e59f41d8 e1a09000 e1a01007
[ 694.888128] 4c5c e5940010 ebfff946 e1a05000 e1a00000 ea000006 e5983004 e2433001 e5883004
[ 694.888128] 4c7c e5983000 e3130002 0a000000 eb191777 e5962004 e2863004 e1520003 0a000000
[ 694.888128] 4c9c e7f001f2 e5958008 e0852108 e1a08208 e5923010 e2833001 e5823010 e595204c
[ 694.888128] 4cbc e5953050 e1520003 a3888002 a285a054 aa000024 e1a00000 ea000006 e59a3004
[ 694.888128] 4cdc e2433001 e58a3004 e59a3000 e3130002 0a000000 eb19175d e595304c e2833001
[ 694.888128] 4cfc e585304c e5953004 e5933000 e3130010 e2843008 15947008 01a0a003 0a000011
[ 694.888128]
[ 694.888128] LR: 0xc0044be4:
[ 694.888128] 4be4 e1a00006 ebfff696 e1540000 13500000 e1a05000 0a00000e eb191bd0 e1a01006
[ 694.888128] 4c04 e1a09000 e1a00005 ebffff65 e3500000 0a000004 e5903010 e5933004 e1570003
[ 694.888128] 4c24 01a04005 0a00000a e1a01009 e1a00005 eb1919fe e1a00004 eb191bc0 e1a09000
[ 694.888128] 4c44 ea000003 e59f01e0 eb191bbc e59f41d8 e1a09000 e1a01007 e5940010 ebfff946
[ 694.888128] 4c64 e1a05000 e1a00000 ea000006 e5983004 e2433001 e5883004 e5983000 e3130002
[ 694.888128] 4c84 0a000000 eb191777 e5962004 e2863004 e1520003 0a000000 e7f001f2 e5958008
[ 694.888128] 4ca4 e0852108 e1a08208 e5923010 e2833001 e5823010 e595204c e5953050 e1520003
[ 694.888128] 4cc4 a3888002 a285a054 aa000024 e1a00000 ea000006 e59a3004 e2433001 e58a3004
[ 694.888128]
[ 694.888128] SP: 0xef0f1cb8:
[ 694.888128] 1cb8 c001a0d0 c00fbfbc c0acbad4 c005211c 00000000 ee1ab328 c0044ca0 000f0193
[ 694.888128] 1cd8 c000de94 00000000 ef0f1d6c ef0f1cf0 c000dbec c000820c c1486a00 ef01d0c0
[ 694.888128] 1cf8 00000000 ee1a943c c14815c0 c1486a00 ee1a9438 ef01d0c0 00000188 400f0113
[ 694.888128] 1d18 0000000a ef0f1d6c ef0f1d38 ef0f1d38 c0044c64 c0044c9c 000f0193 ffffffff
[ 694.888128] 1d38 ef0f1d5c 00000002 c047feec ee1a9438 00000002 ef01d0c0 00000008 00000188
[ 694.888128] 1d58 bf1bec40 0000000a ef0f1d8c ef0f1d70 c0044e7c c0044a6c ef0f0000 00000001
[ 694.888128] 1d78 eeb0b8c0 00000008 ef0f1da4 ef0f1d90 c0044ec8 c0044e44 ee1aa240 00000001
[ 694.888128] 1d98 ef0f1db4 ef0f1da8 c0044f14 c0044e98 ef0f1dd4 ef0f1db8 bf1ba07c c0044efc
[ 694.888128]
[ 694.888128] IP: 0xef0f1cb8:
[ 694.888128] 1cb8 c001a0d0 c00fbfbc c0acbad4 c005211c 00000000 ee1ab328 c0044ca0 000f0193
[ 694.888128] 1cd8 c000de94 00000000 ef0f1d6c ef0f1cf0 c000dbec c000820c c1486a00 ef01d0c0
[ 694.888128] 1cf8 00000000 ee1a943c c14815c0 c1486a00 ee1a9438 ef01d0c0 00000188 400f0113
[ 694.888128] 1d18 0000000a ef0f1d6c ef0f1d38 ef0f1d38 c0044c64 c0044c9c 000f0193 ffffffff
[ 694.888128] 1d38 ef0f1d5c 00000002 c047feec ee1a9438 00000002 ef01d0c0 00000008 00000188
[ 694.888128] 1d58 bf1bec40 0000000a ef0f1d8c ef0f1d70 c0044e7c c0044a6c ef0f0000 00000001
[ 694.888128] 1d78 eeb0b8c0 00000008 ef0f1da4 ef0f1d90 c0044ec8 c0044e44 ee1aa240 00000001
[ 694.888128] 1d98 ef0f1db4 ef0f1da8 c0044f14 c0044e98 ef0f1dd4 ef0f1db8 bf1ba07c c0044efc
[ 694.888128]
[ 694.888128] FP: 0xef0f1cec:
[ 694.888128] 1cec c000820c c1486a00 ef01d0c0 00000000 ee1a943c c14815c0 c1486a00 ee1a9438
[ 694.888128] 1d0c ef01d0c0 00000188 400f0113 0000000a ef0f1d6c ef0f1d38 ef0f1d38 c0044c64
[ 694.888128] 1d2c c0044c9c 000f0193 ffffffff ef0f1d5c 00000002 c047feec ee1a9438 00000002
[ 694.888128] 1d4c ef01d0c0 00000008 00000188 bf1bec40 0000000a ef0f1d8c ef0f1d70 c0044e7c
[ 694.888128] 1d6c c0044a6c ef0f0000 00000001 eeb0b8c0 00000008 ef0f1da4 ef0f1d90 c0044ec8
[ 694.888128] 1d8c c0044e44 ee1aa240 00000001 ef0f1db4 ef0f1da8 c0044f14 c0044e98 ef0f1dd4
[ 694.888128] 1dac ef0f1db8 bf1ba07c c0044efc ee43643e ee02eb48 ee1a9240 eeb0b8c0 ef0f1dfc
[ 694.888128] 1dcc ef0f1dd8 bf1bec8c bf1b9fac eeb0b8c0 ee1a8380 ee02e800 ee43643e 00000188
[ 694.888128]
[ 694.888128] R0: 0xc1486980:
[ 694.888128] 6980 00000000 00000000 00000000 00000000 00000000 00000017 00000000 00000000
[ 694.888128] 69a0 00000000 00000000 00000000 00000000 00000000 00000000 000024c1 000015a6
[ 694.888128] 69c0 000006cf 00000000 00000000 000078f0 00003e89 0000b779 00013cf1 00000121
[ 694.888128] 69e0 0000b7ed 0000b969 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128] 6a00 c14815c0 ef01d0c0 00000001 ffffffff 00000000 00000000 00000000 00000000
[ 694.888128] 6a20 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128] 6a40 00000000 00000000 00000000 00000000 00000100 c1486a54 c1486a54 00000000
[ 694.888128] 6a60 00000000 00000000 00000000 00000006 00000006 00000000 00000000 00000000
[ 694.888128]
[ 694.888128] R1: 0xef01d040:
[ 694.888128] d040 0000000a 0000000b 0000000c 0000000d 0000000e 0000000f 00000010 00000011
[ 694.888128] d060 00000012 00000013 00000014 00000015 00000016 00000017 00000018 00000019
[ 694.888128] d080 0000001a 0000001b 0000001c 0000001d ffffffff ffffffff efefffff 77f7ffbf
[ 694.888128] d0a0 fffbffff e7df53ed ffcffedb ffffffff fffbbcbf ffffffff fffffcdf ff5fdbff
[ 694.888128] d0c0 00000000 c09a8a00 c09d13a4 ef08af48 00000001 00000000 00000000 ef01d0dc
[ 694.888128] d0e0 ef01d0dc 00000000 00000001 00000001 00000000 00000000 ef01d0f8 ef01d0f8
[ 694.888128] d100 ef01d100 ef01d100 00000000 00000000 00000000 00000100 6e657665 00007374
[ 694.888128] d120 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128]
[ 694.888128] R3: 0xee1a93bc:
[ 694.888128] 93bc bf1beb48 00000000 00000000 00000000 ef0f8000 00000000 00000000 ffffffff
[ 694.888128] 93dc ffffffff 00000000 00000000 00000000 00000000 00000000 00000500 ee1a93f8
[ 694.888128] 93fc ee1a93f8 bf1bea0c 00000000 00000000 00000000 ef0f8000 00000000 00000000
[ 694.888128] 941c ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000 00000001
[ 694.888128] 943c 00000000 00000000 00000000 62ef1300 0001ee0a 00000000 00000000 bf1c24dc
[ 694.888128] 945c bf1c208c 00000000 0000000e 0000000c 03011862 0000ff07 00000100 96000000
[ 694.888128] 947c 00000100 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128] 949c 00000000 00000000 00000000 00000000 00000000 ee1a8380 ee7e1a18 00000002
[ 694.888128]
[ 694.888128] R4: 0xc1481540:
[ 694.888128] 1540 00000000 00000000 ef0be0c0 00000000 c148154c 00000000 c1481554 c148155c
[ 694.888128] 1560 c148155c c1481564 c1481564 c148156c c148156c c1481574 c1481574 c148157c
[ 694.888128] 1580 c148157c c1481584 c1481584 c148158c c148158c c1481594 c1481594 c148159c
[ 694.888128] 15a0 c148159c c14815a4 c14815a4 ef0ca000 00000000 00000000 00000000 00000000
[ 694.888128] 15c0 00000001 00000000 c14815c8 c14815c8 00000002 00000000 00000003 00000003
[ 694.888128] 15e0 ef10a900 eea2bd00 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128] 1600 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128] 1620 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128]
[ 694.888128] R5: 0xc1486980:
[ 694.888128] 6980 00000000 00000000 00000000 00000000 00000000 00000017 00000000 00000000
[ 694.888128] 69a0 00000000 00000000 00000000 00000000 00000000 00000000 000024c1 000015a6
[ 694.888128] 69c0 000006cf 00000000 00000000 000078f0 00003e89 0000b779 00013cf1 00000121
[ 694.888128] 69e0 0000b7ed 0000b969 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128] 6a00 c14815c0 ef01d0c0 00000001 ffffffff 00000000 00000000 00000000 00000000
[ 694.888128] 6a20 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128] 6a40 00000000 00000000 00000000 00000000 00000100 c1486a54 c1486a54 00000000
[ 694.888128] 6a60 00000000 00000000 00000000 00000006 00000006 00000000 00000000 00000000
[ 694.888128]
[ 694.888128] R6: 0xee1a93b8:
[ 694.888128] 93b8 ee1a93b4 bf1beb48 00000000 00000000 00000000 ef0f8000 00000000 00000000
[ 694.888128] 93d8 ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000 00000500
[ 694.888128] 93f8 ee1a93f8 ee1a93f8 bf1bea0c 00000000 00000000 00000000 ef0f8000 00000000
[ 694.888128] 9418 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000
[ 694.888128] 9438 00000001 00000000 00000000 00000000 62ef1300 0001ee0a 00000000 00000000
[ 694.888128] 9458 bf1c24dc bf1c208c 00000000 0000000e 0000000c 03011862 0000ff07 00000100
[ 694.888128] 9478 96000000 00000100 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128] 9498 00000000 00000000 00000000 00000000 00000000 00000000 ee1a8380 ee7e1a18
[ 694.888128]
[ 694.888128] R7: 0xef01d040:
[ 694.888128] d040 0000000a 0000000b 0000000c 0000000d 0000000e 0000000f 00000010 00000011
[ 694.888128] d060 00000012 00000013 00000014 00000015 00000016 00000017 00000018 00000019
[ 694.888128] d080 0000001a 0000001b 0000001c 0000001d ffffffff ffffffff efefffff 77f7ffbf
[ 694.888128] d0a0 fffbffff e7df53ed ffcffedb ffffffff fffbbcbf ffffffff fffffcdf ff5fdbff
[ 694.888128] d0c0 00000000 c09a8a00 c09d13a4 ef08af48 00000001 00000000 00000000 ef01d0dc
[ 694.888128] d0e0 ef01d0dc 00000000 00000001 00000001 00000000 00000000 ef01d0f8 ef01d0f8
[ 694.888128] d100 ef01d100 ef01d100 00000000 00000000 00000000 00000100 6e657665 00007374
[ 694.888128] d120 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 694.888128] Process swapper/2 (pid: 0, stack limit = 0xef0f02f8)
[ 694.888128] Stack: (0xef0f1d38 to 0xef0f2000)
[ 694.888128] 1d20: ef0f1d5c 00000002
[ 694.888128] 1d40: c047feec ee1a9438 00000002 ef01d0c0 00000008 00000188 bf1bec40 0000000a
[ 694.888128] 1d60: ef0f1d8c ef0f1d70 c0044e7c c0044a6c ef0f0000 00000001 eeb0b8c0 00000008
[ 694.888128] 1d80: ef0f1da4 ef0f1d90 c0044ec8 c0044e44 ee1aa240 00000001 ef0f1db4 ef0f1da8
[ 694.888128] 1da0: c0044f14 c0044e98 ef0f1dd4 ef0f1db8 bf1ba07c c0044efc ee43643e ee02eb48
[ 694.888128] 1dc0: ee1a9240 eeb0b8c0 ef0f1dfc ef0f1dd8 bf1bec8c bf1b9fac eeb0b8c0 ee1a8380
[ 694.888128] 1de0: ee02e800 ee43643e 00000188 bf1bec40 ef0f1e5c ef0f1e00 bf135de8 bf1bec4c
[ 694.888128] 1e00: eeb0b8c0 c0014ab4 00000002 00000002 eea4bc00 00000001 ee1a9458 00000000
[ 694.888128] 1e20: 00000000 00000000 c068bb5c c05603a0 ef0f1e5c eeb0b8c0 ee1a84b0 ee1a8380
[ 694.888128] 1e40: ee1a84b4 c09c9520 00000000 0000000a ef0f1e94 ef0f1e60 bf1345cc bf135acc
[ 694.888128] 1e60: 00000000 00000000 ef0f0000 c09a3550 ee1a84b0 ef0f0000 ee1a84b4 c09c9520
[ 694.888128] 1e80: 00000000 0000000a ef0f1ebc ef0f1e98 c00315f4 bf134560 ef0f0000 c09a8098
[ 694.888128] 1ea0: 00000006 00000001 c0a41040 00000102 ef0f1f04 ef0f1ec0 c00309e0 c003154c
[ 694.888128] 1ec0: ef0f1eec ef0f1ed0 c00a3174 c09a80c0 00000002 00009a3b c09ad300 ef0f0000
[ 694.888128] 1ee0: c09c9520 ef0f0000 0000006c 00000000 410fc075 00000000 ef0f1f1c ef0f1f08
[ 694.888128] 1f00: c0030f88 c0030908 c09a5230 c09c9520 ef0f1f44 ef0f1f20 c000ef58 c0030f3c
[ 694.888128] 1f20: c09c7ca0 ef0f1f68 f1c82000 ef0f1f9c 4000406a 410fc075 ef0f1f64 ef0f1f48
[ 694.888128] 1f40: c000853c c000eed4 c000f2dc 600f0013 ffffffff ef0f1f9c ef0f1fbc ef0f1f68
[ 694.888128] 1f60: c000db40 c00084fc c1481b38 c09c824c 0000000f 00000000 ef0f0000 00000002
[ 694.888128] 1f80: ef0f0000 c0a20024 4000406a 410fc075 00000000 ef0f1fbc ef0f1fc0 ef0f1fb0
[ 694.888128] 1fa0: c000f2d8 c000f2dc 600f0013 ffffffff ef0f1fd4 ef0f1fc0 c000f694 c000f2b4
[ 694.888128] 1fc0: c09d8cd4 00000002 ef0f1ff4 ef0f1fd8 c067effc c000f5f8 6f0a806a 00000015
[ 694.888128] 1fe0: 10c0387d c0a20024 00000000 ef0f1ff8 4067e614 c067ef00 fffff7ff b77fffa7
[ 694.888128] [] (__queue_work+0x23c/0x3d8) from [] (queue_work_on+0x44/0x54)
[ 694.888128] [] (queue_work_on+0x44/0x54) from [] (queue_work+0x3c/0x64)
[ 694.888128] [] (queue_work+0x3c/0x64) from [] (schedule_work+0x24/0x2c)
[ 694.888128] [] (schedule_work+0x24/0x2c) from [] (rtl_is_special_data+0xdc/0x100 [rtlwifi])
[ 694.888128] [] (rtl_is_special_data+0xdc/0x100 [rtlwifi]) from [] (rtl_tx_status+0x4c/0x148 [rtlwifi])
[ 694.888128] [] (rtl_tx_status+0x4c/0x148 [rtlwifi]) from [] (ieee80211_tx_status+0x328/0xa5c [mac80211])
[ 694.888128] [] (ieee80211_tx_status+0x328/0xa5c [mac80211]) from [] (ieee80211_tasklet_handler+0x78/0x168 [mac80211])
[ 694.888128] [] (ieee80211_tasklet_handler+0x78/0x168 [mac80211]) from [] (tasklet_action+0xb4/0x120)
[ 694.888128] [] (tasklet_action+0xb4/0x120) from [] (__do_softirq+0xe4/0x240)
[ 694.888128] [] (__do_softirq+0xe4/0x240) from [] (irq_exit+0x58/0xa4)
[ 694.888128] [] (irq_exit+0x58/0xa4) from [] (handle_IRQ+0x90/0xbc)
[ 694.888128] [] (handle_IRQ+0x90/0xbc) from [] (gic_handle_irq+0x4c/0x6c)
[ 694.888128] [] (gic_handle_irq+0x4c/0x6c) from [] (__irq_svc+0x40/0x74)
[ 694.888128] Exception stack(0xef0f1f68 to 0xef0f1fb0)
[ 694.888128] 1f60: c1481b38 c09c824c 0000000f 00000000 ef0f0000 00000002
[ 694.888128] 1f80: ef0f0000 c0a20024 4000406a 410fc075 00000000 ef0f1fbc ef0f1fc0 ef0f1fb0
[ 694.888128] 1fa0: c000f2d8 c000f2dc 600f0013 ffffffff
[ 694.888128] [] (__irq_svc+0x40/0x74) from [] (default_idle+0x34/0x3c)
[ 694.888128] [] (default_idle+0x34/0x3c) from [] (cpu_idle+0xa8/0xf4)
[ 694.888128] [] (cpu_idle+0xa8/0xf4) from [] (secondary_start_kernel+0x108/0x12c)
[ 694.888128] [] (secondary_start_kernel+0x108/0x12c) from [<4067e614>] (0x4067e614)
[ 694.888128] Code: e5962004 e2863004 e1520003 0a000000 (e7f001f2)
[ 696.311652] ---[ end trace 46920961bb931439 ]---
[ 696.316815] Kernel panic - not syncing: Fatal exception in interrupt
[ 696.323899] CPU3: stopping
[ 696.326932] [] (unwind_backtrace+0x0/0xe8) from [] (dump_stack+0x20/0x24)
[ 696.333887] [] (dump_stack+0x20/0x24) from [] (handle_IPI+0x114/0x298)
[ 696.333887] [] (handle_IPI+0x114/0x298) from [] (gic_handle_irq+0x64/0x6c)
[ 696.333887] [] (gic_handle_irq+0x64/0x6c) from [] (__irq_svc+0x40/0x74)
[ 696.333887] Exception stack(0xef0fff68 to 0xef0fffb0)
[ 696.333887] ff60: c1489b38 c09c824c 0000000f 00000000 ef0fe000 00000003
[ 696.333887] ff80: ef0fe000 c0a20024 4000406a 410fc075 00000000 ef0fffbc ef0fffc0 ef0fffb0
[ 696.333887] ffa0: c000f2d8 c000f2dc 60000013 ffffffff
[ 696.333887] [] (__irq_svc+0x40/0x74) from [] (default_idle+0x34/0x3c)
[ 696.333887] [] (default_idle+0x34/0x3c) from [] (cpu_idle+0xa8/0xf4)
[ 696.333887] [] (cpu_idle+0xa8/0xf4) from [] (secondary_start_kernel+0x108/0x12c)
[ 696.333887] [] (secondary_start_kernel+0x108/0x12c) from [<4067e614>] (0x4067e614)
[ 696.333886] CPU0: stopping
[ 696.333886] [] (unwind_backtrace+0x0/0xe8) from [] (dump_stack+0x20/0x24)
[ 696.333886] [] (dump_stack+0x20/0x24) from [] (handle_IPI+0x114/0x298)
[ 696.333886] [] (handle_IPI+0x114/0x298) from [] (gic_handle_irq+0x64/0x6c)
[ 696.333886] [] (gic_handle_irq+0x64/0x6c) from [] (__irq_svc+0x40/0x74)
[ 696.333886] Exception stack(0xc09a7f20 to 0xc09a7f68)
[ 696.333886] 7f20: c1471b38 c09c824c 0000000f 00000000 c09a6000 c0a427c8 00000001 ffffffff
[ 696.333886] 7f40: c146ed80 c0983384 00000000 c09a7f74 c09a7f78 c09a7f68 c000f2d8 c000f2dc
[ 696.333886] 7f60: 60010013 ffffffff
[ 696.333886] [] (__irq_svc+0x40/0x74) from [] (default_idle+0x34/0x3c)
[ 696.333886] [] (default_idle+0x34/0x3c) from [] (cpu_idle+0xa8/0xf4)
[ 696.333886] [] (cpu_idle+0xa8/0xf4) from [] (rest_init+0x9c/0xb8)
[ 696.333886] [] (rest_init+0x9c/0xb8) from [] (start_kernel+0x2f4/0x354)
[ 696.333886] CPU1: stopping
[ 696.333886] [] (unwind_backtrace+0x0/0xe8) from [] (dump_stack+0x20/0x24)
[ 696.333886] [] (dump_stack+0x20/0x24) from [] (handle_IPI+0x114/0x298)
[ 696.333886] [] (handle_IPI+0x114/0x298) from [] (gic_handle_irq+0x64/0x6c)
[ 696.333886] [] (gic_handle_irq+0x64/0x6c) from [] (__irq_svc+0x40/0x74)
[ 696.333886] Exception stack(0xef0c1f68 to 0xef0c1fb0)
[ 696.333886] 1f60: c1479b38 c09c824c 0000000f 00000000 ef0c0000 00000001
[ 696.333886] 1f80: ef0c0000 c0a20024 4000406a 410fc075 00000000 ef0c1fbc ef0c1fc0 ef0c1fb0
[ 696.333886] 1fa0: c000f2d8 c000f2dc 600f0013 ffffffff
[ 696.333886] [] (__irq_svc+0x40/0x74) from [] (default_idle+0x34/0x3c)
[ 696.333886] [] (default_idle+0x34/0x3c) from [] (cpu_idle+0xa8/0xf4)
[ 696.333886] [] (cpu_idle+0xa8/0xf4) from [] (secondary_start_kernel+0x108/0x12c)
[ 696.333886] [] (secondary_start_kernel+0x108/0x12c) from [<4067e614>] (0x4067e614)
[ 696.321201] [hotplug]: cpu(2) try to kill cpu(0)
[ 696.321201] [hotplug]: try to kill cpu:0 failed!
[ 696.321201] [hotplug]: cpu(2) try to kill cpu(1)
[ 696.321201] [hotplug]: try to kill cpu:1 failed!
[ 696.321201] [hotplug]: cpu(2) try to kill cpu(3)
[ 696.321201] [hotplug]: try to kill cpu:3 failed!
[ 696.321201] Rebooting in 10 seconds..

 

 

Also is there a place where I should report this? Who is the right recipient for a kernel bug?

Link to comment
Share on other sites

Oh well, same issue with the powered hub, then tried with a different driver (https://github.com/pvaret/rtl8192cu-fixes)

sudo apt-get install dkms
git clone https://github.com/pvaret/rtl8192cu-fixes.git
sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.10
sudo depmod -a
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
sudo reboot

and at next boot had the wifi up and running

> lsmod
Module                  Size  Used by
mac80211              358429  0
mali_drm                2732  1
drm                   178255  2 mali_drm
mali                  123208  0
ump                    29379  3 mali
8192cu                624560  0

> ifconfig
wlan1     Link encap:Ethernet  HWaddr 00:13:ef:62:0a:ee
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.254.0
          inet6 addr: fe80::213:efff:fe62:aee/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:18910 errors:0 dropped:1173 overruns:0 frame:0
          TX packets:34687 errors:0 dropped:2 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15112303 (14.4 MiB)  TX bytes:71589296 (68.2 MiB)


> iwconfig
wlan1     IEEE 802.11bg  ESSID:"WESTEROS"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:1A:E3:B8:EA:30
          Bit Rate:54 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level=92/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
		  
> cat /proc/net/wireless
Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
 wlan1: 0000  100.   97.    0.       0      0      0      0      0        0
 
 
> iperf -c 192.168.1.22 -p 20
------------------------------------------------------------
Client connecting to 192.168.1.22, TCP port 20
TCP window size: 20.9 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.4 port 39951 connected with 192.168.1.22 port 20
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.2 sec  7.12 MBytes  5.88 Mbits/sec
> iperf -c 192.168.1.22 -p 20
------------------------------------------------------------
Client connecting to 192.168.1.22, TCP port 20
TCP window size: 20.9 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.4 port 39952 connected with 192.168.1.22 port 20
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.2 sec  21.9 MBytes  18.0 Mbits/sec

speeds are quite inconsistent, didn't go over 20Mb/s even with the AP at 4 meters, but that's not a big concern for now, maybe it only needs some tweaking, but at least it is working!

Here is the dmesg of the successful association:

 

 

[ 190.502258] ehci_irq: highspeed device connect
[ 190.520135] ehci_irq: highspeed device connect
[ 190.770127] usb 3-1: new high-speed USB device number 2 using sunxi-ehci
[ 190.923545]
[ 190.923554] usb_endpoint_descriptor(0):
[ 190.929538] bLength=7
[ 190.932178] bDescriptorType=5
[ 190.935518] bEndpointAddress=81
[ 190.939052] wMaxPacketSize=200
[ 190.942632] bInterval=0
[ 190.945412] RT_usb_endpoint_is_bulk_in = 1
[ 190.950074]
[ 190.950081] usb_endpoint_descriptor(1):
[ 190.956061] bLength=7
[ 190.958616] bDescriptorType=5
[ 190.961997] bEndpointAddress=2
[ 190.965434] wMaxPacketSize=200
[ 190.968868] bInterval=0
[ 190.971668] RT_usb_endpoint_is_bulk_out = 2
[ 190.976378]
[ 190.976384] usb_endpoint_descriptor(2):
[ 190.982649] bLength=7
[ 190.985209] bDescriptorType=5
[ 190.988546] bEndpointAddress=3
[ 190.992087] wMaxPacketSize=200
[ 190.995514] bInterval=0
[ 190.998265] RT_usb_endpoint_is_bulk_out = 3
[ 191.002984]
[ 191.002987] usb_endpoint_descriptor(3):
[ 191.008885] bLength=7
[ 191.011437] bDescriptorType=5
[ 191.014726] bEndpointAddress=84
[ 191.018205] wMaxPacketSize=40
[ 191.021561] bInterval=1
[ 191.024272] RT_usb_endpoint_is_int_in = 4, Interval = 1
[ 191.030094] nr_endpoint=4, in_num=2, out_num=2
[ 191.030099]
[ 191.036656] USB_SPEED_HIGH
[ 191.039686] CHIP TYPE: RTL8188C_8192C
[ 191.043833] register rtw_netdev_ops to netdev_ops
[ 191.049258] Chip Version ID: VERSION_NORMAL_TSMC_CHIP_88C.
[ 191.055377] RF_Type is 3!!
[ 191.058739] EEPROM type is E-FUSE
[ 191.062442] ====> ReadAdapterInfo8192C
[ 191.066743] Boot from EFUSE, Autoload OK !
[ 191.257868] EEPROMVID = 0x0bda
[ 191.261282] EEPROMPID = 0x8176
[ 191.264667] EEPROMCustomerID : 0x00
[ 191.268532] EEPROMSubCustomerID: 0x00
[ 191.272620] RT_CustomerID: 0x00
[ 191.276112] _ReadMACAddress MAC Address from EFUSE = 00:13:ef:62:0a:ee
[ 191.283380] EEPROMRegulatory = 0x0
[ 191.287151] _ReadBoardType(0)
[ 191.290475] BT Coexistance = disable
[ 191.294440] mlmepriv.ChannelPlan = 0x02
[ 191.298694] _ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
[ 191.307696] ### PS params=> power_mgnt(1),usbss_enable(0) ###
[ 191.314203] ### AntDivCfg(0)
[ 191.317396] readAdapterInfo_8192CU(): REPLACEMENT = 1
[ 191.323026] <==== ReadAdapterInfo8192C in 260 ms
[ 191.328900] rtw_macaddr_cfg MAC Address = 00:13:ef:62:0a:ee
[ 191.335263] bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[ 191.344380] _rtw_drv_register_netdev, MAC Address (if1) = 00:13:ef:62:0a:ee
[ 191.550509] systemd-udevd[961]: renamed network interface wlan0 to wlan1
[ 191.820570] +871x_drv - drv_open, bup=0
[ 191.829119] ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
[ 191.836136] FirmwareDownload92C accquire FW from embedded image
[ 191.842813] fw_ver=v88, fw_subver=2, sig=0x88c0
[ 191.873100] fw download ok!
[ 191.876201] Set RF Chip ID to RF_6052 and RF type to 1T1R.
[ 192.266985] IQK:Start!!!
[ 192.280850] Path A IQK Success!!
[ 192.292229] Path A IQK Success!!
[ 192.300488] IQK: final_candidate is 0
[ 192.304622] IQK: RegE94=102 RegE9C=10 RegEA4=ff RegEAC=1 RegEB4=0 RegEBC=0 RegEC4=0 RegECC=0
[ 192.304637] Path A IQ Calibration Success !
[ 192.433820] pdmpriv->TxPowerTrackControl = 1
[ 192.443199] rtl8192cu_hal_init in 620ms
[ 192.465449] MAC Address = 00:13:ef:62:0a:ee
[ 192.470370] -871x_drv - drv_open, bup=1
[ 192.475579] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 192.481709] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
[ 192.486691] set_mode = IW_MODE_INFRA
[ 192.491375] =>rtw_wx_set_essid
[ 192.494828] ssid=g▒isQ▒J▒)ͺ▒▒▒▒F|▒T▒▒vZ.c3▒ɚ, len=32
[ 192.494841] hw_var_set_opmode()-4234 mode = 2
[ 192.505736] Set SSID under fw_state=0x00000008
[ 192.510788] <=rtw_wx_set_essid, ret 0
[ 192.570741] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
[ 193.826071] survey done event(5) band:0 for wlan1
[ 193.831464] rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
[ 193.840153] try_to_join, but select scanning queue fail, to_roaming:0
[ 193.872524] wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM
[ 193.878112] set_mode = IW_MODE_INFRA
[ 193.882478]
[ 193.882487] wpa_ie(length:22):
[ 193.883186] hw_var_set_opmode()-4234 mode = 2
[ 193.892720] 0x30 0x14 0x01 0x00 0x00 0x0f 0xac 0x02
[ 193.898321] 0x01 0x00 0x00 0x0f 0xac 0x02 0x01 0x00
[ 193.904020] 0x00 0x0f 0xac 0x02 0x00 0x00 0x00 0x00
[ 193.910312] SetHwReg8192CU, 5130, RCR= 700060ca
[ 193.915860] =>rtw_wx_set_essid
[ 193.919308] ssid=WESTEROS, len=8
[ 193.923056] Set SSID under fw_state=0x00000008
[ 193.928083] [by_bssid:0][assoc_ssid:WESTEROS][to_roaming:0] new candidate: WESTEROS(00:1a:e3:b8:ea:30, ch6) rssi:-80
[ 193.939991] rtw_select_and_join_from_scanned_queue: candidate: WESTEROS(00:1a:e3:b8:ea:30, ch:6)
[ 193.949953] link to Cisco AP
[ 193.953434] <=rtw_wx_set_essid, ret 0
[ 193.957640] start_join_set_ch_bw: ch=6, bwmode=0, ch_offset=0
[ 193.958125] Set BSSID under fw_state=0x00000088
[ 194.099803] link to Cisco AP
[ 194.106159] OnAuthClient
[ 194.108985] network.SupportedRates[0]=82
[ 194.113367] network.SupportedRates[1]=84
[ 194.117715] network.SupportedRates[2]=8B
[ 194.122074] network.SupportedRates[3]=0C
[ 194.126423] network.SupportedRates[4]=12
[ 194.130783] network.SupportedRates[5]=96
[ 194.135131] network.SupportedRates[6]=18
[ 194.139479] network.SupportedRates[7]=24
[ 194.143837] network.SupportedRates[8]=30
[ 194.148185] network.SupportedRates[9]=48
[ 194.152544] network.SupportedRates[10]=60
[ 194.156988] network.SupportedRates[11]=6C
[ 194.161444] bssrate_len = 12
[ 194.167403] OnAssocRsp
[ 194.170053] report_join_res(5)
[ 194.173440] rtw_joinbss_update_network
[ 194.177355] rtw_joinbss_update_stainfo
[ 194.181878] HW_VAR_BASIC_RATE: BrateCfg(0x15d)
[ 194.187763] WMM(0): 0, a42b
[ 194.191011] WMM(1): 0, a44f
[ 194.194257] WMM(2): 0, 5e4322
[ 194.197631] WMM(3): 0, 2f3222
[ 194.201592] HTOnAssocRsp
[ 194.201898] ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 194.212988]
[ 194.212996] ~~~~stastakey:unicastkey
[ 194.215768] update raid entry, mask=0x40000fff, arg=0x80
[ 194.217257] rtl8192c_set_FwJoinBssReport_cmd mstatus(1)
[ 194.218128] SetFwRsvdPagePkt
[ 194.218163] Set RSVD page location to Fw.
[ 194.219379] =>mlmeext_joinbss_event_callback
[ 194.242831] ~~~~set sta key:groupkey
[ 194.246903] ==> rtw_set_key algorithm(2),keyid(2),key_mask(0)
[ 194.255393] SetHwReg8192CU, 5126, RCR= 700060ce
[ 194.475754] rtl8192c_dm_RF_Saving(): RF_Normal
[ 200.470712] rtw_set_ps_mode(): Enter 802.11 power save mode...
[ 200.477306] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2
[ 249.397539] rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..
[ 249.405229] rtl8192c_set_FwPwrMode_cmd(): Mode = 0, SmartPS = 0
[ 250.470842] rtw_set_ps_mode(): Enter 802.11 power save mode...
[ 250.477511] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2
[ 252.470771] rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..
[ 252.478383] rtl8192c_set_FwPwrMode_cmd(): Mode = 0, SmartPS = 0
[ 254.470826] rtw_set_ps_mode(): Enter 802.11 power save mode...
[ 254.477420] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2
[ 262.470797] rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..
[ 262.478441] rtl8192c_set_FwPwrMode_cmd(): Mode = 0, SmartPS = 0
[ 264.470727] rtw_set_ps_mode(): Enter 802.11 power save mode...
[ 264.477321] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2

 

 

Thanks everyone for helping me solve this problem.

Link to comment
Share on other sites

Thanks for the solution!

 

I had the same problem with my Orange PI PC and the RTL8188CUS module. The system randomly crashed after connecting the wireless module. Also there was a problem with connecting to the WPA2-PSK network. Replacing the kernel module with https://github.com/pvaret/rtl8192cu-fixes solved the problem. The actual connection speed is nearly 30-40 MBit/s

Link to comment
Share on other sites

On 8/25/2016 at 0:04 PM, otousama said:

Oh well, same issue with the powered hub, then tried with a different driver (https://github.com/pvaret/rtl8192cu-fixes)


sudo apt-get install dkms
git clone https://github.com/pvaret/rtl8192cu-fixes.git
sudo dkms add ./rtl8192cu-fixes
sudo dkms install 8192cu/1.10
sudo depmod -a
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
sudo reboot

and at next boot had the wifi up and running


> lsmod
Module                  Size  Used by
mac80211              358429  0
mali_drm                2732  1
drm                   178255  2 mali_drm
mali                  123208  0
ump                    29379  3 mali
8192cu                624560  0

> ifconfig
wlan1     Link encap:Ethernet  HWaddr 00:13:ef:62:0a:ee
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.254.0
          inet6 addr: fe80::213:efff:fe62:aee/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:18910 errors:0 dropped:1173 overruns:0 frame:0
          TX packets:34687 errors:0 dropped:2 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15112303 (14.4 MiB)  TX bytes:71589296 (68.2 MiB)


> iwconfig
wlan1     IEEE 802.11bg  ESSID:"WESTEROS"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:1A:E3:B8:EA:30
          Bit Rate:54 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level=92/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
		  
> cat /proc/net/wireless
Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
 wlan1: 0000  100.   97.    0.       0      0      0      0      0        0
 
 
> iperf -c 192.168.1.22 -p 20
------------------------------------------------------------
Client connecting to 192.168.1.22, TCP port 20
TCP window size: 20.9 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.4 port 39951 connected with 192.168.1.22 port 20
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.2 sec  7.12 MBytes  5.88 Mbits/sec
> iperf -c 192.168.1.22 -p 20
------------------------------------------------------------
Client connecting to 192.168.1.22, TCP port 20
TCP window size: 20.9 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.4 port 39952 connected with 192.168.1.22 port 20
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.2 sec  21.9 MBytes  18.0 Mbits/sec

speeds are quite inconsistent, didn't go over 20Mb/s even with the AP at 4 meters, but that's not a big concern for now, maybe it only needs some tweaking, but at least it is working!

Here is the dmesg of the successful association:

 

 

  Reveal hidden contents

[ 190.502258] ehci_irq: highspeed device connect
[ 190.520135] ehci_irq: highspeed device connect
[ 190.770127] usb 3-1: new high-speed USB device number 2 using sunxi-ehci
[ 190.923545]
[ 190.923554] usb_endpoint_descriptor(0):
[ 190.929538] bLength=7
[ 190.932178] bDescriptorType=5
[ 190.935518] bEndpointAddress=81
[ 190.939052] wMaxPacketSize=200
[ 190.942632] bInterval=0
[ 190.945412] RT_usb_endpoint_is_bulk_in = 1
[ 190.950074]
[ 190.950081] usb_endpoint_descriptor(1):
[ 190.956061] bLength=7
[ 190.958616] bDescriptorType=5
[ 190.961997] bEndpointAddress=2
[ 190.965434] wMaxPacketSize=200
[ 190.968868] bInterval=0
[ 190.971668] RT_usb_endpoint_is_bulk_out = 2
[ 190.976378]
[ 190.976384] usb_endpoint_descriptor(2):
[ 190.982649] bLength=7
[ 190.985209] bDescriptorType=5
[ 190.988546] bEndpointAddress=3
[ 190.992087] wMaxPacketSize=200
[ 190.995514] bInterval=0
[ 190.998265] RT_usb_endpoint_is_bulk_out = 3
[ 191.002984]
[ 191.002987] usb_endpoint_descriptor(3):
[ 191.008885] bLength=7
[ 191.011437] bDescriptorType=5
[ 191.014726] bEndpointAddress=84
[ 191.018205] wMaxPacketSize=40
[ 191.021561] bInterval=1
[ 191.024272] RT_usb_endpoint_is_int_in = 4, Interval = 1
[ 191.030094] nr_endpoint=4, in_num=2, out_num=2
[ 191.030099]
[ 191.036656] USB_SPEED_HIGH
[ 191.039686] CHIP TYPE: RTL8188C_8192C
[ 191.043833] register rtw_netdev_ops to netdev_ops
[ 191.049258] Chip Version ID: VERSION_NORMAL_TSMC_CHIP_88C.
[ 191.055377] RF_Type is 3!!
[ 191.058739] EEPROM type is E-FUSE
[ 191.062442] ====> ReadAdapterInfo8192C
[ 191.066743] Boot from EFUSE, Autoload OK !
[ 191.257868] EEPROMVID = 0x0bda
[ 191.261282] EEPROMPID = 0x8176
[ 191.264667] EEPROMCustomerID : 0x00
[ 191.268532] EEPROMSubCustomerID: 0x00
[ 191.272620] RT_CustomerID: 0x00
[ 191.276112] _ReadMACAddress MAC Address from EFUSE = 00:13:ef:62:0a:ee
[ 191.283380] EEPROMRegulatory = 0x0
[ 191.287151] _ReadBoardType(0)
[ 191.290475] BT Coexistance = disable
[ 191.294440] mlmepriv.ChannelPlan = 0x02
[ 191.298694] _ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
[ 191.307696] ### PS params=> power_mgnt(1),usbss_enable(0) ###
[ 191.314203] ### AntDivCfg(0)
[ 191.317396] readAdapterInfo_8192CU(): REPLACEMENT = 1
[ 191.323026] <==== ReadAdapterInfo8192C in 260 ms
[ 191.328900] rtw_macaddr_cfg MAC Address = 00:13:ef:62:0a:ee
[ 191.335263] bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[ 191.344380] _rtw_drv_register_netdev, MAC Address (if1) = 00:13:ef:62:0a:ee
[ 191.550509] systemd-udevd[961]: renamed network interface wlan0 to wlan1
[ 191.820570] +871x_drv - drv_open, bup=0
[ 191.829119] ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
[ 191.836136] FirmwareDownload92C accquire FW from embedded image
[ 191.842813] fw_ver=v88, fw_subver=2, sig=0x88c0
[ 191.873100] fw download ok!
[ 191.876201] Set RF Chip ID to RF_6052 and RF type to 1T1R.
[ 192.266985] IQK:Start!!!
[ 192.280850] Path A IQK Success!!
[ 192.292229] Path A IQK Success!!
[ 192.300488] IQK: final_candidate is 0
[ 192.304622] IQK: RegE94=102 RegE9C=10 RegEA4=ff RegEAC=1 RegEB4=0 RegEBC=0 RegEC4=0 RegECC=0
[ 192.304637] Path A IQ Calibration Success !
[ 192.433820] pdmpriv->TxPowerTrackControl = 1
[ 192.443199] rtl8192cu_hal_init in 620ms
[ 192.465449] MAC Address = 00:13:ef:62:0a:ee
[ 192.470370] -871x_drv - drv_open, bup=1
[ 192.475579] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 192.481709] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
[ 192.486691] set_mode = IW_MODE_INFRA
[ 192.491375] =>rtw_wx_set_essid
[ 192.494828] ssid=g▒isQ▒J▒)ͺ▒▒▒▒F|▒T▒▒vZ.c3▒ɚ, len=32
[ 192.494841] hw_var_set_opmode()-4234 mode = 2
[ 192.505736] Set SSID under fw_state=0x00000008
[ 192.510788] <=rtw_wx_set_essid, ret 0
[ 192.570741] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
[ 193.826071] survey done event(5) band:0 for wlan1
[ 193.831464] rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
[ 193.840153] try_to_join, but select scanning queue fail, to_roaming:0
[ 193.872524] wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM
[ 193.878112] set_mode = IW_MODE_INFRA
[ 193.882478]
[ 193.882487] wpa_ie(length:22):
[ 193.883186] hw_var_set_opmode()-4234 mode = 2
[ 193.892720] 0x30 0x14 0x01 0x00 0x00 0x0f 0xac 0x02
[ 193.898321] 0x01 0x00 0x00 0x0f 0xac 0x02 0x01 0x00
[ 193.904020] 0x00 0x0f 0xac 0x02 0x00 0x00 0x00 0x00
[ 193.910312] SetHwReg8192CU, 5130, RCR= 700060ca
[ 193.915860] =>rtw_wx_set_essid
[ 193.919308] ssid=WESTEROS, len=8
[ 193.923056] Set SSID under fw_state=0x00000008
[ 193.928083] [by_bssid:0][assoc_ssid:WESTEROS][to_roaming:0] new candidate: WESTEROS(00:1a:e3:b8:ea:30, ch6) rssi:-80
[ 193.939991] rtw_select_and_join_from_scanned_queue: candidate: WESTEROS(00:1a:e3:b8:ea:30, ch:6)
[ 193.949953] link to Cisco AP
[ 193.953434] <=rtw_wx_set_essid, ret 0
[ 193.957640] start_join_set_ch_bw: ch=6, bwmode=0, ch_offset=0
[ 193.958125] Set BSSID under fw_state=0x00000088
[ 194.099803] link to Cisco AP
[ 194.106159] OnAuthClient
[ 194.108985] network.SupportedRates[0]=82
[ 194.113367] network.SupportedRates[1]=84
[ 194.117715] network.SupportedRates[2]=8B
[ 194.122074] network.SupportedRates[3]=0C
[ 194.126423] network.SupportedRates[4]=12
[ 194.130783] network.SupportedRates[5]=96
[ 194.135131] network.SupportedRates[6]=18
[ 194.139479] network.SupportedRates[7]=24
[ 194.143837] network.SupportedRates[8]=30
[ 194.148185] network.SupportedRates[9]=48
[ 194.152544] network.SupportedRates[10]=60
[ 194.156988] network.SupportedRates[11]=6C
[ 194.161444] bssrate_len = 12
[ 194.167403] OnAssocRsp
[ 194.170053] report_join_res(5)
[ 194.173440] rtw_joinbss_update_network
[ 194.177355] rtw_joinbss_update_stainfo
[ 194.181878] HW_VAR_BASIC_RATE: BrateCfg(0x15d)
[ 194.187763] WMM(0): 0, a42b
[ 194.191011] WMM(1): 0, a44f
[ 194.194257] WMM(2): 0, 5e4322
[ 194.197631] WMM(3): 0, 2f3222
[ 194.201592] HTOnAssocRsp
[ 194.201898] ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 194.212988]
[ 194.212996] ~~~~stastakey:unicastkey
[ 194.215768] update raid entry, mask=0x40000fff, arg=0x80
[ 194.217257] rtl8192c_set_FwJoinBssReport_cmd mstatus(1)
[ 194.218128] SetFwRsvdPagePkt
[ 194.218163] Set RSVD page location to Fw.
[ 194.219379] =>mlmeext_joinbss_event_callback
[ 194.242831] ~~~~set sta key:groupkey
[ 194.246903] ==> rtw_set_key algorithm(2),keyid(2),key_mask(0)
[ 194.255393] SetHwReg8192CU, 5126, RCR= 700060ce
[ 194.475754] rtl8192c_dm_RF_Saving(): RF_Normal
[ 200.470712] rtw_set_ps_mode(): Enter 802.11 power save mode...
[ 200.477306] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2
[ 249.397539] rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..
[ 249.405229] rtl8192c_set_FwPwrMode_cmd(): Mode = 0, SmartPS = 0
[ 250.470842] rtw_set_ps_mode(): Enter 802.11 power save mode...
[ 250.477511] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2
[ 252.470771] rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..
[ 252.478383] rtl8192c_set_FwPwrMode_cmd(): Mode = 0, SmartPS = 0
[ 254.470826] rtw_set_ps_mode(): Enter 802.11 power save mode...
[ 254.477420] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2
[ 262.470797] rtw_set_ps_mode(): Busy Traffic , Leave 802.11 power save..
[ 262.478441] rtl8192c_set_FwPwrMode_cmd(): Mode = 0, SmartPS = 0
[ 264.470727] rtw_set_ps_mode(): Enter 802.11 power save mode...
[ 264.477321] rtl8192c_set_FwPwrMode_cmd(): Mode = 1, SmartPS = 2

 

 

Thanks everyone for helping me solve this problem.

Thanks! it solved mine!

Link to comment
Share on other sites

I'm trying to make RTL8188CUS work in Orange Pi Zero (stable ubuntu). I tried to do what @otousama wrote. First of all, it did not compile on GCC 5 so I had to do what's written here: 

 The driver compiles now and installs correctly but the module does not load after reboot. I've tried to add 8192cu to /etc/modules-load.d/modules.conf but it did not help. Does someone knows what to do?

My lsusb:

Quote

Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 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 002 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

My lsmod:

Quote

Module                  Size  Used by
bmp085                  3487  0
pcf8591                 3363  0
fb_ili9341              3432  2
fbtft_device           25082  0
fbtft                  24194  2 fb_ili9341,fbtft_device
syscopyarea             2726  1 fbtft
sysfillrect             2976  1 fbtft
sysimgblt               1738  1 fbtft
fb_sys_fops             1142  1 fbtft
btrfs                 712409  0

Edit:

I did:

sudo dkms install 8192cu/1.10 --force

and now it works

Edited by Dmitry_
I found a solution.
Link to comment
Share on other sites

 

Dear Dmitry_:

 

Ut look like I have the same setup as you, but my USB dongle does not shows up. Could you please show me your "lsmod" after you applied your last solution? (sudo dkms install 8192cu/1.10 --force)

 

Best Regards,

 

On 7/24/2017 at 7:10 AM, Dmitry_ said:

I'm trying to make RTL8188CUS work in Orange Pi Zero (stable ubuntu). I tried to do what @otousama wrote. First of all, it did not compile on GCC 5 so I had to do what's written here: 

 The driver compiles now and installs correctly but the module does not load after reboot. I've tried to add 8192cu to /etc/modules-load.d/modules.conf but it did not help. Does someone knows what to do?

My lsusb:

My lsmod:

Edit:

I did:


sudo dkms install 8192cu/1.10 --force

and now it works

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines