Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling modules into the kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
OpelBlitz
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 228
Location: Chicago, Illinois

PostPosted: Thu Dec 12, 2002 10:40 pm    Post subject: Compiling modules into the kernel Reply with quote

During the install when you run 'make menuconfig' you chooose what things you'd like to have integrated into the kernel or what-not -- is it okay to have everything I want to have built-in the kernel as opposed as being modules?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Dec 12, 2002 10:45 pm    Post subject: Reply with quote

Not everything. A couple of things I can think of that won't work unless they are built as modules are PCMCIA and ALSA. We're working on a FAQ entry for this question, BTW. It will be KC7.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7184
Location: Pelotas, BR

PostPosted: Fri Dec 13, 2002 12:31 am    Post subject: Reply with quote

I have pcmcia compiled inside the kernel and I can read my PCMCIA/Flash Card adaptor without problems. Once I had ALSA compiled into the kernel too, and it worked (unless I am missing something here....)

But in some cases you'll want things compiled as modules (I have seen people saying that hotplug works better with modules, the same for PCMCIA and ALSA, although I haven't had problems with these drivers inside the kernel).

rac wrote:
Not everything. A couple of things I can think of that won't work unless they are built as modules are PCMCIA and ALSA. We're working on a FAQ entry for this question, BTW. It will be KC7.
Back to top
View user's profile Send private message
mrchuckles
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2002
Posts: 125
Location: Severn, MD

PostPosted: Fri Dec 13, 2002 1:42 am    Post subject: Reply with quote

It's the next Fox special, "When moderators attack!". hehe

Anyway, I also have never had issues compiling PCMCIA and ALSA directly into the kernel. However, that assumes you're using an ALSA patched kernel and the kernel PCMCIA.

I think what rac was referring to was a standard vanilla kernel (which has no ALSA), and the external PCMCIA suite. In that instance, both things HAVE to be compiled as modules, because they're not part of the kernel source.

The only thing compiling options as modules gives you is flexibility. For example, VMWare didn't like the UHCI USB driver I was using once, so I recompiled my kernel, and compiled both UHCI drivers as modules. I could load them and unload them as necessary to troubleshoot the problem. I can also compile modules for hardware that's not usually connected to my machine, like USB-to-USB data transfer cables, USB NICs, joysticks, etc, etc. I figure, the less stuff I have running 24x7, the less troubles I'll run into. It's basic KISS.

The only standard kernel level driver I remember that HAD to be compiled as a module was the instance of wanting both parallel port ZIP support, and parallel port printer support. You couldn't have both loaded at the same time, so you needed each one compiled as modules, allowing you to load and unload them at will. However, that was with the 2.0 and 2.2 series kernels, and it's been a long time since I've used a parallel port zip drive.

It's also typically a good idea to compile your root and boot partition's file system type into your kernel, as well as your primary drive's controller driver. I think Gentoo also requires you to have devfs support and virtual memory filesystem support compiled in.
Back to top
View user's profile Send private message
OpelBlitz
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 228
Location: Chicago, Illinois

PostPosted: Fri Dec 13, 2002 3:43 am    Post subject: Reply with quote

Now that I am sitting here compiling KDE, I cannot exactly remember what I had set as a module and built in. :)

I compiled with the gentoo sources.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 15989
Location: Colorado

PostPosted: Fri Dec 13, 2002 6:01 pm    Post subject: Reply with quote

Moved from Installing Gentoo.

OpelBlitz wrote:
Now that I am sitting here compiling KDE, I cannot exactly remember what I had set as a module and built in. :)
While the output may be somewhat cryptic:
Code:
grep =m /usr/src/linux/.config
will output anything set as a module. Change to =y will show what is compiled into the kernel.
_________________
Safety is my gaol.
US Constitution | Amendments
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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