Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
getting rt61pci working with networkmanager [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jettjunker
Apprentice
Apprentice


Joined: 10 Sep 2005
Posts: 267

PostPosted: Wed Aug 13, 2008 6:54 pm    Post subject: getting rt61pci working with networkmanager [SOLVED] Reply with quote

Hey all,

my device as given by lspci is: Network controller: RaLink RT2561/RT61 802.11g PCI

I have rt61pci compiled as a module in gentoo 2.6.25-r7 sources, and networkmanager-0.6.6 installed. I followed the directions here:http://gentoo-wiki.com/NetworkManager. The driver modprobes fine (lsmod shows it and 5 dependent modules), and networkmanager starts up fine with no errors, but nm-applet isn't showing any wireless networks.

Now, I don't really know what I'm doing, but I think there must be some steps missing since I don't even have a /etc/init.d/net.ath0 or net.wlan0 (I should have something other than net.eth0 and net.lo, right?). ifconfig only shows eth0, eth1, and lo. iwlist scan lists lo, eth0, eth1, sit0, and wmaster0 as "Interface doesn't support scanning." and wlan0 as "Interface doesn't support scanning : Network is down".

So, I stumbled across http://gentoo-wiki.com/Rt61_Wireless_Howto, which describes how to get the driver for older kernel versions that don't have rt61, but it mentions that even if one is using a newer kernel one still needs to copy over the firmware. So, I created the directories /etc/Wireless/RT61STA/ and copied over rt2561.bin rt2561s.bin rt2661.bin and rt61sta.dat [the only change I made in the dat file was chainging the SSID.. as I don't really know what the rest of those options are (but my network is open)], but I got no change in behavior after restarting dbus and nm. Even though it didn't say to do so when using the kernel version, I tried doing that little blurb at the bottom
Code:
cd /etc/init.d
ln -s net.lo net.ra0
rc-update add net.ra0 default
modprobe rt61
echo "rt61" >> /etc/modules.autoload.d/kernel-2.6

But, upon restarting dbus and networkmanager, I just get:
Code:
 *       network interface ra0 does not exist
 *       Please verify hardware or kernel module (driver)

So, I just deleted net.ra0 and am now just at a loss... what am I missing?
_________________
Core2Duo T7100 1.8 ghz mini-itx, Nvidia FX220: Gentoo/Gnome/CompizFusion:XGL
CoreDuo 1.83 ghz 13" Macbook, GMA 950: Ubuntu/Gnome/CompizFusion:AIGLX


Last edited by jettjunker on Sat Aug 30, 2008 12:52 am; edited 1 time in total
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 252

PostPosted: Thu Aug 14, 2008 7:15 am    Post subject: Re: getting rt61pci working with networkmanager Reply with quote

jettjunker wrote:

I have rt61pci compiled as a module in gentoo 2.6.25-r7 sources, and networkmanager-0.6.6 installed.

Code:
cd /etc/init.d
ln -s net.lo net.ra0
rc-update add net.ra0 default
modprobe rt61
echo "rt61" >> /etc/modules.autoload.d/kernel-2.6

But, upon restarting dbus and networkmanager, I just get:
Code:
 *       network interface ra0 does not exist
 *       Please verify hardware or kernel module (driver)

So, I just deleted net.ra0 and am now just at a loss... what am I missing?


Notice you said you had rt61pci compiled as a module which is the rt2x00 driver and the wireless "how to" you refer to is using rt61 from ralink , the two are different drivers and setups , its better to use one or the other.

Your internal kernel one is called wlan0 if I recall and the one you compile from the "how to" is ra0

:)
Back to top
View user's profile Send private message
jettjunker
Apprentice
Apprentice


Joined: 10 Sep 2005
Posts: 267

PostPosted: Thu Aug 14, 2008 7:40 am    Post subject: Reply with quote

Ah, okay. ra0 has been deleted, as I'd like to just use the kernel version, rt61pci. I now notice that iwconfig shows wlan0 (though I still don't have a net.wlan0) when /etc/init.d/NetworkManager is running:
Code:
wlan0     IEEE 802.11g  ESSID:"" 
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Tx-Power=off   
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off
          Link Quality:0  Signal level:0  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

But, then why doesn't it pick up any networks? nm-applet shows none, and iwlist wlan0ap displays:
Code:
wlan0     Interface doesn't have a list of Peers/Access-Points


It's working... but not :/
_________________
Core2Duo T7100 1.8 ghz mini-itx, Nvidia FX220: Gentoo/Gnome/CompizFusion:XGL
CoreDuo 1.83 ghz 13" Macbook, GMA 950: Ubuntu/Gnome/CompizFusion:AIGLX
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 252

PostPosted: Thu Aug 14, 2008 12:23 pm    Post subject: Reply with quote

Have a look around rt2x00 forums for late builds and tips.

There was something about setting txpower that woke the card up from memory.

As I use ralinks rt61 from the below link I cant offer too much help but good luck anyway.

https://bugs.gentoo.org/show_bug.cgi?id=222375


Good luck :-)
Back to top
View user's profile Send private message
jettjunker
Apprentice
Apprentice


Joined: 10 Sep 2005
Posts: 267

PostPosted: Fri Aug 15, 2008 11:55 pm    Post subject: Reply with quote

Ah cool. I originally tried to emerge the driver, but got some errors and in my searching for a solution found the recommendation to use the kernel version... didn't even realize there was a bug release to get around the emerge problems for 24+ kernels.

So, I got it working (more or less) using that bug install version rather than the kernel module, but I am having another problem in that it doesn't start on its own. Whenever I launch gnome, I have to:
ifconfig ra0 up
/etc/init.d/dbus restart #to restart NetworkManager

after which it works great, but of course it would be nice to not have to do that each time I turn my computer on. Any ideas?
EDIT: Oh, and one other minor thing... for some reason ra0 shows a constant 1.2-1.5K down activity in gkrellm. What's the deal with that? Makes me nervous to have constant activity that I don't know what it is.
_________________
Core2Duo T7100 1.8 ghz mini-itx, Nvidia FX220: Gentoo/Gnome/CompizFusion:XGL
CoreDuo 1.83 ghz 13" Macbook, GMA 950: Ubuntu/Gnome/CompizFusion:AIGLX
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 252

PostPosted: Sat Aug 16, 2008 12:38 am    Post subject: Reply with quote

I found this :

Code:
postup() {
        if [ ra0 == ${IFACE} ]; then
           ifconfig ra0 mtu 1300
   fi
}
modules=( "!iwconfig" "!wpa_supplicant" )   


very important in my /etc/conf.d/net .

I also have :

Code:
key_ra0="xxxxxxxxxxxxxxxxxxxxxxx enc open"
#config_ra0=( "dhcpcd" )
config_ra0=( "192.168.0.1 netmask 255.255.255.0" )


in the same file.

I am not sure why it doesnt pick up the key from etc/Wireless/RT61STA/rt61sta.dat
but it does load at boot in my adhoc wep setup

Apart from that make sure you dont have the in kernel modules getting loaded as well,
lsmod should show you the answer to that.

rc-update add net.ra0 boot

I dont know much about Netmanager so maybe you dont need the above line?

https://forums.gentoo.org/viewtopic-t-518601-start-75.html

The post above shows some good hints too but remember that many posts in that forum are using both ralink and rt2x00 drivers.
Back to top
View user's profile Send private message
jettjunker
Apprentice
Apprentice


Joined: 10 Sep 2005
Posts: 267

PostPosted: Sun Aug 17, 2008 4:24 am    Post subject: Reply with quote

Hmm, well, that's more about connecting to devices than getting it up (once up, I have no problem connecting to particular APs). And, from what I can tell you're not supposed to have any net.* devices at runlevel when using NetworkManager.

At any rate, I just rc-update -r NetworkManager then added the following to /etc/conf.d/local.start instead:
Code:
ifconfig ra0 up
/etc/init.d/hald start
/etc/init.d/NetworkManager start


[For some reason it didn't work without putting hald in there as well]

Thanks for your help :)

EDIT: and for anyone else having the same issues as me, I did have to remove the rt61pci module, as NM kept loading it. So, recompile the kernel without the module, and do another make modules_install to get rid of it.
_________________
Core2Duo T7100 1.8 ghz mini-itx, Nvidia FX220: Gentoo/Gnome/CompizFusion:XGL
CoreDuo 1.83 ghz 13" Macbook, GMA 950: Ubuntu/Gnome/CompizFusion:AIGLX
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum