Help with RaLink rt5390 on HP dm1z

Hi all,

I got the rt5390sta kernel module compiled after applying the patches here,

https://build.opensuse.org/package/files?package=rt5390sta&project=driver%3Awireless

It is correctly associated with the hardware (lspci -knn). Unfortunately, trying to bring the device up (ifconfig wlan0 up) results in the message "SIOCSIFFLAGS: Operation not permitted". Other relevant information:
This is for OpenSuSE 11.4. The suspend works in 11.4 (yay!!) but the laptop is still not useful without wifi. Any help would be much appreciated!

Thanks,
Nicholas

On 03/11/2011 02:36 AM, gatoatigrado1 wrote:
>
> Hi all,
>
> I got the rt5390sta kernel module compiled after applying the
> patches here,
>
> http://tinyurl.com/66j6pfv
>
> It is correctly associated with the hardware (lspci -knn).
> Unfortunately, trying to bring the device up (ifconfig wlan0 up) results
> in the message “SIOCSIFFLAGS: Operation not permitted”. Other relevant
> information:

That usually means that you need to be root.

I was, thanks though.

hey guys! im new using opensuse and linux, and i have the same problem, but i dont know how i have to install the patches, can someone say me the commands to do it? i have a hp dm1z and the wireless dont work

sorry for my english

thanks!

2 parts here:

  1. To help inmortable:

To patch, see the instructions here: HP DM1Z Laptop running Ubuntu 10.10 | 6by9.net

WIFI

Once you have the correct driver, the wifi on HP’s dm1z works flawlessly. The built-in wireless enable/disable button and LED also work without any tweaking.

However, Ubuntu 10.10 does not have native support and the stock driver from the manufacturer is buggy and spews too much to dmesg. The packages built for openSUSE work properly. At the time of writing, the working wifi driver was from openSUSE 11.3 or 11.4:

https://build.opensuse.org/package/binaries?package=rt5390sta&project=driver%3Awireless&repository=11.4-update

You’ll see 64-bit (x86_64) and 32-bit (i586) packages listed. Download the openSUSE driver package - the source RPM, not the binary package: rt5390sta-2.4.0.4-6.2.src.rpm

Open your web browser’s download directory and double-click the src RPM. Extract all files into a new directory named openSUSE_rt5390sta_driver

Open a terminal and sudo to root:
sudo su -
cd openSUSE_rt5390sta_driver
tar jxvf 2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO.tar.bz2
cd 2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/
patch -p0 < …/rt5390sta-2.4.0.4-config.patch
patch -p0 < …/rt5390sta-2.4.0.4-WPA-mixed.patch
patch -p0 < …/rt5390sta-2.4.0.4-convert-devicename-to-wlanX.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
patch -p0 < …/rt5390sta-2.4.0.4-reduce_debug_output.patch
mv RT2860STA.dat RT5390STA.dat
vi os/linux/config.mk

Change HAS_ANTENNA_DIVERSITY_SUPPORT to:
HAS_ANTENNA_DIVERSITY_SUPPORT=y

make
mkdir -p /etc/Wireless/RT5390STA
cp RT5390STA.dat /etc/Wireless/RT5390STA/
cp -i os/linux/rt5390sta.ko /lib/modules/uname -r/kernel/drivers/net/wireless/
echo rt5390sta >> /etc/modules
echo “blacklist rt2800pci” >> /etc/modprobe.d/blacklist.conf
depmod -a

Reboot your dm1z and the wifi should come up properly on boot.


  1. My problem:
    After using the stock driver from the rpm (rt5390sta-kmp-default from the opensuse software search), and then uninstalling and trying to patch the source rpm as listed above, I get the following syslog/dmesg error every time I try to connect:

/usr/local/rt5390/2010_1216_RT5390_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO/os/linux/…/…/common/cmm_asic.c:6041 assert KeyIdx < 4failed

Anybody with ideas? Thanx in advance.