[SOLVED]GoFlexHome:USB Wireless Adapter Auto Disconnect

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[SOLVED]GoFlexHome:USB Wireless Adapter Auto Disconnect

Postby suyanlu » Sun Apr 14, 2013 1:55 am

usb wireless adapter module: TPLink TL-WN821N (maybe v4?)
Error Log:
$this->bbcode_second_pass_code('', '
[11390.567559] wlan0: deauthenticated from 14:e6:e4:83:e7:58 (Reason: 2)
[11390.611151] cfg80211: Calling CRDA to update world regulatory domain
[11391.606565] wlan0: authenticate with 14:e6:e4:83:e7:58
[11391.654136] wlan0: send auth to 14:e6:e4:83:e7:58 (try 1/3)
[11391.666341] wlan0: authenticated
[11391.675223] wlan0: associate with 14:e6:e4:83:e7:58 (try 1/3)
[11391.701077] wlan0: RX AssocResp from 14:e6:e4:83:e7:58 (capab=0x431 status=0 aid=2)
[11391.710678] wlan0: associated
[12590.600320] wlan0: deauthenticated from 14:e6:e4:83:e7:58 (Reason: 2)
[12590.637697] cfg80211: Calling CRDA for country: CN
[12591.770914] wlan0: authenticate with 14:e6:e4:83:e7:58
[12591.788628] wlan0: send auth to 14:e6:e4:83:e7:58 (try 1/3)
[12591.805177] wlan0: authenticated
[12592.024521] wlan0: associate with 14:e6:e4:83:e7:58 (try 1/3)
[12592.034589] wlan0: RX AssocResp from 14:e6:e4:83:e7:58 (capab=0x431 status=0 aid=2)
[12592.043408] wlan0: associated
[27590.918091] wlan0: deauthenticated from 14:e6:e4:83:e7:58 (Reason: 2)
[27590.949422] cfg80211: Calling CRDA to update world regulatory domain
[27591.911312] wlan0: authenticate with 14:e6:e4:83:e7:58
[27591.956017] wlan0: send auth to 14:e6:e4:83:e7:58 (try 1/3)
[27591.966417] wlan0: authenticated
[27591.975436] wlan0: associate with 14:e6:e4:83:e7:58 (try 1/3)
[27591.995193] wlan0: RX AssocResp from 14:e6:e4:83:e7:58 (capab=0x431 status=0 aid=2)
[27592.007728] wlan0: associated
[color=#FF0000][36660.646451] wlan0: deauthenticating from 14:e6:e4:83:e7:58 by local choice (reason=3)
[/color][36660.704667] cfg80211: Calling CRDA to update world regulatory domain
')

information of adapter:
$this->bbcode_second_pass_code('', '
┌─[✗]─[root@goflexhome]─[~]
└──> lsusb
Bus 001 Device 002: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
┌─[root@goflexhome]─[~]
└──> lsusb -s 001:003
Bus 001 Device 003: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
┌─[root@goflexhome]─[~]
└──> lsusb -s 001:003 -v

Bus 001 Device 003: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x8178 RTL8192CU 802.11n WLAN Adapter
bcdDevice 2.00
iManufacturer 1 802.11n
iProduct 2 USB WLAN
iSerial 3 00e04c000001
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 46
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 4
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
┌─[root@goflexhome]─[~]
└──> lsmod
Module Size Used by
ipv6 263859 22
rtl8192cu 88426 0
rtlwifi 93722 1 rtl8192cu
rtl8192c_common 52155 1 rtl8192cu
mac80211 369651 3 rtlwifi,rtl8192c_common,rtl8192cu
cfg80211 378366 2 mac80211,rtlwifi
rfkill 15276 2 cfg80211
mv_cesa 10696 0
autofs4 22333 2
┌─[root@goflexhome]─[~]
└──> iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:"33604"
Mode:Managed Frequency:2.412 GHz Access Point: 14:E6:E4:83:E7:58
Bit Rate=72.2 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=47/70 Signal level=-63 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
')

I have tried all ways I can have searched in google, somebody has same problem, but his adapter chip type is not same as mine.

my os version:
$this->bbcode_second_pass_code('', '
Linux goflexhome 3.8.6-1-ARCH #1 PREEMPT Sat Apr 6 21:36:59 UTC 2013 armv5tel GNU/Linux
')

thank you.
Last edited by suyanlu on Wed Apr 17, 2013 1:55 pm, edited 1 time in total.
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: [?BUG?]GoFlexHome:USB Wireless Adapter Auto Disconnect

Postby mlitke » Sun Apr 14, 2013 2:32 am

Looks like the same issue (with the RTL8192CU driver) that is being discussed at this thread:
http://archlinuxarm.org/forum/viewtopic.php?f=18&t=4486
mlitke
 
Posts: 55
Joined: Sat Apr 30, 2011 5:27 am

Re: [?BUG?]GoFlexHome:USB Wireless Adapter Auto Disconnect

Postby suyanlu » Sun Apr 14, 2013 3:44 am

$this->bbcode_second_pass_quote('mlitke', 'L')ooks like the same issue (with the RTL8192CU driver) that is being discussed at this thread:
http://archlinuxarm.org/forum/viewtopic.php?f=18&t=4486


now I have updated kernel to, so waitting for result about 4~5 hours.3ks.
$this->bbcode_second_pass_code('', '
Linux goflexhome 3.8.7-1-ARCH #1 PREEMPT Sat Apr 13 02:09:17 MDT 2013 armv5tel GNU/Linux
')
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: [?BUG?]GoFlexHome:USB Wireless Adapter Auto Disconnect

Postby moonman » Sun Apr 14, 2013 4:32 am

This kernel will be the same as 3.8.6 as there were no commits regarding the issue. Follow the thread linked by mltike and build your own driver. It's pretty straight forward. viewtopic.php?f=18&t=4486&start=20#p29789
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: [?BUG?]GoFlexHome:USB Wireless Adapter Auto Disconnect

Postby suyanlu » Sun Apr 14, 2013 4:39 am

I tried to compile adapter device driver , so I get sourcecode from relteck website, but compile error...
$this->bbcode_second_pass_code('', '
┌─[root@goflexhome]─[~/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105]
└──> make
make ARCH=armv5tel CROSS_COMPILE= -C /lib/modules/3.8.7-1-ARCH/build M=/root/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl818 0121105 modules
make[1]: Entering directory `/usr/src/linux-3.8.7-1-ARCH'
CC [M] /root/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105/core/rtw_cmd.o
In file included from /root/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105/core/rtw_
/root/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105/include/osdep_service.h: In fun
/root/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105/include/osdep_service.h:575:2: unction ‘daemonize’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/root/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105/core/rtw_cmd.o] E
make[1]: *** [_module_/root/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105] Error 2
make[1]: Leaving directory `/usr/src/linux-3.8.7-1-ARCH'
make: *** [modules] Error 2
')

I cannot find function daemonize from anywhere...
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: [?BUG?]GoFlexHome:USB Wireless Adapter Auto Disconnect

Postby suyanlu » Sun Apr 14, 2013 5:16 am

$this->bbcode_second_pass_quote('moonman', 'T')his kernel will be the same as 3.8.6 as there were no commits regarding the issue. Follow the thread linked by mltike and build your own driver. It's pretty straight forward. viewtopic.php?f=18&t=4486&start=20#p29789


what's wrong with me?
$this->bbcode_second_pass_code('', '
┌─[✗]─[root@goflexhome]─[~/8192cu-v3.4.4_4749]
└──> make
make ARCH=armv5tel CROSS_COMPILE= -C /lib/modules/3.8.7-1-ARCH/build M=/root/8192cu-v3.4.4_4749 modules
make[1]: Entering directory `/usr/src/linux-3.8.7-1-ARCH'
CC [M] /root/8192cu-v3.4.4_4749/core/rtw_cmd.o
In file included from /root/8192cu-v3.4.4_4749/core/rtw_cmd.c:23:0:
/root/8192cu-v3.4.4_4749/include/osdep_service.h: In function ‘thread_enter’:
/root/8192cu-v3.4.4_4749/include/osdep_service.h:575:2: error: implicit declaration of function ‘daemonize’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/root/8192cu-v3.4.4_4749/core/rtw_cmd.o] Error 1
make[1]: *** [_module_/root/8192cu-v3.4.4_4749] Error 2
make[1]: Leaving directory `/usr/src/linux-3.8.7-1-ARCH'
make: *** [modules] Error 2
')

AND: I cannot find dkms.conf file in 8192cu package...
$this->bbcode_second_pass_code('', '
- Update the MAKE[0] line in the dkms.conf file (included with the dkms-8192cu package files) to change the architecture from i386 to arm, change the line:
')
make say to me : function daemonize must declare implicitly.
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: [?BUG?]GoFlexHome:USB Wireless Adapter Auto Disconnect

Postby moonman » Sun Apr 14, 2013 6:20 am

ARCH=arm not the specific architechture you specified there.

Follow this: viewtopic.php?f=18&t=4486&p=30429#p30429
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: [?BUG?]GoFlexHome:USB Wireless Adapter Auto Disconnect

Postby suyanlu » Sun Apr 14, 2013 6:42 am

$this->bbcode_second_pass_quote('moonman', 'A')RCH=arm not the specific architechture you specified there.


OK, lots of configuration files need to be modified.
detail list here:
- Install the dkms linux-kirkwood linux-headers-kirkwood abs package on the system
----command: pacman -Sy dkms linux-kirkwood linux-headers-kirkwood abs
- Get dkms-8192cu and source code and patch file.
----url of AUR: https://aur.archlinux.org/packages/dkms-8192cu/
----url of dkms-8192cu : https://aur.archlinux.org/packages/dk/d ... 2cu.tar.gz
----url of 8192cu-v3.4.4_4749(source code of driver): https://www.dropbox.com/s/3rrxrg55hmnzr ... 49.tar.bz2
----notes:dkms-8192cu.tar.gz contain: blacklist-dkms-8192cu.conf dkms-8192cu.install dkms.conf PKGBUILD use_kthread_run.patch use_kthread_run_v2.patch
- Change dkms.conf and PKGBUILD, this file in dkms-8192cu.tar.gz, uncompress it.
----tar xvfz dkms-8192cu.tar.gz
----copy 8192cu-v3.4.4_4749.tar.bz2 to dkms-8192cu;
----cd dkms-8192cu; vi dkms.conf;
----change the architecture from "i386" to "arm";
----using command "md5sum dkms.conf" get digest of dkms.conf, I suggest it : MD5SUM_DKMS_CONF;
----using command "vi PKGBUILD" to modify md5 checksum value of dkms.conf and the path of 8192cu-v3.4.4_4749.tar.bz2;
----modify first item of source to only filename(because the file is copied to this directory before);
----change second item of md5sums to MD5SUM_DKMS_CONF;
----change "arch=xxx" to "arch=('arm')"

- Unplug your usb wireless adapter
- Use makepkg to make the dkms-8192cu package
----Command(using root): makepkg --asroot -i
- Reboot the system (after it reboots, if you have the adapter plugged in, the 8192cu module should be loaded)
- Follow the instructions on the Arch Linux wiki to setup wireless networking, I use netcfg.

So, I compiled it and loaded , but some litter error when I using " netcfg up wireless-wlan0":
$this->bbcode_second_pass_code('', '
┌─[root@goflexhome]─[~]
└──> netcfg up wireless-wlan0
:: wireless-wlan0 up [ BUSY ] Successfully initialized wpa_supplicant
nl80211: 'nl80211' generic netlink not found
Failed to initialize driver 'nl80211'
rfkill: Cannot open RFKILL control device
ioctl[SIOCSIWAP]: Operation not permitted
')

anybody can tell me how to avoid these error report?

thks moonman.
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am
Top

Re: [?BUG?]GoFlexHome:USB Wireless Adapter Auto Disconnect

Postby suyanlu » Sun Apr 14, 2013 6:53 am

$this->bbcode_second_pass_quote('moonman', 'A')RCH=arm not the specific architechture you specified there.

Follow this: viewtopic.php?f=18&t=4486&p=30429#p30429


Yours files is changed correctly, oooo

I have wasted my time to study it.

paste yours here again:
$this->bbcode_second_pass_code('', '
pacman -Sy dkms base-devel linux-kirkwood-headers
systemctl enable dkms
systemctl start dkms
pacman -U https://dl.dropboxusercontent.com/u/15043728/ArchLinuxArm/kernels/dkms-8192cu-v3.4.4_4749-6-arm.pkg.tar.xz
')

I think after systemctl enable/start dkms, dkms can auto make updated driver's kernel object, isn't it?
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am
Top

Re: [?BUG?]GoFlexHome:USB Wireless Adapter Auto Disconnect

Postby moonman » Sun Apr 14, 2013 7:05 am

Correct, it will be rebuilt with every kernel update.
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

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 16 guests