Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 58483
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Mobile Herd <mobile@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stephan Diederich <S.Diederich@gmx.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
rt2500-1.4.1.0.ebuild rt2500-1.4.1.0.ebuild text/plain Stephan Diederich 2004-07-26 18:48 0000 2.25 KB Details
rt2500-1.4.1.0-gentoo.diff Patch needed by Utility in rt2500 ebuild patch Stephan Diederich 2004-07-26 18:49 0000 560 bytes Details | Diff
rt2500-1.4.1.0-r1.ebuild rt2500-1.4.1.0-r1.ebuild text/plain Stephan Diederich 2004-07-27 04:02 0000 2.66 KB Details
rt2500-1.4.2.0.ebuild rt2500-1.4.2.0.ebuild text/plain Stephan Diederich 2004-08-03 17:40 0000 2.15 KB Details
rt2500-1.4.2.0-r1.ebuild rt2500-1.4.2.0-r1 text/plain Stephan Diederich 2004-09-08 05:46 0000 2.18 KB Details
spinlock.diff spinlock.diff patch Stephan Diederich 2004-09-08 05:47 0000 681 bytes Details | Diff
spinlock.diff spinlock.diff patch aurélien francillon 2004-09-12 06:30 0000 609 bytes Details | Diff
rt2500-1.4.3.0.ebuild rt2500-1.4.3.0 new driver release text/plain Stephan Diederich 2004-09-16 19:10 0000 2.29 KB Details
rt2500-1.4.3.0-amd64.patch Patch for amd64 compatibility patch Alexander M. Turek 2004-09-26 07:52 0000 1.89 KB Details | Diff
rt2500-1.4.3.0-spin-lock.patch spin_lock patch patch Alexander M. Turek 2004-09-26 11:22 0000 681 bytes Details | Diff
RT2500-Linux-STA-1.4.3.0.amd64.han.tar.gz contains the STA of the unpacked rt2500 ebuild patch Norbert Schumacher 2004-12-04 18:51 0000 473.46 KB Details | Diff
rt2500-1.4.4.0.ebuild ebuild for the rt2500-1.4.4.0 driver text/plain Michael Schilling 2004-12-08 09:45 0000 2.21 KB Details
rt2500-1.4.4.0-spin-lock.patch rt2500-1.4.4.0-spin-lock.patch patch Alexander M. Turek 2004-12-09 08:39 0000 620 bytes Details | Diff
rt2500-1.4.4.0-r1.ebuild rt2500-1.4.4.0-r1.ebuild text/plain Michael Schilling 2004-12-09 14:26 0000 2.17 KB Details
rt2500-1.1.0_beta1.ebuild rt2500-1.1.0-beta1.ebuild (very messy ebuild, for testing only) text/plain Harold Aling 2005-01-23 12:59 0000 1.86 KB Details
rt2500-1.1.0_beta1.ebuild rt2500-1.1.0_beta1.ebuild text/plain Stefan Schweizer 2005-01-23 13:24 0000 1.01 KB Details
rt2500-1.1.0_beta1.ebuild rt2500-1.1.0_beta1.ebuild text/plain Stefan Schweizer 2005-01-24 03:16 0000 1.00 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 58483 depends on: 59847 Show dependency tree
Bug 58483 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-07-26 18:47 0000
Hi there,

the appended rt2500 ebuild includes the installation of the driver for the RaLink Rt2500 wlan-chipset and its configuration utility.

net-wireless/rt2500 should do it.
it depends on the kernelsources,and on qt (for the config-utility).
Its tested with a 2.6 kernel, but should work with 2.4,too.
I had to apply a patch to a file from the utility, as there was a wrong include, i will try to append this too

Greets,
DD

------- Comment #1 From Stephan Diederich 2004-07-26 18:48:41 0000 -------
Created an attachment (id=36236) [details]
rt2500-1.4.1.0.ebuild 

------- Comment #2 From Stephan Diederich 2004-07-26 18:49:46 0000 -------
Created an attachment (id=36237) [details]
Patch needed by rt2500-1.4.1.0-gentoo.ebuild

------- Comment #3 From Peter Johanson (RETIRED) 2004-07-26 19:06:09 0000 -------
I've not had time too look into this driver much at all, but a few things:

1) If the utility is not *needed* (i noticed from the quick poke at their docs that iwlist/iwconfig are said to work), can you please put all the utility dependancies and build code behind the 'qt' USE flag?

2) As of 2.6.6 and newer, the recommended way to build modules is to use M= instead of SUBDIRS=, can you please change the ebuild to check for a new enough kernel and use the appropriate technique?

Thanks for the ebuild submission, with some small cleanups we'll see about getting it into portage. I'm a tad worried about the license, but we'll cross that bridge when we get there... (:

------- Comment #4 From Stephan Diederich 2004-07-27 03:56:59 0000 -------
I just made a new revision of the ebuild with your recommended changes.

With the license i'm not really sure, but I wrote an email to ralinktech yesterday. Hope they will answer soon.

------- Comment #5 From Stephan Diederich 2004-07-27 04:02:35 0000 -------
Created an attachment (id=36251) [details]
rt2500-1.4.1.0-r1.ebuild 

------- Comment #6 From Stephan Diederich 2004-07-27 04:05:52 0000 -------
(From update of attachment 36237 [details])
This patch is still needed in by new revision, as otherwise the utility wont
compile

------- Comment #7 From Stephan Diederich 2004-07-29 17:28:57 0000 -------
There seems to be a problem with the driver and/or the kernel.
Just found this thread on ralinktech.com.tw:
http://61.222.76.235/phpbb2/viewtopic.php?t=12

I don't think this is the "solution", but you can give it a chance... 


------- Comment #8 From Stephan Diederich 2004-08-03 17:40:47 0000 -------
Created an attachment (id=36721) [details]
rt2500-1.4.2.0.ebuild 

Ralink released a new version. They did not change anything in the sources, but
added 2 includes (so the patch isnt necessary anymore).

------- Comment #9 From Stephan Diederich 2004-09-08 05:46:10 0000 -------
Created an attachment (id=39197) [details]
new release with a patch included

Just read from a fix for the local_bh_enable() problems in ralink forum.
So this ebuild applies the patch
Thanks to Dan Morrill, who figured it out.

------- Comment #10 From Stephan Diederich 2004-09-08 05:47:05 0000 -------
Created an attachment (id=39198) [details]
patch for local_bh_enable probs

------- Comment #11 From Stephan Diederich 2004-09-08 05:48:30 0000 -------
(From update of attachment 39198 [details])
patch for local_bh_enable probs

------- Comment #12 From aurélien francillon 2004-09-12 06:30:03 0000 -------
Created an attachment (id=39439) [details]
same as above but in unix format; cleaner build 

------- Comment #13 From aurélien francillon 2004-09-12 06:31:03 0000 -------
(From update of attachment 39439 [details])
same as above but in unix format; cleaner build 

------- Comment #14 From Stephan Diederich 2004-09-13 03:13:46 0000 -------
(From update of attachment 39198 [details])
replaced

------- Comment #15 From Stephan Diederich 2004-09-16 19:10:58 0000 -------
Created an attachment (id=39733) [details]
rt2500-1.4.3.0 new driver release

Ralink released a new driver version, so here it is.
One warning: This ebuild is now masked with -x86, as when inserting the module
here, kernel panics. 
Maybe someone could also try his luck...

------- Comment #16 From Alexander M. Turek 2004-09-26 07:52:57 0000 -------
Created an attachment (id=40452) [details]
Patch for amd64 compatibility

Thanks for your ebuild. I tried it out on my amd64 machine, but I got a kernel
Oops when inserting the compiled module.
I attached a patch that solves the problem for me. I grabbed it from the RaLink
forums.

------- Comment #17 From Alexander M. Turek 2004-09-26 11:22:34 0000 -------
Created an attachment (id=40466) [details]
spin_lock patch

Here's another patch I found in the RaLink forums.
It fixes problems with my system being extremely slow during data transfers
through the wireless LAN module.

------- Comment #18 From Alexander M. Turek 2004-09-26 11:27:40 0000 -------
By the way, these are the forum topics I am referring to:

amd64 compatibility:
http://61.222.76.235/phpbb2/viewtopic.php?t=57

spin_lock:
http://61.222.76.235/phpbb2/viewtopic.php?t=13

------- Comment #19 From Pythagoras Mayrhofer 2004-10-19 09:13:32 0000 -------
here is a gentoo related wiki page for the rt2500 chipset:

http://gentoo-wiki.com/HARDWARE_rt2500

and http://gentoo-wiki.com/HARDWARE_rt2500_on_AMD64 for users of x86_64.

gentoo users (or someone else) can share their expierences with this chipset and drivers there.

------- Comment #20 From kevin@kevin-online.com 2004-10-21 00:35:03 0000 -------
The 1.4.3 drivers locks my kernel as soon as I bring the device up (as
described here).
The 1.4.2 drivers work, but it is necessary to disable IO-APIC (and probably
SMP if your capable of this). Might be worth a check and a warning message at
post-install. I don't know if this is card-dependent (I had the problem using a
MSI PC54G).

------- Comment #21 From Michael Schilling 2004-10-26 04:18:10 0000 -------
I had the same problem with the MSI PC54G. Only the 1.4.2 driver worked and I
had to comment the line 'WARN_ON(irqs_disabled());' in softirq.c of my
kernelsource (not a very nice hack...)

------- Comment #22 From Cocker68 2004-11-03 13:35:00 0000 -------
In rt2500-1.4.3.0.ebuild I had to add a line to actually perform the package's
Configure-script. Otherwise building for 2.4-Kernel fails:



# diff -ru rt2500-1.4.3.0.ebuild rt2500-1.4.3.0.ebuild.changed
--- rt2500-1.4.3.0.ebuild       2004-11-03 22:28:02.000000000 +0100
+++ rt2500-1.4.3.0.ebuild.changed       2004-11-03 22:30:01.000000000 +0100
@@ -63,6 +63,7 @@
                emake -C /usr/src/linux SUBDIRS=${S}/STA/Module modules || die
        else #this has to be 2.4, as otherwise we wont be here
                chmod +x ./Configure
+               ./Configure
                emake all || die
        fi

------- Comment #23 From kevin@kevin-online.com 2004-11-06 11:46:26 0000 -------
is this stable for someone on a 2.6 with a MSI PC54G2? If so, could he/she post
the kernel config?
I'm still getting random freezes (using the spinlock patch and even with
commenting the WARN thingy out).

------- Comment #24 From kevin@kevin-online.com 2004-11-22 13:15:30 0000 -------
The driver version 1.4.1 seems to be stable with the MSI PC54G2 (but it is
still necessary to comment the softirq WARN_ON out).

------- Comment #25 From kevin@kevin-online.com 2004-12-01 05:12:06 0000 -------
the _bh locks won't work stable here, I needed to change them to _irq:
+ spin_unlock_irq(lock); \
...
+ spin_lock_irq(lock); \

------- Comment #26 From Norbert Schumacher 2004-12-04 18:51:40 0000 -------
Created an attachment (id=45304) [details]
contains the STA of the unpacked rt2500 ebuild

i couldnt get the patches to work, and i did try to modify the c code.
Luckily I found someone who posted this file and i got it to work, and compile
with only a few warnings, could be my aggressive CFLAGS =P

Anyway, what i did, is i used the latest ebuild, and put it in a portage
overlay directory.next is some sudo code to what i did

ebuild rt2500 unpack
untar RT-2500-Linux-STA-blah to /var/tmp/portage/rt2500.../STA
ebuild rt2500 compile
ebuild rt2500 install
ebuild rt2500 qmerge

and your done, quick, mostly painless, and it works

------- Comment #27 From Michael Schilling 2004-12-08 09:41:32 0000 -------
A few days ago, Ralink released a new driver (1.4.4) and with a few changes of
the .4.3-ebuild I could built it without errors (ebuild is attached). I can
load the module into the kernel, but my system freezes as soon as I try to
'ifconfig ra0 up'. I had the same problem with the 1.4.3 driver and the 1.4.2
driver only works as long as I don't try to copy large files (>50MB). Therefore
I went back to the 1.4.1 driver which is working flawlessly for me.
I never had something like this before, that the driver got worse with every
new version...

(I'm using gentoo-dev-sources 2.6.8-r10 and the MSI-PC54G2 wlan card)

------- Comment #28 From Michael Schilling 2004-12-08 09:45:30 0000 -------
Created an attachment (id=45545) [details]
ebuild for the rt2500-1.4.4.0 driver

------- Comment #29 From Alexander M. Turek 2004-12-09 08:39:00 0000 -------
Created an attachment (id=45611) [details]
rt2500-1.4.4.0-spin-lock.patch

The new version of the driver includes the two patches I submitted some time
ago. The big change of 1.4.4.0 is the license: RaLink published the driver
under the GPL (Michael, your ebuild still says "freedist" here)!

Michal, the driver causes freezes on my system, too, but only with heavy
network traffic. Please try merging the attached patch file into your ebuild. I
grabbed it from the RaLink forum and it worked fine for me.

------- Comment #30 From Michael Schilling 2004-12-09 14:24:28 0000 -------
I added the spin-lock patch and the changed ebuild compiled without errors, but
my system still freezes when I execute 'ifconfig ra0 up'. Therefore I will
stick with 1.4.1 for now.
Ralink released today version 1.4.5, but it looks quite different to the
releases before and seems to have no qt utility. Maybe someone can get this to
work. I don't really have the time for many tests at the moment :-(

------- Comment #31 From Michael Schilling 2004-12-09 14:26:00 0000 -------
Created an attachment (id=45631) [details]
rt2500-1.4.4.0-r1.ebuild

------- Comment #32 From Stefan Schweizer 2004-12-18 02:00:25 0000 -------
*** Bug 74453 has been marked as a duplicate of this bug. ***

------- Comment #33 From Wietse Venema (NOT the Postfix WV) 2004-12-21 03:02:16 0000 -------
A generic rt2x00 driver is being developed at sourceforge, supporting both
rt2400 and rt2500 card. Said to be due to release. Status of rt2500 development
is currently just a mirror of the RaLink 1.4.4 (strangely enough called 1.0.0),
but that might improve soon. 

http://rt2x00.serialmonkey.com

------- Comment #34 From Wietse Venema (NOT the Postfix WV) 2004-12-21 03:04:54 0000 -------
A generic rt2x00 driver is being developed at sourceforge, supporting both
rt2400 and rt2500 card. Said to be due to release. Status of rt2500 development
is currently just a mirror of the RaLink 1.4.4 (strangely enough called 1.0.0),
but that might improve soon. 

http://rt2x00.serialmonkey.com

------- Comment #35 From Dmitrii Tisnek 2005-01-20 12:01:49 0000 -------
1) utility bit should be conditional on X and qt
2) my libXext is in /usr/X11R6/lib64/ , and there is no way to convince the ebuild of that.

------- Comment #36 From Harold Aling 2005-01-23 12:59:05 0000 -------
Created an attachment (id=49316) [details]
New version available!!! (very messy ebuild, should be rebuild/rewritten)

------- Comment #37 From Stefan Schweizer 2005-01-23 13:24:56 0000 -------
Created an attachment (id=49319) [details]
rt2500-1.1.0_beta1.ebuild

update to linux-mod, please test and comment.

------- Comment #38 From Harold Aling 2005-01-24 02:47:56 0000 -------
Thanx, Stefan!

1. The new 1.1.0_beta1.ebuild tries to install kde-base/kde-env... When I remove 'kde' from inherit, the dependency disappears...
2. Disabling the qt flag doesn't hide the 'dobin' command...

------- Comment #39 From Stefan Schweizer 2005-01-24 03:16:09 0000 -------
Created an attachment (id=49351) [details]
rt2500-1.1.0_beta1.ebuild

Is this ebuild ok for you?

------- Comment #40 From Harold Aling 2005-01-24 03:21:03 0000 -------
3. The module isn't autoloaded by the kernel when starting /etc/init.d/net.ra0
(without modprobing rt2500 first). Shouldn't the alias be 'ra0' instead of
'ra'? 

------- Comment #41 From Stefan Schweizer 2005-01-24 03:32:00 0000 -------
Does "alias ra* rt2500" work?

------- Comment #42 From Harold Aling 2005-01-24 03:45:54 0000 -------
Perfect, Stefan! 

Should we create a new bug with this version? Or try to get it into portage? According to the rt2x00 group this should be a major rewrite of the origional ralink driver (and much more stable)

------- Comment #43 From Stefan Schweizer 2005-01-24 03:57:12 0000 -------
in portage, thanks.

------- Comment #44 From Harold Aling 2005-01-25 11:48:54 0000 -------
Stefan,

New version (1.1.0-b1) werking perfectly here... Could you change the line to 'MODULESD_RT2500_ALIASES=("ra* rt2500")' (change ra to ra*) and contact the kind gentoo people to get this into Portage? I've seen your name at the Prism54 driver, so can you arrange this?

Thanx...

------- Comment #45 From Stefan Schweizer 2005-01-25 11:51:54 0000 -------
I already added this to portage with this change.

------- Comment #46 From Alexander M. Turek 2005-01-25 15:36:30 0000 -------
Hi,

This new ebuild works perfectly. Thanks a lot!
But could you do me a favor and add ~amd64 to its keywords?

Thanks,

Alexander

------- Comment #47 From Stefan Schweizer 2005-01-25 15:44:14 0000 -------
I am not allowed to do it,

amd64 people, can you please add ~amd64 to keywords?

Alexander: you should open a new bug for this issue so that it can be tracked easier .. talking on resolved fixed bugs is no good style imo.

------- Comment #48 From Alexander M. Turek 2005-01-25 16:17:00 0000 -------
Stefan,

your're absolutely right. It's just that earlier versions of the ebuild that have been posted here already had this flag. On top of that, I have submitted a set of patches for amd64 compatibility for the old RaLink driver and confirmed that it works on my amd64. This is why I wondered why the flag has been removed in the final ebuild without evaluating if the ebuild works on amd64 platforms or not.

But if you want me to, I can open a new bug report for that. :-)

Regards,

Alexander M. Turek

------- Comment #49 From carlos 2005-02-01 22:06:21 0000 -------
I'm not sure if I can post here, But when emerging the last ebuild I get a
sandbox violation. Not quite sure how to solve it.

Thanks.
Carlos

------- Comment #50 From carlos 2005-02-01 22:08:37 0000 -------
--------------------------- ACCESS VIOLATION SUMMARY------------------------
LOG FILE = "/tmp/sandbox-net-wireless_-_rt2500-1.1.0_beta1-22393.log"

open_wr:   /usr/qt/3/etc/settings/.qtrc.lock
-----------------------------------------------------------------------------
Sorry, meant to post the error.

------- Comment #51 From Stefan Schweizer 2005-02-02 06:27:54 0000 -------
Harold Aling: Can you please try if it depends on kde now again?

carlos: thanks, I fixed it, can you please open a new bug for all issues that come up and not pollute this closed one?

------- Comment #52 From Harold Aling 2005-02-02 09:27:26 0000 -------
I survived emerging rt2500 again without any bulky overhead! (no kde stuff, not
even kde-env)

Thumbs up...

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug