Wireless config:override rausb0 Win driver on Belkin F5D7050 dongle using ndiswrappe
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in 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.
I tried an install through the Mandrake gui, which (not surprisingly) didn't work. As alternative I selected the ndiswrapper option, and so far it's been fairly smooth. I installed ndiswrapper, got the Win drivers from the vendor cd, installed the "wireless tools" utility. No problems to that point:
---confirmed valid ndiswrapper and driver installation:
[root@localhost martin]# lsusb
Bus 001 Device 003: ID 050d:705a Belkin Components
---Problem - see iwconfig query below, re. "rausb0 RT2500USB." System is pulling in an incorrect Win driver that's also identified with Belkin 70xx dongles. First of all, I don't know where this driver is coming from. It may be a leftover from my attempt to configure the card through the Mandriva MCC. But, it's obviously blocking the correct rt73 ndiswrapper driver from binding to the dongle.
[root@localhost martin]# iwconfig
lo no wireless extensions.
In any case, I need to get the usb config'd to bind to the rt73.inf driver that's configured correctly in ndiswrapper, and override whatever process is calling and using the rt2500 driver. I'd prefer a process that doesn't require running a console script every time I want to insert the dongle.
I found a Ubuntu forum thread that posed exactly the same problem on exactly the same device, and a working solution. See:
I understand the problem he describes, since it's mine exactly. Happily he figured out a solution. However, I'm new enough to this process that I can't interpret the user's fix, or how to apply it in my environment. A boot-time blacklist of that driver would seem to be the right direction, but I don't know how to configure it, or if that will even fix the problem. I assume there is a runtime configuration process activated (as usual with usb) just as the usb device is inserted. I have a basic grasp of linux commands, but I don't work extensively in a console. A bit of hand-holding may be in order.
and post that. from there, we can see if you need to remove the old drivers still. if you do, and then it works, then we'll go ahead and fix it so it won't load again.
:-D
from there, we can see if you need to remove the old drivers still. if you do, and then it works, then we'll go ahead and fix it so it won't load again.
:-D
ok, it looks like the kernel driver is still loaded. I use ndiswrapper for my wireless card, and if the original kernel driver is still loaded, it can cause problems. try
Code:
su
password
rmmod rt2570
rmmod ndiswrapper
this step may or may not be necessary, but go ahead and unplug the adapter, and plug it back in (it is a usb right? :-D )
Now, how to make it stick so I don't need to repeat this little console exercise every time I want to use the dongle?
Any reboot or removing the device causes a reversion back to the original problem configuration, complete with the rt2570 driver. On a shutdown sequence, the kernel shuts down completely without a failure message, but the restart sequence gives a "failure" message at the attempt to restore the wlan configuration: "device does not appear to be present." This happens whether the device is in the usb port or not.
no, actually it has nothing to do with the failed rmmod. whats happening is that the kernel is loading the rt2570 module everytime, because it thinks its the right one. we can prevent that e from happening.
Code:
su
password
kate /etc/modprobe.d/blacklist
once we're in there, add these lines somewhere at the bottom
Code:
# bad belkin usb driver
blacklist rt2570
and save the file. this essentially tells the kernel not to ever load that module again, no matter what it WANTS to do. we may have to go into the mandriva control center to continue with the setup, but I'm not sure yet. go ahead an reboot the computer, and see if it works upon system start. if it doesn't, then at the terminal do
Code:
su
password
modprobe ndiswrapper
and that will at least turn the thing back on for that boot. let me know if you have to do that. If you do, then we'll do another step from inside the MCC, so *hopefully* you'll never have to type at the command prompt to get it working.
As a side note, the reason that you had a failed rmmod earlier is because you told the kernel to take out a module that wasn't there. I told you to issue that command simply because I didn't know if it was there or not. Sometimes, even if it (ndiswrapper) is loaded along with the incorrect driver, simply removing the incorrect one will not solve the issue. It just behaves screwily. so, i had you take it out (if it was there :-D ), and then re-add it, which usually solves problems.
anyways, get back to me on whether or not you have to do a modprobe ndiswrapper after your next boot.
:-D
--drew
Wireless config:override rausb0 Win driver on Belkin F5D7050
Thanks. This all makes sense. I'll try this evening and let you know what I come up with. One minor question re your response -
Quote:
What's happening is that the kernel is loading the rt2570 module everytime, because it thinks its the right one. we can prevent that from happening
Code:
su
password
kate /etc/modprobe.d/blacklist
I assume this command just calls kate as the Kubuntu-default text editor. I further assume that I can substitute whatever text editor I normally use for kate in that command. If not, let me know. I'm not sure I've ever called a text editor from the Command Line interface.
yes that is what its doing, however you need to use JUST a text editor. Openoffice, abiword and the like might add extra stuff to the file that would throw the kernel off when it is parsing the file (formatting characters, font info and the like). That's why i suggested kate. if kate doesn't work, you can try the time-tested vi editor. just replace kate with vi. that being said, vi would be a challenge because it is a modal text editor. to actually be able to enter text, you have to press the "a" key (which stands for append), and type. to save your work, you have to press, in this order, "Esc", ":", "w", "q", "Enter".
but, only use vi if kate doesn't work! you'll save yourself a headache and a half :-D
Interesting you mentioned Kubuntu... your profile said mandriva! :-D
Wireless config:override rausb0 Win driver on Belkin F5D7050 dongle
Don't mean to go off-topic, but you know your stuff and appear very willing to share your knowledge.
Re: text editor
Quote:
yes that is what its doing, however you need to use JUST a text editor. Openoffice, abiword and the like might add extra stuff to the file that would throw the kernel off
Yup - I learned that the hard way (long story)
Yes, I currently use Mandriva. I only know about the tie between Kate and Kubuntu from reasearching the elements of the command line per your post (i.e. I never heard of Kate before today)
I assume I could install Kate, but I would rather use something that's already there. I use KDE, so I assume that
Code:
su
password
kedit /etc/modprobe.d/blacklist
in my environment would get me to the same place as
Code:
kate /etc/modprobe.d/blacklist
If that's the case you don't need to respond. But, if I'd have problems using Kedit, please let me know.
you know what, absolutely kedit would work. I was under the impression that kate was the default editor. whoops! :-) I'm a bit KDE-phobic, so I don't always know the default programs associated with it anymore. Now that I think about it, the only time I used KDE for any significant length of time was when I ran kubuntu. Oh well. kedit's fine.
Good Luck!
--Drew
Wireless config:override rausb0 Win driver on Belkin F5D7050
A bit closer. I did use Kate, by the way. It was already installed.
Blacklisting the rt2570 appears appears to have worked. After a restart with the unit in the port, I queried usb and rt to see if the offending driver was removed.
I still receive the "cannot initiate wlan - device not present" message on each boot sequence, so the device connection to the rt73 driver does not survive a disconnect from the usb port or a system restart.
But, I could at least skip the
Code:
[root@localhost martin]# rmmod rt2570
Just entering
Code:
[root@localhost martin]# modprobe ndiswrapper
activated the device.
You mentioned a further configuation in the Mandrake Control Center if the rt73 driver binding doesn't survive a shutdown or removing the device. What is the next step?
Ok, we can fix this I belive. however, I'm gonna need to install a version of mandriva i have to five you some accurate advice from this point on. So, tonight I'll finish that up and I'll post asap.
--drew
Ok, here we go. (QEMU is a life-saver)
Section 1
1) Open the mandriva control center: Menu -> System -> Configuration -> Configure your Computer
2) Click the network tab
3) Click "Delete a network interface"
4) In the dropdown box there, see if there is a listing for the wireless device. If so, select it and continue. Otherwise, skip to Section 2.
5) Click Next
6) Click Finish
Section 2
1) Click "Set up a new network interface"
2) Select Wireless from the list and click Next
3) DON'T select Ndiswrapper from the options. As I am running in virtualization, advice is more fuzzy from here on out.
4) The next screen should have an option for "Module" . enter "ndiswrapper" into the box.
5) Continue on with any parameters you may want to add, such as essid and encryption.
6) you can probably figure out how to finish this setup wizard :-D
I'd give even more handholding advice :-D, but I am running the distro in virtualization. So, I can't actually add a network card, as the QEMU emulator doesn't supply one. :-(
However, I've set up a ndiswrapper device through mandriva before. You might think, well why don't we just use the tool from the start? It gives an option for ndiswrapper! \
1) I forgot
2) It didn't work for me anyways.
As long as you put ndiswrapper in the "Module" section of the wizard, you should be fine.
Wireless config:override rausb0 Win driver on Belkin F5D7050
Great!
Unless something urgent comes up I should be able to try this this evening.
Re:
Quote:
I've set up a ndiswrapper device through mandriva before. You might think, well why don't we just use the tool from the start? It gives an option for ndiswrapper! \
1) I forgot
2) It didn't work for me anyways.
No problem. See my first post:
Quote:
I tried an install through the Mandrake gui, which (not surprisingly) didn't work.
Been there. Done that.
Considering the mountains of support-forum threads on wireless Linux I saw prior to trying this, I really didn't expect something as simple as a gui configuration to work . . .
Wireless config:override rausb0 Win driver on Belkin F5D7050
Perfect!
Excellent instructions! I am writing this from my fully wireless-enabled linux box.
Thank you for your able hand-holding and clear instructions. I hope others with the same problem can google into this thread and get their problem solved as well.
Thanks again for your work "above and beyond" for me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.