From kuku@gilberto.physik.RWTH-Aachen.DE  Wed Apr 22 23:53:47 1998
Received: from gilberto.physik.RWTH-Aachen.DE (gilberto.physik.rwth-aachen.de [137.226.30.2])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA16663
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 22 Apr 1998 23:53:42 -0700 (PDT)
          (envelope-from kuku@gilberto.physik.RWTH-Aachen.DE)
Received: (from kuku@localhost)
	by gilberto.physik.RWTH-Aachen.DE (8.8.8/8.8.7) id IAA04881;
	Thu, 23 Apr 1998 08:58:05 +0200 (MEST)
	(envelope-from kuku)
Message-Id: <199804230658.IAA04881@gilberto.physik.RWTH-Aachen.DE>
Date: Thu, 23 Apr 1998 08:58:05 +0200 (MEST)
From: kuku@FreeBSD.ORG
Reply-To: kuku@FreeBSD.ORG
To: FreeBSD-gnats-submit@freebsd.org
Subject: boot2 too big
X-Send-Pr-Version: 3.2

>Number:         6391
>Category:       i386
>Synopsis:       /sys/i386/boot/biosboot/boot2 too big when -DBOOT_HD_BIAS=1 enabled
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 23 00:00:01 PDT 1998
>Closed-Date:    Sat Apr 25 23:22:43 PDT 1998
>Last-Modified:  Sat Apr 25 23:23:50 PDT 1998
>Originator:     Christoph Kukulies
>Release:        FreeBSD 2.2.5-RELEASE i386 , probably 2.2.6 also
>Organization:
I. Physikalisches Institut RWTH Aachen
>Environment:


kernel build environment on a 2.2.5-RELEASE System


>Description:

/sys/i386/boot/biosboot/Makefile
contains a line:
           
#CFLAGS+=        -DBOOT_HD_BIAS=1

enabling this line (to hardwire booting other than the default drives)
leads to 

dd if=boot.nohdr of=boot2 bs=512 skip=1
14+1 records in
14+1 records out
7200 bytes transferred in 0.001654 secs (4353007 bytes/sec)
boot2 is too big
*** Error code 2

Stop.


> How-To-Repeat: 

Enable the line 

CFLAGS+=        -DBOOT_HD_BIAS=1 

in /sys/i386/boot/biosboot/Makefile

and 'make'. 


>How-To-Repeat:
>Fix:

no userwise fix in sight. Probably the added code must be streamlined
or module must be optimized harder.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sat Apr 25 23:22:43 PDT 1998 
State-Changed-Why:  
Keeping the bootblocks under their magic sizelimits is well-know 
for being non-trivial.  Consider removing BAD144 or something else 
to reduce the size. 
>Unformatted:
