From obrien@dragon.nuxi.com  Sun Jan 11 15:02:58 1998
Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [128.120.56.38])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA15671
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 11 Jan 1998 15:02:56 -0800 (PST)
          (envelope-from obrien@dragon.nuxi.com)
Received: from dragon.nuxi.com (d60-090.leach.ucdavis.edu [169.237.60.90]) by relay.nuxi.com (8.8.7/8.6.12) with ESMTP id PAA06150 for <FreeBSD-gnats-submit@freebsd.org>; Sun, 11 Jan 1998 15:02:24 -0800 (PST)
Received: (from obrien@localhost) by dragon.nuxi.com (8.8.7/8.7.3) id XAA17385; Sun, 11 Jan 1998 23:02:11 GMT
Message-Id: <199801112302.XAA17385@dragon.nuxi.com>
Date: Sun, 11 Jan 1998 23:02:11 GMT
From: "David O'Brien" <obrien@NUXI.com>
Reply-To: obrien@NUXI.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: boot blocks too big with BOOT_HD_BIAS defined
X-Send-Pr-Version: 3.2

>Number:         5481
>Category:       kern
>Synopsis:       boot blocks too big with BOOT_HD_BIAS defined
>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:   Sun Jan 11 15:10:01 PST 1998
>Closed-Date:    Thu Apr 30 22:52:28 PDT 1998
>Last-Modified:  Thu Apr 30 22:52:46 PDT 1998
>Originator:     David O'Brien
>Release:        FreeBSD 2.2.5-STABLE i386
>Organization:
The FreeBSD Project
>Environment:

	FBSD boot disk is sd0, but I have wd0 and wd1's installed.

>Description:

	if you uncomment the definition for BOOT_HD_BIAS in
	sys/sys/i386/boot/biosboot/Makefile and then make, you get

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

	Obvisouly this isn't so serious now that we have /boot.config,
	but I liked hard coding this into the boot blocks so I don't have
	to worry about the existance of this file.

>How-To-Repeat:

	obvious

>Fix:
	
	help, bde :-)

>Release-Note:
>Audit-Trail:

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@FreeBSD.ORG, obrien@NUXI.com
Cc:  Subject: Re: kern/5481: boot blocks too big with BOOT_HD_BIAS defined
Date: Mon, 12 Jan 1998 14:53:28 +1100

 >	if you uncomment the definition for BOOT_HD_BIAS in
 >	sys/sys/i386/boot/biosboot/Makefile and then make, you get
 >
 >	dd if=boot.nohdr of=boot2 bs=512 skip=1
 >	14+1 records in
 >	14+1 records out
 >	7200 bytes transferred in 0.001314 secs (5479269 bytes/sec)
 >	boot2 is too big
 >	*** Error code 2
 
 Not all options can fit, so you have may have to remove option(s) to
 fit another option.  The standard 2.2.5 options leave 0 bytes free, so
 you always have to remove option(s) to fit even a small option like
 BOOT_HD_BIAS.
 
 >	Obvisouly this isn't so serious now that we have /boot.config,
 >	but I liked hard coding this into the boot blocks so I don't have
 >	to worry about the existance of this file.
 
 You will have to worry soon when BOOT_HD_BIAS is removed :-).
 
 Bruce

From: Nate Williams <nate@mt.sri.com>
To: obrien@NUXI.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/5481: boot blocks too big with BOOT_HD_BIAS defined
Date: Sat, 17 Jan 1998 15:38:53 -0700

 > >Number:         5481
 > >Category:       kern
 > >Synopsis:       boot blocks too big with BOOT_HD_BIAS defined
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Sun Jan 11 15:10:01 PST 1998
 > >Last-Modified:
 > >Originator:     David O'Brien
 > >Organization:
 > The FreeBSD Project
 > >Release:        FreeBSD 2.2.5-STABLE i386
 > >Environment:
 > 
 > 	FBSD boot disk is sd0, but I have wd0 and wd1's installed.
 > 
 > >Description:
 > 
 > 	if you uncomment the definition for BOOT_HD_BIAS in
 > 	sys/sys/i386/boot/biosboot/Makefile and then make, you get
 > 
 > 	dd if=boot.nohdr of=boot2 bs=512 skip=1
 > 	14+1 records in
 > 	14+1 records out
 > 	7200 bytes transferred in 0.001314 secs (5479269 bytes/sec)
 > 	boot2 is too big
 > 	*** Error code 2
 > 
 > 	Obvisouly this isn't so serious now that we have /boot.config,
 > 	but I liked hard coding this into the boot blocks so I don't have
 > 	to worry about the existance of this file.
 
 What I did recently was remove -DDO_BAD144 in the Makfile, which made it
 fit fine.  I'd almost argue that DO_BAD144 should be remove completely,
 since I don't know of anyone *installing* FreeBSD on hard-drives this
 old anymore.
 
 
 Nate

From: Jin Guojun (ITG staff) <jin@george.lbl.gov>
To: FreeBSD-gnats-submit@freebsd.org, obrien@NUXI.com
Cc: hackers@freebsd.org
Subject: Re: kern/5481: boot blocks too big with BOOT_HD_BIAS defined
Date: Mon, 19 Jan 1998 12:09:57 -0800 (PST)

 > You haven't installed boot blocks with NAMEBLOCK etc. defined.
 
 The default /sys/i386/boot/biosboot/Makefile works fine.
 However, the boot.nohdr ==> boot2 will be too big if any extra flag is
 defined (uncommented ) in this Makefile:
 
 #CFLAGS+=        -DNAMEBLOCK
 #CFLAGS+=       -DNAMEBLOCK_WRITEBACK
 ------------------------------------------
 CFLAGS+=        -DNAMEBLOCK
 #CFLAGS+=       -DNAMEBLOCK_WRITEBACK
 
 # make
 ...
 text    data    bss     dec     hex
 7664    96      49056   56816   ddf0
 dd if=boot.strip of=boot.nohdr ibs=32 skip=1 obs=1024b
 242+1 records in
 0+1 records out
 7760 bytes transferred in 0.002194 secs (3536843 bytes/sec)
 ls -l boot.nohdr
 -rw-r--r--  1 root  wheel  7760 Jan 19 11:51 boot.nohdr
 dd if=boot.nohdr of=boot1 bs=512 count=1
 1+0 records in
 1+0 records out
 512 bytes transferred in 0.000391 secs (1309441 bytes/sec)
 dd if=boot.nohdr of=boot2 bs=512 skip=1
 14+1 records in
 14+1 records out
 7248 bytes transferred in 0.001186 secs (6111845 bytes/sec)
 boot2 is too big
 *** Error code 2
 
 Would someone please help how on compiling boot block with extra flag
 without making boot.nohdr size exceeding 7168 byte?
 
 Thanks,
 
 -Jin
 

From: Mike Smith <mike@smith.net.au>
To: Jin Guojun (ITG staff) <jin@george.lbl.gov>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, obrien@NUXI.com, hackers@FreeBSD.ORG
Subject: Re: kern/5481: boot blocks too big with BOOT_HD_BIAS defined 
Date: Tue, 20 Jan 1998 10:32:03 +1030

 > > You haven't installed boot blocks with NAMEBLOCK etc. defined.
 > 
 > The default /sys/i386/boot/biosboot/Makefile works fine.
 > However, the boot.nohdr ==> boot2 will be too big if any extra flag is
 > defined (uncommented ) in this Makefile:
 
 Remove the BAD144 support.  It's useless in 99.9% of all cases.
 
 -- 
 \\  Sometimes you're ahead,       \\  Mike Smith
 \\  sometimes you're behind.      \\  mike@smith.net.au
 \\  The race is long, and in the  \\  msmith@freebsd.org
 \\  end it's only with yourself.  \\ 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Thu Apr 30 22:52:28 PDT 1998 
State-Changed-Why:  
seems finished 
>Unformatted:
