Current propper way for gentoo & for an very old version

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=5229

henfri

14-03-2009 12:35:46

Hello,

I need to install rt2x00 under Gentoo.
In fact, I've installed it in this system a very long time ago (2006?), but now I need WPA2, so I need to update the driver.

So, I tried to find out the proper way to install the driver under gentoo and found, that there is an ebuild.
Brilliant, I thought, but probably, my portage and my profile will probably be outdated and it is questionable, whether I can recover this.

Anyway
Is this (ebuild) the prefered way of installing the driver under gentoo currently? What kernel version is needed?

Besides this What alternative do I have?
I suppose, installing the driver manually should work fine, but how does it 'integrate' into gentoo?
What mechanism should I use to configure the driver (no X-Server)
/etc/Wireless/RT2500STA/RT2500STA.dat
iwpriv
iwconfig
/etc/Wireless/*
?

There seems to be a HowTo in the gentoo wiki, but that's down.

Can you recommend a way?

Regards,
Hendrik

IvD

14-03-2009 13:25:18

I need to install rt2x00 under Gentoo.
In fact, I've installed it in this system a very long time ago (2006?), but now I need WPA2, so I need to update the driver.
[/quote1g72tyry]

Why does that mean you need to update the driver?
WPA2 has always been supported.


So, I tried to find out the proper way to install the driver under gentoo and found, that there is an ebuild.
Brilliant, I thought, but probably, my portage and my profile will probably be outdated and it is questionable, whether I can recover this.
[/quote1g72tyry]

Well you can do it much easier
install gentoo-sources 2.6.24 or above and enable rt2x00 inside the kernel.


Anyway
Is this (ebuild) the prefered way of installing the driver under gentoo currently? What kernel version is needed?
[/quote1g72tyry]

No, the ebuild is not the prefered way. If you use kernel 2.6.24 or above the kernel contains the rt2x00 drivers. Preferably you should use the latest stable kernel.


/etc/Wireless/RT2500STA/RT2500STA.dat
[/quote1g72tyry]

That file is only used by the legacy drivers which are deprecated. When using the in-kernel drivers this file will have no use.


iwpriv
iwconfig
/etc/Wireless/*
[/quote1g72tyry]

For configuring your wireless interface you can use all tools Gentoo provides. On gentoo-wiki.com and their installation documentation contains detailed howtos on configuring a wireless interface, and those howtos will work for rt2x00 drivers as well. Note that they provide howtos for command-line configuration and enable the wireless interface to start automatically on boot.

henfri

14-03-2009 14:24:23

Hello,

thanks for the quick reply.


Why does that mean you need to update the driver?
WPA2 has always been supported.[/quote3r0jresz]

Hm... couldn't get it to work back then.... But good to know, I'll give it a try.


Well you can do it much easier
install gentoo-sources 2.6.24 or above and enable rt2x00 inside the kernel.[/quote3r0jresz]

Sounds good.
I'm a bit reluctant to update the kernel though ('never touch a running system'), because I use a lot of drivers in that system that are maybe not compatible anymore (dvb, lirc).

But if I understand you correctly above, there's no need to update anyway, is there?


No, the ebuild is not the prefered way. If you use kernel 2.6.24 or above the kernel contains the rt2x00 drivers. Preferably you should use the latest stable kernel.[/quote3r0jresz]

Ok, but if I don't want to update the kernel (for the above reason It's quite a step from 2.6.8(?) to 24.), then the ebuild would be the way to go?



/etc/Wireless/RT2500STA/RT2500STA.dat
[/quote3r0jresz]

That file is only used by the legacy drivers which are deprecated. When using the in-kernel drivers this file will have no use.[/quote3r0jresz]

Interesting. From the ebuild
[code3r0jresz]einfo "to set up the card you can use:"
einfo "- iwconfig from wireless-tools"
einfo "- iwpriv, like described in \"/usr/share/doc/${PF}/iwpriv_usage.txt.gz"\"
einfo "- /etc/Wireless/RT2500STA/RT2500STA.dat, like described in \"/usr/share/doc/${PF}/README.gz\""
einfo "- RT2500 provided qt API: RaConfig2500"
[/code3r0jresz]
So that's wrong.

Greetings,
Hendrik

IvD

14-03-2009 14:37:01

No, the ebuild *is* the deprecated legacy driver, and that driver indeed can use /etc/Wireless/RT2500STA/RT2500STA.dat
so the ebuild is correct in that respect.

2.6.8 is a very old kernel, and then the ebuild is indeed your only solution. As for WPA2 support, it might be needed to upgrade. My comment was about the rt2x00 drivers which apparently you are not using (I'll move this topic to the correct forum).

henfri

14-03-2009 15:08:20

Hello,

to clarify
The driver, that is installed currently is from this site. I don't think the legacy driver was downloadable from this site, was it?
Ah, I see. You also provice enhanced legacy drivers. So, I see.

[quoteafeaoyf7]2.6.8 is a very old kernel, and then the ebuild is indeed your only solution. As for WPA2 support, it might be needed to upgrade.[/quoteafeaoyf7]

So, if I understand correctly there are three options
1) Use the legacy driver from this page. Here I can either use the ebuild or CVS hourly snapshot
2) Use a recent kernel
3) clone the latest rt2x00 (non-legacy) driver including the kernel from the git.

Is this correct?

Anyway As I'd rather not update the kernel, I need to use 1).
So, how should I configure the driver here? What of the options quoted above do you recommend?

Greetings,
Hendrik

IvD

14-03-2009 15:12:50


to clarify
The driver, that is installed currently is from this site. I don't think the legacy driver was downloadable from this site, was it?
Ah, I see. You also provice enhanced legacy drivers. So, I see.
[/quote2safnj9i]

Yes, for the moment we still provide the legacy drivers which are the same as the Ralink drivers + patches from this project (Note that this [u2safnj9i]will[/u2safnj9i] change in the near future).


So, if I understand correctly there are three options
1) Use the legacy driver from this page. Here I can either use the ebuild or CVS hourly snapshot
2) Use a recent kernel
3) clone the latest rt2x00 (non-legacy) driver including the kernel from the git.

Is this correct?
[/quote2safnj9i]

Yes. I just checked and the ebuild as provided by Gentoo is a too old version, so the CVS hourly snapshot is the best way to go.


So, how should I configure the driver here? What of the options quoted above do you recommend?
[/quote2safnj9i]

iwconfig & iwpriv. In the hourly snapshot you will find the iwpriv_howto.txt file which gives detailed explanation how WPA2 should be configured. Please note that iwconfig should be used as much as possible (essid, channel, bitrate, etc), and iwpriv should only be used for the WPA2 configuration.

henfri

14-03-2009 15:37:34

Hello,
iwconfig & iwpriv. In the hourly snapshot you will find the iwpriv_howto.txt file which gives detailed explanation how WPA2 should be configured. Please note that iwconfig should be used as much as possible (essid, channel, bitrate, etc), and iwpriv should only be used for the WPA2 configuration.[/quote3bcydlor]

Ok, thanks for your support. I really appreciate it.

One last question can you judge, whether I even need to update the driver for WPA2?
I think my driver is from mid 2007.

Greetings,
Hendrik

IvD

14-03-2009 15:44:05

That I wouldn't know for sure.
I know there have been WPA2 fixes in the past, but I have no idea when those have gone in.
I suggest you just try the driver you have now first.