From owner-freebsd-questions Sun Aug 15 23: 2:44 1999 Delivered-To: freebsd-questions@freebsd.org Received: from www.inx.de (www.inx.de [195.21.255.251]) by hub.freebsd.org (Postfix) with ESMTP id 55AA414FFE for ; Sun, 15 Aug 1999 23:02:38 -0700 (PDT) (envelope-from jnickelsen@acm.org) Received: from n31-100.berlin.snafu.de ([195.21.31.100] helo=goting.jn.berlin.snafu.de) by www.inx.de with esmtp (Exim 3.02 #1) id 11GFrJ-0007Mm-00; Mon, 16 Aug 1999 08:03:02 +0200 Received: by goting.jn.berlin.snafu.de (Postfix, from userid 100) id 8016912F; Mon, 16 Aug 1999 00:58:41 +0200 (CEST) To: Gustavo Vieira G C Rios Cc: Mikko Grönroos , freebsd-questions@FreeBSD.ORG Subject: Re: Kernel/SMC Ultra etc. References: <37B699BF.28A547A8@mpoli.fi> <37B6CD94.8AAFB879@ddsecurity.com.br> From: Juergen Nickelsen Date: 16 Aug 1999 00:58:41 +0200 In-Reply-To: Gustavo Vieira G C Rios's message of "Sun, 15 Aug 1999 14:24:20 +0000" Message-ID: Lines: 52 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gustavo Vieira G C Rios writes: [on the question how to configure a kernel] > cd /sys/i386/conf/ > cp LINT MY_KERNEL_NAME > /* This dir contains files you should edit to have a personal kernel./* > vi MY_KERNEL_NAME While this is technically correct, I think for a novice it is a bad idea to start with the LINT configuration when building a kernel. The LINT configuration contains many, many more options than necessary for a running system, and this will be very confusing for someone who isn't *really* familiar with the meaning of all these options. I'd recommend starting with the GENERIC configuration. I always do the following for each item: (1) If I don't know what this option or driver/device does, I leave it in place or I look it up in LINT and continue with step (2). (2) If I am not really sure if I need it, I leave it in place. (3) If I know it and I know I will never need it, I delete it from my configuration. (4) If I know that I don't need it, but may need it some time, I comment it out. (5) If I know that I need it, I leave it in place. If I then can't find the option or driver I need, I look into LINT to locate it and copy the entry. When building the first custom kernel, the GENERIC configuration has the prime advantage that it is guaranteed to work -- after all, this is the kernel you booted the currently running system from. (If you by chanced booted any other kernel, use that configuration to start with.) If you are not sure you fully understood the process of configuring and building a kernel, you can for a start copy the GENERIC configuration, change only the "ident" directive to the name your configuration should have, and configure, build, install, and boot this kernel as described. If the name you chose shows up on boot (and with ``uname -v''), you are on the right track so far. > /* Edit this file to suit your needs */ > config MY_KERNEL_NAME > cd ../../compile/MY_KERNEL_NAME > make depend && make && make install & reboot ^ This should, of course, be a double ampersand as well. -- Juergen Nickelsen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message