![]() |
How to load a specific device driver
I have a Acer Aspire 5520, I installed Mandriva One 2008.1, every thing worked out of the box. my wirless card is Atheros and was using madwifi driver. wireless connection was somewhat buggy so I made a new connection using windows drivers and ndiswrapper. the widows driver works better but it does not support monitor mode for the card. I need a way to activate either driver as needed.
Any help is apreciated |
Could you please explain why you need the card in Monitor mode? I can think of a specific reason why you would want this and if so that type of behaviour is INAPPROPRIATE FOR THIS FORUM!!
|
Quote:
I am teaching myself about wireless networking, I am using my own network for that. I am also teaching myself about how Linux works, In windows I can use the device manager to enable or disable a device, change or update the driver and set many parameters for the device. In Linux (at least in Mandriva) there is nothing like that, I am sure there is a tool or a way to be able to control the device driver but I could not find it. Certainly the easiest thing for me is to install Mandriva again, that would take half an hour instead of the four days I spent searching the web for an answer, however there is no knowledge in that, and still would not be able to change the driver for another device if I need to. I have tried to explain my self as best as I can, If you still thing the question is inappropriate then by all means you can report it to the forum moderator and he can kill the thread. If not then I would appreciate any useful information you may have. PS. Happy New Year |
To load a module, as root:
modprobe <module_name> To unload it, if it's not already in use : rmmod <module_name> A usual, man modprobe and man rmmod will tell you more. About the options available for a specific module, I can't remember right now of a command to print it. But you can sometime find useful information in the kernel tree. Here is an example where I look for information about my wireless card driver, whose driver name is ipw2000 (found with lsmod if the module is loaded): Code:
bash-3.1$ find /usr/src/linux-2.6.27.7/ -type f -name "*ipw2200*"Sometime you can find that in the driver file itself (in my case, ipw2200.c), provided it's well documented. HTH |
Quote:
|
Quote:
I'll try that tonight. Do I have to unload the windows driver module first before loading the madwifi module? Will the changed module stay after reboot or will I have to do that every time I want to switch modules? Thanks again |
Quote:
To clarify more, I am retired with lots of time on my hands, I have always tinkered with windows and messed it more times than I can remember, but I know my way around windows, can't say the same for Linux :-) Still learning. Thanks again |
Quote:
Would it occur that the madwifi driver works but the Windows one be automatically loaded at boot time, you may prevent this behavior in blacklisting the Windows module. As I don't have Mandriva I can't tell you exactly how-to do that though. |
Quote:
I thought about blacklisting the module but I don't want to do that since I'll need to load it again. There must be some thing that tells the OS what module to load at boot (like the windows registry) If I can figure out what it is I can edit it to load the madwifi, better still if there is a tool to change the driver at runtime (wishful thinking :-) Thanks H. |
If I am right, blacklisting a module forbids the kernel to load it automatically at boot time, but doesn't prevent you to load it manually using the modprobe command.
And in your distribution there should be a file that you may edit where you list modules that you want to be loaded after booting. This is useful when for some reason a module is not automatically loaded by the kernel at boot time (or when you insert it or plug it in, in case of a removable device). e.g. for Slackware 12.2 which I use: - to blacklist a module I edit the file /etc/modprobe.d/blacklist and add a line such as: Code:
blacklist <module_name>Code:
/sbin/modprobe <module_name>As a reminder, to check which modules are actually loaded you can type: Code:
lsmod |
Quote:
there is another complication, it appears that ndiswrapper trashed the madwifi module, it is nowhere to be found :-( I gues I'll have to install it from scratch |
Quote:
|
| All times are GMT -5. The time now is 01:25 AM. |