Search:  
Gentoo Wiki

Rt2x00/AMD64


Please improve it in any way that you see fit, and remove this notice {{Cleanup}} from the article. For tips on cleaning and formatting see Cleanup process



Please format this article according to the guidelines and Wikification suggestions, then remove this notice {{Wikify}} from the article


This Howto works with

0000:00:0c.0 Network controller: RaLink Ralink RT2500 802.11 Cardbus Reference Card (rev 01)

especially with the MSI PC54G2 (Subsystem: Micro-Star International Co., Ltd.: Unknown device 6833)

and is based on the "Rt2500WirelessCardsHowTo" by Yaniv Abir

link Rt2500WirelessCardsHowTo (original HowTo)

0. firstly you have to have wireless-tools installed

emerge wireless-tools

1. get your Gentoo Amd64 2005.0 running, then open a console (xterm, gnome-terminal, konsole, ...)

2. get and unpack the source of the newest daily build of the rt2x00-sourceforge-project

wget http://rt2x00.serialmonkey.com/rt2500-cvs-daily.tar.gz
tar -xzf rt2500-cvs-daily.tar.gz

this will download & unpack the package in your current working directory

3. make sure, that you have set a symbolic link to your current kernel running:

su
cd /usr/src
ls -l
ln -s linux-2.6.xx linux

4. now type in

cd ./rt2500-cvs-*/Module

5. this will bring you into the driver-folder

6. Type (you have to be root to do this, or alternatively use the sudo-command)

make 

7. the module is now built, after that type

sudo insmod rt2500.ko

or

insmod rt2500.ko (if you are root)

8. Now, if you require WPA encryption, or for any other reason need the raconfig utility, carry on to the next section if not, carry on to the "And If I Don't Need raconfig" section.

9. Installing RaConfig2500 (this didn't work for me, though it might on your system ...)

10. First you have to install kde (if you haven't it already running / installed)

emerge kde-meta

11. Install the qt-libs

emerge x11-libs/qt

12. enter the directory of RaConfig2500

cd ../rt2500-cvs-daily/Utilitys

13. now compile / modify the RaConfig-File (you eventually have to be root to do this, sudo didn't work for me)

qmake -o Makefile raconfig2500.pro

14. now build the tool:

make 

15. now firstly start the driver (otherwise RaConfig will complain that the driver hasn't been loaded)

ifconfig ra0 up

now probably your wireless-led will light up (if not, something has gone wrong ;-) )

16. now start RaConfig (you have to be root, otherwise it won't function properly and RaConfig will complain about not being root)

./RaConfig2500

17a. create a new profile (e.g. wireless-network) and scan for it with the Utility, it will automatically establish a connection with the access-point (it works with an unencrypted connection, but i don't know how to adjust for an encrypted connection)

for that you either have to edit the file /etc/conf.d/net or /etc/conf.d/wireless

18a. get an IP-Address (look at 18b.)

17b. scan for wireless-networks

iwlist ra0 scan

18b. now get an IP-Address by typing in (you have to be root, the sudo-command doesn't work with dhcpcd for me)

dhcpcd ra0

19. for further information look on the original Ubuntu rt2500 howto-site

link Rt2500WirelessCardsHowTo @ Ubuntulinux.org


--141.7.74.10 11:13, 9 Jun 2005 (GMT)JackDaChef




Contents

Patching Sources

Before building the kernel driver 1.4.3.0 the source files need to be patched. The patch is already included in version 1.4.4.0 of RaLink's rt2500 driver.

rtmp_main.c

at line 101

RTMP_ADAPTER *pAd;
CHAR *print_name;
INT chip_id = (int) ent->driver_data;
- ULONG csr_addr;
+ unsigned long csr_addr;
CSR3_STRUC StaMacReg0;
CSR4_STRUC StaMacReg1;
INT Status;

at line 128

net_dev->irq = pPci_Dev->irq;

// map physical address to virtual address for accessing register
- csr_addr = (ULONG) ioremap(pci_resource_start(pPci_Dev, 0), pci_resource_len(pPci_Dev, 0));
+ csr_addr = (unsigned long) ioremap(pci_resource_start(pPci_Dev, 0), pci_resource_len(pPci_Dev, 0));
if (!csr_addr)
{
DBGPRINT(RT_DEBUG_TRACE, "ioremap failed for device %s, region 0x%X @ 0x%lX\n",

at line 139

// Save CSR virtual address and irq to device structure
net_dev->base_addr = csr_addr;
pAd = net_dev->priv;
- pAd->CSRBaseAddress = csr_addr;
+ pAd->CSRBaseAddress = net_dev->base_addr;
pAd->net_dev = net_dev;

// Set DMA master

rtmp_tkip.c

at line 124

M = pTkip->M;

// Alignment case
- if((nBytesInM == 0) && ((((ULONG)pSrc) & 0x3) == 0))
+ if((nBytesInM == 0) && ((((unsigned long)pSrc) & 0x3) == 0))
{
while(nBytes >= 4)
{



New HowTo, it should work now with any card based on the rt2500 (non-official)

This Howto works with 0000:00:0c.0 Network controller: RaLink Ralink RT2500 802.11 Cardbus Reference Card (rev 01) especially with the MSI PC54G2 (Subsystem: Micro-Star International Co., Ltd.: Unknown device 6833)

and is based on the "Rt2500WirelessCardsHowTo" by Yaniv Abir

[ http://www.ubuntulinux.org/wiki/Rt2500WirelessCardsHowTo/view?searchterm=rt2500 link Rt2500WirelessCardsHowTo (original HowTo)]

0. firstly you have to have wireless-tools installed

emerge wireless-tools

1. get your Gentoo Amd64 2005.0 running, then open a console (xterm, gnome-terminal, konsole, ...)

2. get and unpack the source of the newest daily build of the rt2x00-sourceforge-project

wget http://rt2x00.serialmonkey.com/rt2500-cvs-daily.tar.gz
tar -xzf rt2500-cvs-daily.tar.gz

this will download & unpack the package in your current working directory

3. make sure, that you have set a symbolic link to your current kernel running:

su
cd /usr/src
ls -l
ln -s linux-2.6.xx linux

4. now type in

cd ./rt2500-cvs-*/Module

5. this will bring you into the driver-folder

6. Type (you have to be root to do this, or alternatively use the sudo-command)

make 

7. the module is now built, after that type

sudo insmod rt2500.ko

or

insmod rt2500.ko (if you are root)

8. Now, if you require WPA encryption, or for any other reason need the raconfig utility, carry on to the next section if not, carry on to the "And If I Don't Need raconfig" section.

9. Installing RaConfig2500 (this didn't work for me, though it might on your system ...)

10. First you have to install kde (if you haven't it already running / installed)(you dont' need KDE only the base and libs. This is a really bad idea if don't intend to use kde somebody fix it)

emerge kde-meta {unessisary see above}

11. Install the qt-libs

emerge x11-libs/qt

12. enter the directory of RaConfig2500

cd ../rt2500-cvs-daily/Utilitys

13. now compile / modify the RaConfig-File (you eventually have to be root to do this, sudo didn't work for me)

qmake -o Makefile raconfig2500.pro

14. now build the tool:

make 

15. now firstly start the driver (otherwise RaConfig will complain that the driver hasn't been loaded)

ifconfig ra0 up

now probably your wireless-led will light up (if not, something has gone wrong ;-) )

16. now start RaConfig (you have to be root, otherwise it won't function properly and RaConfig will complain about not being root)

./RaConfig2500

17a. create a new profile (e.g. wireless-network) and scan for it with the Utility, it will automatically establish a connection with the access-point (it works with an unencrypted connection, but i don't know how to adjust for an encrypted connection)

for that you either have to edit the file /etc/conf.d/net or /etc/conf.d/wireless

18a. get an IP-Address (look at 18b.)

17b. scan for wireless-networks

iwlist ra0 scan

18b. now get an IP-Address by typing in (you have to be root, the sudo-command doesn't work with dhcpcd for me)

dhcpcd ra0

19. for further information look on the original ubuntu rt2500 howto-site

link Rt2500WirelessCardsHowTo @ Ubuntulinux.org

Get rt2500 Module to load and start on boot

1. emerge the rt2500 module, this will place the rt2500.ko module into /etc/modules.autoload.d/<kernel version>/..., which is where modules are loaded from on boot.

emerge rt2500

2. load the rt2500 module on boot:

echo "rt2500" >> /etc/modules.autoload/kernel-2.6

3. connect to a network on boot by adding these commands to /etc/conf.d/net (if you do not use dhcp to acquire an ip address, use a static ip instead):

iface_ra0="dhcp"
dhcpcd_ra0="-R -N"

4. Create a symlink to /etc/init.d/net.eth0 for start up:

ln -s /etc/init.d/net.lo /etc/init.d/net.ra0

5. Start net.ra0 (should show up with ifconfig):

/etc/init.d/net.ra0 start

6. Add to default runlevel:

rc-update add net.ra0 default

Now reboot and see if you're wireless card connects to a network at boot!

link This tutorial comes from the Gentoo Forums from a post by overkill

Why doesn't it work with my rt2500-based card ?

Answer: wait one day and get another daily build (in my case I had to wait from 1 to 2 days, until I got a working built, ...

Question: why doesn't the driver work immediately / why do driver's exist, which don't work?

Answer: due to the fact, that the driver at the moment is under heavy development & it isn't an official build, the possibility exists that it won't work, so please don't blame the hard-working people / guys at http://rt2x00.serialmonkey.com if it (still) doesn't work for you

I'm looking forward to the next official release of the driver and hope that it won't freeze my system anymore (like the 1.1.0_beta1 / beta2-release did)...

A Word to the developers at http://rt2x00.serialmonkey.com:

Keep on doing the great work :)


--141.7.74.10 11:13, 9 Jun 2005 (GMT)JackDaChef

Retrieved from "http://www.gentoo-wiki.info/Rt2x00/AMD64"

Last modified: Tue, 19 Aug 2008 04:53:00 +0000 Hits: 20,289