LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-08-2012, 02:29 PM   #1
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware 14.1
Posts: 61

Rep: Reputation: 3
Question Ralink RT2870/RT3070 on Slackware 14.0 (Kernel 3.2.29) is not working correctly.


After upgrading Slackware from 13.37 to 14.0 I'm not able to setup my wireless USB device with a Ralink RT2870/RT3070 chipset.
On plugging in the device the rt2800usb module is beeing loaded but works only without encryption.

On Slackware 13.37 (Kernel 2.6.37.6) I had to blacklist the rt2800usb module to use the rt2870sta module for encryption
(see http://www.linuxquestions.org/questi...how-to-897422/) but on Slackware 14.0 (Kernel 3.2.29) this doesn't work anymore for me. Modprobe doesn't find any rt2870sta module and several tries to compile it from the packages downloaded from the ralink website failed.

Does anybody know how to solve this?

EDIT: Found a Solution

Last edited by slacksam; 10-10-2012 at 03:08 PM. Reason: solved
 
Old 10-08-2012, 09:58 PM   #2
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, FreeBSD 10.0
Posts: 3,411
Blog Entries: 15

Rep: Reputation: 965Reputation: 965Reputation: 965Reputation: 965Reputation: 965Reputation: 965Reputation: 965Reputation: 965
Does your RALink 2870 USB adapter require loadable firmware?
 
Old 10-09-2012, 02:07 AM   #3
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware 14.1
Posts: 61

Original Poster
Rep: Reputation: 3
Quote:
Does your RALink 2870 USB adapter require loadable firmware?
I don't know. How can i find out?
Found rt2870.bin, rt3070.bin and other files in my /lib/firmware/ folder, but don't know if they are being loaded.

Here's the dmesg output when connecting the adapter:
Code:
[ 2123.882068] usb 1-1: new full-speed USB device number 6 using ohci_hcd
[ 2124.090003] usb 1-1: New USB device found, idVendor=148f, idProduct=3070
[ 2124.090053] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2124.090062] usb 1-1: Product: 802.11 n WLAN
[ 2124.090069] usb 1-1: Manufacturer: Ralink
[ 2124.090075] usb 1-1: SerialNumber: 1.0
[ 2124.683716] cfg80211: Calling CRDA to update world regulatory domain
[ 2125.022088] usb 1-1: reset full-speed USB device number 6 using ohci_hcd
[ 2125.255906] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 2125.259240] Registered led device: rt2800usb-phy0::radio
[ 2125.259425] Registered led device: rt2800usb-phy0::assoc
[ 2125.259587] Registered led device: rt2800usb-phy0::quality
[ 2125.263350] usbcore: registered new interface driver rt2800usb
And here's the dmesg output when the rt2800usb module is blacklisted:
Code:
[ 1218.178062] usb 1-1: new full-speed USB device number 3 using ohci_hcd
[ 1218.384428] usb 1-1: New USB device found, idVendor=148f, idProduct=3070
[ 1218.384444] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1218.384454] usb 1-1: Product: 802.11 n WLAN
[ 1218.384461] usb 1-1: Manufacturer: Ralink
[ 1218.384468] usb 1-1: SerialNumber: 1.0

Last edited by slacksam; 10-09-2012 at 08:07 AM. Reason: Added dmesg output
 
Old 10-09-2012, 11:12 AM   #4
el chapulín
Member
 
Registered: Sep 2012
Posts: 75

Rep: Reputation: 19
You will have to use rt2800usb so don't blacklist it, the old staging driver was merged into it in the 3.x kernels. Ralink firmware should be in the kernel so I don't think it's a firmware issue? How are you trying to connect? Does iwconfig see the interface?
 
Old 10-09-2012, 12:24 PM   #5
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware 14.1
Posts: 61

Original Poster
Rep: Reputation: 3
Quote:
How are you trying to connect? Does iwconfig see the interface?
I'm using Wicd. When the rt2800usb module is not blacklisted, the adapter is being detected correctly and finds the available access points. But it's unable to connect because of WPA2 encryption.
That's the same behavior, that I had with Slackware 13.37 before I blacklisted the rt2800 modules.

This is the output by iwconfig:
Code:
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
 
Old 10-10-2012, 03:00 PM   #6
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware 14.1
Posts: 61

Original Poster
Rep: Reputation: 3
Lightbulb Solution

Finally I found a solution and here's how I did it:
  1. Downloaded the Slackbuild-Package rt5370
  2. From the archive "2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.bz2" I extracted the files "Makefile" and "os/linux/config.mk".
    In Makefile I changed
    Code:
    CHIPSET = 5370
    to
    Code:
    CHIPSET = 3070
    and in config.mk I changed
    Code:
    # Support Wpa_Supplicant
    HAS_WPA_SUPPLICANT=n
    
    
    # Support Native WpaSupplicant for Network Maganger
    HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
    to
    Code:
    # Support Wpa_Supplicant
    HAS_WPA_SUPPLICANT=y
    
    
    # Support Native WpaSupplicant for Network Maganger
    HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
    Then I put the two files back into the archive.
  3. Started the Slackbuild
  4. Unloaded the rt2800 and rt2x00 modules and loaded the new rt5370sta module (as root):
    Code:
    modprobe -r rt2800usb
    modprobe -r rt2x00usb
    modprobe -r rt2800lib
    modprobe -r rt2x00lib
    modprobe rt5370sta
  5. iwconfig showed me that the new device ra0 is available, so I activated it:
    Code:
    ifconfig ra0 up
  6. A test showed that the encrypted connection works fine.
    So I created /etc/modprobe.d/ralink.conf with the following content
    Code:
    blacklist rt2800usb
    blacklist rt2x00usb
    blacklist rt2800lib
    blacklist rt2x00lib
Now it works fine.

Last edited by slacksam; 10-10-2012 at 07:03 PM.
 
1 members found this post helpful.
Old 11-19-2012, 12:13 PM   #7
lethal_lee
LQ Newbie
 
Registered: Nov 2012
Posts: 6

Rep: Reputation: Disabled
Can you explain how you got the edited config.mk file back into the archive? I have tried with the tar command, but the slackbuilds script does not like the new archive I created.

Also did you have any issues blacklisting the modules? I tried your config file, but the modules are still being loaded after reboot.
 
Old 11-19-2012, 01:30 PM   #8
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware 14.1
Posts: 61

Original Poster
Rep: Reputation: 3
Quote:
Can you explain how you got the edited config.mk file back into the archive? I have tried with the tar command, but the slackbuilds script does not like the new archive I created.
I used xarchiver to do that. Opened the .bz2 archive and the archive inside, extracted the "Makefile" and "os/linux/config.mk", edited them and dragged them back into the archive.

Quote:
Also did you have any issues blacklisting the modules?
No, I just created the .conf file in /etc/modprobe.d/ (following this thread: http://www.linuxquestions.org/questi...how-to-897422/) and it worked.
 
Old 02-22-2013, 05:07 PM   #9
mel_newbie
LQ Newbie
 
Registered: Jun 2004
Location: earth
Distribution: Salix OS 14.1
Posts: 7

Rep: Reputation: 0
I followed your steps and am unable to compile. I know this thread is pretty old but I'm hoping I get a response from someone.

Here is the error I get:
rtmp_chip.c:470:4: error: implicit declaration of function ‘RT33xx_Init’ [-Werror=implicit-function-declaration]

and then it won't compile cause it exits.

any help would be appreciated!
 
Old 02-23-2013, 01:01 AM   #10
slacksam
Member
 
Registered: Oct 2012
Location: Germany
Distribution: Slackware 14.1
Posts: 61

Original Poster
Rep: Reputation: 3
Quote:
Here is the error I get:
rtmp_chip.c:470:4: error: implicit declaration of function ‘RT33xx_Init’ [-Werror=implicit-function-declaration]

and then it won't compile cause it exits.
I don't know why this error appears, but I will try to reproduce it.
Please let me know the following points:
1. Are you using Slackware 14.0 or Salix OS (and if so which version)?
2. Which Slackbuild did you try (link)?
 
Old 02-23-2013, 07:50 AM   #11
mel_newbie
LQ Newbie
 
Registered: Jun 2004
Location: earth
Distribution: Salix OS 14.1
Posts: 7

Rep: Reputation: 0
Thank you so much for trying!

1. I'm using Salix OS 14.0
2. I used this slackbuild
 
Old 02-23-2013, 09:24 AM   #12
mel_newbie
LQ Newbie
 
Registered: Jun 2004
Location: earth
Distribution: Salix OS 14.1
Posts: 7

Rep: Reputation: 0
wooohooo!

I found the solution at this link.

It's compiled now!

Thanks for taking a look.
 
  


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
Not able to get to work usb wireless card RT2870/RT3070 in Debian squeeze chikidu Linux - Hardware 0 09-18-2012 02:34 PM
Installing ralink rt2870 rt3070 on portable DMKHAMMER Linux - Newbie 17 01-17-2011 09:09 AM
[SOLVED] no wifi with ralink rt2870 after kernel panic and reboot Hewson Linux - Hardware 3 07-12-2010 01:54 PM
Intellinet 150N USB adapter w/ralink rt3070 chipset- no driver for Slackware 12.2 ax25nut Slackware 1 06-07-2010 09:00 PM
Ralink RT2870 Connection Issues - Ubuntu 9.04 own3mall Linux - Networking 1 08-09-2009 10:02 AM


All times are GMT -5. The time now is 02:06 PM.

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