LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-10-2007, 03:37 PM   #1
Leonti
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Rep: Reputation: 0
Loading own modules during boot


Hello!

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?

Thank you for any help
 
Old 10-11-2007, 05:33 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
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: Reputation: 65
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.

Brian
 
Old 10-11-2007, 07:18 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
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.
 
Old 10-11-2007, 11:14 PM   #4
Leonti
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Original Poster
Rep: Reputation: 0
I'm sorry - it's Opensuse 10.3

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
 
Old 10-12-2007, 02:14 AM   #5
kennithwang
Member
 
Registered: Aug 2007
Location: shanghai
Distribution: LDD
Posts: 32

Rep: Reputation: 15
you can add them to your certain script file.
 
Old 10-13-2007, 12:08 AM   #6
Leonti
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Original Poster
Rep: Reputation: 0
OK, but how can I run script under root while starting up my system? Where should I place my script?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading Modules at boot? haruharaharu Linux - Kernel 5 10-30-2006 08:35 AM
No Modules loading at boot. mpyusko Slackware 11 09-25-2006 03:39 PM
loading modules at boot triley Linux - General 3 08-23-2006 08:24 AM
loading modules at boot Davidian1024 Linux From Scratch 3 06-25-2004 12:19 AM
loading modules at boot qanopus Linux - General 2 11-29-2002 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration