You are not logged in.

#1 2011-04-28 23:14:00

gregdwulet
Member
Registered: 2011-04-28
Posts: 9

[SOLVED] HP Pavilion dv6-4052 Wireless Driver Issues (Ralink 5390)

I recently bought an HP Pavilion dv6-4052 and am currently dual-booting Windows 7 and the latest version of Arch. The wireless card is the Ralink 5390, for which I have successfully downloaded and installed the Windows driver. For Arch, however, I cannot get the Linux driver, which was downloaded from the manufacturer's website (http://www.ralinktech.com/support.php?s=2) to work.

Downloading the .zip, making the proper changes to the config.mk as specified by the README, and running make gives many warnings and errors:

 make -C tools
make[1]: Entering directory `/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools'
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/tools/bin2h
cp -f os/linux/Makefile.6 /home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/Makefile
make -C /lib/modules/2.6.38-ARCH/build SUBDIRS=/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux modules
make[1]: Entering directory `/usr/src/linux-2.6.38-ARCH'
  CC [M]  /home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.o
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c: In function ‘RtmpAsicEraseFirmware’:
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:117:3: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c: In function ‘RtmpAsicLoadFirmware’:
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:352:2: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:352:2: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:352:2: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:352:2: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:352:2: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:352:2: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c: In function ‘RtmpAsicSendCommandToMcu’:
/home/greg/src/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 [enabled by default]
include/linux/pci.h:736:19: note: expected ‘u16 *’ but argument is of type ‘INT *’
/home/greg/src/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 [enabled by default]
include/linux/pci.h:736:19: note: expected ‘u16 *’ but argument is of type ‘INT *’
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:531:3: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:535:3: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:606:2: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../common/rtmp_mcu.c:610:2: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
  CC [M]  /home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.o
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c: In function ‘CFG80211_OpsSetChannel’:
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:356:3: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:251:8: warning: variable ‘BW_Old’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c: In function ‘CFG80211_OpsChgVirtualInf’:
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:476:4: warning: variable ‘Val’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c: At top level:
/home/greg/src/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 [enabled by default]
/home/greg/src/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 [enabled by default]
/home/greg/src/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/greg/src/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 [-Wstrict-prototypes]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c: In function ‘CFG80211_Connect’:
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1134:8: warning: variable ‘Chan’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c: At top level:
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1355:2: warning: initialization from incompatible pointer type [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1355:2: warning: (near initialization for ‘CFG80211_Ops.set_channel’) [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1378:2: warning: initialization from incompatible pointer type [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1378:2: warning: (near initialization for ‘CFG80211_Ops.add_key’) [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1379:2: warning: initialization from incompatible pointer type [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1379:2: warning: (near initialization for ‘CFG80211_Ops.get_key’) [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1380:2: warning: initialization from incompatible pointer type [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1380:2: warning: (near initialization for ‘CFG80211_Ops.del_key’) [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1381:2: warning: initialization from incompatible pointer type [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1381:2: warning: (near initialization for ‘CFG80211_Ops.set_default_key’) [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1388:2: warning: initialization from incompatible pointer type [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1388:2: warning: (near initialization for ‘CFG80211_Ops.rfkill_poll’) [enabled by default]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c: In function ‘CFG80211_RegRuleApply’:
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:1812:8: warning: variable ‘IrqFlags’ set but not used [-Wunused-but-set-variable]
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c: In function ‘CFG80211_SupBandInit’:
/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.c:2594:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat]
make[2]: *** [/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/../../os/linux/cfg80211.o] Error 1
make[1]: *** [_module_/home/greg/src/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.38-ARCH'
make: *** [LINUX] Error 2 

I then tried to work around the poorly written Linux driver by using ndiswrapper with the Windows driver, which I also downloaded from the Ralink website. I followed the instructions found on the Arch Wiki (https://wiki.archlinux.org/index.php/Wi … diswrapper). Everything was successful until I tried to run sudo ifconfig wlan0 up whereupon ifconfig errored "wlan0: unknown interface: No such device".

I really cannot think of what else to do. Although, the final issue I can think of would be that the dv6 has a Fn-key combination instead of the traditional switch to turn on/off wireless. Since the Fn+F12 key combo is not natively supported, maybe it is possible that the wireless is simply switched off and I haven't been able to figure out a solution to this.

Thanks for any and all help.

Last edited by gregdwulet (2011-05-02 03:05:41)

Offline

#2 2011-04-29 16:26:07

vladthedog
Member
Registered: 2010-12-03
Posts: 45

Re: [SOLVED] HP Pavilion dv6-4052 Wireless Driver Issues (Ralink 5390)

I have an HP dm1z that uses the same wireless card.  I followed these instructions:

http://ubuntuforums.org/showpost.php?p= … stcount=42

Not sure your level of linux comfortability, but this was the first module I compiled completely manually, etc so a couple things you may already be aware of:
- instead of /etc/modules you would edit /etc/rc.conf
- there is probably a better way, but I have to do these steps after every kernel upgrade manually, so I leave the patched files in a folder on /root

I don't have any issues with my wireless (suspend to ram works just fine... have never tried suspend to disk).

Also, I use net-profiles and wpa2 to connect.  I don't use any GUI to control these settings so not sure how well those sorts of progs work.  I'm in and out of different desktop environments so would prefer to handle all taht via CLI.

Yet another EDIT: my function-F12 works just fine to turn off/on the wireless out of the box.  This should be hard-wired (even though you are using the function key).  If its the same as my laptop, it should change from a white-ish color to more of an orange-ish color when you turn it off.  And yes, I've accidentally turned it off before, only to spend 20 minutes trouble-shooting a non-existant issue (or I should say, a PEBKAC)

Last edited by vladthedog (2011-04-29 16:36:37)

Offline

#3 2011-04-30 01:12:05

gregdwulet
Member
Registered: 2011-04-28
Posts: 9

Re: [SOLVED] HP Pavilion dv6-4052 Wireless Driver Issues (Ralink 5390)

Thanks for the reply. In what directory do I install the patches?

Offline

#4 2011-04-30 01:35:17

vladthedog
Member
Registered: 2010-12-03
Posts: 45

Re: [SOLVED] HP Pavilion dv6-4052 Wireless Driver Issues (Ralink 5390)

I am copy/pasting this from that thread:

#cd myDir
#ls
driverCodeDir
patch1.patch
patch2.patch
...
patchN.patch

then change to the driver code directory and apply the patches as follows
#cd driverCodeDir
#patch -p0 <../patch1.patch
#patch -p0 <../patch2.patch
..
#patch -p0 <../patchN.patch

To know the order in which you need to apply the patches, look at the rt5390sta.spec file lines 38-44. If you are using 10.10 32-bit apply all patches except rt5390sta-2.4.0.4-gcc-warnings-x86_64.patch. For 10.10 64-bit, apply all patches.

Offline

#5 2011-04-30 18:18:15

gregdwulet
Member
Registered: 2011-04-28
Posts: 9

Re: [SOLVED] HP Pavilion dv6-4052 Wireless Driver Issues (Ralink 5390)

I haven't been able to patch because "patch -p0 patch1.patch" sits there with no visual (or other) progress for hours. It seems to be stuck.

Offline

#6 2011-04-30 23:55:02

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: [SOLVED] HP Pavilion dv6-4052 Wireless Driver Issues (Ralink 5390)

You weren't redirecting properly: the correct syntax is "patch -p0 < $PATCH".

Offline

#7 2011-05-01 01:10:53

gregdwulet
Member
Registered: 2011-04-28
Posts: 9

Re: [SOLVED] HP Pavilion dv6-4052 Wireless Driver Issues (Ralink 5390)

Nevermind -- thank you very much for the help; my wireless works fine now!

Offline

#8 2012-01-28 17:20:44

ErSoul
Member
Registered: 2012-01-26
Posts: 46

Re: [SOLVED] HP Pavilion dv6-4052 Wireless Driver Issues (Ralink 5390)

hello, i know this is an old post but i've that card. The problem is when i try to compile make throws an error saying: make: *** /lib/modules/3.2.1-2-ARCH/build: No such file or directory.  Stop.

How can i fix this?

Last edited by ErSoul (2012-01-28 17:31:56)

Offline

Board footer

Powered by FluxBB