From owner-freebsd-questions@FreeBSD.ORG Thu May 20 09:39:28 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EBE316A4D0 for ; Thu, 20 May 2004 09:39:28 -0700 (PDT) Received: from web40302.mail.yahoo.com (web40302.mail.yahoo.com [66.218.78.81]) by mx1.FreeBSD.org (Postfix) with SMTP id 39D6D43D3F for ; Thu, 20 May 2004 09:39:28 -0700 (PDT) (envelope-from satimis@yahoo.com) Message-ID: <20040520163907.7064.qmail@web40302.mail.yahoo.com> Received: from [203.88.168.195] by web40302.mail.yahoo.com via HTTP; Fri, 21 May 2004 00:39:07 CST Date: Fri, 21 May 2004 00:39:07 +0800 (CST) From: =?iso-8859-1?q?Stephen=20Liu?= To: Bill Moran In-Reply-To: <40ACD880.9080708@potentialtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-questions@freebsd.org Subject: Re: Correct steps to recompile kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2004 16:39:28 -0000 Hi Bill, Tks for your advice. - snip - > > # cd /usr/src/sys/i386/conf > > # cp GENERIC GENERIC.bak > > # cp GENERIC MYKERNEL > > # ee MYKERNEL > > (modifying the kernel) > > This is good ... although making a backup of GENERIC > is > somewhat redundant. Noted with thanks. But in case of trouble where can I get the old kernel back. > > # config MYKERNEL > > # cd /usr/src/sys/i386/compile/MYKERNEL > > (Are the above directories correct???) > > > > # make depend > > # make > > # make install > > This is the _old_ way. I believe it still works, > but I > don't know if it's supported any longer, and > besides, it's > just more work than needed. The docs describe the > newer > method, which is > > cd /usr/src > make buildkernel KERNCONF=MYKERNEL > > make installkernel KERNCONF=MYKERNEL > reboot Noted with thanks. > > check /etc/rc.conf to have the line: > > linux_enable="YES" > > reboot PC > > This is a completely different thing than compiling > a kernel. > If you want the linuxulator installed, definately do > this, > but it's not really related to building a kernel. Noted. > You don't mention if you've updated your source code > or not. > Just a warning, if you _did_ update your source > code, you need > to remake world as well as the kernel or you'll have > trouble. > If you didn't update your source, the steps outlined > above > should cover everything. No, I am not going to upgrade the kernel, only to activate SCSI support. Sorry for not mentioning it on my first posting. Tks B.R. Stephen _______________________________________________________________________ Do You Yahoo!? Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk