From nobody@www.freebsd.org  Sun Jun  2 09:37:02 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 17C5F37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  2 Jun 2002 09:37:01 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g52Gb0hG072804
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 2 Jun 2002 09:37:00 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g52Gb0Bb072803;
	Sun, 2 Jun 2002 09:37:00 -0700 (PDT)
Message-Id: <200206021637.g52Gb0Bb072803@www.freebsd.org>
Date: Sun, 2 Jun 2002 09:37:00 -0700 (PDT)
From: tyler spivey <tspivey8@telus.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bootblock recompile instructions in handbook fail to work (15.6.4.1)
X-Send-Pr-Version: www-1.0

>Number:         38829
>Category:       conf
>Synopsis:       bootblock recompile instructions in handbook fail to work (15.6.4.1)
>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 Jun 02 09:40:02 PDT 2002
>Closed-Date:    Sat Jul 30 01:18:30 GMT 2005
>Last-Modified:  Sat Jul 30 01:18:30 GMT 2005
>Originator:     tyler spivey
>Release:        4.5-r
>Organization:
home
>Environment:
FreeBSD .bc.hsia.telus.net 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002     murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386
>Description:
the instructions in the handbook,
cd /sys/boot/i386/boot2
make
make install
don't work - the make output follows.
Script started on Sun Jun  2 08:40:50 2002
# pwd
/usr/src/sys/boot/i386/boot2
# uname -a
FreeBSD .bc.hsia.telus.net 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002     murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386
# cat /etc/make.conf
BOOT_COMCONSOLE_SPEED=19200
# pwd
/usr/src/sys/boot/i386/boot2
# make
as  --defsym FLAGS=0x80 boot1.s -o boot1.o
ld -nostdlib -static -N -e start -Ttext 0x7c00 -o boot1.out boot1.o
objcopy -S -O binary boot1.out boot1
dd if=/dev/zero of=boot2.ldr bs=512 count=1 2>/dev/null
nm -t d boot1.out | awk '/([0-9])+ T xread/  { x = $1 - ORG1; printf("#define XREADORG 0x7%x\n", x) }'  ORG1=`printf "%d" 0x7c00` > boot2.h
cc -elf -I/usr/src/sys/boot/i386/boot2/../btx/lib -I.  -Os -fno-builtin -fforce-addr -fdata-sections  -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd  -mpreferred-stack-boundary=2  -Wall -Waggregate-return -Wbad-function-cast -Wcast-align  -Wmissing-declarations -Wmissing-prototypes -Wnested-externs  -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -mpreferred-stack-boundary=2    -c boot2.c
as  --defsym SIOPRT=0x3f8  --defsym SIOFMT=0x3  --defsym SIOSPD=19200  sio.s -o sio.o
ld -nostdlib -static -N -Ttext 0x1000 -o boot2.out  /usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o sio.o
/usr/libexec/elf/ld: cannot open /usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o: No such file or directory
*** Error code 1

Stop in /usr/src/sys/boot/i386/boot2.
# 
# exit
exit

Script done on Sun Jun  2 08:41:51 2002
>How-To-Repeat:
use the instructions in the handbook, and try to recompile the boot blocks.
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: matteo 
State-Changed-When: Sun Jun 19 17:50:35 GMT 2005 
State-Changed-Why:  
Still having this issue? The script works here. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38829 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Sat Jul 30 01:18:24 GMT 2005 
State-Changed-Why:  
Feedback timeout 

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