Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
n00b: How do you know what is a module?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MrFizziks
n00b
n00b


Joined: 30 Aug 2004
Posts: 2

PostPosted: Mon Aug 30, 2004 7:47 pm    Post subject: n00b: How do you know what is a module? Reply with quote

I know this is a n00b question, and I've searched for the answer and can't find it so here goes...but first some background:

I just finished my first ever installation of Gentoo and ran into issues along the way. By far the hardest to fix (due to the fact I can't read ;-) was compiling pcnet32 as a module instead of directly into the kernel. It just wouldn't work in the kernel.

My question is this: When compiling the kernel how do you know what to compile directly into the kermel and what can/should/has to be compiled as a module? Is there some doc I'm missing? Trial and error?
Back to top
View user's profile Send private message
potatoface
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: ::7F00:1

PostPosted: Mon Aug 30, 2004 7:53 pm    Post subject: Reply with quote

hi,

for my part i compile only network cards and sound card as modules.

maybe you compile the *really important* things directly into the kernel.
_________________
The generation of random numbers is too important to be left to chance.
Adopt an unanswered post.
Back to top
View user's profile Send private message
yinyang
n00b
n00b


Joined: 29 Jul 2003
Posts: 65
Location: Berlin/Germany

PostPosted: Mon Aug 30, 2004 7:55 pm    Post subject: Reply with quote

Usually both settings work, you might want to use modules for things like usb or on laptops pcmcia drivers since compiling them into the kernel seems like a waste of space to me when they are not permanently pluged in.

What you definetly want to compile into the kernel is support for your filesystem and anything else that is essantial for the computer to boot before he has access to /lib/modules.

For anyhting else it just depends on your flavor.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Aug 30, 2004 8:00 pm    Post subject: Reply with quote

MrFizziks,

When you are learning about kernel config its the school of hard knocks but there are some rules of thumb to help.

1. Say Y to anything you need to boot the box. Thats the root filesystem, the chip set drivers for the discs and the low level stuff for IDE or SCSI, or whatever your root drive is attached to.

2. Say N to things you won't need. Like ISDN, Old CD-ROMS, ISA support if yor motherboard doesn't have ISA slots.

3. Say M to things to be added after booting. Like network cards, sound, USB, Video and so on.

4. Read the help for every option and don't mess if you don't understand it. The default settings are 'mostly harmless'

Everyonses set up is different. It hlps if you know what hardware you have. Modules make for easier debugging too becasue they can be added, configured and removed from a running kernel.

There is some good reading in /usr/src/linux/Documentation too
_________________
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
MrFizziks
n00b
n00b


Joined: 30 Aug 2004
Posts: 2

PostPosted: Tue Aug 31, 2004 12:52 am    Post subject: Reply with quote

NeddySeagoon wrote:
MrFizziks,

When you are learning about kernel config its the school of hard knocks but there are some rules of thumb to help.

1. Say Y to anything you need to boot the box. Thats the root filesystem, the chip set drivers for the discs and the low level stuff for IDE or SCSI, or whatever your root drive is attached to.

2. Say N to things you won't need. Like ISDN, Old CD-ROMS, ISA support if yor motherboard doesn't have ISA slots.

3. Say M to things to be added after booting. Like network cards, sound, USB, Video and so on.

4. Read the help for every option and don't mess if you don't understand it. The default settings are 'mostly harmless'

Everyonses set up is different. It hlps if you know what hardware you have. Modules make for easier debugging too becasue they can be added, configured and removed from a running kernel.

There is some good reading in /usr/src/linux/Documentation too


Now that makes a lot of sense...thanks for the info!

MrFizziks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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