PDA

View Full Version : rt3090 module does not work with 2.6.34 kernel


ghoul
19th May 2010, 10:16 AM
Hi,

I'm trying to enable my rt3090 with Fedora Rawhide, it does not work by default :(
After reading this (http://forums.fedoraforum.org/showthread.php?t=236729) thread I've downloaded drivers from Ralink website (http://www.ralinktech.com/support.php?s=2). Driver version is 2.3.1.4. 'make' and 'make install' are OK. But 'insmod' fails:
# cd os/linux
# insmod rt3090sta.ko
insmod: error inserting 'rt3090sta.ko': -1 Unknown symbol in module


I've used the latest kernel available: 2.6.34-2.fc14.x86_64.

Is driver compatible with 2.6.34 kernel?
Or maybe there is another approach to enable the rt3090?

I'd like to avoid using Ndiswrapper if possible :)

Thanks in advance

andrewthomas
19th May 2010, 04:36 PM
But 'insmod' fails:
# cd os/linux
# insmod rt3090sta.ko
insmod: error inserting 'rt3090sta.ko': -1 Unknown symbol in module




try leaving off the .ko
# insmod rt3090sta

ghoul
19th May 2010, 07:16 PM

try leaving off the .ko
# insmod rt3090sta

Thanks for idea. Unfortunately it fails:
# insmod rt3090sta
insmod: can't read 'rt3090sta': No such file or directory

There is no such file indeed. There are:
rt3090sta.ko
rt3090sta.mod.c
rt3090sta.mod.o
rt3090sta.o

:confused:

andrewthomas
20th May 2010, 12:51 AM
Hi,

But 'insmod' fails:
# cd os/linux
# insmod rt3090sta.ko
insmod: error inserting 'rt3090sta.ko': -1 Unknown symbol in module




It should have sent a more verbose error message to your log files. Check them and it should tell you what it didn't like

ghoul
20th May 2010, 08:56 AM
It should have sent a more verbose error message to your log files. Check them and it should tell you what it didn't like

You are right :)
I've found following in /var/log/dmesg
rt3090sta: module license 'unspecified' taints kernel.
rt3090sta: Unknown symbol debug_lockdep_rcu_enabled


I've googled a bit and found related thread (http://lists.rpmfusion.org/pipermail/rpmfusion-developers/2010-May/007762.html) on rpmfusion mailing list. It is about Broadcom wireless, not Realtek. Also the Broadcom driver fails to compile (Realtek compiles fine), but the problem is debug_lockdep_rcu_enabled symbol in 2.6.34 kernel.

Any ideas? :)

ghoul
26th May 2010, 05:47 PM
Same problem with 2.6.34-11.fc14.x86_64 kernel :(
Hope something will change with 2.6.35 kernel or Ralink would update the driver...

andrewthomas
26th May 2010, 07:34 PM
Same problem with 2.6.34-11.fc14.x86_64 kernel :(
Hope something will change with 2.6.35 kernel or Ralink would update the driver...
I'm not sure but you could try and compile the kernel without the following in the kernel hacking section
CONFIG_DEBUG_LOCK_ALLOC=y
CONFIG_PROVE_LOCKING=y
CONFIG_PROVE_RCU=y
CONFIG_LOCKDEP=y
couldn't hurt to try

ghoul
26th May 2010, 08:19 PM
I'm not sure but you could try and compile the kernel without the following in the kernel hacking section
CONFIG_DEBUG_LOCK_ALLOC=y
CONFIG_PROVE_LOCKING=y
CONFIG_PROVE_RCU=y
CONFIG_LOCKDEP=y
couldn't hurt to try

Thanks for suggestion. I've found a guide on Fedora wiki for compiling kernel (http://fedoraproject.org/wiki/Building_a_custom_kernel). Would try you approach and post the result here :)

andrewthomas
26th May 2010, 10:53 PM
Thanks for suggestion. I've found a guide on Fedora wiki for compiling kernel (http://fedoraproject.org/wiki/Building_a_custom_kernel). Would try you approach and post the result here :)

Yes it works just fine. It is nice because it will build a rpm. By the way.
Do you have the firmware from here:http://www.ralinktech.com/support.php?s=2
Firmware RT28XX/RT30XX PCI/mPCI/PCIe/CardBus series (RT2760/RT2790/RT2860/RT2890/RT3060/RT3062/RT3562/RT2860/RT2760/RT2890/RT2790/RT3090)

is it in your firmware file?
/lib/firmware/rt2860.bin
Have you tried to load this module?
rt2860sta
MODULE_AUTHOR("Jett Chen <jett_chen@ralinktech.com>");
MODULE_DESCRIPTION("RT2860/RT3090 Wireless Lan Linux Driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("rt3090sta");

---------- Post added at 04:53 PM CDT ---------- Previous post was at 04:31 PM CDT ----------

BTW: I found this in kernel-2.6.34/linux-2.6.34.x86_64/drivers/staging/rt2860/TODO

I'm hesitant to add a TODO file here, as the wireless developers would
really have people help them out on the "clean" rt2860 driver that can
be found at the http://rt2x00.serialmonkey.com/ site.

But, if you wish to clean up this driver instead, here's a short list of
things that need to be done to get it into a more mergable shape:

TODO:
- checkpatch.pl clean
- sparse clean
- port to in-kernel 80211 stack and common rt2x00 infrastructure
- review by the wireless developer community

Please send any patches or complaints about this driver to Greg
Kroah-Hartman <greg@kroah.com> and don't bother the upstream wireless
kernel developers about it, they want nothing to do with it.You may want to check out that serialmonkey site.