Re: I do not understand kernel modules

From: Ramiro Aceves (ea1abz_at_wanadoo.es)
Date: 01/21/05

  • Next message: Dominique Goncalves: "Re: I do not understand kernel modules"
    Date: Fri, 21 Jan 2005 00:55:32 +0100
    To: Jorn Argelo <jorn@wcborstel.nl>
    
    

    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?

    Thanks

    >
    > Cheers,
    >
    > Jorn
    > _______________________________________________
    > 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"
    >

    _______________________________________________
    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: Dominique Goncalves: "Re: I do not understand kernel modules"

    Relevant Pages

    • Re: I do not understand kernel modules
      ... > Jorn Argelo wrote: ... >> card without recompiling your kernel. ... I would like to compile only the modules I use, ... "Give a man a fish, ...
      (freebsd-questions)
    • Re: Distributions
      ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be ... and slower than if you compile those packages, ... can have that stability with virtually any distro. ...
      (Debian-User)
    • Re: Distributions
      ... Ubuntu is based on Debian, ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be larger ... and slower than if you compile those packages, ...
      (Debian-User)
    • Problems with custom kernel fbsd 6.2
      ... My kernel for freebsd 6.2 is not compiling but only with my custom config. ... I was able to compile it with the GENERIC kernel included, but my modified one will not compile. ... # Power management support ...
      (freebsd-questions)
    • Re: [PATCH] 2.6 workaround for Athlon/Opteron prefetch errata
      ... >optimisations independently of each other', is fairly simple, (in ... >concept), and elegant, (as it lets you compile the most finely tuned ... >Up to now, selecting a CPU to compile for basically means, "Use ... it's silly to include them all in a kernel for a 386. ...
      (Linux-Kernel)