From owner-freebsd-hackers Wed Mar 21 20:40:52 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [209.152.133.57]) by hub.freebsd.org (Postfix) with ESMTP id 1157A37B718 for ; Wed, 21 Mar 2001 20:40:49 -0800 (PST) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f2M4egJ01573; Wed, 21 Mar 2001 20:40:42 -0800 (PST) (envelope-from obrien) Date: Wed, 21 Mar 2001 20:40:41 -0800 From: "David O'Brien" To: Matt Simerson Cc: freebsd-hackers@freebsd.org Subject: Re: 4.3-BETA world crashing 4.2-RELEASE kernel ? Message-ID: <20010321204041.A1425@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: <8D18712B2604D411A6BB009027F6449801B4B53D@0SEA01EXSRV1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <8D18712B2604D411A6BB009027F6449801B4B53D@0SEA01EXSRV1>; from mpsimerson@hostpro.com on Wed, Mar 21, 2001 at 12:58:04PM -0700 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG First let me say to anyone reading the email I am replying to: ____ _ _ ___ _____ _ _ _ _ | _ \ ___ | \ | |/ _ \_ _| __| | ___ | |_| |__ (_)___ | | | |/ _ \ | \| | | | || | / _` |/ _ \ | __| '_ \| / __| | |_| | (_) | | |\ | |_| || | | (_| | (_) | | |_| | | | \__ \ |____/ \___/ |_| \_|\___/ |_| \__,_|\___/ \__|_| |_|_|___/ On Wed, Mar 21, 2001 at 12:58:04PM -0700, Matt Simerson wrote: > # cd /usr/src > # make buildkernel KERNEL= > # cd /usr/src; make buildworld > # make installworld > # make installkernel > # mergemaster > # reboot The order or "make buildworld" and "make buildkernel" are 100% totally BACKWARDS. Lets explain why: There are times when the kernel source is changed to use constructs of newer compiler/assembler/linker tools. Thus the kernel will not build with an older set of tools. The what "make buildkernel" does is use the tools (ie, those built from the most up to date sources) that are built during "make buildworld" to compile a new kernel. Thus "make buildworld" must PROCEED "make buildkernel". Second, the install order above is not the conservative, careful approach. One should issue "make installkernel && reboot" after the "make buildkernel" to ensure the new kernel works sufficiently well. If not, one can always fall back to ``kernel.old''. Since there is no ``world.old''; after one does the "make installworld" backup tapes are the only way of taking the system back to its previous state. -- -- David (obrien@FreeBSD.org) GNU is Not Unix / Linux Is Not UniX To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message