From owner-freebsd-questions Wed Jul 19 22: 3:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mostgraveconcern.com (mostgraveconcern.com [216.82.145.240]) by hub.freebsd.org (Postfix) with ESMTP id 3D5E637B92F for ; Wed, 19 Jul 2000 22:03:10 -0700 (PDT) (envelope-from dan@mostgraveconcern.com) Received: from danco (danco.mostgraveconcern.com [10.0.0.2]) by mostgraveconcern.com (8.9.3/8.9.3) with SMTP id WAA33253 for ; Wed, 19 Jul 2000 22:03:08 -0700 (PDT) (envelope-from dan@mostgraveconcern.com) Message-ID: <02ad01bff207$cbfe5980$0200000a@danco> Reply-To: "Dan O'Connor" From: "Dan O'Connor" To: "freebsd-questions" Subject: 'make buildkernel' revisited (uh oh!) Date: Wed, 19 Jul 2000 22:03:08 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Without attempting to spawn another mega-discussion, I have a (hopefully) easy question: First, it appears that the concensus of the last discussion was that the *normal* kernel build method (config/make depend/make...) can be used with much success, unless you cross a source boundary which breaks it (and which should be indicated in /usr/src/UPDATING, as in the 20000706 and 20000501 entries). In such instances the 'make buildkernel installkernel' method must be used. In the procedures below (these are simplified outlines, and not all steps are shown...), Proc 1 is the 3.x-4.x upgrade and Proc 2 is the *normal* make world procedure. My question is: When using buildkernel in a make world, should the kernel be built before installworld (Proc 3) or can buildkernel be done *after* installworld (Proc 4)? Procedure 1: Outline of 3.x - 4.x upgrade: make buildworld make install in cd /usr/src/sys/modules make install in cd /usr/src/sbin/mknod make buildkernel installkernel KERNEL=YOURKERNEL reboot to single user mode make installworld merge /etc reboot Procedure 2: Outline of *normal* make world: make buildworld drop to single user mode make installworld merge /etc /usr/sbin/config YOURKERNEL make depend && make && make install reboot Procedure 3: Outline of buildkernel *before* installworld: make buildworld make buildkernel installkernel KERNEL=YOURKERNEL drop to single user mode make installworld merge /etc reboot Procedure 4: Outline of buildkernel *after* installworld: make buildworld drop to single user mode make installworld merge /etc make buildkernel installkernel KERNEL=YOURKERNEL reboot Any clarification is welcome! TIA, --Dan -- Dan O'Connor On Matters of Most Grave Concern http://www.mostgraveconcern.com FreeBSD Cheat Sheets http://www.mostgraveconcern.com/freebsd/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message