Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rt2500 does not compile with 2.6.20-gentoo
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Mon Feb 05, 2007 10:42 pm    Post subject: rt2500 does not compile with 2.6.20-gentoo Reply with quote

Here is the error:

Code:

  CC [M]  /var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module/auth_rsp.o
  CC [M]  /var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module/rtmp_data.o
  CC [M]  /var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module/rtmp_init.o
/var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module/rtmp_init.c:978:62: macro "INIT_WORK" passed 3 arguments, but takes just 2
/var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module/rtmp_init.c: In function `NICInitializeAdapter':
/var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module/rtmp_init.c:978: error: `INIT_WORK' undeclared (first use in this function)
/var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module/rtmp_init.c:978: error: (Each undeclared identifier is reported only once
/var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module/rtmp_init.c:978: error: for each function it appears in.)
make[1]: *** [/var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module/rtmp_init.o] Error 1
make: *** [_module_/var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module] Error 2
make: Leaving directory `/usr/src/linux-2.6.20-gentoo'

!!! ERROR: net-wireless/rt2500-1.1.0_beta4 failed.
Call stack:
  ebuild.sh, line 1613:   Called dyn_compile
  ebuild.sh, line 970:   Called qa_call 'src_compile'
  environment, line 4445:   Called src_compile
  rt2500-1.1.0_beta4.ebuild, line 45:   Called linux-mod_src_compile
  linux-mod.eclass, line 510:   Called die

!!! Unable to make  -C /usr/src/linux M=/var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/work/rt2500-1.1.0-b4/Module modules.
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/net-wireless/rt2500-1.1.0_beta4/temp/build.log'.
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Tue Feb 06, 2007 7:11 am    Post subject: Reply with quote

The rt2500 module, as far as I know, has been depreciated in favour of rt2x00. You should be using that these days.
_________________
He who calls for full employment calls for war!
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Fri Feb 09, 2007 5:23 am    Post subject: Reply with quote

no the rt2x00 module is the cvs/experimental version & not marked as stable yet.

the rt2500 driver is not yet working on 2.6.20 .... I am going back to 2.6.19
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Fri Feb 09, 2007 10:15 pm    Post subject: Reply with quote

col wrote:
no the rt2x00 module is the cvs/experimental version & not marked as stable yet.

the rt2500 driver is not yet working on 2.6.20 .... I am going back to 2.6.19


the rt2500pci legacy drivers are the original drivers released by realtek. Serial monkey decided to rewrite the drivers from scratch (as rt2x00) and include all the relevant modules together. The legacy drivers are no longer being developed. The rt2x00 drivers have reached beta stage, and should be stable very soon.
_________________
He who calls for full employment calls for war!
Back to top
View user's profile Send private message
didumos
Guru
Guru


Joined: 19 Jan 2006
Posts: 322
Location: uk

PostPosted: Fri Feb 09, 2007 10:28 pm    Post subject: Reply with quote

sugar wrote:
Serial monkey decided to rewrite the drivers from scratch (as rt2x00) and include all the relevant modules together.

It's my understanding that the main purpose of the rewrite is to get the drivers into a state where they can be accepted into the kernel.
sugar wrote:
The legacy drivers are no longer being developed.

Are you certain about that? The cvs snapshots include patches for the 2.6.20 kernel so they seem to me to be maintained. Indeed, a cvs snapshot has just been added to portage by uberlord. I'm about to try it out.
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Fri Feb 09, 2007 10:41 pm    Post subject: Reply with quote

didumos wrote:
sugar wrote:
Serial monkey decided to rewrite the drivers from scratch (as rt2x00) and include all the relevant modules together.

It's my understanding that the main purpose of the rewrite is to get the drivers into a state where they can be accepted into the kernel.
sugar wrote:
The legacy drivers are no longer being developed.

Are you certain about that? The cvs snapshots include patches for the 2.6.20 kernel so they seem to me to be maintained. Indeed, a cvs snapshot has just been added to portage by uberlord. I'm about to try it out.


I'll double check.
_________________
He who calls for full employment calls for war!
Back to top
View user's profile Send private message
didumos
Guru
Guru


Joined: 19 Jan 2006
Posts: 322
Location: uk

PostPosted: Fri Feb 09, 2007 10:48 pm    Post subject: Reply with quote

Well the new snapshot (net-wireless/rt2500-1.1.0_pre2007020911) works fine with the 2.6.20 kernel. I'm using the /etc/Wireless/RT2500STA/RT2500STA.dat file to set it up so I will try and see how this version works with configuring it through baselayout (/etc/conf.d/net).
Back to top
View user's profile Send private message
sugar
Guru
Guru


Joined: 07 Aug 2004
Posts: 579
Location: Morrinsville, New Zealand

PostPosted: Fri Feb 09, 2007 10:58 pm    Post subject: Reply with quote

didumos wrote:
Well the new snapshot (net-wireless/rt2500-1.1.0_pre2007020911) works fine with the 2.6.20 kernel. I'm using the /etc/Wireless/RT2500STA/RT2500STA.dat file to set it up so I will try and see how this version works with configuring it through baselayout (/etc/conf.d/net).


yeah, you're right. It is still under development. I wonder why I thought it wasn't. Good to hear its working with the new kernel.
_________________
He who calls for full employment calls for war!
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Sat Feb 10, 2007 8:57 pm    Post subject: Reply with quote

I tried the CVS from about 1 week ago....they did not work very well. My wireless started dropping out when I installed them. I will stick with b4 until the next stable release.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6074
Location: Removed by Neddy

PostPosted: Sun Feb 11, 2007 10:50 am    Post subject: Reply with quote

sugar wrote:
col wrote:
no the rt2x00 module is the cvs/experimental version & not marked as stable yet.

the rt2500 driver is not yet working on 2.6.20 .... I am going back to 2.6.19


the rt2500pci legacy drivers are the original drivers released by realtek. Serial monkey decided to rewrite the drivers from scratch (as rt2x00) and include all the relevant modules together. The legacy drivers are no longer being developed. The rt2x00 drivers have reached beta stage, and should be stable very soon.


you mean RaLink

But anywho the rt2500 compiles but I get a sandbox violation before it can be merged into my system
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
Psycho Dad
Apprentice
Apprentice


Joined: 10 Dec 2005
Posts: 168
Location: BW

PostPosted: Sun Feb 11, 2007 6:39 pm    Post subject: Reply with quote

The new snapshot (net-wireless/rt2500-1.1.0_pre2007020911) compiles and works for me with 2.6.20-gentoo.
But I have to activate the connection with RaConfig2500 on every boot by clicking "Connect" and entering the WEP-key.
1.1.0-beta4 + 2.6.20 compiles now but finds no AP (no ping) and gives error messages like described in the bug-report.
With 1.1.0-beta4 and 2.6.18-r6 in connects automatically (configuration is the same).
Unfortunately WPA does not work in any case.
_________________
Gruß Thomas
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6074
Location: Removed by Neddy

PostPosted: Sun Feb 11, 2007 7:09 pm    Post subject: Reply with quote

I used FEATURES="-sandbox" and all compiled fine and I can auto-connect to my WPA-encripted router now
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
titoucha
Advocate
Advocate


Joined: 21 Jul 2005
Posts: 2374
Location: Genève

PostPosted: Mon Feb 12, 2007 5:06 am    Post subject: Reply with quote

Psycho Dad wrote:
The new snapshot (net-wireless/rt2500-1.1.0_pre2007020911) compiles and works for me with 2.6.20-gentoo.
But I have to activate the connection with RaConfig2500 on every boot by clicking "Connect" and entering the WEP-key.
1.1.0-beta4 + 2.6.20 compiles now but finds no AP (no ping) and gives error messages like described in the bug-report.
With 1.1.0-beta4 and 2.6.18-r6 in connects automatically (configuration is the same).
Unfortunately WPA does not work in any case.


I have exactly the same problem :(
_________________
Assurez-vous que le titre de votre message soit conforme aux conventions de ce forum (paragraphe 3/3 : Comment poster sur le forum ??)
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Mon Feb 12, 2007 10:21 am    Post subject: Reply with quote

yeah same problem with me....also it drops out randomly
Back to top
View user's profile Send private message
Psycho Dad
Apprentice
Apprentice


Joined: 10 Dec 2005
Posts: 168
Location: BW

PostPosted: Thu Mar 22, 2007 2:26 pm    Post subject: Reply with quote

It starts now automatically with the latest nightly snapshot from

http://rt2x00.serialmonkey.com/wiki/...itle=Downloads

But I had to enter

Code:

iwconfig ra0 AP Mac-address of router


in /etc/conf.d/local.start
At least with kernel 2.6.18-gentoo-r6 (did not test newer kernel yet).
Dont know if it works with the original ebuild too, but in contrast to beta4 specifying the routers MAC-adress seems to be important.
Emerged rt2500 with USE="-qt3"
_________________
Gruß Thomas
Back to top
View user's profile Send private message
Psycho Dad
Apprentice
Apprentice


Joined: 10 Dec 2005
Posts: 168
Location: BW

PostPosted: Sat Mar 31, 2007 12:21 pm    Post subject: Reply with quote

Even if it automatic connect works with the

Code:
iwconfig ra0 AP Mac-address of router


command, the connection is unstable then (can be restored with the above command).
Here is a patched beta4 that should compile and! work with 2.6.19 and 2.6.20.

ftp://mum.dyns.cx/rt2500
_________________
Gruß Thomas
Back to top
View user's profile Send private message
syouth
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 275

PostPosted: Fri Apr 06, 2007 12:27 pm    Post subject: Reply with quote

I modified the rt2500 ebuild a little and made it compile form cvs daily snapshot.

Here it is: http://www.physic.ut.ee/~ilvez/files/rt2500-9999.ebuild
_________________
psylove
Back to top
View user's profile Send private message
syouth
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 275

PostPosted: Sat Apr 07, 2007 9:10 am    Post subject: Reply with quote

Maybe I should make a new topic, but since some last update or something, my wireless doesn't connect anymore. I have to do it by hand:

Code:
$ sux -
#RaConfig2500
And use connect there.

Code:
kosmos ~ # cat /etc/conf.d/net
#config_eth0=( "192.168.0.2/24" )
#config_ra0=( "dhcp" )
config_eth0=( "dhcp" )
config_ra0=( "192.168.0.40/24" )
routes_ra0=( "default via 192.168.0.1" )
kosmos ~ # cat /etc/conf.d/wireless
essid_ra0="55 637 827"
#channel_ra0="11":


And when machine is booting up, it says something about this essid_ra0 and shows only first 55 there. Maybe I'm using deprecated configuration or something....
_________________
psylove
Back to top
View user's profile Send private message
Psycho Dad
Apprentice
Apprentice


Joined: 10 Dec 2005
Posts: 168
Location: BW

PostPosted: Sat Apr 07, 2007 9:47 am    Post subject: Reply with quote

This problem with the cvs-drivers is known.
I already made a bugreport, lets see if it helps:

http://rt2x00.serialmonkey.com/phpBB2/viewtopic.php?t=3552

For now its better to use the original 1.1.0-beta4, or if you have a kernel >2.6.18 use the patched source from

ftp://mum.dyns.cx/rt2500
_________________
Gruß Thomas
Back to top
View user's profile Send private message
syouth
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 275

PostPosted: Sat Apr 07, 2007 2:50 pm    Post subject: Reply with quote

Thank you for your quick reply. I will try those other sources then...
_________________
psylove
Back to top
View user's profile Send private message
syouth
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 275

PostPosted: Sun Apr 08, 2007 9:42 am    Post subject: Reply with quote

Those patches don't seem to work with 2.6.20. It dies to this message:

Code:
/var/tmp/portage/net-wireless/rt2500-9999/work/rt2500-1.1.0-b4-rob/Module/rtmp_init.c:978:62: error: macro "INIT_WORK" passed 3 arguments, but takes just 2


This error is corrected in CVS drivers though...

EDIT: I think I must make a new topic, because I think the problem I have is unrelated... My problems started after one update where baselayout got upgraded I think. It occurs with gentoo-sources-2.6.20-r4 and -r5. rt2500 are from daily snapshot.

On bootup it prints out:

Code:
 *   Configuring wireless network for ra0
iwconfig: unknown command "637"
 *   ra0 does not support setting ESSID to "55 637 827"
 *     ra0 connected to ESSID ""
 *     in managed mode on channel 1 (WEP disabled)
 *   Bringing up ra0
 *     192.168.0.40/24                                                                         [ ok ]
 *   Adding routes
 *     default via 192.168.0.1 ...                                                             [ ok ]

_________________
psylove
Back to top
View user's profile Send private message
Psycho Dad
Apprentice
Apprentice


Joined: 10 Dec 2005
Posts: 168
Location: BW

PostPosted: Sun Apr 08, 2007 8:24 pm    Post subject: Reply with quote

The patch file "rt2500-b4-patch.gz" at

ftp://mum.dyns.cx/rt2500

is against the original 1.1.0-b4 not against cvs!
The file rt2500-b4-rob.tar.gz is the ready-patched 1.1.0-b4, the only difference to 1.1.0-b4 is that it works with 2.6.19.x/2.6.20.x.
I have it successfully working with the latest stable baselayout (1.12.9) and kernel 2.6.18-gentoo-r7 on my laptop and 2.6.20-gentoo-r4 on a desktop computer.
The cvs drivers work with 2.6.20 as they are, but have the described problems with autostart and unstable connection (with older kernels too).
_________________
Gruß Thomas
Back to top
View user's profile Send private message
bendy
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 274
Location: Gloucester, UK

PostPosted: Wed Apr 18, 2007 4:18 pm    Post subject: Reply with quote

Hi - just discovered this thread after running into some rt2500 problems. I updated my girlfriend's laptop at the week end for the first time in around 6 months. This updated the kernel to gentoo-sources-2.6.19-r5 and the rt2500 driver to rt2500-1.1.0_pre2007020911.

However when I boot into the new kernel the pcmcia wireless card does not get activated - the lights don't even come on. During the boot process I can see that udev had loaded the rt2500 module (and it also appears in lsmod) and the pcmcia card is visible in lspci.

I still have the older 2.6.17 kernel with an older rt2500 module (I forget which one), and when I boot using the old kernel and rt2500 module it works fine. I assume this means that it's not a pcmciautils, udev or wireless-tools issue.

I notice that gentoo-sources-2.6.20-r6 has been marked as stable on x86 today. Can anyone confirm which combinations of kernel and rt2500 module work well together?

Thanks.
Back to top
View user's profile Send private message
Psycho Dad
Apprentice
Apprentice


Joined: 10 Dec 2005
Posts: 168
Location: BW

PostPosted: Wed Apr 18, 2007 9:23 pm    Post subject: Reply with quote

rt2500-beta4 from portage works with kernel 2.6.18 and older ones (dont know about 2.6.19 but I heard it also makes problems there).
It does not work with 2.6.20.
The patched rt2500-beta4 from the link above

ftp://mum.dyns.cx/rt2500

works with 2.6.20, 2.6.19, 2.6.18 and some older ones.
The current cvs from

http://rt2x00.serialmonkey.com/

does work with 2.6.20, 2.6.19, 2.6.18 and some older ones, but when you use WEP the connection has to be activated with

Code:
iwconfig ra0 AP Mac of your router


But maybe this problem is solved soon.

http://rt2x00.serialmonkey.com/phpBB2/viewtopic.php?t=3552

At least this is the current situation for me.
Short hint for now:
use the patched rt2500-beta4 from ftp://mum.dyns.cx/rt2500 with the current stable gentoo-sources.
_________________
Gruß Thomas


Last edited by Psycho Dad on Thu Apr 19, 2007 11:44 am; edited 1 time in total
Back to top
View user's profile Send private message
bendy
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 274
Location: Gloucester, UK

PostPosted: Thu Apr 19, 2007 11:34 am    Post subject: Reply with quote

Thanks for the summary Psycho Dad - a very clear explanation!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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 vote in polls in this forum