LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-24-2010, 06:37 PM   #1
ks8
Member
 
Registered: May 2003
Posts: 38

Rep: Reputation: 15
Help me install Ralink RT2870STA USB wireless driver


I am using debian sqeeze 2.6.32-3-amd64.
I wanted to install Belkin F5D8035 V2 usb wireless adapter. The chipset is ralink. I downloded the driver software from Ralink, and followed the instructions (the part at the end of this file tells how to auto start after reboot). My problem is that after reboot, the connection is gone. Please take a look at the instructions here and help me where it has gone wrong.

Code:
* README
*
* Ralink Tech Inc.
* 
* http://www.ralinktech.com
*

=======================================================================
ModelName:
===========
RT2870 Wireless Lan Linux Driver


=======================================================================
Driver lName:
===========
rt2870.o/rt2870.ko


=======================================================================
Supporting Kernel:
===================
linux kernel 2.4 and 2.6 series. 
Tested in Redhat 7.3 or later.


=======================================================================
Ralink Hardware:
===================
Ralink 802.11n Wireless LAN Card.


=======================================================================
Description:
=============
This is a linux device driver for Ralink RT2870 USB ABGN WLAN Card.


=======================================================================
Contents:
=============
Makefile	        : Makefile
*.c					: c files
*.h					: header files


=======================================================================
Features:
==========
   This driver implements basic IEEE802.11. Infrastructure and adhoc mode with 
   open or shared or WPA-PSK or WPA2-PSK authentication method. 
   NONE, WEP, TKIP and AES encryption. 


=======================================================================
Build Instructions:  
====================

1> $tar -xvzf RT2870_Linux_STA_x.x.x.x.tgz
    go to "./RT2870_Linux_STA_x.x.x.x" directory.
    
2> In Makefile
	 set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
	 define the linux kernel source include file path LINUX_SRC
	 modify to meet your need.

3> In os/linux/config.mk 
	define the GCC and LD of the target machine
	define the compiler flags CFLAGS
	modify to meet your need.
	** Build for being controlled by NetworkManager or wpa_supplicant wext functions
	   Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
	   => #>cd wpa_supplicant-x.x
	   => #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
	** Build for being controlled by WpaSupplicant with Ralink Driver
	   Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
	   => #>cd wpa_supplicant-0.5.7
	   => #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d

4> $make
	# compile driver source code
	# To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
	  => $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c

5> $cp RT2870STA.dat  /etc/Wireless/RT2870STA/RT2870STA.dat
    
6> load driver, go to "os/linux/" directory.
    #[kernel 2.4]
    #    $/sbin/insmod rt2870sta.o
    #    $/sbin/ifconfig ra0 inet YOUR_IP up
        
    #[kernel 2.6]
    #    $/sbin/insmod rt2870sta.ko
    #    $/sbin/ifconfig ra0 inet YOUR_IP up

7> unload driver    
    $/sbin/ifconfig ra0 down
	$/sbin/rmmod rt2870sta
	
=======================================================================
CONFIGURATION:  
====================
RT2870 driver can be configured via following interfaces, 
i.e. (i)"iwconfig" command, (ii)"iwpriv" command, (iii) configuration file

i)  iwconfig comes with kernel.  
ii) iwpriv usage, please refer to file "iwpriv_usage.txt" for details.
iii)modify configuration file "RT2870STA.dat" in /etc/Wireless/RT2870STA/RT2870STA.dat.
           
Configuration File : RT2870STA.dat
---------------------------------------
# Copy this file to /etc/Wireless/RT2870STA/RT2870STA.dat
# This file is a binary file and will be read on loading rt.o module.
#
# Use "vi RT2870STA.dat" to modify settings according to your need.
# 
# 1.) set NetworkType to "Adhoc" for using Adhoc-mode, otherwise using Infrastructure
# 2.) set Channel to "0" for auto-select on Infrastructure mode
# 3.) set SSID for connecting to your Accss-point.
# 4.) AuthMode can be "WEPAUTO", "OPEN", "SHARED", "WPAPSK", "WPA2PSK", "WPANONE"
# 5.) EncrypType can be "NONE", "WEP", "TKIP", "AES"
# for more information refer to the Readme file.
# 
#The word of "Default" must not be removed
Default
CountryRegion=5
CountryRegionABand=7
CountryCode=
SSID=Dennis2860AP
NetworkType=Infra
WirelessMode=9
Channel=0
BeaconPeriod=100
TxPower=100
BGProtection=0
TxPreamble=0
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
WmmCapable=0
AckPolicy=0;0;0;0
AuthMode=OPEN
EncrypType=NONE
WPAPSK=
DefaultKeyID=1
Key1Type=0
Key1Str=
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
PSMode=CAM
FastRoaming=0
RoamThreshold=70
HT_RDG=1
HT_EXTCHA=0
HT_OpMode=1
HT_MpduDensity=4
HT_BW=1
HT_AutoBA=1
HT_BADecline=0
HT_AMSDU=0
HT_BAWinSize=64
HT_GI=1
HT_MCS=33
HT_MIMOPSMode=3
IEEE80211H=0
TGnWifiTest=0
WirelessEvent=0
CarrierDetect=0

-----------------------------------------------
*NOTE:
	WMM parameters
			WmmCapable			Set it as 1 to turn on WMM Qos support				
			AckPolicy1~4		Ack policy which support normal Ack or no Ack
								(AC_BK, AC_BE, AC_VI, AC_VO)		
	
	All WMM parameters do not support iwpriv command but ¡¥WmmCapable¡¦¡¦, 
	please store all parameter to RT2870STA.dat, and restart driver. 	

-----------------------------------------------
syntax is 'Param'='Value' and describes below. 

@> CountryRegion=value                                 
	value
		0: use 1 ~ 11 Channel
		1: use 1 ~ 13 Channel
		2: use 10 ~ 11 Channel
		3: use 10 ~ 13 Channel
		4: use 14 Channel
		5: use 1 ~ 14 Channel
		6: use 3 ~ 9 Channel
		7: use 5 ~ 13 Channel
	   31: use 1 ~ 14 Channel (ch1-11:active scan, ch12-14 passive scan)
   	 	                                      
@> CountryRegionABand=value      							
	value	
		0: use 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 Channel
		1: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 Channel
		2: use 36, 40, 44, 48, 52, 56, 60, 64 Channel
		3: use 52, 56, 60, 64, 149, 153, 157, 161 Channel
		4: use 149, 153, 157, 161, 165 Channel
		5: use 149, 153, 157, 161 Channel
		6: use 36, 40, 44, 48 Channel
		7: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 Channel
		8: use 52, 56, 60, 64 Channel
		9: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165 Channel
	   10: use 36, 40, 44, 48, 149, 153, 157, 161, 165 Channel
	   11: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 149, 153, 157, 161 Channel

@> CountryCode=value
	value
		AG, AR, AW, AU, AT, BS, BB, BM, BR, BE, BG, CA, KY, CL, CN, CO, CR, CY, CZ, DK, DO, EC, SV, FI, FR, DE, 
		GR, GU, GT, HT, HN, HK, HU, IS, IN, ID, IE, IL, IT, JP, JO, LV, LI, LT, LU, MY, MT, MA, MX, NL, NZ, NO,
		PE, PT, PL, RO, RU, SA, CS, SG, SK, SI, ZA, KR, ES, SE, CH, TW, TR, GB, UA, AE, US, VE
		"" => using default setting: 2.4 G - ch 1~11; 5G - ch 52~64, 100~140, 149~165
                                                           
@> SSID=value                	
	value
		0~z, 1~32 ascii characters.
                    	
@> WirelessMode=value
	value	
		0: legacy 11b/g mixed 
		1: legacy 11B only 
		2: legacy 11A only         //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
		3: legacy 11a/b/g mixed     //Not support in RfIcType=1(id=RFIC_5225) and RfIcType=2(id=RFIC_5325)
		4: legacy 11G only
		5: 11ABGN mixed
		6: 11N only
		7: 11GN mixed
		8: 11AN mixed
		9: 11BGN mixed
	   10: 11AGN mixed	
                     
@> Channel=value
	value
		depends on CountryRegion or CountryRegionABand
                    	
@> BGProtection=value
	value
		0: Auto 
		1: Always on 
		2: Always off
                    	
@> TxPreamble=value
  	value
		0:Preamble Long
		1:Preamble Short 
		2:Auto
                    	
@> RTSThreshold=value
	value
		1~2347                                                       
                    	                                       
@> FragThreshold=value
	value       	
		256~2346
                    	
@> TxBurst=value
	value
		0: Disable
		1: Enable

@> NetworkType=value	    		
	value 
		Infra: infrastructure mode
       	Adhoc: adhoc mode
                                                                                                                                                        	                                                          
@> AuthMode=value
	value
		OPEN	 	For open system	
		SHARED	  	For shared key system	
		WEPAUTO     Auto switch between OPEN and SHARED
		WPAPSK      For WPA pre-shared key  (Infra)
		WPA2PSK     For WPA2 pre-shared key (Infra)
		WPANONE		For WPA pre-shared key  (Adhoc)
		WPA         Use WPA-Supplicant
		WPA2        Use WPA-Supplicant

@> EncrypType=value
	value
		NONE		For AuthMode=OPEN                    
		WEP			For AuthMode=OPEN or AuthMode=SHARED 
		TKIP		For AuthMode=WPAPSK or WPA2PSK                    
		AES			For AuthMode=WPAPSK or WPA2PSK                     
		
@> DefaultKeyID=value
	value
		1~4

@> Key1=value
    Key2=value
    Key3=value
    Key4=value
	value
		10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
    (usage : "iwpriv" only)     

@> Key1Type=vaule
    Key2Type=value
    Key3Type=vaule
    Key4Type=vaule
    value
		0   hexadecimal type
		1   assic type
    (usage : reading profile only)

@> Key1Str=value
    Key2Str=value
    Key3Str=vaule
    Key4Str=vaule
    value
		10 or 26 characters (key type=0)
		5 or 13 characters  (key type=1)
    (usage : reading profile only)	

@> WPAPSK=value              	
	value
		8~63 ASCII  		or 
		64 HEX characters
																                    																		
@> WmmCapable=value
	value
		0: Disable WMM
		1: Enable WMM
        
@> PSMode=value
    value
    	CAM			    Constantly Awake Mode
		Max_PSP		    Max Power Savings
		Fast_PSP		Power Save Mode

@> FastRoaming=value
	value
		0				Disabled
		1				Enabled

@> RoamThreshold=value
	value
		Positive Interger(dBm)

@> HT_RDG=value
	value
		0				Disabled
		1				Enabled

@> HT_EXTCHA=value (Extended Channel Switch Announcement)
	value
		0				Below
		1 				Above

@> HT_OpMode=value
	value
		0				HT mixed format
		1				HT greenfield format

@> HT_MpduDensity=value
	value (based on 802.11n D2.0)
		0: no restriction
		1: 1/4 £gs
		2: 1/2 £gs
		3: 1 £gs
		4: 2 £gs
		5: 4 £gs
		6: 8 £gs
		7: 16 £gs

@> HT_BW=value
	value
		0				20MHz
		1				40MHz

@> HT_AutoBA=value
	value
		0				Disabled
		1				Enabled

@> HT_BADecline
	value
		0				Disabled
		1			    Enabled <Reject BA request from AP>

@> HT_AMSDU=value
	value
		0				Disabled
		1				Enabled

@> HT_BAWinSize=value
	value
		1 ~ 64

@> HT_GI=value
	value
		0				long GI
		1				short GI

@> HT_MCS=value
	value
		0 ~ 15
		33: auto

@> HT_MIMOPSMode=value
	value (based on 802.11n D2.0)
		0				Static SM Power Save Mode
		1				Dynamic SM Power Save Mode
		2				Reserved
		3				SM enabled
	(not fully support yet)

@> IEEE80211H=value
	value
		0				Disabled
		1				Enabled

@> TGnWifiTest=value
	value
		0				Disabled
		1				Enabled

@> WirelessEvent=value
	value
		0				Disabled
		1				Enabled <send custom wireless event>
	    
@> CarrierDetect=value
	value
		0				Disabled
		1				Enabled

MORE INFORMATION
=================================================================================
If you want for rt2870 driver to auto-load at boot time:
A) choose ra0 for first RT2870 WLAN card, ra1 for second RT2870 WLAN card, etc.
   
B) create(edit) 'ifcfg-ra0' file in /etc/sysconfig/network-scripts/,      
   edit( or add the line) in /etc/modules.conf:
       alias ra0 rt2870sta
   
C) edit(create) the file /etc/sysconfig/network-scripts/ifcfg-ra0  
   DEVICE='ra0'
   ONBOOT='yes'     


NOTE:
   if you use dhcp, add this line too .
    BOOTPROTO='dhcp'

*D) To ease the Default Gateway setting, 
    add the line
    GATEWAY=x.x.x.x   
    in /etc/sysconfig/network
After #make, I entered
# /sbin/insmod rt2870sta.ko
The network manager starts to scan and connect to my router.
I followed the rest of the instructions so that it will start up at reboot. But, after reboot, there is no driver installed (cannot find ra0 in netork monitor tool). I entered #/sbin/insmod rt2870sta.ko again, and it says there is one exist. But, I cannot start it. So I removed the driver and insmod it again, and network manager can connect.

The part I do not understand is step 3 which is :
Code:
3> In os/linux/config.mk 
	define the GCC and LD of the target machine
	define the compiler flags CFLAGS
	modify to meet your need.
	** Build for being controlled by NetworkManager or wpa_supplicant wext functions
	   Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
	   => #>cd wpa_supplicant-x.x
	   => #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
I do not understand "=> #>cd wpa_supplication-x.x.......
so I just ignored it. Please explain what this is all about.
Your help is greatly appreciated.
 
Old 04-25-2010, 12:57 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,445

Rep: Reputation: 83
Hya,

I guess the module itself is functional.

What happens if you use modprobe instead of insmod?

Do you see any suspicious message logged? dmesg or /var/log/*

wpa .... is security feature over wireless. This comes next step, once you have good connection.

Happy Penguins!
 
Old 04-25-2010, 01:13 AM   #3
ks8
Member
 
Registered: May 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks for your response. I did try to use modprobe, but my format was wrong. Please tell me the command to use. The driver module is rt2870sta.ko
So, should it be

# modprobe rt2870sta.ko ?
 
Old 04-25-2010, 04:00 AM   #4
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,445

Rep: Reputation: 83
Hya,

Code:
modprobe rt2870sta
Happy Penguins!
 
Old 04-25-2010, 06:43 AM   #5
hkoster1
Member
 
Registered: Dec 2007
Location: Amsterdam
Distribution: Debian testing/Sid (AMD64)
Posts: 32

Rep: Reputation: 15
The OP is running a 2.6.32 kernel, so why is he not using the rt2870sta.ko kernel module provided with this kernel? No need to compile it anew from Ralink sources... My advice is to get rid of his own handy-work in this regard, and to make sure only to load the /lib/modules/2.6.32-<version>/kernel/drivers/staging/rt2870/rt2870sta.ko module. It needs the firmware-ralink package installed.
 
Old 04-25-2010, 01:26 PM   #6
ks8
Member
 
Registered: May 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks. I am newbie. I removed my owned rt2870sta.ko
But I do not know how to install the provided rt2870.ko
Some instructions for me please.

Thanks.

edit:
I cleared my driver with this
# rmmod rt2870sta.ko (in the directory where I make the driver). and it was removed.

So how do I installed the one you suggested?

Last edited by ks8; 04-25-2010 at 01:37 PM.
 
Old 04-25-2010, 02:49 PM   #7
hkoster1
Member
 
Registered: Dec 2007
Location: Amsterdam
Distribution: Debian testing/Sid (AMD64)
Posts: 32

Rep: Reputation: 15
As long as your own compiled version of rt2870sta.ko has not been placed somewhere in the /lib/modules/2.6.32<your-kernel-version/ tree, then it won't get loaded automatically...

The "modprobe rt2870sta" command (as root) that you used before probably already loaded the version provided with the kernel anyway. Now, this module should get loaded automatically once you insert the wireless device. You can check this with the command "lsmod |grep rt2870" (as user). If not, then you should add "rt2870sta" to the /etc/modules file with an editor.

The module needs firmware provided in the firmware-ralink package, so install this package first if you haven't already.

Now, the command (as root) "iwconfig" should show a wireless interface; the command (still as root) "iwlist scan" should show your own wireless access point. Network-manager is probably already installed, so click on its icon in the right upper menu bar and select your access point and provide the password.

Let us know if this doesn't work.
 
Old 04-25-2010, 03:28 PM   #8
ks8
Member
 
Registered: May 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks.
Ralink-firmware is installed.
lsmod |grep rt2870 shows:
Quote:
rt2870sta 420829 0
crc_ccitt 1323 2 rt2870usb,rt2870sta
usbcore 121703 7 rt2800usb,rt2x00usb...
iwconfig shows lo,eth0,wlan0,pan0
Quote:
wlan0 RTxx70 ESSID:"" Nickname:"RT3070STA"...
I type ifconfig wlan0 up
iwlist scan shows my router.
But Network Manger cannot connect (I have password wpa-psk encryption).
I installed wicd, it scans and have signal, but cannot connect. It says it is doing authentication, and after a while, it came back and said : connection failed:Bad password.

Last edited by ks8; 04-25-2010 at 03:31 PM.
 
Old 04-25-2010, 05:01 PM   #9
ks8
Member
 
Registered: May 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Here is a what the log messages says (when network manager is running): Any more suggestions please?
Quote:
<-- RTMPAllocTxRxRingMemory, Status=0
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.145770] -->RTUSBVenderReset
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.145895] <--RTUSBVenderReset
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.422300] I/F(wlan0) Key1Str is Invalid key length! KeyLen = 0!
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.422312] I/F(wlan0) Key2Str is Invalid key length! KeyLen = 0!
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.422323] I/F(wlan0) Key3Str is Invalid key length! KeyLen = 0!
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.422335] I/F(wlan0) Key4Str is Invalid key length! KeyLen = 0!
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.422898] 1. Phy Mode = 5
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.422899] 2. Phy Mode = 5
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.446754] RTMPSetPhyMode: channel is out of range, use first channel=1
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.458876] 3. Phy Mode = 9
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.466252] MCS Set = ff ff 00 00 01
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.475244] <==== RTMPInitialize, Status=0
Apr 25 17:53:05 SHUM-AMD64 kernel: [11587.476749] 0x1300 = 00064300
Apr 25 17:53:07 SHUM-AMD64 kernel: [11589.240730] ===>rt_ioctl_giwscan. 11(11) BSS returned, data->length = 1824
Apr 25 17:53:31 SHUM-AMD64 kernel: [11612.824935] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1597
Apr 25 17:53:36 SHUM-AMD64 kernel: [11617.856065] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1596
Apr 25 17:53:36 SHUM-AMD64 kernel: [11617.856172] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:53:53 SHUM-AMD64 kernel: [11635.022988] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1642
Apr 25 17:53:53 SHUM-AMD64 kernel: [11635.023722] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:54:01 SHUM-AMD64 kernel: [11642.838015] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1642
Apr 25 17:54:01 SHUM-AMD64 kernel: [11642.838267] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:54:07 SHUM-AMD64 kernel: [11648.852079] #
Apr 25 17:54:18 SHUM-AMD64 kernel: [11659.909316] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1637
Apr 25 17:54:18 SHUM-AMD64 kernel: [11659.910065] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:54:26 SHUM-AMD64 kernel: [11667.839011] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1637
Apr 25 17:54:26 SHUM-AMD64 kernel: [11667.839604] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:54:43 SHUM-AMD64 kernel: [11684.952696] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1600
Apr 25 17:54:43 SHUM-AMD64 kernel: [11684.952823] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:54:49 SHUM-AMD64 kernel: [11690.844037] #
Apr 25 17:54:51 SHUM-AMD64 kernel: [11692.836821] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1600
Apr 25 17:54:51 SHUM-AMD64 kernel: [11692.837347] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:55:25 SHUM-AMD64 kernel: [11727.000071] ===>rt_ioctl_giwscan. 12(12) BSS returned, data->length = 2072
Apr 25 17:55:25 SHUM-AMD64 kernel: [11727.000177] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:55:25 SHUM-AMD64 kernel: [11727.060035] #
Apr 25 17:55:42 SHUM-AMD64 kernel: [11744.038661] ===>rt_ioctl_giwscan. 12(12) BSS returned, data->length = 1927
Apr 25 17:55:42 SHUM-AMD64 kernel: [11744.038799] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:55:50 SHUM-AMD64 kernel: [11751.853180] ===>rt_ioctl_giwscan. 11(11) BSS returned, data->length = 1784
Apr 25 17:55:50 SHUM-AMD64 kernel: [11751.853777] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:56:01 SHUM-AMD64 kernel: [11762.820705] ===>rt_ioctl_giwscan. 12(12) BSS returned, data->length = 2013
Apr 25 17:56:05 SHUM-AMD64 kernel: [11766.874295] eth0: link up.
Apr 25 17:56:05 SHUM-AMD64 kernel: [11766.874740] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Apr 25 17:56:07 SHUM-AMD64 kernel: [11768.942621] ===>rt_ioctl_giwscan. 12(12) BSS returned, data->length = 1972
Apr 25 17:56:07 SHUM-AMD64 kernel: [11768.943236] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:56:24 SHUM-AMD64 kernel: [11786.023728] ===>rt_ioctl_giwscan. 12(12) BSS returned, data->length = 2013
Apr 25 17:56:24 SHUM-AMD64 kernel: [11786.024373] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:56:31 SHUM-AMD64 kernel: [11793.164209] #
Apr 25 17:56:33 SHUM-AMD64 kernel: [11795.204078] #
Apr 25 17:56:35 SHUM-AMD64 kernel: [11797.248035] #
Apr 25 17:56:36 SHUM-AMD64 kernel: [11798.212103] #
Apr 25 17:56:41 SHUM-AMD64 kernel: [11803.143787] ===>rt_ioctl_giwscan. 11(11) BSS returned, data->length = 1784
Apr 25 17:56:41 SHUM-AMD64 kernel: [11803.144542] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:56:41 SHUM-AMD64 kernel: [11803.700127] #
Apr 25 17:56:51 SHUM-AMD64 kernel: [11812.820373] ===>rt_ioctl_giwscan. 12(12) BSS returned, data->length = 1927
Apr 25 17:56:58 SHUM-AMD64 kernel: [11820.224869] ===>rt_ioctl_giwscan. 11(11) BSS returned, data->length = 1784
Apr 25 17:56:58 SHUM-AMD64 kernel: [11820.225456] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:57:15 SHUM-AMD64 kernel: [11837.428301] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1601
Apr 25 17:57:15 SHUM-AMD64 kernel: [11837.429002] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:57:32 SHUM-AMD64 kernel: [11854.550453] ===>rt_ioctl_giwscan. 11(11) BSS returned, data->length = 1743
Apr 25 17:57:32 SHUM-AMD64 kernel: [11854.551025] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:57:51 SHUM-AMD64 kernel: [11872.819824] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1600
Apr 25 17:57:51 SHUM-AMD64 kernel: [11872.820529] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:58:08 SHUM-AMD64 kernel: [11889.882138] ===>rt_ioctl_giwscan. 12(12) BSS returned, data->length = 2013
Apr 25 17:58:08 SHUM-AMD64 kernel: [11889.883033] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:58:21 SHUM-AMD64 kernel: [11902.868072] #
Apr 25 17:58:25 SHUM-AMD64 kernel: [11907.063048] ===>rt_ioctl_giwscan. 12(12) BSS returned, data->length = 1927
Apr 25 17:58:25 SHUM-AMD64 kernel: [11907.063308] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:58:42 SHUM-AMD64 kernel: [11924.183428] ===>rt_ioctl_giwscan. 11(11) BSS returned, data->length = 1784
Apr 25 17:58:42 SHUM-AMD64 kernel: [11924.184011] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Apr 25 17:58:51 SHUM-AMD64 kernel: [11932.820231] ===>rt_ioctl_giwscan. 11(11) BSS returned, data->length = 1784
Apr 25 17:58:59 SHUM-AMD64 kernel: [11941.271239] ===>rt_ioctl_giwscan. 10(10) BSS returned, data->length = 1600
Apr 25 17:58:59 SHUM-AMD64 kernel: [11941.271866] ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)

Last edited by ks8; 04-25-2010 at 05:03 PM.
 
Old 04-25-2010, 09:56 PM   #10
ks8
Member
 
Registered: May 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by hkoster1 View Post
As long as your own compiled version of rt2870sta.ko has not been placed somewhere in the /lib/modules/2.6.32<your-kernel-version/ tree, then it won't get loaded automatically...
Thanks for this lead. I replaced the driver with my own, and also replaced the firmware from my download, and now it works after reboot.
 
Old 04-27-2010, 08:29 AM   #11
hkoster1
Member
 
Registered: Dec 2007
Location: Amsterdam
Distribution: Debian testing/Sid (AMD64)
Posts: 32

Rep: Reputation: 15
Ah, I see what you did. Good for you to get your own compiled module to work.

BTW, it is not recommended to replace a module in the /lib/modules/2.6.32-<kernel-version>/kernel/ subtree by a module with the same name compiled by yourself, since the replacement will get overwritten in case of an update of the same kernel. Better to put the replacement in a new directory parallel to kernel/, like misc/, because the modules in misc/ will take precedence over the ones in kernel/; and because they will not be overwritten in case of an update.

Have fun!
 
Old 04-27-2010, 01:24 PM   #12
ks8
Member
 
Registered: May 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks for this information. This will take care of the rt2870sta.ko driver, but what about the firmware which is in /lib/firmware. Where should I put it so it will not get overwritten?

BTW, I have 2 debian kernel (or is it just a header?) in the grub menu:
2.6.32-3-amd64 and 2.6.32-trunk-amd64. My ralink usb adapter does not work in ...trunk-amd64, works only in .32-3-amd64 What is the difference between these 2?
 
Old 04-28-2010, 02:48 AM   #13
hkoster1
Member
 
Registered: Dec 2007
Location: Amsterdam
Distribution: Debian testing/Sid (AMD64)
Posts: 32

Rep: Reputation: 15
You would have to recompile the rt2870sta.ko module for each kernel you use. BTW, newer kernels (like the 2.6.32-4-amd64 that's already available) may contain improved versions of this module, so you might recompile only if the provided version doesn't work. Firmware is actually proprietary software coming from Ralink, so a newer version in /lib/firmware is probably what you should want.

That 2.6.32-trunk-amd64 kernel is now obsolete...

Have fun!
 
Old 04-28-2010, 11:55 AM   #14
ks8
Member
 
Registered: May 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks. I found a thread in ubuntu forum, followed it, and installed it in my debian lenny. Need to use older software with a patch, since the new one does not work.

Another question. How do I remove --trunk.amd64? Do I just erase it from grub?
 
Old 04-29-2010, 03:51 AM   #15
hkoster1
Member
 
Registered: Dec 2007
Location: Amsterdam
Distribution: Debian testing/Sid (AMD64)
Posts: 32

Rep: Reputation: 15
Quote:
Originally Posted by ks8 View Post
Another question. How do I remove --trunk.amd64? Do I just erase it from grub?
Use the packaging system (aptitude or synaptic) to remove an old kernel, since that also fixes Grub. You may have to remove the corresponding directory in /lib/modules manually (as root).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
issue regarding RaLInk (netopia usb) wireless driver and ntfs access mrmnemo Debian 2 11-25-2009 12:08 AM
Slow adsl wireless connection using kernel ralink wireless driver vdemuth Slackware 2 01-02-2009 12:44 PM
Trying to install ralink driver (rt2500) in Mepis... Superion Linux - Newbie 1 06-15-2006 03:54 PM
9.3 USB wireless config 2570 ralink chipset wini_g Suse/Novell 4 12-28-2005 11:29 PM
Ralink 2400 Cnet Wireless 311 pci card -driver install hnash53 Linux - Wireless Networking 2 07-26-2005 11:15 PM


All times are GMT -5. The time now is 03:56 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration