Latest kernel from Current, no wireless even though modules loaded
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Rep:
Latest kernel from Current, no wireless even though modules loaded (solved)
Just upgraded my kernel to the one in Slackware current using slackpkg. Kernel ref 2.6.29.2.
Now I have no wireless using my laptops ralink wireless link. Normally uses the rt2500pci driver, which lsmod shows is installed. But an iwlist scan gives no results.
The problem of course with doing a kernel upgrade using this method, is that the original working kernel gets deleted, along with all of the sources and support libraries.
Fortunately, I also have a PCMCIA wireless adapter that uses the bc43 drivers, so at least I can get on using that.
So, how do I get the ralink drivers to work again, or is this a case of having to go back to the previous kernel?
For information, ifconfig shows wlan0 interface. iwconfig shows wlan0 interface, but scanning gives no scan results.
Last edited by vdemuth; 05-12-2009 at 02:33 AM.
Reason: Solved
try hitting the wirless button on your laptop. Mine has a problem to where it will bring up the interfaces even though the button is presses. The worse part is that my LED still lights up so I can never tell.
run iwlist -scanning
If there are no results, try hitting the button and running the command again.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
Tried that, same result. So I downloaded the kernel source from kernel.org, and compiled my own. Still the same result. Fortunately, rolling back to the stock Slackware 12.2 kernel gets it working again.
It seems then that kernel 2.6.29.2 under Slackware doesn't support Ralink wireless devices. So, do I submit a bug report to PV, or the the kernel maintainers?
No, don't report a bug. You installed the kernel from -current onto a 12.2 system, so while it *may* be a bug, it's not in a configuration that is *expected* to work, so it's not supported at all. In other words, your report will be ignored, because *nobody* is expected to be running that combination.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
My apologies,
For information, I am running current, including the latest KDE4. So with the stock 12.2 Kernel, wireless is fine, but with the 'current' kernel, no wireless.
Okay, in that case, perhaps there is a problem :-)
It's possible that the device is supported by a different driver in the 2.6.29.x series; I don't have any of that hardware, so I don't know one way or the other. Maybe someone who does will jump in, or perhaps some web searches for your hardware with "2.6.29" as a query will result in something useful...
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
Solved this.
It turns out that the new kernel didn't like the order the modules were loaded in. Moved the rt2500pci module load position to be the very last module loaded prior to starting the X server (by placing in rc.local), and it now works again.
Don't understand why this should be, but hey, it did the trick.
It turns out that the new kernel didn't like the order the modules were loaded in. Moved the rt2500pci module load position to be the very last module loaded prior to starting the X server (by placing in rc.local), and it now works again.
Don't understand why this should be, but hey, it did the trick.
Okay, that's interesting news. Can you paste the output of "lsmod" into this thread? I'd like to investigate that...
Now what I'd like to see is how that's different when you <b>don't</b> load the rt2500pci module in rc.local -- in other words, let the system do everything on its own.
Looking at the module dependencies, I don't see how it could be any different -- the deps look like they should handle everything correctly -- but we'll see.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
If I comment out the rt2500pci module, I get no wireless anyway, as it is blacklisted in /etc/modprobe.d/blacklist. This means there are no wireless modules loaded at all.
With the default kernel that comes with Slackware 12.2, I could modprobe rt2500pci anywhere in my rc.local, set the speed and away it just work. Now I have to modprobe it after everything else, or it seems not to work. To the point that I have to also run the following tiny script when using the wicd network manager
Code:
#!/bin/bash
# Shell wrapper that calls iwconfig using sudo
sudo /sbin/rmmod rt2500pci
sudo /sbin/modprobe rt2500pci
sudo /sbin/iwconfig wlan0 rate 54M
FYI, I am currently having to use my external Linksys cardbus adapter as the rt2500pci isn't loaded, as the snippet below would confirm.
Ah... that module shouldn't be blacklisted any more. I'm not sure when it was last done in Slackware, but it wasn't in the stock 12.2 configs, and it isnt' in the -current ones either.
Try removing it from the blacklist see what happens.
bash-3.1# iwlist scan
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
vboxnet0 Interface doesn't support scanning.
wmaster0 Interface doesn't support scanning.
wlan0 No scan results
So, I do an rmmod rt2500pci and a modprobe rt2500pci, then scanning works once and gives results as expected. Any subsequent scan gives no result, so I have to do the rmmod/modprobe again. Hence the reason for the short script when using wicd.
Blacklisting and loading manually via rc.local works, but still needs the short script shown above.
I have found out though, that if I modprobe it in rc.M just prior to the wicd daemon loading, then I can remove my short script from the wicd gui and scanning works consistantly
So, I do an rmmod rt2500pci and a modprobe rt2500pci, then scanning works once and gives results as expected. Any subsequent scan gives no result, so I have to do the rmmod/modprobe again. Hence the reason for the short script when using wicd.
Blacklisting and loading manually via rc.local works, but still needs the short script shown above. I have found out though, that if I modprobe it in rc.M just prior to the wicd daemon loading, then I can remove my short script from the wicd gui and scanning works consistently
Wow. I have no idea what's going on here. It appears as if something isn't "ready" yet when the rt2500pci module is loaded by udev (as evidenced by the point you make about loading it in rc.M). Ultimately, I think you need to mail the rt2500 guys about this (link this thread to them, and CC me on the email); maybe they'll have some insight...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.