From owner-freebsd-hackers Thu Oct 29 03:36:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA12145 for freebsd-hackers-outgoing; Thu, 29 Oct 1998 03:36:43 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bandicoot.prth.tensor.pgs.com (bandicoot.prth.tensor.pgs.com [157.147.224.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA12137 for ; Thu, 29 Oct 1998 03:36:40 -0800 (PST) (envelope-from shocking@ariadne.prth.tensor.pgs.com) Received: from ariadne.tensor.pgs.com (ariadne [157.147.227.36]) by bandicoot.prth.tensor.pgs.com (8.8.8/8.8.8) with SMTP id TAA14897; Thu, 29 Oct 1998 19:36:31 +0800 (WST) Received: from ariadne by ariadne.tensor.pgs.com (SMI-8.6/SMI-SVR4) id TAA05338; Thu, 29 Oct 1998 19:36:31 +0800 Message-Id: <199810291136.TAA05338@ariadne.tensor.pgs.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Peter Wemm cc: hackers@FreeBSD.ORG Subject: Re: The new bootloader - how do you set it up? In-reply-to: Your message of "Thu, 29 Oct 1998 14:38:40 +0800." <199810290638.OAA04511@spinner.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 29 Oct 1998 19:36:31 +0800 From: Stephen Hocking-Senior Programmer PGS Tensor Perth Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Eureka - it works! Now for the modules..... > Chuck Robey wrote: > > On Wed, 28 Oct 1998, Mike Smith wrote: > > > > > > Can someone give me a pointer? I'm still running an a.out kernel on a sys > tem > > > > that was installed from a 3.0 snapshot CD and has been kept upto date via > cvs > > > > since. > > > [Deletia] > I'll also mention that this is jumping in at the deep end. You can > shortcut and do this: echo "/boot/loader" > /boot.config > as an intermediate step and test that. This will cause the existing > bootblocks to load the 3rd stage boot loader by default instead of > /kernel - but you are not yet committed. You still have the old boot: > prompt and can load /kernel.aout explicitly. The command that Mike has > given puts the new boot *blocks* on the disk which are not strictly > necessary to use the /boot/loader boot loader. > > You can actually test the new bootloader out by explicitly typing in > /boot/loader at the existing boot: prompt. > > > Excuse me (I'm worried about doing something inordinately dumb), just to > > verify, if I do that line above, after a buildworld/installworld, and > > then build a new kernel with KERNFORMAT set to elf, and install it, I > > should be running ok, right? All my newly regenned lkms will keep on > > humming fine, same obj files that powered the aout kernel, right? > > If you build an ELF kernel, you throw out the lkm's. They are a.out only, > because it depends on the a.out 'ld' command. Instead you can use the src/ > sys/modules stuff with kldload/kldunload and/or loading them at boot time > via the /boot/loader command prompt or the /boot/loader.conf script. > > One of my machines has: > > peter@overcee[2:34pm]~src-240> cat /boot/boot.conf > load kernel > load nfs.ko > autoboot 10 > -- The views expressed above are not those of PGS Tensor. "We've heard that a million monkeys at a million keyboards could produce the Complete Works of Shakespeare; now, thanks to the Internet, we know this is not true." Robert Wilensky, University of California To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message