Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 17:51:26 +0100
From:      Nils Holland <nils@tisys.org>
To:        Joe & Fhe Barbish <barbish@a1poweruser.com>
Cc:        FBSD Questions <questions@FreeBSD.ORG>
Subject:   Re: removeing sound card from kernel binary
Message-ID:  <20020105175126.A84919@tisys.org>
In-Reply-To: <LPBBIGIAAKKEOEJOLEGOAEGECLAA.barbish@a1poweruser.com>; from barbish@a1poweruser.com on Sat, Jan 05, 2002 at 11:24:30AM -0500
References:  <LPBBIGIAAKKEOEJOLEGOAEGECLAA.barbish@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 05, 2002 at 11:24:30AM -0500, Joe & Fhe Barbish stood up and spoke:
> I am building a stand-a-lone firewall box. 
> I have no need for sound card support. 
> 
> Is there a way to remove from the kernel to 
> make the kernel binary smaller?

You know that if you remove something from the kernel configuration, you'll
have to rebuild your kernel (unless you are using a module), right? So,
basically, to remove soundcard support from a kernel, you'd edit your
kernel configuration file and delete the "device" line corresponding to
your soundcard, for example "device pcm". If a line like this is not there
(it's not there in GENERIC, for example), then you are already running
without soundcard support, and there's no need to do something. Your
soundcard may still be reported during boot as "unknown card" or something,
but as long as no support for it has been compiled into your kernel (or the
appropriate modules has been loaded), there#s no need to worry.

Generally, from time to time I tend to go through my kernel config files in
order to bring them up to date. Most of the time I really find something I
must have missed in the past. Recently, for example, I went through a
config file and noticed that the correspoding machine didn't do anything
with its parallel port. So removed any printer / PLIP and general parallel
port support stuff.

If you want your kernel to take up as little space as possible, I guess
you'd also be best of by going through your kernel configuration
line-by-line and removing everything that's not vital. If you started from
GENERIC, there will probably be *many* things you don't need.

Greetings
Nils


-- 
Nils Holland
Ti Systems - FreeBSD in Tiddische, Germany
http://www.tisys.org * nils@tisys.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020105175126.A84919>