Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-06-2004, 09:16 PM
|
#1
|
Member
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168
Rep:
|
Are modules automatically loaded when it is needed by the system?
Eg. If I complied my usb support as a module, will it automatically be loaded when needed by the system (ie. when I plug in a usb device) ?
Thanks!
|
|
|
04-06-2004, 10:00 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
If hotplug support is compiled into the kernel
it should (if the basic chipset-driver is actually
loaded, that is). If you want to customise some
more what happens on load (like get hte load-order
right if there is one) use murasaki (usbmgr's
younger brother).
The alternative way is to use usbmgr... it will
pre-load usbcore and other modules and then
e.g. load sg.o if you plug in a camera or stick.
Both tools should (I've never used murasaki)
allow to mount to a specific mountpoint, for
instance (for usbmgr I can confirm this :}) ...
Cheers,
Tink
|
|
|
04-06-2004, 10:02 PM
|
#3
|
Member
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168
Original Poster
Rep:
|
Thanks
In general, are modules loaded by the kernel automatically as and when they are needed during runtime/bootup or is it done manually?
Quote:
Originally posted by Tinkster
If hotplug support is compiled into the kernel
it should (if the basic chipset-driver is actually
loaded, that is). If you want to customise some
more what happens on load (like get hte load-order
right if there is one) use murasaki (usbmgr's
younger brother).
The alternative way is to use usbmgr... it will
pre-load usbcore and other modules and then
e.g. load sg.o if you plug in a camera or stick.
Both tools should (I've never used murasaki)
allow to mount to a specific mountpoint, for
instance (for usbmgr I can confirm this :}) ...
Cheers,
Tink
|
|
|
|
04-06-2004, 10:07 PM
|
#4
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
Usually. If they don't play nice, you can force them if you need to most of the time by adding them to /etc/modules for 2.4.x kernels and /etc/modprobe.preload for 2.5.x and above. Be sure that USB hotplugging is selected and you'll have no problems with that (I don't leave my MS Sidewinder joystick plugged in, but its there when I plug it in)
|
|
|
04-07-2004, 02:02 PM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
/me just decided to wipe the dust of his 3D Pro and see whether d1x will see it ;D
Cheers,
Tink
|
|
|
04-07-2004, 06:36 PM
|
#6
|
Member
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168
Original Poster
Rep:
|
During the kernel customisation (make xconfig), I have Kernel Module Loader installed, which should load modules automatically as and when they are needed. I have a NIC that requires pcnet32.o to work and this driver is compiled as a module to the kernel. However, on bootup, this required module is not automatically loaded.
Although it does work after I manually added the module to /etc/modules, I'm curious as to why it wasn't automatically loaded by the Kernel Module Loader during bootup.
Thanks !
|
|
|
04-07-2004, 10:31 PM
|
#7
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
The PCI hotplugging might not be picking it up. When I installed Mandrake 10beta2, I had that problem with my NIC. It loads now with CE, but I had to force it to work by puttting it in the /etc/modprobe.preload file.
What kernel are you using?
|
|
|
04-07-2004, 11:04 PM
|
#8
|
Member
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168
Original Poster
Rep:
|
I'm using 2.4.25.
Quote:
Originally posted by vectordrake
The PCI hotplugging might not be picking it up. When I installed Mandrake 10beta2, I had that problem with my NIC. It loads now with CE, but I had to force it to work by puttting it in the /etc/modprobe.preload file.
What kernel are you using?
|
|
|
|
04-08-2004, 07:00 AM
|
#9
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
try entering the name of the module in the /etc/modules file and see if it loads at boot then.
|
|
|
04-08-2004, 05:30 PM
|
#10
|
Member
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168
Original Poster
Rep:
|
Yup, it works if I put the module in /etc/modules.
Thanks
Quote:
Originally posted by vectordrake
try entering the name of the module in the /etc/modules file and see if it loads at boot then.
|
|
|
|
04-08-2004, 05:50 PM
|
#11
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
Sometimes you gotta give things a bit of a "push" 
|
|
|
All times are GMT -5. The time now is 11:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|