LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-15-2006, 12:11 AM   #1
beartooth91
LQ Newbie
 
Registered: Feb 2006
Posts: 27

Rep: Reputation: 15
Linksys WMP54G on Fedora Core 4 How To


Linksys WMP54G (RT61 chipset) on Fedora Core 4

Thought I’d post the results of my struggles. This is how I got it working.


Steps:

1. Verify what chipset you have. There are several different versions of this wireless card and they have different Ralink chips. Some have the RT2400, others will have the RT2500 or RT61 chipsets. The best way to do this is in Windows XP by looking at the “Properties” and “Driver Info” for the card. My Win driver is rt61.sys.

2. Download the linux driver for your chipset from ralinktech (support) site. If you have an RT61 chipset as I do; you’ll want the “RT_61_Linux_STA” driver. I recommend not using the rt61 driver on the “serial monkey” website as it tends to lock up Fedora.

3. Build Instructions:

A. $tar -xvzf RT61_Linux_STA_Drv_x.x.x.x.tar.gz
go to "./RT61_Linux_STA_Drv_x.x.x.x/Module" directory.

I put mine in the /usr/local directory.

B. You’ll need to edit the config.mk file to get the module to compile properly. Change both paths to the applicable directories on your Fedora installation. If you’re running a stock FC4 installation; edit it to look like this:
LINUX_SRC=/usr/src/kernels/2.6.11-1.1369_FC4-i686
TARGET_MODDIR=/lib/modules/2.6.11-1.1369_FC4

C. Let’s build it ->> $make all # compile driver source code

D. Add the following directories to Fedora:
mkdir /etc/Wireless

mkdir /etc/Wireless/RT61STA

E. Now, copy the firmware drivers over ->> $cp rt2561.bin /etc/Wireless/RT61STA/ # copy firmware
$cp rt2561s.bin /etc/Wireless/RT61STA/
$cp rt2661.bin /etc/Wireless/RT61STA/

F. $dos2unix rt61sta.dat
$cp rt61sta.dat /etc/Wireless/RT61STA/rt61sta.dat
# !!!check if it is a binary file before loading !!!

G. Load and test the driver:
# $/sbin/insmod rt61.ko
# $/sbin/ifconfig ra0 inet YOUR_IP up
I just use /sbin/ifconfig ra0 up

Configure the driver with iwconfig for your settings. I can’t help much here as your settings are specific. I’ll show you mine:
$iwconfig ra0 essid any
$iwconfig ra0 mode managed
$iwconfig ra0 channel 6

If all’s well, you should see something similar to the following:

ra0 RT61 Wireless ESSID:"goesh" Nickname:"localhost.localdomain"
Mode:Managed Frequency:2.437 GHz Access Point: 00:03:52:F2:19:60
Bit Rate=54 Mb/s
RTS thrff Fragment thrff
Encryption keyff
Link Quality=75/100 Signal level:-57 dBm Noise level:-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Now, get an IP address from your DHCP server:
dhclient ra0

At this point you should be able to ping and surf the internet.

H. Edit the /etc/Wireless/RT61STA/rt61sta.dat file to add your config settings. Here’s mine:
This is a binary file, so you’re supposed to use the -b option when calling it up with vi.

vi -b rt61sta.dat

[Default]
CountryRegion=0
CountryRegionABand=7
WirelessMode=0
# SSID=AP350
SSID=goesh
NetworkType=Infra
Channel=6
AuthMode=OPEN
EncrypType=NONE
DefaultKeyID=1
Key1Type=0
Key1Str=0123456789
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
WPAPSK=abcdefghijklmnopqrstuvwxyz
TxBurst=0
PktAggregate=0
TurboRate=0
WmmCapable=0
AckPolicy1=0
AckPolicy2=0
AckPolicy3=0
AckPolicy4=0
BGProtection=0
IEEE80211H=0
TxRate=0
RTSThreshold=2347
FragThreshold=2346
RoamThreshold=75
PSMode=CAM
TxPreamble=0
FastRoaming=0
DEVICE=ra0
ONBOOT=yes
BOOTPROTO=dhcp
TYPE=Wireless
MODE=managed
ESSID=goesh
CHANNEL=6
RATE=Auto

I. Now create (and edit) an interface configuration file for the card in /etc/sysconfig/network-scripts.
vi ifcfg-ra0

here’s mine:

DEVICE=ra0
ONBOOT=yes
BOOTPROTO=dhcp
TYPE=Wireless
MODE=managed
ESSID=goesh
CHANNEL=6
RATE=Auto

J. Add the following line to your /etc/modprobe.conf file:
alias ra0 rt61

If you get a message on reboot similar to “(rt61) device doesn’t seem to be present”, copy the rt61.ko module from the /lib/modules/2.6.11-1.1369_FC4/extra folder to the /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net and /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/wireless directories.

That **should** do it. See the RT61_Linux_STA_Drv1.x.x.x/Module/readme file for more details.
 
Old 08-28-2006, 03:53 PM   #2
fozner
Member
 
Registered: Aug 2006
Posts: 147

Rep: Reputation: 16
for some odd reason this didn't work on Fedora Core 5 no matter where I put the rt61.ko. I had to write an install command into modprobe.conf, something like

install ra0 insmod /path/to/rt61.ko

Addendum: wpa_supplicant is not necessary if you'd rather skip the rest of this stuff. You already know your SSID. Just set up the rt61 driver manually using the above instructions. wpa_supplicant is handy though, if for some reason you want to browse available wireless networks and set them up in a gui like in windows xp...

wpa_supplicant may already be installed on Fedora but that version won't support the rt61 so you'll get errors and have to restart the network if you use it... To make it work better, just ignore the old rpm and download a fresh copy from source. Rebuild it according to the rt61 instructions. You will have to compile in support for the rt61 into it. It will install to /usr/local/sbin so be sure to run it from the new location to start the service. Something like:

/usr/local/sbin/wpa_supplicant -B -ira0 -c/etc/wpa_supplicant/wpa_supplicant.conf

Now you will be able to browse available wireless networks with wpa_gui, er, you may have to yum install wpa_supplicant_gui too.

Last edited by fozner; 08-29-2006 at 04:31 AM.
 
Old 08-28-2006, 03:58 PM   #3
crazyjimbo
Member
 
Registered: Mar 2006
Location: Edinburgh
Distribution: Debian Etch, Gentoo
Posts: 90

Rep: Reputation: 15
Thanks, it's bookmarked! I have the same chipset and remember spending a long time figuring a lot of these things out. If only I'd had this back then! As I'm building a new computer soon with my old wireless card, I'll no doubt be using this as a guide to remind me!
 
Old 02-17-2007, 11:17 AM   #4
geerkuser
LQ Newbie
 
Registered: Feb 2007
Distribution: Fedora Core 6
Posts: 6

Rep: Reputation: 0
I tried this procedure on Fedora Core 6 (and the wireless card seems to work. But the one problem I see is that on reboot, I always see “(rt61) device doesn’t seem to be present". Now after bootup, if I manually try "/sbin/insmod /path/to/rt61.ko" then the interface comes up and starts working. I even tried adding
install ra0 insmod /path/to/rt61.ko to the modprobe.conf file and the issue still persists.

Am I missing something here. Any help would be appreciated. Thanks.
 
Old 02-17-2007, 02:05 PM   #5
geerkuser
LQ Newbie
 
Registered: Feb 2007
Distribution: Fedora Core 6
Posts: 6

Rep: Reputation: 0
As a follow up to my post / question earlier...

I had the wireless card (WMP54G) working on Fedora Core 6 (kernel 2.6.18-1.2789_fc6). I had to manually load the driver and get the interface up and running. Then the Package Manager in Gnome popped up a box saying it found package updates, collected the information along with the dependencies and updated the softwares and I had to reboot the system.

The system booted back up with the new kernel now 2.6.19-1.2911_fc6. Now "/sbin/insmod rt61.ko" returns
insmod:error inserting 'rt61.ko': -1 Invalid module format

Could someone please let me know what this means ?

Would appreciate any help.

Thanks
 
Old 03-22-2007, 01:50 AM   #6
Morrisonmd
LQ Newbie
 
Registered: Mar 2007
Location: Seattle, WA
Distribution: Fedora
Posts: 1

Rep: Reputation: 0
You would think Fedora would have built in driver support for wireless networks, considering how popular they are getting?

I am using the ndiswrapper program with the rt61.inf drivers from windows.

I can see the hardware as being installed and ok, and it gets an active ping from my router, but it will not grab an IP Address for DHCP.

Wireless Settings -

Mode = Managed
Network name = DoomSlayer(SSID)
Channel is gray with a 1
Transmit Rate is Auto and also gray.
I have my key listed with 0x(hex) then my 26 digits

FC 6 - Standard Kernel (no updates)
WMP54G V4.1

-----------------------------------------
I first triend to install with compiling the wireless drive into the kernel, but I had no luck with that.

Any help anyone can provide will be greatful.
 
  


Reply

Tags
fedora, ndiswrapper, rt61, wmp54g


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone know if there are issues with Linksys WMP54G with Fedora Core 5 the_rhino Linux - Wireless Networking 1 07-05-2006 01:04 AM
Linksys WMP54G Fedora Core 3 JiggaJerry Linux - Wireless Networking 14 12-04-2004 02:01 AM
Fedora Core 2 & Linksys WMP54G PCI zang42 Linux - Wireless Networking 2 09-26-2004 06:03 PM
Can't ping Linksys router on Fedora 2 with WMP54G freek sanders Linux - Wireless Networking 0 09-10-2004 12:21 PM
Linksys WMP54G on Fedora Core 2 Where do I start?? FedoraNoob Linux - Wireless Networking 3 06-17-2004 08:01 PM


All times are GMT -5. The time now is 02:13 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration