Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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 have a Realtek 8185 wireless card. I found drivers for it and succesfully compiled them for my kernel.
This driver is a couple of .ko modules.
Rght now I have to load them with 'insmod' command.
Is there any way to make them load during boot?
I think it's possible to load them with a simple script consisting of 'insmod' commands starting on boot.
But I would like to put driver's modules into kernel modules directory and start them as any other modules. Is it possible?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Not knowing the distro the location of this place the commands can be place verys. I use Redhat type distros and place commands like that in /etc/rc.local script file.
Now when you built the modules did it go like this.
./configure
make
make install
If so then did you do ' make install ' as root?
Normally what would happen is it copies the files to where they ned to be. For modules they are copied to say under net and then the command ' depmod -a ' is run to update the system.map file to know modules exist and where. I would think if you copy them in the modules directory where other nic modules exist and then run depmod -a command it should recognise them and then you can use the modprobe command to load.
I am surprised that the make file for the drivers did not have an install section that would automatically put them into the kernel modules directory. In any case you could add them to the modules.conf file or modprobe.conf depending on what kernel you are running.
I was surprised too - in installation manual it's written to run make & make install too. But in my version there is no such option as install in Makefile.
If I try to add it manually (read this from some forum) I get a message "nothing to install".
So that is why I have to install it manually.
Thank you for advices - will tr it soon.
Leonti
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.