SOLVED - explicit instructions, RT5390 driver for Mint 11

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
Post Reply
User avatar
fbachofner
Level 2
Level 2
Posts: 53
Joined: Sun Aug 08, 2010 6:49 pm
Location: Seaside, CA

SOLVED - explicit instructions, RT5390 driver for Mint 11

Post by fbachofner »

Many people with RT5390 cards (such as HP Pavilion dm1 owners) have problems getting WiFi to work in Ubuntu variants of Linux. [It is already enabled in OpenSuse and some other distros]

There are some posts on this and other sites, but most are NOT comprehensive and do NOT reflect Ralink's newest driver released on 2011-07-29. a special thank you to OpenSuse for maintaining the required patches.

Here is the explicit, comprehensive solution:

Code: Select all

# Ralink RT5390 driver installation for recent Ubuntu and/or LinuxMint 32bit and 64bit # 
# see post http://ubuntuforums.org/showthread.php?t=1743525 for some background
# please note, new driver (2011-07-29) no longer requires any reference to HAS_ANTENNA_DIVERSITY_SUPPORT=y #

# comments are indicated by surrounding #


# STEPS:

1. download recent driver from
http://www.ralinktech.com/support.php?s=2
to (for example) ~/Drivers/Networking/RALink_rt5390_WiFi/2011-07-29/

2. extract using program of choice

3. download most recent patches from
https://build.opensuse.org/package/files?package=rt5390sta&project=driver%3Awireless
into parent dir of extracted driver

4. open terminal and continue with commands below - do NOT type in any #comments#
#you can copy any of the following commands and paste into terminal by pressing ctrl-shift-V when in terminal#

sudo apt-get install linux-headers-generic build-essential

#change to directory used in step 1#
cd ~/Drivers/Networking/RALink_rt5390_WiFi/2011-07-29/2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO

#install patches in following order#

patch -p0 < ../rt5390sta-2.5.0.3-config.patch

#next line is for 64bit OS ONLY#
patch -p0 < ../rt5390sta-2.5.0.3-gcc-warnings-x86_64.patch

#remaining patches for ALL versions#
patch -p0 < ../rt5390sta-2.5.0.3-WPA-mixed.patch
patch -p0 < ../rt5390sta-2.5.0.3-convert-devicename-to-wlanX.patch
patch -p0 < ../rt5390sta-2.5.0.3-remove-potential-conflicts-with-rt2860sta.patch
patch -p0 < ../rt5390sta-2.5.0.3-return_nonvoid_function.patch
patch -p0 < ../rt5390sta-2.5.0.3-reduce_debug_output.patch
patch -p0 < ../rt5390sta-2.5.0.3-remove_date_time.patch


# 5. still in terminal: change to super user mode and make new driver #

sudo su
make clean
make
make install

# 6. still in terminal: make directories, copy driver to appropriate location, load module #

mkdir -p /etc/Wireless/RT5390STA

#next line copies the INCORRECTLY named made .dat file to a name and place reflective of the ACTUAL RT5390 wifi card#
cp RT2860STA.dat /etc/Wireless/RT5390STA/RT5390STA.dat

#copy loadable module to correct kernel location#
cp ./os/linux/rt5390sta.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt5390sta.ko

#the following line will open a graphical editor to edit a text file#
#ADD "rt5390sta" to the last line of the file which will open - without quotes; save file; close editor#
gedit /etc/modules

#load module into kernel#
modprobe rt5390sta


#steps to CLEAN UP#

#stop being Super User#
exit

#delete directory incorrectly created by make process
rm -r /etc/Wireless/RT2860STA

#exit terminal#
exit


# REBOOT machine and you should have your RT5390 WiFi card working properly! #
# I believe a reboot is necessary to load a kernel module - unless someone can demonstrate another way . . . #
I hope this is useful to someone and please feel free to chime in if you have a better solution! ;-)
various self-built desktop machines and an HP Pavilion DM1Z
each runs LinuxMint 19.3 with Cinnamon
i7 self-built server --> Ubuntu 18.04 LTR (with Cinnamon, for the rare local login)
davoz
Level 1
Level 1
Posts: 1
Joined: Wed Aug 24, 2011 2:50 pm

Re: SOLVED - explicit instructions, RT5390 driver for Mint 1

Post by davoz »

Thanks, worked perfectly for this noob :-)
demianlessa
Level 1
Level 1
Posts: 1
Joined: Sat Sep 03, 2011 1:56 pm

Re: SOLVED - explicit instructions, RT5390 driver for Mint 1

Post by demianlessa »

Hi,

First off, thanks for the post, this is by far the best solution out there. However, it is still not a definite one since the card is still somewhat unstable and keeps flooding the logs with messages. Looked around a bit to no avail. I'm not adventurous enough right now to risk breaking the somewhat stable state of my wireless. If anyone has any ideas, I'd be glad to hear.

BTW, using an HP Pavilion dv6-6190us with Mint 11 (Debian) RC4 64bit.

Here is a snippet of the message log:

Sep 3 13:58:02 graviola kernel: [ 4415.997183] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!
Sep 3 13:58:12 graviola kernel: [ 4425.996514] MlmeHardTransmitMgmtRing:: QoS NULL and PHY = 0. MCS = 0.
Sep 3 13:58:12 graviola kernel: [ 4425.996523] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!
Sep 3 13:58:22 graviola kernel: [ 4435.995906] MlmeHardTransmitMgmtRing:: QoS NULL and PHY = 0. MCS = 0.
Sep 3 13:58:22 graviola kernel: [ 4435.995914] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!
Sep 3 13:58:32 graviola kernel: [ 4445.995273] MlmeHardTransmitMgmtRing:: QoS NULL and PHY = 0. MCS = 0.
Sep 3 13:58:32 graviola kernel: [ 4445.995282] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!
Sep 3 13:58:42 graviola kernel: [ 4455.994908] MlmeHardTransmitMgmtRing:: QoS NULL and PHY = 0. MCS = 0.
Sep 3 13:58:42 graviola kernel: [ 4455.994917] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!
Sep 3 13:58:48 graviola kernel: [ 4461.994792] MlmeHardTransmitMgmtRing:: QoS NULL and PHY = 0. MCS = 0.
Sep 3 13:58:48 graviola kernel: [ 4461.994803] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!
Sep 3 13:58:48 graviola kernel: [ 4462.015443] MlmeHardTransmitMgmtRing:: QoS NULL and PHY = 0. MCS = 0.
Sep 3 13:58:48 graviola kernel: [ 4462.015452] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!
Sep 3 13:58:49 graviola kernel: [ 4462.995217] MlmeHardTransmitMgmtRing:: QoS NULL and PHY = 0. MCS = 0.
Sep 3 13:58:49 graviola kernel: [ 4462.995226] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!
Sep 3 13:58:50 graviola kernel: [ 4463.994319] MlmeHardTransmitMgmtRing:: QoS NULL and PHY = 0. MCS = 0.
Sep 3 13:58:50 graviola kernel: [ 4463.994327] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!
Sep 3 13:58:51 graviola kernel: [ 4464.995039] MlmeHardTransmitMgmtRing:: QoS NULL and PHY = 0. MCS = 0.
Sep 3 13:58:51 graviola kernel: [ 4464.995048] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!
Sep 3 13:58:52 graviola kernel: [ 4466.014018] MlmeHardTransmitMgmtRing:: QoS NULL and PHY = 0. MCS = 0.
Sep 3 13:58:52 graviola kernel: [ 4466.014027] MlmeHardTransmitMgmtRing:: Using Low Rate to send QOS NULL!!


Regards,

Demian
vlovjz
Level 2
Level 2
Posts: 88
Joined: Tue May 05, 2009 3:33 pm

Re: SOLVED - explicit instructions, RT5390 driver for Mint 1

Post by vlovjz »

I am very grateful for this solution! Thank you very much!

You've helped me fix my problem with my RT5390 wireless card on a Pavilion dv7-4296nr. Very much appreciated!

Thank you,

Tim A.
johnwak
Level 1
Level 1
Posts: 2
Joined: Wed Dec 14, 2011 9:39 am

Re: SOLVED - explicit instructions, RT5390 driver for Mint 1

Post by johnwak »

I have a problem with Wirelsee on my recently purchased HP DM1.
I have A dual boot setup with Mint 12 and Windows 7
Wireless works fine on Windows 7.
On Mint 12 wireless will only work with WEP security it sees the wireless network but cannot connect when WPA security is in use.

Will the above solution work for me?

I have 2 other machines talking fine with Mint 11 and WPA security

Thanks in anticipation!
User avatar
fbachofner
Level 2
Level 2
Posts: 53
Joined: Sun Aug 08, 2010 6:49 pm
Location: Seaside, CA

Re: SOLVED - explicit instructions, RT5390 driver for Mint 1

Post by fbachofner »

Hi johnwak:
johnwak wrote:I have a problem with Wirelsee on my recently purchased HP DM1.
I have A dual boot setup with Mint 12 and Windows 7
Wireless works fine on Windows 7.
On Mint 12 wireless will only work with WEP security it sees the wireless network but cannot connect when WPA security is in use.

Will the above solution work for me?
As I understand it, Mint 12 has a 3.x variant of the Linux kernel. The RT5390 driver is already included in that kernel, so I would NOT expect the OpenSuse solution I clarified above to work in Mint 12.

Are you absolutely certain that your passwords are correct in your WPA scenario?

BTW, the dual boot setup should not matter. However, perhaps you might want to turn OFF the machine between switching operating environments. It is possible that a soft restart does not fully clear the instructions Windows 7 had given the RT5390 card. I'd try powering down for a minute or two and booting into Mint to see whether that makes a difference.

Good luck.
various self-built desktop machines and an HP Pavilion DM1Z
each runs LinuxMint 19.3 with Cinnamon
i7 self-built server --> Ubuntu 18.04 LTR (with Cinnamon, for the rare local login)
AlbertP
Level 16
Level 16
Posts: 6714
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: SOLVED - explicit instructions, RT5390 driver for Mint 1

Post by AlbertP »

The Ralink 53xx support in the kernel is still experimental. Ralink's own driver may work better.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
User avatar
fbachofner
Level 2
Level 2
Posts: 53
Joined: Sun Aug 08, 2010 6:49 pm
Location: Seaside, CA

Re: SOLVED - explicit instructions, RT5390 driver for Mint 1

Post by fbachofner »

Hi AlbertP:
AlbertP wrote:The Ralink 53xx support in the kernel is still experimental. Ralink's own driver may work better.
I finally installed Mint 12 (on the DM1Z) a couple weeks ago when Cinnamon version 1.2 was released.

The RT5390 support in the new kernel seems to be working very well.

There is still the problem with WOL being active and thus draining the laptop battery if not shutting down with a small extra effort or reconfiguring, for example /etc/default/halt. [The issue is chronicled well here.]
various self-built desktop machines and an HP Pavilion DM1Z
each runs LinuxMint 19.3 with Cinnamon
i7 self-built server --> Ubuntu 18.04 LTR (with Cinnamon, for the rare local login)
suiteintima
Level 1
Level 1
Posts: 14
Joined: Sat Aug 31, 2013 7:36 pm

Re: SOLVED - explicit instructions, RT5390 driver for Mint 1

Post by suiteintima »

I tried several times, but it always says cannot find the rt5390sta.ko file. Anyone knows what's going on?

This is the result after I typed in "make install":

Code: Select all

make -C /home/wei/Downloads/angepasster-2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux -f Makefile.6 install
mkdir: cannot create directory ‘/etc/Wireless’: File exists
make[1]: Entering directory `/home/wei/Downloads/angepasster-2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux'
rm -rf /etc/Wireless/RT2860STA
mkdir /etc/Wireless/RT2860STA
cp /home/wei/Downloads/angepasster-2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/RT2860STA.dat /etc/Wireless/RT2860STA/.
install -d /lib/modules/3.8.0-19-generic/kernel/drivers/net/wireless/
install -m 644 -c rt5390sta.ko /lib/modules/3.8.0-19-generic/kernel/drivers/net/wireless/
install: cannot stat ‘rt5390sta.ko’: No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/wei/Downloads/angepasster-2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux'
make: *** [install] Error 2
Can someone help?
User avatar
kukamuumuka
Level 16
Level 16
Posts: 6697
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: SOLVED - explicit instructions, RT5390 driver for Mint 1

Post by kukamuumuka »

Misconfigured copy and different file?
suiteintima wrote: cp /home/wei/Downloads/angepasster-2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/RT2860STA.dat /etc/Wireless/RT2860STA/.
fbachofner wrote: cp RT2860STA.dat /etc/Wireless/RT5390STA/RT5390STA.dat
AlbertP
Level 16
Level 16
Posts: 6714
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: SOLVED - explicit instructions, RT5390 driver for Mint 1

Post by AlbertP »

If you install the driver by "make" and "sudo make install", you should not need to find the .ko file yourself.

And the highlighted texts may seem typos, but they aren't; the same driver packages with only slight changes are used for drivers for different models of Ralink cards. So you may occasionally come across a reference to an older card type in the file names.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
Post Reply

Return to “Wireless”