LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   Ralink RT2870/RT3070 on Slackware 14.0 (Kernel 3.2.29) is not working correctly. (http://www.linuxquestions.org/questions/showthread.php?t=4175431191)

slacksam 10-08-2012 02:29 PM

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

ReaperX7 10-08-2012 09:58 PM

Does your RALink 2870 USB adapter require loadable firmware?

slacksam 10-09-2012 02:07 AM

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


el chapulín 10-09-2012 11:12 AM

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?

slacksam 10-09-2012 12:24 PM

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


slacksam 10-10-2012 03:00 PM

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. :D

lethal_lee 11-19-2012 12:13 PM

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.

slacksam 11-19-2012 01:30 PM

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.

mel_newbie 02-22-2013 05:07 PM

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!

slacksam 02-23-2013 01:01 AM

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)?

mel_newbie 02-23-2013 07:50 AM

Thank you so much for trying!

1. I'm using Salix OS 14.0
2. I used this slackbuild

mel_newbie 02-23-2013 09:24 AM

wooohooo!

I found the solution at this link.

It's compiled now!

Thanks for taking a look.


All times are GMT -5. The time now is 10:16 PM.