View previous topic :: View next topic |
Author |
Message |
MrFizziks n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Aug 2004 Posts: 2
|
Posted: Mon Aug 30, 2004 7:47 pm Post subject: n00b: How do you know what is a module? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
potatoface Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/20997667894b00805c1cbac.png)
Joined: 18 Feb 2004 Posts: 542 Location: ::7F00:1
|
Posted: Mon Aug 30, 2004 7:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
yinyang n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/12448581703fa76770e9adb.jpg)
Joined: 29 Jul 2003 Posts: 65 Location: Berlin/Germany
|
Posted: Mon Aug 30, 2004 7:55 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54824 Location: 56N 3W
|
Posted: Mon Aug 30, 2004 8:00 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
MrFizziks n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Aug 2004 Posts: 2
|
Posted: Tue Aug 31, 2004 12:52 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|