View previous topic :: View next topic |
Author |
Message |
dahranis Apprentice
Joined: 20 Jan 2006 Posts: 166
|
Posted: Wed Jul 26, 2006 12:30 am Post subject: Kernel Modules... (solved) |
|
|
Can somebody explain them to me... How they're installed etc.
Or post the appropriate link and mutter noob cheers
Last edited by dahranis on Wed Jul 26, 2006 1:48 pm; edited 1 time in total |
|
Back to top |
|
|
bin-doph Guru
Joined: 23 May 2003 Posts: 302
|
Posted: Wed Jul 26, 2006 7:54 am Post subject: |
|
|
rtfm?
hth
-fe[/url] _________________ perl -e '$_=q;4a75737420616e6f74686572205065726c204861636b65720as;;for(s;s;s;s;s;s;s;s;s;s;s;s){s;(..)s?;qq qprint chr 0x$1 and \161 ssq;excess;}' |
|
Back to top |
|
|
runningwithscissors Guru
Joined: 21 Apr 2006 Posts: 454 Location: the third world
|
Posted: Wed Jul 26, 2006 10:30 am Post subject: |
|
|
You put this nice big "M" next to your selected option in menuconfig, and voila, a compiled module will be delivered to you, when you compile the kernel. Then you just simply load the module into memory whenever you need to use it, at boot or at the startup of some service or whenever you want to. |
|
Back to top |
|
|
dahranis Apprentice
Joined: 20 Jan 2006 Posts: 166
|
Posted: Wed Jul 26, 2006 10:56 am Post subject: |
|
|
Yeah non of that helps really... anybody else want to try and take a stab at it?
I'd like to point out that its
7.e. Kernel Modules
Configuring the Modules
You should list the modules you want automatically loaded in /etc/modules.autoload.d/kernel-2.4 (or kernel-2.6). You can add extra options to the modules too if you want.
To view all available modules, run the following find command. Don't forget to substitute "<kernel version>" with the version of the kernel you just compiled:
Code Listing 21: Viewing all available modules
# find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko'
For instance, to automatically load the 3c59x.o module, edit the kernel-2.4 or kernel-2.6 file and enter the module name in it.
Code Listing 22: Editing /etc/modules.autoload.d/kernel-2.4
(Example for 2.4 kernels)
# nano -w /etc/modules.autoload.d/kernel-2.4
Code Listing 23: /etc/modules.autoload.d/kernel-2.4 or kernel-2.6
3c59x
This whole bit i'm having trouble with |
|
Back to top |
|
|
mirojira l33t
Joined: 18 Feb 2006 Posts: 685
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54236 Location: 56N 3W
|
Posted: Wed Jul 26, 2006 12:11 pm Post subject: |
|
|
vladimirm,
You will find some useful kernel reading in /usr/src/linux/Documentation.
Optional kernel code (modules) can be selected to be used in two ways.
Configuring as [*] includes the core in the kernel bzImage file, which is copied to /boot when the kernel is installed.
This is the file thats loaded by grub as part of the startup process.
Configuring as [M] makes seperately loadable modules. They are copied to /lib/modules/`uname -r`\ by the make modules_install command.
This way, each kernel has its own modules path.
From the above, if you change a [*], a full kernel rebuild, install and reboot is required. When you change a [M] option, all that required is Code: | make modules
make modules_install | and your new module(s) are ready to be loaded and used. No reboot required.
There are constraints on what can be made modular. Some imposed by the kernel, some by the choices you make.
In general, anything required to mount the root file system should not be a modoule because the root filesystem must be mounted to read the modules from disk. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
dahranis Apprentice
Joined: 20 Jan 2006 Posts: 166
|
Posted: Wed Jul 26, 2006 1:47 pm Post subject: |
|
|
Right cheers for all that, i'll read through the documentation and cheers for the help |
|
Back to top |
|
|
|