View previous topic :: View next topic |
Author |
Message |
TheGentooCow n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Aug 2005 Posts: 5
|
Posted: Thu Aug 18, 2005 3:03 am Post subject: Compiling ALL Modules |
|
|
Hi,
I'm repeatedly asked questions such as "what should I do if my scanner doesn't work" or "what if my usb stick isn't seen" or "my network card." It's usually kind of difficult to tell these people which modules exactly to compile in. So I was wondering if there was some way to compile ALL modules in the kernel. I know that this will affect speed and performance, but these two aren't crucial for home users just wanting to get their devices working. However, I've also heard that it isn't very easy compiling in all the modules and usually results in errors during compilation. Any tips / hints? Thanks for your time... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Roguelazer Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1115405797412a969b20fa5.jpg)
Joined: 10 Feb 2003 Posts: 1233 Location: San Francisco, CA
|
Posted: Thu Aug 18, 2005 3:18 am Post subject: |
|
|
Just use make menuconfig and put in every single option. I'd instead reccommend compiling everything as a module, however, then letting the autoload system put in what you need, when you need it. Except the core drivers (namely, ext2 and whatever your root fs is), that is. _________________ Registered Linux User #263260 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TheGentooCow n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Aug 2005 Posts: 5
|
Posted: Thu Aug 18, 2005 8:01 pm Post subject: |
|
|
Thanks Roguelazer. Just out of curiousity, is there any way that I can compile everything as modules (except for things such as filesystems) without manually going in and setting each item to be a module? Thanks for your time... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
widan Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/142533236243680bda6f27b.jpg)
Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Thu Aug 18, 2005 8:29 pm Post subject: |
|
|
You can run "make allmodconfig". That will turn on all options, either as module if they can be compiled that way or built-in if they can't be modules. But you will need to remove some of them (most importantly SELinux if you don't use it - as it can render a system unbootable if the system is not configured for it, but possibly others too), and you will also need to enable some things statically (root filesystem, IDE and/or SATA drivers, ...).
But note that the "make allmodconfig" was probably never intended to be used that way (it's designed to track down kernel compile errors with everything enabled, so the devs don't have to enable everything by hand - there is also an allyesconfig and an allnoconfig, and even a randconfig make option).
Also, before you do this, backup your .config somewhere safe ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Meinrad n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_morpheus.gif)
Joined: 07 Jul 2005 Posts: 27 Location: Switzerland
|
Posted: Tue Aug 23, 2005 12:18 pm Post subject: genkernel |
|
|
Hi there
I'm not very used to Gentoo, I installed it only a few months ago. But as far as I know, there is a program called genkernel, which helps configuring the kernel. Why don't you try that?
I think, the genkernel is mentioned in the install-docs. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Roguelazer Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1115405797412a969b20fa5.jpg)
Joined: 10 Feb 2003 Posts: 1233 Location: San Francisco, CA
|
Posted: Tue Aug 23, 2005 7:49 pm Post subject: |
|
|
genkernel is generally designed for new users that don't want to deal with the complexities of configuring a kernel. genkernel autodetects and creates a "safe" kernel configuration. For more advanced configuration, it's better to do it by hand. _________________ Registered Linux User #263260 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|