rt2x00.serialmonkey.com

Support forum for the rt2x00 project
It is currently Thu May 23, 2013 12:47 am

All times are UTC


Forum rules


Important: Read Project restructuring announcement regarding the pending removal of the legacy drivers from this project.



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 30 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sun Apr 29, 2007 4:11 am 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
Guys I have a possibly unusual request :).

I roll my own kernels usually, but I'd like to do it entirely scripted. I managed to integrate a wireless radio module into the kernel sources i use, so it gets compiled along (and I don't have to compile again it every single time I upgrade my kernel). Now this driver was only one file of source code, whereas rt2500 has quite some :-).

I tried to integrate the rt2500 driver into my kernel sources, and the rt2500 driver shows up nicely when I run
Code:
$ make gconfig
.

However, it never gets compiled, if i check my /lib/modules/`uname -r` dir afterwards, there's no rt2500.ko to be found :(.

I have done this:
1. added the source code (*.{c,h}) in drivers/net/wireless/rt2500 (a subdir)
2. edited Kconfig in drivers/net/wireless, and added this:
Code:
config RT2500
   tristate "Ralink RT2500 PCI/PCMCIA based wireless card"
   depends on NET_RADIO && (PCI || PCMCIA)
   default m

3. written a Makefile, based on what the Makefile in the rt2500 sources needs, and placed it in drivers/net/wireless/rt2500:
Code:
rt2500-objs := rtmp_main.o mlme.o connect.o sync.o assoc.o \
          auth.o auth_rsp.o rtmp_data.o rtmp_init.o \
          sanity.o rtmp_wep.o wpa.o md5.o rtmp_tkip.o \
          rtmp_info.o eeprom.o

obj-$(CONFIG_RT2500) += rt2500.o


I have checked the prism54 subdir and based my approach on the way it seems to work (since it's the only subdir which doesn't contain a Kconfig file itself, the other wireless drivers subdirs do).

Can someone tell me what I do wrong, and help me out? 8)

Thanks a bunch ;)

Edit: nevermind... I just forgot to add a reference to the Makefile in drivers/net/wireless :).

For those interested you can find the patch in attachment (should apply fairly well to recent 2.6 kernels - if not, let me know so i can take it down).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 29, 2007 10:28 pm 
Offline

Joined: Tue Mar 14, 2006 4:39 pm
Posts: 20
Location: West Midlands, UK
Applies cleanly to 2.6.21, many thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 29, 2007 10:31 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
No problem ;). You can just patch the kernel, no need to reconfigure, the driver is set to compile as a module by default.

_________________
Arch Linux 0.8 | Power in simplicity


Top
 Profile  
 
 Post subject: smp
PostPosted: Sun May 06, 2007 11:05 am 
Offline

Joined: Sun May 06, 2007 10:52 am
Posts: 2
hello, i have tried this patch on my mandriva 2007.1 with a smp 2.6.20.7 kernel (AMD64X2), and i received this error:
rt2500ERROR: empty Elem in MlmeQueue..

sorry for my bad english
:lol:


Top
 Profile  
 
 Post subject: Old version
PostPosted: Sun May 06, 2007 12:16 pm 
Offline

Joined: Sun Jun 26, 2005 10:26 am
Posts: 1685
Location: Marseille, France
Hello,
This has been fixed in the CVS, the driver shipped above need be updated.

Regards,
Romain

_________________
RutilT developer


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 06, 2007 12:42 pm 
Offline

Joined: Sun May 06, 2007 10:52 am
Posts: 2
I have seen it, but i'm interested in the kernel-patch to set a personal kernel source..
Tanks:
Regards
Christian (from Italy)
PS:
I use your driver with my new linksys WMP54G
:wink:


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 06, 2007 2:00 pm 
Offline
User avatar

Joined: Fri May 05, 2006 11:57 am
Posts: 620
Location: Aix-en-Provence, France
You should just update the driver files in the above patch. Don't use any CVS sources older than today: important fixes have been applied sooner in the morning.

_________________
Olivier Cornu (aka djinnn)
Intel x86, RT61/RT73


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 3:57 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
Okay... I was about to post the new patch, but I'll wait a few days :).

For those who are in a hurry, you can get a patch here, from sources from today.

_________________
Arch Linux 0.8 | Power in simplicity


Last edited by Borromini on Mon May 14, 2007 5:05 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 4:41 pm 
Offline
User avatar

Joined: Fri May 05, 2006 11:57 am
Posts: 620
Location: Aix-en-Provence, France
Thanks. :)

Btw, it's a good idea you wait a few days before doing so as new changes are coming soon...

_________________
Olivier Cornu (aka djinnn)
Intel x86, RT61/RT73


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 5:05 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
Okay. Any idea when that will be? :)

_________________
Arch Linux 0.8 | Power in simplicity


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 5:30 pm 
Offline
User avatar

Joined: Fri May 05, 2006 11:57 am
Posts: 620
Location: Aix-en-Provence, France
Vern is supposed to do it.
You'd better ask him. ;)

_________________
Olivier Cornu (aka djinnn)
Intel x86, RT61/RT73


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 3:49 pm 
Offline
User avatar

Joined: Sat Jan 14, 2006 6:29 pm
Posts: 897
Location: Carlsbad, California
Supposed to do what?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 24, 2007 2:19 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
Ok :P

_________________
Arch Linux 0.8 | Power in simplicity


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 27, 2007 9:08 am 
Offline

Joined: Thu Nov 30, 2006 6:27 pm
Posts: 4
Would make you for but rt2400? :D


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 10, 2007 5:44 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
I'll see what I can do about it, I cannot guarantee an rt2400 patch will work, since i won't be able to test it (i will not compile another kernel with that driver... requires a lot of time). Also, as you can read in my post above, it's really not that difficult to integrate the driver and diff it yourself ;).

In the meantime, here's a new patch available, against 2.6.22, from CVS sources from July 10th, 2007.

_________________
Arch Linux 0.8 | Power in simplicity


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 30 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group