Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Modules... (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dahranis
Apprentice
Apprentice


Joined: 20 Jan 2006
Posts: 166

PostPosted: Wed Jul 26, 2006 12:30 am    Post subject: Kernel Modules... (solved) Reply with quote

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
View user's profile Send private message
bin-doph
Guru
Guru


Joined: 23 May 2003
Posts: 302

PostPosted: Wed Jul 26, 2006 7:54 am    Post subject: Reply with quote

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
View user's profile Send private message
runningwithscissors
Guru
Guru


Joined: 21 Apr 2006
Posts: 454
Location: the third world

PostPosted: Wed Jul 26, 2006 10:30 am    Post subject: Reply with quote

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
View user's profile Send private message
dahranis
Apprentice
Apprentice


Joined: 20 Jan 2006
Posts: 166

PostPosted: Wed Jul 26, 2006 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message
mirojira
l33t
l33t


Joined: 18 Feb 2006
Posts: 685

PostPosted: Wed Jul 26, 2006 11:58 am    Post subject: Reply with quote

Well. It is difficult to explain everything in one article and you should read some doc. There is plenty of relevant articles in http://www.gentoo.org/doc/ and not only gentoo, every linux distro uses kernel. For the start I would rcommend to read http://www.gentoo.org/doc/en/kernel-config.xml#doc_chap2
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Wed Jul 26, 2006 12:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
dahranis
Apprentice
Apprentice


Joined: 20 Jan 2006
Posts: 166

PostPosted: Wed Jul 26, 2006 1:47 pm    Post subject: Reply with quote

Right cheers for all that, i'll read through the documentation and cheers for the help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum