From owner-freebsd-current@FreeBSD.ORG Wed Apr 23 11:26:44 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8563E37B404 for ; Wed, 23 Apr 2003 11:26:44 -0700 (PDT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C50B43F93 for ; Wed, 23 Apr 2003 11:26:43 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.9/8.12.9) with ESMTP id h3NIQgMS015167 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 23 Apr 2003 14:26:43 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id h3NIQb772078; Wed, 23 Apr 2003 14:26:37 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16038.56029.799743.49248@grasshopper.cs.duke.edu> Date: Wed, 23 Apr 2003 14:26:37 -0400 (EDT) To: freebsd-current@freebsd.org X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Subject: module path? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2003 18:26:44 -0000 What's the official way to boot an alternate kernel these days? I upgraded the kernel sources and installed the resulting kernel and *.ko in /boot/kernel.test/ I then booted, broke into the loader, and told it to load /boot/kernel.test/kernel. When doing this, I expected that the module path would get set so that /boot/kernel.test was first. Nope. It auto-loaded /boot/kernel/acpi.ko. Then there was an earth-shattering kaboom :-( Is there a way to boot an alternate kernel which sets the module path for you? Thanks, Drew FreeBSD/i386 bootstrap loader, Revision 1.1 (gallatin@shout, Fri Apr 4 09:41:26 EST 2003) Loading /boot/defaults/loader.conf /boot/kernel/kernel text=0x27010c data=0x3bb64+0x3f870 syms=[0x4+0x36560+0x4+0x422cb] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel] in 9 seconds... Type '?' for a list of commands, 'help' for more detailed help. OK unload OK load kernel.test can't find 'kernel.test' OK load /boot/kernel.test/kernel /boot/kernel.test/kernel text=0x3ed2f8 data=0x5b5ac+0x77848 syms=[0x4+0x4ee50+0x4+\ 0x5ed77] OK boot /boot/kernel/acpi.ko text=0x39d74 data=0x19d8+0xb28 syms=[0x4+0x5800+0x4+0x74f]| Copyright (c) 1992-2003 The FreeBSD Project. <...> io3 (APIC): apic id: 11, version: 0x000f0011, at 0xfec03000 Pentium Pro MTRR support enabled Fatal trap 12: page fault while in kernel mode