From nobody@FreeBSD.org  Sat Feb 23 17:57:56 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 1A6BD37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 23 Feb 2002 17:57:56 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g1O1vuf55938;
	Sat, 23 Feb 2002 17:57:56 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202240157.g1O1vuf55938@freefall.freebsd.org>
Date: Sat, 23 Feb 2002 17:57:56 -0800 (PST)
From: Brett Glass <brett@lariat.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Generation of boot block for headless operation no longer works
X-Send-Pr-Version: www-1.0

>Number:         35262
>Category:       kern
>Synopsis:       [boot2] [patch] generation of boot block for headless operation no longer works
>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:   Sat Feb 23 18:00:02 PST 2002
>Closed-Date:    Fri Mar 12 23:52:07 UTC 2010
>Last-Modified:  Fri Mar 12 23:52:07 UTC 2010
>Originator:     Brett Glass
>Release:        4.5-RELEASE
>Organization:
>Environment:
>Description:
The instructions at http://www.mostgraveconcern.com/freebsd/sercon.html --
in particular, Step #8 (which involves the creation and installation of
a new boot block) -- no longer work as of 4.5-RELEASE. Recompilation
of the boot block, by typing "make all install" in /sys/boot/i386/boot2,
fails and the new boot block cannot be installed.      
>How-To-Repeat:
Follow the instructions at http://www.mostgraveconcern.com/freebsd/sercon.html.
The corresponding instructions in the FreeBSD Handbook, at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html,
also do not work.
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@starjuice.net>
To: Brett Glass <brett@lariat.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: conf/35262: Generation of boot block for headless operation no longer works 
Date: Mon, 25 Feb 2002 18:35:07 +0200

 On Sat, 23 Feb 2002 17:57:56 PST, Brett Glass wrote:
 
 > >Number:         35262
 > >Category:       conf
 > >Synopsis:       Generation of boot block for headless operation no longer works
 
 Confirmed.  I can only build boot blocks after a buildworld +
 buildkernel.  The instructions in the handbook no longer work.
 
 Ciao,
 Sheldon.

From: Brett Glass <brett@lariat.org>
To: Sheldon Hearn <sheldonh@starjuice.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: conf/35262: Generation of boot block for headless
  operation no longer works 
Date: Mon, 25 Feb 2002 10:31:43 -0700

 Is there a way to make the instructions (or ones like them) work?
 One shouldn't have to build the world to modify the boot block.
 
 By the way, another related problem: disklabel -B doesn't seem to work on
 a new 4.5-RELEASE install... even if you're simply overwriting with a
 fresh copy of the original boot block. Here's what happens:
 
 neo# disklabel -B ad4
 disklabel: bad pack magic number (label is damaged, or pack is unlabeled)
 
 I'm not sure how to diagnose what's wrong here. (Note: 4.5-RELEASE was
 installed on a machine where the two available hard drives were ad4 and
 ad6.)
 
 --Brett
 
 At 09:35 AM 2/25/2002, Sheldon Hearn wrote:
   
 
 
 >On Sat, 23 Feb 2002 17:57:56 PST, Brett Glass wrote:
 >
 >> >Number:         35262
 >> >Category:       conf
 >> >Synopsis:       Generation of boot block for headless operation no longer works
 >
 >Confirmed.  I can only build boot blocks after a buildworld +
 >buildkernel.  The instructions in the handbook no longer work.
 >
 >Ciao,
 >Sheldon.
 

From: Sheldon Hearn <sheldonh@starjuice.net>
To: Brett Glass <brett@lariat.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: conf/35262: Generation of boot block for headless operation no longer works 
Date: Mon, 25 Feb 2002 19:40:15 +0200

 On Mon, 25 Feb 2002 10:31:43 MST, Brett Glass wrote:
 
 > Is there a way to make the instructions (or ones like them) work?
 > One shouldn't have to build the world to modify the boot block.
 
 Well, it sure looks like it's actually a build problem that needs
 fixing.
 
 Ciao,
 Sheldon.

From: "Crist J. Clark" <cjc@FreeBSD.ORG>
To: Sheldon Hearn <sheldonh@starjuice.net>
Cc: bug-followup@FreeBSD.ORG
Subject: Re: conf/35262: Generation of boot block for headless operation no longer works
Date: Mon, 25 Feb 2002 18:41:49 -0800

 On Mon, Feb 25, 2002 at 09:40:04AM -0800, Sheldon Hearn wrote:
 > The following reply was made to PR conf/35262; it has been noted by GNATS.
 > 
 > From: Sheldon Hearn <sheldonh@starjuice.net>
 > To: Brett Glass <brett@lariat.org>
 > Cc: freebsd-gnats-submit@FreeBSD.org
 > Subject: Re: conf/35262: Generation of boot block for headless operation no longer works 
 > Date: Mon, 25 Feb 2002 19:40:15 +0200
 > 
 >  On Mon, 25 Feb 2002 10:31:43 MST, Brett Glass wrote:
 >  
 >  > Is there a way to make the instructions (or ones like them) work?
 >  > One shouldn't have to build the world to modify the boot block.
 >  
 >  Well, it sure looks like it's actually a build problem that needs
 >  fixing.
 
 The dependencies above sys/boot are really a mess. However, this patch
 fixes the problem. I'm not sure if this really is a "correct" fix,
 however. But then again, this makefile is already broken.
 
 Index: Makefile
 ===================================================================
 RCS file: /export/freebsd/ncvs/src/sys/boot/i386/boot2/Makefile,v
 retrieving revision 1.16.2.4
 diff -u -r1.16.2.4 Makefile
 --- Makefile	14 Aug 2001 22:55:29 -0000	1.16.2.4
 +++ Makefile	26 Feb 2002 01:44:26 -0000
 @@ -66,10 +66,13 @@
  boot2.bin: boot2.out
  	objcopy -S -O binary boot2.out ${.TARGET}
  
 -boot2.out: boot2.o sio.o
 +boot2.out: ${BTX}/lib/crt0.o boot2.o sio.o
  	${LD} ${LDFLAGS} -Ttext ${ORG2} -o ${.TARGET} \
  		${BTX}/lib/crt0.o boot2.o sio.o
  
 +${BTX}/lib/crt0.o:
 +	cd ${.CURDIR}/../btx/lib; ${MAKE} crt0.o
 +
  boot2.o: boot2.h
  
  sio.o: sio.s
 @@ -77,6 +80,9 @@
  		--defsym SIOFMT=${B2SIOFMT} \
  		--defsym SIOSPD=${BOOT_COMCONSOLE_SPEED} \
  		${.IMPSRC} -o ${.TARGET}
 +
 +${BTX}/btx/btx:
 +	cd ${.CURDIR}/../btx/btx; ${MAKE} btx
  
  install:
  	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
 
 -- 
 Crist J. Clark                     |     cjclark@alum.mit.edu
                                    |     cjclark@jhu.edu
 http://people.freebsd.org/~cjc/    |     cjc@freebsd.org
State-Changed-From-To: open->closed  
State-Changed-By: brucec 
State-Changed-When: Fri Mar 12 23:49:48 UTC 2010 
State-Changed-Why:  
It looks like this was fixed in rev 1.37 about 7 years ago. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35262 
>Unformatted:
