|
发表于 2013-2-21 22:01:26
|
显示全部楼层
求无线网卡驱动解决方案
老爷电脑跪了,买了一台新电脑。hp这家伙专门使用不再提供linux驱动的无线网卡。上次是bcm,这次是rt5390。
言归正传,我在网络上找到ubuntu、mint和suse的解决方案,但用在magiclinux就无效。是否能够提供帮助?
一些解决方案:
Got a brand new HP laptop - HP g62x. Installed ubuntu 10.10 and found that I do not have a wlan interface as one would expect with an active wireless connection.
Thanks to
Great discussion on similar work here @ http://ubuntuforums.org/showthread.php?t=1600498. Just a different card.
Solution:
I used the above thread to do my work - banged my head against the wall a couple of times but it was fun . I am listing down steps that finally worked for me. But before that, my configurations:
Ubuntu 10.10
64 bit
WPA2 wireless network
OS was freshly installed and there was no specific customization prior to this
RaLink Device 5390. (use lspci to see your model number)
Download the driver from ralinktech.com --> Software --> Linux
Unzip the download zip file anywhere. I did it in the default Downloads directory
cd to the 2010_xxx extracted directory
cd os/linux/
Edit the config.mk file as below:
HAS_ATE=y (no change, it was originally as is)
HAS_WPA_SUPPLICANT=y (no change, it was originally as is)
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y (no change, it was originally as is)
HAS_ANTENNA_DIVERSITY_SUPPORT=y originally was n -- this was the only thing I modified)
Go back to the 2010_xx directory
run command 'make'
Make sure 'make compile' exists without errors. I got an error "too many arguments to format" towards the end of the compile but it did compile successfully eventually. And so I ignored the errors. You would see ***errors*** if the compile is not successful. In which, something went wrong and you may need to tweak the makefile or config.mk files before compile is successful.
run command 'make install' as root. This is not listed in the README_STA_pci file that comes with downloaded driver zip file. This takes of copying the file to /lib/modules/2.6.35-22-generic/kernel/drivers/net/wireless/rt5390sta.ko. running depmod, creating /etc/Wireless/... folder.
Edit the /etc/modules and add the line at the end of this file
rt5390sta
Edit the file /etc/modprobe.d/blacklist.conf and add the below line to it...
blacklist rt2800pci
Reboot and you should see an ra0 interface when you run the command 'ifconfig'
You may have to run '/etc/init.d/network-manager restart' command to have it show in the first go.
Once, the wireless icon shows up, look for your wireless SSID and there you go surfing
------------------------------------------------------------------------------------------------------------------------
https://build.opensuse.org/packa ... t=driver%3Awireless
http://forums.linuxmint.com/viewtopic.php?f=53&t=79227
# 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/packa ... t=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 . . . #
-----------------------------------------------------------------------------------------------------------
Hello everyone! I have been trying to set up the wireless card (Ralink RT5390R)on my HP dv6t machine and I haven't had any luck yet. I tried these steps found in many of the thread before and they seem to work:
Code:
sudo make
sudo make install
sudo modprobe -v rt5390sta (or without -v)
sudo depmod -a sudo update-initramfs -u
Anyway it says it's connected to the wireless point. But when I try to go to any website (or ping them), it doesn't connect. It's been very frustrating. I really hope some one can help me with this. Thanks a lot!!
Mh...
I've also tried to delete both
echo 1814 5390 >/sys/bus/pci/drivers/rt2800pci/new_id
in
/etc/rc.local
and
rt5390sta
rt2800pci
in
/etc/modules
And it works as well!
....but it flashes continuously! So worrying!
rfkill list all
sudo rmmod -f hp-wmi
sudo rfkill unblock all
lspci -nn
sudo lshw -C network
Re: Ralink RT5390 says connected but can't get to any website
0 down vote
I own an HP650 which came with preinstalled SUSE Linux Enterprise Novell.
The wireless card on this laptop is the Ralink 539a. The driver/module for this wlan card loaded by the kernel is the rt2800pci. The problem ofcourse is that by default they do not work or if they work its unstable and practicly unusable. After reading many threads and following a lot of different lines to build the 2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO the result was never successful failing either at the build with >make returning an error for Antenna being changed to y for yes or the driver not starting the wlan0 interface if the Antenna switch remains n for off.
Later I found a bug report and exchange specificly for the Ralink 539a where the solution to the problem was finallzy found. Essentially
sudo apt-get install --reinstall linux-headers-$(uname -r) build-essential dkms patch fakeroot unzip
wget http://media.cdn.ubuntu-de.org/f ... TA_V2.5.0.3_DPO.zip
unzip 3208747-angepasster-2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO.zip
cd angepasster-2011_0406_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/
sudo make
sudo make install
sudo modprobe -v rt5390sta
sudo depmod -a
sudo update-initramfs -u
---------------------------------------------------------------------------------------------------------
1. Download latest Compat-Wireless drivers from http://forum.ubuntuusers.de/topic/ralink-rt-3391/#post-3473742
2. Unpack to a directory
3. cd to directory
4. sudo make
5. sudo make install
6 reboot your computer
7. make sure the wireless card light/led is on by using the wireless on/off button....
That did it for me. A note I also read is that any time the kernel or drivers are updated the old rt2800pci driver/module gets unpacked and thus the wireless gets back to not working .... So the same procedure of make and make install to overwrite with the compat-wireless drivers that work is to be done...
Good luck
------------------------------------------------------------------------------------------------------------------
http://h20000.www2.hp.com/bizsup ... mpid=reg_R1002_USEN |
|