From owner-freebsd-questions@FreeBSD.ORG Sat Dec 19 19:46:30 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36BB7106566B for ; Sat, 19 Dec 2009 19:46:30 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id E98BA8FC1C for ; Sat, 19 Dec 2009 19:46:29 +0000 (UTC) Received: by gxk10 with SMTP id 10so3942970gxk.3 for ; Sat, 19 Dec 2009 11:46:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=p/fixQo4HRWS5geFApJ7G52593IbtQcBrEjZWyTMwi4=; b=Pkgnhaz0Paf4otH6+v5WPkUxgpGqIZ4T1jrXjJTuSo1em6/iX4d4jBBdZeSlfR5zEL lTlgyrY9uFL/ltSI9b33v9yf8kW+Dw3E3pgBnq0+zQh8NKoWFbxYKMzbeGv4Vt8cro4w 61UemwiqdL4H/4Dlv0xHPSHeKaGh5WF4SwL0U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ipB+au66M1RnxvY1IdpB33ga7RnT3GNUgkosfIU/ERr4YpYhNtUIlQVN00DA2eBk3d G7H7SNXvnmYQs3GtGzSIBb1OEs0Mnh9EF6Y3LPkUPwrceaYk/d6/ijmAw+VIJ0dvSfDg co0z86MC+mOK2L89WwD7rYkcvrZsYVdx00zLw= MIME-Version: 1.0 Received: by 10.91.162.31 with SMTP id p31mr5453582ago.121.1261251988322; Sat, 19 Dec 2009 11:46:28 -0800 (PST) In-Reply-To: <20091219161309.GA57855@bsdbox.koderize.com> References: <20091219161309.GA57855@bsdbox.koderize.com> Date: Sat, 19 Dec 2009 14:46:27 -0500 Message-ID: From: "illoai@gmail.com" To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: question about building a custom kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Dec 2009 19:46:30 -0000 2009/12/19 Jamie Griffin : > Hi > > I have been reading the handbook to learn about building a custom > kernel, but just wanted to ask something about gathering information > about my hardware before I give it a go. > > The handbook suggests the command: > > # pciconf -lv > > ...which I like because it provides a clear list of components I can find > out about before I try to build the new kernel. > > On my system, this command does print out information for quite a few > components, I just wondered if this information is all I need to work > from or is it not an accurate or detailed enough representation of the > hardware I have in my computer. I'd really appreciate any advice on how > others go about this. > A couple of words of caution, based on the number of mails sent to this list complaining about "things not working": Always leave "device scbus" and "device da" in unless you're dead certain you'll never use a usb drive (& you'll also have to comment out "device umass" and maybe a couple of others to make it compile) among other things. "device miibus" should be left in too, again unless you really know for certain you don't need it. You may as well toss in "device drm" and the specific drm driver for your graphics card while you're going to the trouble. You aren't going to gain much in speed or size savings, so do take care to understand what you hope to gain. If you wish to shorten kernel compile times and reduce the size of /boot, have a look at the MODULES_OVERRIDE and WITHOUT_MODULES variables in /etc/make.conf. That said, good luck, I haven't had any serious problems and I've been using custom kernels since FreeBSD 4.1 or so. -- --