Date: Sun, 2 Jun 2002 09:37:00 -0700 (PDT) From: tyler spivey <tspivey8@telus.net> To: freebsd-gnats-submit@FreeBSD.org Subject: conf/38829: bootblock recompile instructions in handbook fail to work (15.6.4.1) Message-ID: <200206021637.g52Gb0Bb072803@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jun 02 09:40:02 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206021637.g52Gb0Bb072803>
