Mandrake 10 Howto

From Rt2x00Wiki

This is a HOWTO for getting rt2400 working under Mandrake 10. It was contributed by Philippe Rousselot (amazilia) on the forums.

1.Get the source from http://rt2400.sourceforge.net/
http://ovh.dl.sourceforge.net/sourceforge/rt2400/rt2400-1.2.0.tar.gz
(as of 20-08-04) expand in /usr/src
# tar -xvzf rtxxx.tar.gz /usr/src/
2.Get the latest qt packages
Here is what I have on my machine
# rpm -qa | grep qt
libqt3-3.2.3-19.2.100mdk
qt3-common-3.2.3-19.2.100mdk
qt3-example-3.2.3-19.2.100mdk
libqt3-devel-3.2.3-19.2.100mdk
3.Make sure you have the source of your kernel in /usr/src/
# rpm -qa | grep kernel
kernel-2.6.3.7mdk-1-1mdk
kernel-source-2.6.3-7mdk
# ls -l /usr/src/
total 12
lrwxrwxrwx 1 root root 16 ao 18 17:13 linux -> linux-2.6.3-7mdk/
drwxr-xr-x 21 root root 4096 ao 18 17:14 linux-2.6.3-7mdk/
drwxr-xr-x 7 root root 4096 ao 18 18:34 RPM/
drwxr-xr-x 4 philippe philippe 4096 jun 23 04:45 rt2400-1.2.0/
4.Make sure you have the following link
# ls -l /lib/modules/2.6.3-7mdk/
total 796
lrwxrwxrwx 1 root root 25 ao 18 17:13 build -> /usr/src/linux-2.6.3-7mdk/
5.Compile the module
# cd /usr/src/rt2400-1.2.0/Module/
#make
...
#make install
...
6.Compile RaConfig
# cd /usr/src/rt2400-1.2.0/Utility/
#./Configure
...
#make
...
7.Start Ra0
Create and run the following script as root from anywhere.
07:29, 4 Dec 2004 (PST)07:29, 4 Dec 2004 (PST)07:29, 4 Dec 2004 (PST)07:29, 4 Dec 2004 (PST)07:29, 4 Dec 2004 (PST)serialmonkey
#!/bin/sh
#------------------------------------------------------------
# By eaglenest@users.sourceforge.net
# July-August 2004, based on tips from the
# rt2400 Linux Driver project help forum
# (rt2400.sourceforge.net) - no copyright.
#
# This script brings up and connects an
# rt2400 chipset based wireless network
# card to a DHCP server. It is not validated
# with regard to static IP addressing.
#------------------------------------------------------------ 
ifconfig ra0 down
# Install the module if not installed
insmod /usr/src/rt2400-1.2.0/Module/rt2400.o
ifconfig ra0 up
# Set wireless parameters as needed
iwconfig ra0 mode Managed
iwconfig ra0 channel auto
iwconfig ra0 rate auto
#iwconfig ra0 nick nowhereman
#iwconfig ra0 key restricted [1] XXXXXXXXXXXXX
#iwconfig ra0 key [1]
iwconfig ra0 key off
# Note: scanning must start very soon after ifconfig
iwconfig ra0 essid any
# Connect to DHCP server (comment if not DHCP)
dhclient ra0
# Settings for static IP (i.e. not DHCP)
#ifconfig ra0 x.x.x.x netmask x.x.x.x broadcast x.x.x.x
#ip route add default via 192.168.1.1 dev ra0
07:29, 4 Dec 2004 (PST)07:29, 4 Dec 2004 (PST)07:29, 4 Dec 2004 (PST)07:29, 4 Dec 2004 (PST)07:29, 4 Dec 2004 (PST)serialmonkey
# ./script
insmod: error inserting '/usr/src/rt2400-1.2.0/Module/rt2400.o': -1 File exists
Internet Software Consortium DHCP Client V3.0.1rc13
Copyright 1995-2002 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/ra0/00:08:a1:52:e6:27
Sending on LPF/ra0/00:08:a1:52:e6:27
Sending on Socket/fallback
DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 7
DHCPOFFER from 192.168.254.254
DHCPREQUEST on ra0 to 255.255.255.255 port 67
DHCPACK from 192.168.254.254
bound to 192.168.254.5 -- renewal in 1054468517 seconds.
8.Run RaConfig
[root@localhost Module]# /usr/src/rt2400-1.2.0/Utility/RaConfig&
everything should work
to make sure you really use ra0, stop any other network card
with mcc for example.
Pinging the router should work
# ping 192.168.254.254
PING 192.168.254.254 (192.168.254.254) 56(84) bytes of data.
64 bytes from 192.168.254.254: icmp_seq=1 ttl=64 time=5.10 ms
64 bytes from 192.168.254.254: icmp_seq=2 ttl=64 time=2.39 ms
64 bytes from 192.168.254.254: icmp_seq=3 ttl=64 time=2.47 ms
64 bytes from 192.168.254.254: icmp_seq=4 ttl=64 time=2.28 ms
# ifconfig
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:346 errors:0 dropped:0 overruns:0 frame:0
TX packets:346 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:53260 (52.0 Kb) TX bytes:53260 (52.0 Kb)
ra0 Lien encap:Ethernet HWaddr 00:08:A1:52:E6:27
inet adr:192.168.254.7 Bcast:192.168.254.255 Masque:255.255.255.0
adr inet6: fe80::208:a1ff:fe52:e627/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14871 errors:0 dropped:0 overruns:0 frame:0
TX packets:506 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:960974 (938.4 Kb) TX bytes:31800 (31.0 Kb)
Interruption:10 Adresse de base:0xa000
[root@localhost Module]# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
sit0 no wireless extensions.
ra0 RT2400PCI ESSID:"Wireless"
Mode:Managed Channel:10 Access Point: 00:09:5B:2D:32:3E
Bit Rate:11Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality:69 Signal level:24 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
9.Automatic restart after reboot
In your Module folder is the file ifcfg-ra0 copy this to
/etc/sysconfig/network/ or wherever Mandrake installs its ifcfg-* files.
# find / -name "ifcfg-ra0"
/usr/src/rt2400-1.2.0/Module/ifcfg-ra0
# find / -name "ifcfg-*"
/etc/sysconfig/network-scripts/ifcfg-lo
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/networking/ifcfg-lo
# cp /usr/src/rt2400-1.2.0/Module/ifcfg-ra0 /etc/sysconfig/network-scripts/
# more /usr/src/rt2400-1.2.0/Module/ifcfg-ra0
DEVICE=ra0
BOOTPROTO=dhcp
ONBOOT=yes
10.Add script to /etc/rc.d/rc.local
to start ra0 at boot time add the previous script at the end of
/etc/rc.d/rc.local just before the following line
touch /var/lock/subsys/local
11.Reboot!
If it does not work as root rerun the script, but it works for me.

Retrieved from "http://rt2x00.serialmonkey.com/wiki/index.php/Mandrake_10_Howto"

This page has been accessed 20,641 times. This page was last modified 15:29, 4 December 2004. Content is available under GNU Free Documentation License 1.2.


SourceForge.net Logo
Find
Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...