From owner-freebsd-questions@FreeBSD.ORG Tue Sep 16 17:22:40 2003 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 DFCF316A4B3 for ; Tue, 16 Sep 2003 17:22:40 -0700 (PDT) Received: from southgate.ph.inter.net (lanceb.ph.inter.net [202.61.82.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04AD743FBD for ; Tue, 16 Sep 2003 17:22:40 -0700 (PDT) (envelope-from chael@southgate.ph.inter.net) Received: from JMICH (unknown [192.168.1.238]) by southgate.ph.inter.net (Postfix) with SMTP id 67C112376 for ; Wed, 17 Sep 2003 08:22:37 +0800 (PHT) Message-ID: <003501c37cb1$cd03a690$ee01a8c0@JMICH> From: To: References: <003601c37c8f$cfe8e4a0$04fea8c0@moe> Date: Wed, 17 Sep 2003 08:22:38 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: Rebuilding the 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: Wed, 17 Sep 2003 00:22:41 -0000 If you just need to rebuild your kernel, edit the config file and do only this command under /usr/src/ dir: make buildkernel installkernel KERNCONF=yourkernel That's all. :-P > On Tue, 16 Sep 2003 15:19:20 -0500, Charles Howse > wrote: > > >> > So I can get it right in my head (now there's a challenge). > >> The correct > >> > steps for building a custom kernel is: > >> > > >> > 1) update sources > >> > 2) rm -rf /usr/obj/* > >> > 3) make buildworld > >> > 4) edit kernel config file > >> > 5) make buildkernel > >> > 6) make installkernel > >> > 7) reboot > >> > 8) make installworld > >> > 9) mergemaster > >> > > >> > Many Thanks > >> > > >> > Mark. > >> > >> I believe that's mostly it, but there are smaller steps that may be > >> important inbetween, like doing `chflags' on /usr/obj/* > >> before removing > >> the files - all this is in the manual, though. The steps outlined > >> above are in the handbook - in that order. Take another look at the > >> handbook and if you still have problem reply with specific issues. > > > > Here's a real good article. > > http://bsdvault.net/sections.php?op=viewarticle&artid=21 > > # cd /usr/obj > > # chflags -R noschg * > > # rm -rf * > > One other step between removing the old /usr/obj and making buildworld: > > # mergemaster -p > > Jud > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >