Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Mandrake 10 rt2570 Howto

From Rt2x00Wiki

Mandrake 10 (2005 Limited) HowTo for RT2750 USB stick

by John Halfpenny

Firstly I'd like to give credit to Phillipe's Mandrake guide which got me started on this, and a few of the bits near the beginning are the same as his HowTo. Unfortunately that guide wouldn't get the usb stick working for me (probably as it's for a different driver entirely, and I suspect a different release of MDK), so here's a quick guide to how I got the usb wireless going on my vaio.

I don't use any other packages here, this will just launch the wireless on boot and have you up and running by the time KDE (or Gnome if you must - ;-)) comes on.

Open a terminal and log in as root

# su - root password 

Download the nightly tarball and extract to /usr/src

# cd /usr/src
# wget http://rt2x00.serialmonkey.com/rt2570-cvs-daily.tar.gz
# tar zvxf rtxxxxx.tar.gz

Make sure you have the kernel source in /usr/src

# rpm -qa | grep kernel
kernel-2.6.11.6mdk-1-1mdk
kernel-source-2.6-2.6.11-6mdk

If you don't then you can install it with all necessary links from System / Configuration / Packaging / Install software on KDE. Do a filter on 'kernel' and it should pop up- I'd also advise installing this from the CD you used to install Mandrake, just to make sure the versions don't get jumbled up.

Compile the module

# cd /usr/src/rtxxxxx/Module
# make
...
# make install
...

Now the module will have probably been placed in /lib/modules/(kernelversion) custom/extra, this is wrong and you can't modprobe if you leave it there, so we need to move it to /lib/modules/(kernelversion)/kernel/drivers/net/wireless/

# cp /lib/modules/(kernelversion)custom/extra/rt2570.ko /lib/modules/(kernelversion)/kernel/drivers/net/wireless/
# insmod /lib/modules/2.6.11-6mdk/kernel/drivers/net/wireless/rt2570.ko
# depmod -a

Now I've got a habit of rebooting machines when I do things like this, so whether or not you choose to is up to you- but this guide presumes you have. Open up another root terminal when the PC comes back up. Type this to make sure the module is loaded ok, if no error is returned then it looks like we're ok.

# modprobe rt2570

You can then configure your wireless card by writing a script for the device

# vi /etc/sysconfig/network-scripts/ifcfg-rausb0

Mine looks like this

DEVICE=rausb0
BOOTPROTO=static
IPADDR=10.4.0.6
BROADCAST=10.255.255.255
NETMASK=255.0.0.0
NETWORK=10.0.0.0
GATEWAY=10.4.0.1
WIRELESS=yes
ONBOOT=yes

This will keep the settings for the device for when you use the ifup-rausb0 statement. It will activate the device on boot, you can set this to no if you move about with your laptop- I would advise not running the USB stick with another activated network card though, so whenever you use the USB wireless, try to remember to do a ifdown-eth0 or similar.

That's it if you don't use authentication!

If you use PSK, then you will need a further script to set the parameters for that. My experiences of the PSK haven't been *excellent* but it does work, it can be a bit fiddly though (at time of writing driver version 1.0.0), the sleep statements in the script certainly help things along a bit.

# vi /etc/init.d/wireless-script
iwpriv rausb0 enc 3
iwpriv rausb0 auth 3
iwconfig rausb0 essid "your wireless network name"
sleep 1
iwpriv rausb0 wpapsk "your top secret password"
sleep 1
iwconfig rausb0 essid "your wireless network name"

For a full list of the config options for the card, you may need to download the driver from ralink and look through the readme. This example only covers PSK as it's what I use to stop my neighbours freeloading off my broadband connection ;-).

OK, let's get the script to load automatically when we reboot

# chmod +x /etc/init.d/wireless-script
# vi /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
/etc/init.d/wireless-script

There you go! If you go to a root terminal you can check your interface is up and running, it should also appear in the connection watcher on KDE (though obviously this doesn't show anything about the PSK working or not).

John

Retrieved from "http://rt2x00.serialmonkey.com../../../m/a/n/Mandrake_10_rt2570_Howto_8bd1.html"

This page has been accessed 29,759 times. This page was last modified 14:23, 19 November 2005 by Mark Wallis. Content is available under GNU Free Documentation License 1.2.


[Main Page]
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports