From nobody  Sun Nov  1 15:06:36 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id PAA21996;
          Sun, 1 Nov 1998 15:06:36 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199811012306.PAA21996@hub.freebsd.org>
Date: Sun, 1 Nov 1998 15:06:36 -0800 (PST)
From: rv@fore.com
To: freebsd-gnats-submit@freebsd.org
Subject: Bootloader doesn't recognize ELF kernel
X-Send-Pr-Version: www-1.0

>Number:         8533
>Category:       kern
>Synopsis:       Bootloader doesn't recognize ELF kernel
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov  1 15:10:00 PST 1998
>Closed-Date:    Sun Nov 1 16:12:20 PST 1998
>Last-Modified:  Sun Nov  1 16:18:38 PST 1998
>Originator:     Rajesh Vaidheeswarran
>Release:        3.0-RELEASE
>Organization:
>Environment:
FreeBSD freebsd.eng.fore.com 3.0-RELEASE FreeBSD 3.0-RELEASE #0: Sun Nov  1 15:27:24 EST 1998     bash@freebsd.eng.fore.com:/usr/src/sys/compile/FB30  i386

>Description:
I compiled a kernel with KERNFORMAT?=    elf and the bootloader 
couldn't load the elf kernel. The complaint was:

kernel:
Invalid format!

1. If it was unsupported, then should the makefile probably warn 
   that it is invalid to change the format?

2. When do we plan to support elf format in the kernel?

Thanks

>How-To-Repeat:
config a kernel of your choice in 3.0, 
cd /sys/compile/Myourkernel>
edit the Makefile and replace 'aout' with 'elf' in KERNFORMAT? flag
and compile (make clean; make depend; make; make install)
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: rnordier 
State-Changed-When: Sun Nov 1 16:12:20 PST 1998 
State-Changed-Why:  
You need to "make world" or otherwise ensure that the directory /boot 
is correctly populated.  Then create or edit the file /boot.config and 
ensure that it contains the string "/boot/loader".  (Alternatively, 
you can type /boot/loader at the "Boot: " prompt.) 

(Pilot error.) 
>Unformatted:
