rt2x00.serialmonkey.com

Support forum for the rt2x00 project
It is currently Sat May 25, 2013 6:26 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 Previous  1, 2
Author Message
 Post subject:
PostPosted: Wed Jul 11, 2007 1:01 am 
Offline

Joined: Tue Mar 14, 2006 4:39 pm
Posts: 20
Location: West Midlands, UK
Borromini wrote:
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.

That doesn't quite do it, seems Kconfig is needed, no config options show up in make xconfig. I also tried the git sources which are for 2.6.22-rc6 for which I get a kernel oops on the rt2500pci module in 2.6.22 - haven't captured the data as serial console isn't attached. Worked with 2.6.22-rc7-git6. I also noticed that 2.6.22-git1 has the stuff in for EEPROM_93CX6 which may cause git patches to fail if added on top of the git.serialmonkey 2.6.22 when it comes out.
rt2500-cvs-2007071019 builds against 2.6.22, rt2500 module installs, no lights come on in Managed or Ad-Hoc mode.
wlan0 RT2500 Wireless ESSID:""
Mode:Ad-Hoc Frequency=2.412 GHz Bit Rate=1 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality:0 Signal level:136 Noise level:113
Rx invalid nwid:0 invalid crypt:0 invalid misc:0
# iwlist wlan0 txpower
wlan0 no transmit-power information.

On other box
============
wlan0 IEEE 802.11b+/g+ ESSID:"STAB083D5" Nickname:"acx v0.3.36"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: Not-Associated
Bit Rate:54 Mb/s Tx-Power=15 dBm Sensitivity=1/3
Retry min limit:7 RTS thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 11, 2007 9:01 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
The Kconfig can either be the main one, or the one in the subdir. Up till now I used the main one, and except for fixing it up to patch against the latest stable kernel, I didn't touch it (it worked fine before).

I'll look into it.

Edit: It is not showing op in any of the cases - not with the old patch, not with the new one. I skimmed through the options, seems zd1211rw isn't there either, although it is specified in the Makefile & Kconfig in the drivers/net/wireless dir.

Very bizarre.

_________________
Arch Linux 0.8 | Power in simplicity


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 12, 2007 3:03 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
Found the culprit.

I had the patch depend on the NET_RADIO option which has been taken out of 2.6.22. So nothing wrong with the patch itself, apart from that ;).

Here is a new one with today's sources.

_________________
Arch Linux 0.8 | Power in simplicity


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 7:22 am 
Offline

Joined: Tue Mar 14, 2006 4:39 pm
Posts: 20
Location: West Midlands, UK
Borromini wrote:
Found the culprit.

I had the patch depend on the NET_RADIO option which has been taken out of 2.6.22. So nothing wrong with the patch itself, apart from that ;).

Here is a new one with today's sources.

"drivers/net/wireless/Makefile" needs the line
obj-$(CONFIG_RT2500) += rt2500/


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 7:49 am 
Offline

Joined: Tue Mar 14, 2006 4:39 pm
Posts: 20
Location: West Midlands, UK
Is it significant that the lights do not flash with the rt2500 patch? With full sources as in git 2.6.22-rc6, the lights on the card are always lit and at intervals will flash. "iwlist scan" also reports that the "Interface doesn't support scanning". I also notice that Utilsys directory in the CVS is empty, presumably the standard wireless tools are OK as the interface is now wlan0 instead of the previous ra0.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 2:36 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
My patch just integrates driver sources.

As the utility is a stand-alone app and no part of the kernel, I do not see why it should be included in the patch.

As for your lights: I cannot tell. Maybe you need the old wlan stack support stuff. The driver depends on the old wlan stack, but I did not know how far to go with the 'dependencies', so I included some (hopefully sane) defaults:
Code:
+config RT2500
+       tristate "Ralink RT2500 PCI/PCMCIA based wireless card"
+       depends on (PCI || PCMCIA) && WLAN_80211
+       select WIRELESS_EXT
+       select IEEE80211


However, if the devs can tell me on which functions the driver relies (since that is not required to be in the Kconfig file for standalone compilation, but is for kernel-integrated compilation), I'd be most happy to hear. I am familiar enough with C code to fix up broken patches more or less, but that's about it. Analysing 'large' chunks of code is not my forte.

sboyce wrote:
Borromini wrote:
Found the culprit.

I had the patch depend on the NET_RADIO option which has been taken out of 2.6.22. So nothing wrong with the patch itself, apart from that ;).

Here is a new one with today's sources.

"drivers/net/wireless/Makefile" needs the line
obj-$(CONFIG_RT2500) += rt2500/


This is in the patch:

Code:
diff -Naur linux-2.6.22/drivers/net/wireless/Makefile linux-2.6.22-new/drivers/net/wireless/Makefile
--- linux-2.6.22/drivers/net/wireless/Makefile  2007-07-09 01:32:17.000000000 +0200
+++ linux-2.6.22-new/drivers/net/wireless/Makefile      2007-07-12 17:00:20.000000000 +0200
@@ -44,3 +44,5 @@
 
 obj-$(CONFIG_USB_ZD1201)       += zd1201.o
 obj-$(CONFIG_LIBERTAS_USB)     += libertas/
+
+obj-$(CONFIG_RT2500)           += rt2500/


I did not change anything...

_________________
Arch Linux 0.8 | Power in simplicity


Last edited by Borromini on Fri Jul 13, 2007 2:50 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 2:42 pm 
Offline
Site Admin

Joined: Sun Jun 05, 2005 1:01 pm
Posts: 5905
Location: Haarlem, The Netherlands
Borromini wrote:
As for your lights: I cannot tell. Maybe you need the old wlan stack support stuff (the driver depends on the old wlan stack,


Since when?
Legacy drivers depend have an internal stack, this makes sense since the legacy drivers support 2.4 kernels and early 2.6 kernels which don't even have a wireless stack inside.

The legacy drivers depend on 2 things:
- Wireless-extensions
- Support for the Device bus (PCI or USB)

And that is all, the rest it all handles inside the driver itself

_________________
Regards,
Ivo van Doorn
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 2:54 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
Well, that was what I presumed :?. I did see a 2.4 dir inside the tarball but never paid attention to it... I never 'actively' ran a 2.4 kernel (never compiled one of those myself), so I had no clue :). I thought they relied on the old wireless stack, but it seems not even that was true.

Thanks for the hint, that means I can take out the IEEE80211 line. I'll add an USB one.

_________________
Arch Linux 0.8 | Power in simplicity


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 2:58 pm 
Offline
Site Admin

Joined: Sun Jun 05, 2005 1:01 pm
Posts: 5905
Location: Haarlem, The Netherlands
Well for rt2500 the following is sufficient:
depends PCI && WIRELESS_EXT

For rt2570 the following:
depends USB && WIRELESS_EXT

_________________
Regards,
Ivo van Doorn
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 3:01 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
Cool, thanks. The rt2500 has PCMCIA implementations too, no?

I think it makes sense to keep it (PCI || PCMCIA) && WIRELESS_EXT then.

_________________
Arch Linux 0.8 | Power in simplicity


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 3:14 pm 
Offline
Site Admin

Joined: Sun Jun 05, 2005 1:01 pm
Posts: 5905
Location: Haarlem, The Netherlands
Nope there is absolutely no PCMCIA code within the drivers,
so there is no need to depend on it. PCMCIA can be considered as a kind of PCI which means that the PCI subsystem will take care of everything.

_________________
Regards,
Ivo van Doorn
Project Administrator
http://rt2x00.serialmonkey.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 13, 2007 3:15 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
Ok. Sry for the slow chat btw :P.

New patch (same source date) available here.

_________________
Arch Linux 0.8 | Power in simplicity


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 5:22 pm 
Offline

Joined: Tue Dec 04, 2007 5:18 pm
Posts: 1
Hmm...

The link seems to be broken...

Can anybody fix it???


Top
 Profile  
 
 Post subject: Link
PostPosted: Thu Dec 06, 2007 12:43 pm 
Offline

Joined: Sun Jun 26, 2005 10:26 am
Posts: 1685
Location: Marseille, France
Hello,
This is not provided by us, we have no way to fix this. You should try to contact the poster directly.

Regards,
Romain

_________________
RutilT developer


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 03, 2008 8:37 pm 
Offline

Joined: Sat Jan 28, 2006 2:16 pm
Posts: 32
Location: Belgium
I have posted a new patch here, based on the 2008020310 CVS. Since I use the rt2x00 drivers that are in the kernel right now (2.6.24), I will not be maintaining this package anymore. All you need to do if you want to update it is replace the source code, that's all there's to it, and rediff against a vanilla tree to obtain a new patch.

_________________
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 Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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