[SOLVED]RTL8188CUS driver

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

[SOLVED]RTL8188CUS driver

Postby ubis » Fri Nov 09, 2012 1:21 pm

Hello, i have got USB RTL8188CUS Wi-Fi driver.
As far as i know, RTL8118CUS driver supports RTL8192CU, which is in linux kernel. Compiled 3.4.0 linux kernel with RTL8192CU option, booted arch and i can see in dmesg:

$this->bbcode_second_pass_code('', 'rtl8192cu: Chip version 0x10
rtl8192cu: MAC address: 00:02:72:a5:87:2d
rtl8192cu: Board Type 0
rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
rtlwifi: wireless switch is on
rtl8192cu: MAC auto ON okay!
rtl8192cu: Tx queue select: 0x05')

As i can see, arch now can see it, and with command iwconfig i can see wlan0. And here is the problem. If i type
$this->bbcode_second_pass_code('', 'ifconfig wlan0 up') i have got errors in dmesg file:

$this->bbcode_second_pass_code('', '------------[ cut here ]------------
kernel BUG at /home/ubis/linux-3.4/arch/arm/include/asm/dma-mapping.h:321!
Internal error: Oops - BUG: 0 [#1] ARM
Modules linked in:
CPU: 0 Not tainted (3.4.0 #29)
PC is at usb_hcd_map_urb_for_dma+0x314/0x448
LR is at debug_dma_map_page+0x104/0x160
pc : [<c0363500>] lr : [<c024c478>] psr: 20000013
sp : cab1fa88 ip : 00000001 fp : cab1fad4
r10: cab59e00 r9 : 000000ea r8 : 00000000
r7 : c07b4890 r6 : c09cbf0c r5 : ffdfa000 r4 : 00000000
r3 : c085aaac r2 : cc000000 r1 : c07b7340 r0 : c07b7340
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 00c5387d Table: 4b34c008 DAC: 00000015
Process ifconfig (pid: 2778, stack limit = 0xcab1e268)
Stack: (0xcab1fa88 to 0xcab20000)
fa80: 00000001 4986b600 00000001 c007a710 00000010 cb3c6400
faa0: 00000001 c07b7340 c00abf18 00000010 cab59e08 cab59e00 cb3c6400 cab1fbf4
fac0: 00000000 00000005 cab1fb8c cab1fad8 c0363730 c03631f8 c09fe7c8 fde00000
fae0: ffdfa000 00001000 c986b600 c001221c cab59580 a0000093 c07b4890 caee2000
fb00: c09fe7ec 00000020 ffffffff 00000000 c09fe7c8 00001000 cab1fb74 cab1fb28
fb20: c000fd8c c0012154 c00a767c ffdfe938 ffdfe818 00000020 c986b5cc 00000fff
fb40: c986b5e0 c09fe7ec 00000004 c07b7340 00001000 bf000000 00008e7f 00000010
fb60: 0000007c cb276438 cb276400 00000000 00000032 cab1fbf4 00000000 00000005
fb80: cab1fbac cab1fb90 c036428c c0363640 00000000 cab1fbb0 cab59e00 00000032
fba0: cab1fbe4 cab1fbb0 c0365640 c0364198 00000000 cab1fbb4 cab1fbb4 cab59e00
fbc0: cab1fbe4 c986b600 000000ea 00001000 00000000 00000040 cab1fc24 cab1fbe8
fbe0: c03658d4 c03655fc 80000300 cb276400 cab1fc14 cab1fc00 c0369c20 00000032
fc00: 000000ea cb276400 cc8a4020 ffdfa000 cb264e20 00001000 cab1fc6c cab1fc28
fc20: c03246f8 c0365804 00001000 00000000 ffdfa000 000000ea 00000032 c0364570
fc40: 00000000 4aee2000 00000000 00000001 cb264e20 00000011 cc8a4020 00000076
fc60: cab1fc94 cab1fc70 c0328294 c0324678 00000000 cb264e20 cb264280 cc8a4020
fc80: 00001000 cc8a4020 cab1fcbc cab1fc98 c03283f8 c032822c cab1fcbc 00000001
fca0: cc8a4020 00000003 cb264280 00000e6e cab1fd04 cab1fcc0 c032860c c032837c
fcc0: cab1fcec cab1fcd0 c03244d4 c03242d8 cab1fcdc cb264e20 cb264e20 cb264e20
fce0: 00000010 cb264e20 00000008 cb264280 00000001 00000000 cab1fd54 cab1fd08
fd00: c033253c c032852c 00000003 00000003 00000003 cb803800 cb264e20 00000005
fd20: 00000002 80e70000 cab1fd4c cb264e20 cb264280 cb264e2c cb264280 caea2000
fd40: 00000001 cab1fe78 cab1fd84 cab1fd58 c0323aa0 c0331d3c cab1fd9c cb264e20
fd60: cb264280 cb264e2c 00001002 caea2000 00000001 cab1fe78 cab1fda4 cab1fd88
fd80: c031e84c c0323a7c 0000000d caea2000 cb264280 caea23a0 cab1fddc cab1fda8
fda0: c0518a88 c031e7f0 c051737c c0457220 00001002 caea2000 c0617624 00001043
fdc0: 00001002 c086f660 00000000 cab1fe78 cab1fdf4 cab1fde0 c0519438 c051898c
fde0: caea2000 caea2000 cab1fe0c cab1fdf8 c044c308 c05193c8 00000041 caea2000
fe00: cab1fe2c cab1fe10 c04495ac c044c260 caea2000 00001002 bee25b0c 00008914
fe20: cab1fe4c cab1fe30 c044c21c c0449530 cab1fe4c cab1e000 00000001 bee25b0c
fe40: cab1fed4 cab1fe50 c04987c0 c044c208 cab1fe90 bee25b0c 00000020 cab1fe88
fe60: 00008913 c044de04 caf51200 caf5120c caea2000 00000000 6e616c77 00000030
fe80: 00000000 00000000 b6f51043 bee25ee5 00000000 0001e27c b6f51043 bee25ee5
fea0: 00000000 0001e27c 00000000 00008914 bee25b0c bee25b0c bee25b0c c0009508
fec0: cab1e000 00000000 cab1fee4 cab1fed8 c04998e4 c049806c cab1ff04 cab1fee8
fee0: c0437574 c0499740 00000075 cab11100 bee25b0c 00000004 cab1ff7c cab1ff08
ff00: c00beec0 c0437504 cab1ff4c cab1ff18 c00ac10c c007a6cc c07be850 00000000
ff20: cab1ff4c cb2cf000 0001564c 0001564c 00000004 ffffff9c cb2cf4e0 cb2cf960
ff40: cab1ff64 cab1ff50 cab1ff64 cab1ff58 c003bee0 00000004 bee25b0c 00008914
ff60: cab11100 c0009508 cab1e000 00000000 cab1ffa4 cab1ff80 c00bf3ec c00bee3c
ff80: c0009508 00000000 0001ea80 0001e7fc bee25be8 00000036 00000000 cab1ffa8
ffa0: c00092a0 c00bf3b4 0001ea80 0001e7fc 00000004 00008914 bee25b0c 00001002
ffc0: 0001ea80 0001e7fc bee25be8 00000036 0001ea88 00000075 b6f70fb8 bee25ee5
ffe0: 0001e198 bee25afc 0000b508 b6eb3e6c 60000010 00000004 aaaaaaaa aaaaaaaa
Backtrace:
[<c03631ec>] (usb_hcd_map_urb_for_dma+0x0/0x448) from [<c0363730>] (usb_hcd_submit_urb+0xfc/0x7e4)
[<c0363634>] (usb_hcd_submit_urb+0x0/0x7e4) from [<c036428c>] (usb_submit_urb+0x100/0x2d4)
[<c036418c>] (usb_submit_urb+0x0/0x2d4) from [<c0365640>] (usb_start_wait_urb+0x50/0xd8)
r7:00000032 r6:cab59e00 r5:cab1fbb0 r4:00000000
[<c03655f0>] (usb_start_wait_urb+0x0/0xd8) from [<c03658d4>] (usb_control_msg+0xdc/0x100)
r8:00000040 r7:00000000 r6:00001000 r5:000000ea r4:c986b600
[<c03657f8>] (usb_control_msg+0x0/0x100) from [<c03246f8>] (_usb_writeN_sync+0x8c/0xa8)
[<c032466c>] (_usb_writeN_sync+0x0/0xa8) from [<c0328294>] (_rtl92c_fw_block_write+0x74/0x150)
[<c0328220>] (_rtl92c_fw_block_write+0x0/0x150) from [<c03283f8>] (_rtl92c_fw_page_write+0x88/0x90)
[<c0328370>] (_rtl92c_fw_page_write+0x0/0x90) from [<c032860c>] (rtl92c_download_fw+0xec/0x5b0)
r8:00000e6e r7:cb264280 r6:00000003 r5:cc8a4020 r4:00000001
[<c0328520>] (rtl92c_download_fw+0x0/0x5b0) from [<c033253c>] (rtl92cu_hw_init+0x80c/0x1530)
[<c0331d30>] (rtl92cu_hw_init+0x0/0x1530) from [<c0323aa0>] (rtl_usb_start+0x30/0x1d8)
[<c0323a70>] (rtl_usb_start+0x0/0x1d8) from [<c031e84c>] (rtl_op_start+0x68/0x90)
[<c031e7e4>] (rtl_op_start+0x0/0x90) from [<c0518a88>] (ieee80211_do_open+0x108/0xa3c)
r6:caea23a0 r5:cb264280 r4:caea2000
[<c0518980>] (ieee80211_do_open+0x0/0xa3c) from [<c0519438>] (ieee80211_open+0x7c/0x80)
[<c05193bc>] (ieee80211_open+0x0/0x80) from [<c044c308>] (__dev_open+0xb4/0x104)
r4:caea2000
[<c044c254>] (__dev_open+0x0/0x104) from [<c04495ac>] (__dev_change_flags+0x88/0x154)
r5:caea2000 r4:00000041
[<c0449524>] (__dev_change_flags+0x0/0x154) from [<c044c21c>] (dev_change_flags+0x20/0x58)
r7:00008914 r6:bee25b0c r5:00001002 r4:caea2000
[<c044c1fc>] (dev_change_flags+0x0/0x58) from [<c04987c0>] (devinet_ioctl+0x760/0x7b4)
r6:bee25b0c r5:00000001 r4:cab1e000
[<c0498060>] (devinet_ioctl+0x0/0x7b4) from [<c04998e4>] (inet_ioctl+0x1b0/0x1c8)
[<c0499734>] (inet_ioctl+0x0/0x1c8) from [<c0437574>] (sock_ioctl+0x7c/0x268)
[<c04374f8>] (sock_ioctl+0x0/0x268) from [<c00beec0>] (do_vfs_ioctl+0x90/0x578)
r6:00000004 r5:bee25b0c r4:cab11100
[<c00bee30>] (do_vfs_ioctl+0x0/0x578) from [<c00bf3ec>] (sys_ioctl+0x44/0x6c)
[<c00bf3a8>] (sys_ioctl+0x0/0x6c) from [<c00092a0>] (ret_fast_syscall+0x0/0x30)
r7:00000036 r6:bee25be8 r5:0001e7fc r4:0001ea80
Code: e59f312c e5932000 e1550002 3a000014 (e7f001f2)
---[ end trace 2a9018c655d3da9d ]---')

After that, if i type iwconfig or ifconfig, system completely freezes...
Last edited by ubis on Fri Nov 09, 2012 7:25 pm, edited 1 time in total.
ubis
 
Posts: 7
Joined: Mon Nov 05, 2012 5:53 pm

Re: RTL8188CUS driver

Postby WarheadsSE » Fri Nov 09, 2012 1:43 pm

Unless I am mistaken, the 8192cu driver from the main tree should take care of this for you without having to compile your own.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: RTL8188CUS driver

Postby ubis » Fri Nov 09, 2012 1:58 pm

What do you mean? If i compile 3.4 kernel without RTL8192CU option and flash it, iwconfig returns nothing, no wlan0 extensions. Also, dmesg says nothing about my usb Wi-Fi.
ubis
 
Posts: 7
Joined: Mon Nov 05, 2012 5:53 pm

Re: RTL8188CUS driver

Postby WarheadsSE » Fri Nov 09, 2012 2:43 pm

What device is this on?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: RTL8188CUS driver

Postby ubis » Fri Nov 09, 2012 2:47 pm

Zenithink ZT-180 v2
ubis
 
Posts: 7
Joined: Mon Nov 05, 2012 5:53 pm

Re: RTL8188CUS driver

Postby WarheadsSE » Fri Nov 09, 2012 2:55 pm

have you tried patching to up-to-date 3.4? 3.4.0 is a bit out dated, and I believe there were some wireless fixes later on.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: RTL8188CUS driver

Postby ubis » Fri Nov 09, 2012 7:25 pm

Compiled 3.6.4 kernel and it works as it should be! Thanks.
ubis
 
Posts: 7
Joined: Mon Nov 05, 2012 5:53 pm


Return to Hardware

Who is online

Users browsing this forum: No registered users and 13 guests