From owner-freebsd-questions Mon Mar 25 15:52: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by hub.freebsd.org (Postfix) with ESMTP id 57D0537B41B for ; Mon, 25 Mar 2002 15:51:56 -0800 (PST) Received: from lungfish.ntlworld.com ([80.4.0.215]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020325235154.YSM17317.mta06-svc.ntlworld.com@lungfish.ntlworld.com>; Mon, 25 Mar 2002 23:51:54 +0000 Received: from tuatara.goatsucker.org (tuatara.goatsucker.org [192.168.1.6]) by lungfish.ntlworld.com (8.11.6/8.11.3) with ESMTP id g2PNprj12297; Mon, 25 Mar 2002 23:51:53 GMT (envelope-from scott@tuatara.goatsucker.org) Received: (from scott@localhost) by tuatara.goatsucker.org (8.11.6/8.11.6) id g2PNpr904184; Mon, 25 Mar 2002 23:51:53 GMT (envelope-from scott) Date: Mon, 25 Mar 2002 23:51:53 +0000 From: Scott Mitchell To: Mike Meyer Cc: "Gary W. Swearingen" , Per olof Ljungmark , freebsd-questions@FreeBSD.ORG Subject: Re: Switching between kernels Message-ID: <20020325235153.A290@fishballoon.dyndns.org> References: <200203241500.g2OF02U62813@dns2.s.bonet.se> <20020324163052.C281@fishballoon.dyndns.org> <20020324223626.G281@fishballoon.dyndns.org> <15518.28332.691125.587105@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15518.28332.691125.587105@guru.mired.org>; from mwm-dated-1017447981.e0f1b4@mired.org on Sun, Mar 24, 2002 at 06:26:20PM -0600 X-Operating-System: FreeBSD 4.5-STABLE i386 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 On Sun, Mar 24, 2002 at 06:26:20PM -0600, Mike Meyer wrote: > In <20020324223626.G281@fishballoon.dyndns.org>, Scott Mitchell typed: > > On Sun, Mar 24, 2002 at 02:23:53PM -0800, Gary W. Swearingen wrote: > > > Scott Mitchell writes: > > > > Just hit a key to break out of the autoboot countdown, then: > > > > boot kernel.PCM > > > > or whatever you called the alternative kernel. > > > Might he need to do something with modules.PCM? > > > (The Handbook and loader(8) manual are too sketchy.)) > > That's because the truth is variable. Most modules don't care about > most compile-time options. A few do care about some. > > > Since both of Per's kernels are built from the same sources and identical > > except for the SMP/PCM options, either should work with the same set of > > modules. > > You're probably right. On the other hand, it wouldn't surprise me if > some modules changed because of SMP. PCM is available as a module > itself, so that shouldn't change anything. True... I hadn't thought of that. Is it possible, without major heroics, to have separate module installations for each kernel? The kernel Makefile has ${DESTDIR}/modules as the install path, so I guess you could tweak DESTDIR or just rename /modules after the first module set was installed. Then set the module_path loader variable to make sure the right set was used at boot time. Although if you're going to that much trouble it might be easier to just statically link everything. Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message