Re: I do not understand kernel modules

From: Gardner Bell (gbell72_at_rogers.com)
Date: 01/21/05

  • Next message: Ian Moore: "Re: ntpd problems since upgrading to 5.3 - found the problem!"
    Date: Fri, 21 Jan 2005 08:42:17 -0500
    To: Ramiro Aceves <ea1abz@wanadoo.es>
    
    

    On Fri, Jan 21, 2005 at 12:55:32AM +0100 Ramiro Aceves wrote:
    > Jorn Argelo wrote:
    > >On Thu, 20 Jan 2005 13:38:54 +0100, Ramiro Aceves wrote
    > >
    > >>Hello friends.
    > >>
    > >>I am a FreeBSD newbie, I am going to ask you a question that I have not
    > >>been able to solve reading the manual. I am using 5.3 release. I have
    > >>compiled a custom kernel in my old pentium 75 MHz machine to include
    > >>the driver for my sound card. I added the following lines to the kernel
    > >>config file
    > >>
    > >>device sound
    > >>device "snd_es137x"
    > >>
    > >>and compiled the kernel perfectly. (long time.... ;-) )
    > >>
    > >>But there is something that I do not understand well. When I look at
    > >>the contents of /boot/kernel/ directory, I found that there are
    > >>kernel sound modules *.ko for every sound card the kernel supports.
    > >>Should not there be my sound card module alone? Does It mean that
    > >>you have to compile all the stuff, even if you are going to use only
    > >>one kind of sound card? Am I missing something?
    > >
    > >
    > >Your sound card has been build into the kernel itself (which is
    > >/boot/kernel/
    > >kernel AFAIK). The *.ko are kernel modules, which you can load using the
    > >kldload command. So in case you get a new sound card, find out what driver
    > >it supports and you can use kldload <yourdriver>.ko to get support for
    > >your sound card without recompiling your kernel.
    >
    >
    >
    > Yes, I understand now. The problem is that my old pentium machine takes
    > very long time to compile all the modules even if I am not going to use
    > them. I would like to compile only the modules I use, to reduce
    > compiling time. Is that possible?
    >
    Refer to the option MODULES_OVERRIDE in man make.conf(5) if you wish
    to only compile certain modules.

    Gardner
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Ian Moore: "Re: ntpd problems since upgrading to 5.3 - found the problem!"

    Relevant Pages

    • Re: I do not understand kernel modules
      ... Jorn Argelo wrote: ... >>the driver for my sound card. ... I added the following lines to the kernel ... very long time to compile all the modules even if I am not going to use ...
      (freebsd-questions)
    • Re: [opensuse] No sound on new HP laptop; touch-switch may be the culprit.
      ... compile thing. ... web for your sound card and sound card chip) ... Shell command to add modules: ... When muted, it turns orange; ...
      (SuSE)
    • Re: Use of libraries
      ... I can even define interface types ... the entity will also contain the package that defines its interface ... 'Compile out of date' from the GUI and go right on back to simulating. ... other files will need recompiling leading to the annoyance that you're ...
      (comp.lang.vhdl)
    • Re: Heres a good one...
      ... fixing each error one at a time and recompiling ... > compile, I merely recompile it, by executing the same command used by ... I can restart the building procedure of the ...
      (comp.lang.c)
    • Re: What is LISP good for, that is harder in other languages?
      ... it recompiling every single file? ... Makefile-based system would avoid that bogosity. ... header file with functions like drawLine, drawRect etc. and many files, ... Almost any C or C++ system can be made to compile efficient when almost ...
      (comp.lang.lisp)