You are not logged in.

#1 2009-04-28 09:33:14

littleimp
Member
Registered: 2009-04-28
Posts: 4

rt2860: wrong driver version in kernel

Hi everyone,

I'm using a eeePC 1000H with the Ralink rt2860 wireless card. Until kernel 2.6.28 you had to compile your own driver-module. The newest version of the driver by Ralink is v1.8.0.0. Unfortunately with this version I could not get WPA working. My solution was to install the older driver v1.7.1.1 where WPA works flawlessly.

Now with kernel 2.6.29 the module is included in the kernel, but of course the newsest version. Now WPA isn't working anymore and I'm wondering how I can go back to the older version. The module I was using before doesn't compile anymore...

Can anyone help me out here? Thanks.

Offline

#2 2009-04-28 12:35:24

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: rt2860: wrong driver version in kernel

As far as simple solutions go, you could downgrade the kernel.

Now, if you want to try things out, you need to somehow get the older driver to compile against the new kernel. On that it's hard for me to give any advice since I don't know *why* the module does not compile anymore.

Offline

#3 2009-04-28 12:40:32

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: rt2860: wrong driver version in kernel

You can also remove the driver (the .ko file) in the modules tree (which is not the nicest solution but it will work), then build the older driver against your existing kernel and install it.

As for compilation errors, we can't help you when you say 'it does not compile anymore'.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2009-04-28 14:54:21

littleimp
Member
Registered: 2009-04-28
Posts: 4

Re: rt2860: wrong driver version in kernel

Thanks for your advice.

Here are the compilation-errors I get:

make -C tools
make[1]: Entering directory `/tmp/rt2860/src/dkms_source_tree/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/tmp/rt2860/src/dkms_source_tree/tools'
/tmp/rt2860/src/dkms_source_tree/tools/bin2h
cp -f os/linux/Makefile.6 /tmp/rt2860/src/dkms_source_tree/os/linux/Makefile
make  -C  /lib/modules/2.6.29-ARCH/build SUBDIRS=/tmp/rt2860/src/dkms_source_tree/os/linux modules
make[1]: Entering directory `/usr/src/linux-2.6.29-ARCH'
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/md5.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/mlme.o
/tmp/rt2860/src/dkms_source_tree/os/linux/../../common/mlme.c: In function 'MlmePeriodicExec':
/tmp/rt2860/src/dkms_source_tree/os/linux/../../common/mlme.c:864: warning: format '%d' expects type 'int', but argument 2 has type 'ULONG'
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/rtmp_wep.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/action.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/ba_action.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/cmm_data.o
/tmp/rt2860/src/dkms_source_tree/os/linux/../../common/cmm_data.c: In function 'RTMP_FillTxBlkInfo':
/tmp/rt2860/src/dkms_source_tree/os/linux/../../common/cmm_data.c:889: warning: label 'FillTxBlkErr' defined but not used
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/rtmp_init.o
/tmp/rt2860/src/dkms_source_tree/os/linux/../../common/rtmp_init.c: In function 'NICRestoreBBPValue':
/tmp/rt2860/src/dkms_source_tree/os/linux/../../common/rtmp_init.c:1961: warning: 'Value' may be used uninitialized in this function
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/rtmp_tkip.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/cmm_sync.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/eeprom.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/cmm_sanity.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/cmm_info.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/cmm_wpa.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/dfs.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../common/spectrum.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../sta/assoc.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../sta/aironet.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../sta/auth.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../sta/auth_rsp.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../sta/sync.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../sta/sanity.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../sta/rtmp_data.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../sta/connect.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../sta/wpa.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../os/linux/rt_linux.o
  CC [M]  /tmp/rt2860/src/dkms_source_tree/os/linux/../../os/linux/rt_profile.o
/tmp/rt2860/src/dkms_source_tree/os/linux/../../os/linux/rt_profile.c: In function 'RTMPReadParametersHook':
/tmp/rt2860/src/dkms_source_tree/os/linux/../../os/linux/rt_profile.c:826: error: 'struct task_struct' has no member named 'fsuid'
/tmp/rt2860/src/dkms_source_tree/os/linux/../../os/linux/rt_profile.c:827: error: 'struct task_struct' has no member named 'fsgid'
/tmp/rt2860/src/dkms_source_tree/os/linux/../../os/linux/rt_profile.c:828: error: 'struct task_struct' has no member named 'fsuid'
/tmp/rt2860/src/dkms_source_tree/os/linux/../../os/linux/rt_profile.c:828: error: 'struct task_struct' has no member named 'fsgid'
/tmp/rt2860/src/dkms_source_tree/os/linux/../../os/linux/rt_profile.c:1454: error: 'struct task_struct' has no member named 'fsuid'
/tmp/rt2860/src/dkms_source_tree/os/linux/../../os/linux/rt_profile.c:1455: error: 'struct task_struct' has no member named 'fsgid'
make[2]: *** [/tmp/rt2860/src/dkms_source_tree/os/linux/../../os/linux/rt_profile.o] Error 1
make[1]: *** [_module_/tmp/rt2860/src/dkms_source_tree/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.29-ARCH'
make: *** [LINUX] Error 2

I am using the sourcecode from this package:
http://www.array.org/ubuntu/dists/intre … .1_all.deb

I was able to build a working module with 2.6.28.

Offline

#5 2009-04-28 15:25:50

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: rt2860: wrong driver version in kernel

http://sidux.com/PNphpBB2-viewtopic-t-14647.html

Maybe that link has something that can help you? In any case, the error you need to focus on is

error: 'struct task_struct' has no member named 'fsuid'

Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2009-04-28 15:37:18

littleimp
Member
Registered: 2009-04-28
Posts: 4

Re: rt2860: wrong driver version in kernel

Reading the thread I noticed Ralink released a new version a few days ago. I didn't even check their homepage again roll

I'll try that one out and report back, because I'm pretty sure I won't be able to fix the compilation problem with the old driver.

Edit:
Ok, now I deleted the old .ko file and installed the new driver v2.1.1.0.
Modinfo shows the new version and I can load it with modprobe, but it is not working. Wicd doesn't even show any wireless networks anymore. Now I'm not sure if I messed up something or if the driver just isn't working.

Last edited by littleimp (2009-04-28 16:09:36)

Offline

#7 2009-04-28 17:39:31

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: rt2860: wrong driver version in kernel

1) you could just put the new .ko into /lib/modules/2.6.29-ARCH/extra, that should take precedence over the original driver deeper in the modules tree - that way you shouldn't have to delete the original driver
2) 'dmesg' after modprobbing would tell you something about the success or failure of the driver wink

Offline

#8 2009-04-28 21:31:29

littleimp
Member
Registered: 2009-04-28
Posts: 4

Re: rt2860: wrong driver version in kernel

Ok, it's working now. It was my fault, because I didn't follow the README and instead just used the old package with the new sourcecode.

So if anyone else has the same problem, just read the README file and you will be fine. Connecting to WPA2 networks without a problem now.

I guess the new version will also be added to the kernel eventually.

Thanks everyone for their help. smile

Offline

Board footer

Powered by FluxBB