From owner-freebsd-current Tue Dec 29 12:23:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA07295 for freebsd-current-outgoing; Tue, 29 Dec 1998 12:23:39 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from hyperreal.org (taz.hyperreal.org [209.133.83.16]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA07288 for ; Tue, 29 Dec 1998 12:23:38 -0800 (PST) (envelope-from brian@hyperreal.org) Received: (qmail 8651 invoked by uid 24); 29 Dec 1998 20:23:20 -0000 Message-Id: <4.1.19981229121528.03d98ed0@hyperreal.org> X-Sender: brian@hyperreal.org X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Tue, 29 Dec 1998 12:20:03 -0800 To: "Jordan K. Hubbard" , Greg Lehey From: Brian Behlendorf Subject: Re: How do I build an a.out kld? Cc: FreeBSD current users In-Reply-To: <14069.914819618@zippy.cdrom.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 08:33 PM 12/27/98 -0800, Jordan K. Hubbard wrote: >> 1. I can build an ELF kernel. My understanding is that this will >> also require me to install the new style boot blocks. Correct? >> If so, is there any documentation on what to do here? > >Correct. > >1. cd /sys/boot && make all install >2. disklabel -B da0 (or whatever your boot disk is). > >Make sure you're also running a -current disklabel. Set KERNFORMAT=elf >in /etc/make.conf if you want to turn this on by default. I just upgraded to an ELF kernel, updated the boot blocks, and everything boots up great, except the new boot loader appears to be looking for a /boot/boot.conf (fails, then waits for 8 seconds, then boots /kernel). I noticed I have a zero-length /boot.config file - should I move that to /boot/boot.conf? I also noticed that although I had KERNFORMAT set to elf in my environment and KERNFORMAT=elf in /etc/make.conf, while configing and then building the kernel I had to set KERNFORMAT in the compile directory's Makefile before it would actually build an elf kernel. Perhaps a "make KERNFORMAT=elf" was necessary? Brian --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-- History is made at night; brian@hyperreal.org character is what you are in the dark. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message