From owner-freebsd-questions Fri Apr 26 5:36:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by hub.freebsd.org (Postfix) with ESMTP id 4790E37B400 for ; Fri, 26 Apr 2002 05:36:37 -0700 (PDT) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id FAA11393; Fri, 26 Apr 2002 05:36:34 -0700 Message-ID: <3CC949D1.6070106@owt.com> Date: Fri, 26 Apr 2002 05:36:33 -0700 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us, es-mx MIME-Version: 1.0 To: Noel Balansag Cc: questions@FreeBSD.ORG Subject: Re: compiling new kernel References: <3.0.32.20020426091646.0069407c@pop3.arnet.com.ar> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Noel Balansag wrote: > hello all. > > newbie question. > > i just upgraded my machine to -p4, no problems whatsoever. but, i need to > rebuild my kernel, enable IPDIVERT and IPFIREWALL. and i followed the > handbook and deleted /usr/obj w/o first checking ( stupid me ). it was then > that i saw that the path of the new GENERIC kernel is through > /usr/obj/usr/src.... > > question, where do i find the new generic kernel? can i undelete the whole > /usr/obj directory? or do i have to start the whole upgrade process again? > It depends on how far you got into updating your system. If you finished buildworld, build[install]kernel, and installworld, you can use the config way of building a kernel. A buildkernel depends on a populated /usr/obj. BTW, you usually don't add features to GENERIC. You create a MYKERNEL (choosing a name that means something to you) and add features to it. You are supposed to read /usr/src/UPDATING to see if there are changes that you need to deal with. The technique for updating a system is around line 415. There is a section on dealing with the kernel in the handbook. The URL is http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html and chapter 9 deals with modifying the kernel. If you can use the config method of building a kernel, you can read about it in section 9.3. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message