Passo 1: Acesse o site da Ralink, na parte inferior, informe o nome e e-mail, e clique em "Submit", o download irá começar. Salve aonde achar conveniente.
Passo 2: Abra o terminal, entre no local onde salvou o arquivo baixado. Vamos extraí-lo:
sudo unzip 2010_1217_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO.zip
$ cd 2010_1217_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO
Passo 3: Vamos editar o arquivo config.mk, que está em ../os/linux/, você pode utilizar o editor de sua preferência:
vi os/linux/config.mk
Passo 4: Localize a linhas: 110 e 111
# Support MAC80211 LINUX-only function
HAS_CFG80211_SUPPORT=y
Vamos alterar para:
# Support MAC80211 LINUX-only function
HAS_CFG80211_SUPPORT=n
Salve e feche o arquivo.
Passo 5: Agora iremos compilar o driver:
sudo make
Depois:
sudo make install
Passo 6: É necessário adicionar o "rt2800pci" na Blacklist:
sudo vi /etc/modprobe.d/blacklist.conf
Vá até o final do arquivo (Shift + g) e coloque:
blacklist rt2800pci
Passo 7: Reinicie o sistema.
Obs.: Caso sua placa comece a apresentar instabilidade na conexão, siga os próximos passos.
Passo 8: Vamos alterar o power-management , abra o terminal:
sudo vi /usr/lib/pm-utils/power.d/wireless
Ache esta parte do arquivo (linha 26-43):
case $driver in
ipw2100) iwpriv_ac="set_power 0"
iwpriv_batt="set_power 5"
iwconfig_ac="power on"
iwconfig_batt="power on";;
ipw3945)
iwpriv_ac="set_power 6"
iwpriv_batt="set_power 7";;
iwl*) if [ -f "/sys/class/net/$1/device/power_level" ]; then
iwlevel_ac=0
iwlevel_batt=3
else
iwconfig_ac="power off"
iwconfig_batt="power on"
fi;;
*) iwconfig_ac="power off"
iwconfig_batt="power on";;
esac
E altere o que estiver em negrito:
case $driver in
ipw2100) iwpriv_ac="set_power 0"
iwpriv_batt="set_power 0"
iwconfig_ac="power on"
iwconfig_batt="power on";;
ipw3945)
iwpriv_ac="set_power 6"
iwpriv_batt="set_power 6";;
iwl*) if [ -f "/sys/class/net/$1/device/power_level" ]; then
iwlevel_ac=0
iwlevel_batt=0
else
iwconfig_ac="power off"
iwconfig_batt="power on"
fi;;
*) iwconfig_ac="power off"
iwconfig_batt="power off";;
esac
Obs.: Altere os valores manualmente, não copie e cole.
Passo 9: Reiniciar o sistema e pronto.
*Importante: Sempre que alterar o kernel, deve repetir este processo.
[1] Comentário enviado por felipebm em 12/12/2013 - 14:15h
No ponto 5 (sudo make) obtenho o Erro 2. Esta é a saida:
$ sudo make
make -C tools
make[1]: Entrando no diretório `/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools'
gcc -g bin2h.c -o bin2h
make[1]: Saindo do diretório `/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools'
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools/bin2h
cp -f os/linux/Makefile.6 /home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/Makefile
make -C /lib/modules/3.8.0-34-generic/build SUBDIRS=/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux modules
make[1]: Entrando no diretório `/usr/src/linux-headers-3.8.0-34-generic'
CC [M] /home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.o
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c: Na função ‘RtmpAsicLoadFirmware’:
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:352:2: aviso: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:355:2: aviso: passing argument 1 of ‘writel’ makes integer from pointer without a cast [habilitado por padrão]
/usr/src/linux-headers-3.8.0-34-generic/arch/x86/include/asm/io.h:63:1: nota: expected ‘unsigned int’ but argument is of type ‘ULONG *’
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:356:2: aviso: formato ‘%d’ espera argumento do tipo ‘int’, porém o argumento 2 possui tipo ‘ULONG’ [-Wformat]
CC [M] /home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.o
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:37:23: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_remove_one’
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:38:22: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_probe’
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:60:46: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__devinitdata’
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:87:17: erro: ‘rt2860_pci_tbl’ undeclared here (not in a function)
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:88:17: erro: ‘rt2860_probe’ undeclared here (not in a function)
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:90:5: erro: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:90:29: erro: ‘rt2860_remove_one’ undeclared here (not in a function)
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:283:24: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_probe’
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:449:23: erro: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_remove_one’
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c: Na função ‘RTMPrt3xSetPCIePowerLinkCtrl’:
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:941:2: aviso: formato ‘%x’ espera argumento do tipo ‘unsigned int’, porém o argumento 2 possui tipo ‘ULONG’ [-Wformat]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:974:5: aviso: formato ‘%x’ espera argumento do tipo ‘unsigned int’, porém o argumento 2 possui tipo ‘ULONG’ [-Wformat]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:986:5: aviso: formato ‘%x’ espera argumento do tipo ‘unsigned int’, porém o argumento 2 possui tipo ‘ULONG’ [-Wformat]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:949:11: aviso: unused variable ‘vendor_id’ [-Wunused-variable]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:1000:2: aviso: formato ‘%x’ espera argumento do tipo ‘unsigned int’, porém o argumento 3 possui tipo ‘ULONG’ [-Wformat]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:1027:3: aviso: formato ‘%x’ espera argumento do tipo ‘unsigned int’, porém o argumento 2 possui tipo ‘ULONG’ [-Wformat]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:934:8: aviso: unused variable ‘offset’ [-Wunused-variable]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:933:8: aviso: unused variable ‘Vendor’ [-Wunused-variable]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c: No nivel superior:
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:514:14: aviso: ‘RTMPInitPCIeDevice’ defined but not used [-Wunused-function]
/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.c:73:1: erro: ‘__mod_pci_device_table’ aliased to undefined symbol ‘rt2860_pci_tbl’
cc1: some warnings being treated as errors
make[2]: ** [/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/pci_main_dev.o] Erro 1
make[1]: ** [_module_/home/lais/Downloads/20101216_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-3.8.0-34-generic'
make: ** [LINUX] Erro 2