From owner-freebsd-questions@FreeBSD.ORG Thu May 20 09:10:44 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 91AD416A4CE for ; Thu, 20 May 2004 09:10:44 -0700 (PDT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 692DD43D2D for ; Thu, 20 May 2004 09:10:44 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (pa-plum1c-102.pit.adelphia.net [24.53.179.102]) by internet.potentialtech.com (Postfix) with ESMTP id 8F29D69A7E; Thu, 20 May 2004 12:10:43 -0400 (EDT) Message-ID: <40ACD880.9080708@potentialtech.com> Date: Thu, 20 May 2004 12:10:40 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040506 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stephen Liu References: <20040520151009.54166.qmail@web40303.mail.yahoo.com> In-Reply-To: <20040520151009.54166.qmail@web40303.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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:10:44 -0000 Stephen Liu wrote: > Hi all folks, > > FreeBSD 5.2 > =========== > > I am trying to learn recompiling kernel. I visited > following link; > http://www.freebsd.org/doc/en_US.IS...g-building.html > > But I am still not very clear of the correct steps to > be taken. I suppose taking following steps > > # 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. > # 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 > 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. 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. -- Bill Moran Potential Technologies http://www.potentialtech.com