Page 1 of 2

problem with ralink r539f

Posted: 29. Apr 2011, 03:37
by wiccano
hello

i have a wifi card ralink r539f, i download the official driver, but when a do make, the code has error.

Code: Select all

make
make -C tools
make[1]: se ingresa al directorio `/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools'
gcc -g bin2h.c -o bin2h
make[1]: se sale del directorio `/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools'
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools/bin2h
cp -f os/linux/Makefile.6 /home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/Makefile
make -C /lib/modules/2.6.37.6-smp/build SUBDIRS=/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux modules
make[1]: se ingresa al directorio `/usr/src/linux-2.6.37.6'
  CC [M]  /home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.o
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c: En la función ‘RtmpAsicSendCommandToMcu’:
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:463:4: aviso: se pasa el argumento 3 de ‘pci_read_config_word’ desde un tipo de puntero incompatible
include/linux/pci.h:736:19: nota: se esperaba ‘u16 *’ pero el argumento es de tipo ‘INT *’
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:482:4: aviso: se pasa el argumento 3 de ‘pci_read_config_word’ desde un tipo de puntero incompatible
include/linux/pci.h:736:19: nota: se esperaba ‘u16 *’ pero el argumento es de tipo ‘INT *’
  CC [M]  /home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.o
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:679:2: aviso: se declaró ‘enum tx_power_setting’ dentro de la lista de parámetros
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:679:2: aviso: su ámbito es solamente esta definición o declaración, lo cual probablemente no es lo que desea
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:678:29: error: el parámetro 2 (‘Type’) tiene tipo incompleto
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:676:12: aviso: la declaración de la función no es un prototipo
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1355:2: aviso: inicialización desde un tipo de puntero incompatible
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1378:2: aviso: inicialización desde un tipo de puntero incompatible
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1379:2: aviso: inicialización desde un tipo de puntero incompatible
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1380:2: aviso: inicialización desde un tipo de puntero incompatible
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1388:2: aviso: inicialización desde un tipo de puntero incompatible
make[2]: *** [/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.o] Error 1
make[1]: *** [_module_/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux] Error 2
make[1]: se sale del directorio `/usr/src/linux-2.6.37.6'
make: *** [LINUX] Error 2
how i can fix it??

Re: problem with ralink r539f

Posted: 29. Apr 2011, 11:38
by thenktor
Please use the command LANG=C make if you want to post error messages so that they are in English ;)

Re: problem with ralink r539f

Posted: 29. Apr 2011, 16:21
by laprjns
Do you have the kernel-source package installed?

Re: problem with ralink r539f

Posted: 29. Apr 2011, 20:10
by wiccano
laprjns wrote:Do you have the kernel-source package installed?
yes.

Re: problem with ralink r539f

Posted: 1. May 2011, 01:16
by wiccano
thenktor wrote:Please use the command LANG=C make if you want to post error messages so that they are in English ;)
ok =) there is

Code: Select all

LANG=C make
make -C tools
make[1]: Entering directory `/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools'
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools/bin2h
cp -f os/linux/Makefile.6 /home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/Makefile
make -C /lib/modules/2.6.37.6/build SUBDIRS=/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux modules
make[1]: Entering directory `/usr/src/linux-2.6.37.6'
  CC [M]  /home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.o
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c: In function 'RtmpAsicSendCommandToMcu':
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:463:4: warning: passing argument 3 of 'pci_read_config_word' from incompatible pointer type
include/linux/pci.h:736:19: note: expected 'u16 *' but argument is of type 'INT *'
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:482:4: warning: passing argument 3 of 'pci_read_config_word' from incompatible pointer type
include/linux/pci.h:736:19: note: expected 'u16 *' but argument is of type 'INT *'
  CC [M]  /home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.o
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:679:2: warning: 'enum tx_power_setting' declared inside parameter list
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:679:2: warning: its scope is only this definition or declaration, which is probably not what you want
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:678:29: error: parameter 2 ('Type') has incomplete type
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:676:12: warning: function declaration isn't a prototype
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1355:2: warning: initialization from incompatible pointer type
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1378:2: warning: initialization from incompatible pointer type
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1379:2: warning: initialization from incompatible pointer type
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1380:2: warning: initialization from incompatible pointer type
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1388:2: warning: initialization from incompatible pointer type
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c: In function 'CFG80211_SupBandInit':
/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:2594:2: warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned int'
make[2]: *** [/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.o] Error 1
make[1]: *** [_module_/home/perro/Descargas/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.37.6'
make: *** [LINUX] Error 2
and, i have kernel-source installed and current version of o OS

Thanks!!!!!

Re: problem with ralink r539f

Posted: 1. May 2011, 11:08
by laprjns

Re: problem with ralink r539f

Posted: 1. May 2011, 19:56
by wiccano
hello

laprjns did what he said the tuturial, but not compile.
So I kept looking and found a package of OpenSuSe which has patches for the driver, apply all the patches and compile! and then install.

I have now recognized the wifi card, then try to connect to a wifi network, that of my home. It happened that the laptop freezes when trying to connect to a wifi network with wicd.

no longer do, anyway, here is the source code and all the steps you take to install the wifi card.

Greetings to all and thanks.

package rt5390sta-2.4.0.4-6.3.src.rpm:
http://software.opensuse.org/search?q=r ... debug=true

decompressed file. rpm, then unpack the driver source code, enter the driver folder and started to patch with the following commands.

Code: Select all

$su
$patch -p0 <../rt5390sta-2.4.0.4-WPA-mixed.patch
$patch -p0 <../rt5390sta-2.4.0.4-config.patch
$patch -p0 <../rt5390sta-2.4.0.4-convert-devicename-to-wlanX.patch
$patch -p0 <../rt5390sta-2.4.0.4-gcc-warnings-x86_64.patch
$patch -p0 <../rt5390sta-2.4.0.4-reduce_debug_output.patch
$patch -p0 <../rt5390sta-2.4.0.4-remove-potential-conflicts-with-rt2860sta.patch
$patch -p0 <../rt5390sta-2.4.0.4-return_nonvoid_function.patch
$make
$make install
$init 6
Here is the card recognized.

Code: Select all

$iwconfig wlan0
wlan0     Ralink STA  ESSID:""  Nickname:"RT2860STA"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated   
          Bit Rate:1 Mb/s   
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality=10/100  Signal level:0 dBm  Noise level:0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

$ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 90:00:4e:06:c4:49  
          inet6 addr: fe80::9200:4eff:fe06:c449/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:55841 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7635932 (7.2 MiB)  TX bytes:0 (0.0 B)
          Interrupt:17

Re: problem with ralink r539f

Posted: 2. May 2011, 12:00
by gapan
Can you provide the output of lspci? It seems that your card is recognized as an rt2860?

And maybe you could also try ndiswrapper? In some cases it's easier to just use the windows driver.

Re: problem with ralink r539f

Posted: 2. May 2011, 14:04
by wiccano
Hi, there is lspci

Code: Select all

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
02:00.0 Network controller: Ralink corp. Device 539f
and try and ndiswrapper but it was not Windows compatible driver

try and ndiswrapper but it was not Windows compatible driver

I returned to uninstall the card.

I suspect the error is incompatible wext driver, and something has to do with wpa_supplicant.
because I think that the error has to do with the driver wext and perhaps also the compatibility misconfigured wpa_supplicant.

wait your suggestions and thanks for helping friends

Re: problem with ralink r539f

Posted: 3. May 2011, 06:52
by gapan
Can you provide the output of lsmod?