From owner-freebsd-questions Sat Jan 5 8:52:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mcqueen.wolfsburg.de (pns.wobline.de [212.68.68.5]) by hub.freebsd.org (Postfix) with ESMTP id A040B37B419 for ; Sat, 5 Jan 2002 08:52:40 -0800 (PST) Received: from colt.ncptiddische.net (ppp-187.wobline.de [212.68.69.198]) by mcqueen.wolfsburg.de (8.11.3/8.11.3/tw-20010821) with ESMTP id g05GqWg00706; Sat, 5 Jan 2002 17:52:32 +0100 Received: from tisys.org (jodie.ncptiddische.net [192.168.0.2]) by colt.ncptiddische.net (8.11.6/8.11.6) with ESMTP id g05GrBX25773; Sat, 5 Jan 2002 17:53:11 +0100 (CET) (envelope-from nils@tisys.org) Received: (from nils@localhost) by tisys.org (8.11.6/8.11.6) id g05Gqft85059; Sat, 5 Jan 2002 17:52:41 +0100 (CET) (envelope-from nils) Date: Sat, 5 Jan 2002 17:51:26 +0100 From: Nils Holland To: Joe & Fhe Barbish Cc: FBSD Questions Subject: Re: removeing sound card from kernel binary Message-ID: <20020105175126.A84919@tisys.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from barbish@a1poweruser.com on Sat, Jan 05, 2002 at 11:24:30AM -0500 X-Operating-System: FreeBSD jodie.ncptiddische.net 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE X-Machine-Uptime: 5:39PM up 5:06, 1 user, load averages: 0.12, 0.03, 0.01 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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