head	1.71;
access;
symbols
	RELENG_4_11_0_RELEASE:1.70.2.2
	RELENG_4_11:1.70.2.2.0.10
	RELENG_4_11_BP:1.70.2.2
	RELENG_4_10_0_RELEASE:1.70.2.2
	RELENG_4_10:1.70.2.2.0.8
	RELENG_4_10_BP:1.70.2.2
	RELENG_4_9_0_RELEASE:1.70.2.2
	RELENG_4_9:1.70.2.2.0.6
	RELENG_4_9_BP:1.70.2.2
	RELENG_4_8_0_RELEASE:1.70.2.2
	RELENG_4_8:1.70.2.2.0.4
	RELENG_4_8_BP:1.70.2.2
	RELENG_4_7_0_RELEASE:1.70.2.2
	RELENG_4_7:1.70.2.2.0.2
	RELENG_4_7_BP:1.70.2.2
	RELENG_4_6_2_RELEASE:1.70
	RELENG_4_6_1_RELEASE:1.70
	RELENG_4_6_0_RELEASE:1.70
	RELENG_4_6:1.70.0.10
	RELENG_4_6_BP:1.70
	RELENG_4_5_0_RELEASE:1.70
	RELENG_4_5:1.70.0.8
	RELENG_4_5_BP:1.70
	RELENG_4_4_0_RELEASE:1.70
	RELENG_4_4:1.70.0.6
	RELENG_4_4_BP:1.70
	RELENG_4_3_0_RELEASE:1.70
	RELENG_4_3:1.70.0.4
	RELENG_4_3_BP:1.70
	RELENG_4_2_0_RELEASE:1.70
	RELENG_4_1_1_RELEASE:1.70
	RELENG_4_1_0_RELEASE:1.70
	RELENG_3_5_0_RELEASE:1.68.2.1
	RELENG_4_0_0_RELEASE:1.70
	RELENG_4:1.70.0.2
	RELENG_4_BP:1.70
	RELENG_3_4_0_RELEASE:1.68.2.1
	RELENG_3_3_0_RELEASE:1.68.2.1
	RELENG_3_2_PAO:1.68.0.4
	RELENG_3_2_PAO_BP:1.68
	RELENG_3_2_0_RELEASE:1.68
	POST_VFS_BIO_NFS_PATCH:1.68
	PRE_VFS_BIO_NFS_PATCH:1.68
	POST_SMP_VMSHARE:1.68
	PRE_SMP_VMSHARE:1.68
	POST_NEWBUS:1.68
	PRE_NEWBUS:1.68
	RELENG_3_1_0_RELEASE:1.68
	RELENG_3:1.68.0.2
	RELENG_3_BP:1.68
	RELENG_2_2_8_RELEASE:1.50.2.5
	RELENG_3_0_0_RELEASE:1.66
	RELENG_2_2_7_RELEASE:1.50.2.5
	PRE_NOBDEV:1.64
	POST_DEVFS_SLICE:1.63
	PRE_DEVFS_SLICE:1.63
	RELENG_2_2_6_RELEASE:1.50.2.4
	POST_SOFTUPDATE:1.63
	PRE_SOFTUPDATE:1.63
	RELENG_2_2_5_RELEASE:1.50.2.4
	WOLLMAN_MBUF:1.57.0.2
	BP_WOLLMAN_MBUF:1.57
	RELENG_2_2_2_RELEASE:1.50.2.3
	post_smp_merge:1.56
	pre_smp_merge:1.56
	RELENG_2_2_1_RELEASE:1.50.2.3
	RELENG_2_2_0_RELEASE:1.50.2.3
	RELENG_2_1_7_RELEASE:1.30.4.3
	RELENG_2_1_6_1_RELEASE:1.30.4.3
	RELENG_2_1_6_RELEASE:1.30.4.3
	RELENG_2_2:1.50.0.2
	RELENG_2_2_BP:1.50
	RELENG_2_1_5_RELEASE:1.30.4.2
	wollman_polling:1.38.0.2
	RELENG_2_1_0_RELEASE:1.30
	RELENG_2_1_0:1.30.0.4
	RELENG_2_1_0_BP:1.30
	RELENG_2_0_5_RELEASE:1.30
	RELENG_2_0_5:1.30.0.2
	RELENG_2_0_5_BP:1.30
	RELENG_2_0_5_ALPHA:1.30
	OLAH_TTCP:1.22.0.4
	RELEASE_2_0:1.22
	BETA_2_0:1.22
	ALPHA_2_0:1.22.0.2
	MOVED_NEWCVS:1.10
	FINAL_1_1_5:1.10
	ALPHA_1_1_5:1.10
	FINAL_1_1:1.5
	GAMMA_1_1:1.5
	BETA_1_1:1.5.0.2
	BP_BETA_1_1:1.5
	FINAL_1_0_2:1.3
	BRANCH_1_0:1.3.0.2
	FINAL_1_0:1.3
	EPSILON_1_0:1.2
	GAMMA_1_0:1.2
	BETA_1_0:1.2
	ALPHA_1_0:1.2
	V_0_1_2_4:1.1.1.1;
locks; strict;
comment	@# @;


1.71
date	2000.03.19.11.41.52;	author peter;	state dead;
branches;
next	1.70;

1.70
date	99.12.23.17.48.51;	author bde;	state Exp;
branches
	1.70.2.1;
next	1.69;

1.69
date	99.08.28.00.43.09;	author peter;	state Exp;
branches;
next	1.68;

1.68
date	98.12.30.10.21.37;	author bde;	state Exp;
branches
	1.68.2.1;
next	1.67;

1.67
date	98.11.21.21.07.17;	author ache;	state Exp;
branches;
next	1.66;

1.66
date	98.09.23.06.50.45;	author yokota;	state Exp;
branches;
next	1.65;

1.65
date	98.09.15.09.59.57;	author gibbs;	state Exp;
branches;
next	1.64;

1.64
date	98.05.27.12.13.18;	author jkoshy;	state Exp;
branches;
next	1.63;

1.63
date	98.03.07.10.48.07;	author eivind;	state Exp;
branches;
next	1.62;

1.62
date	98.02.15.21.38.17;	author eivind;	state Exp;
branches;
next	1.61;

1.61
date	98.01.27.16.56.43;	author msmith;	state Exp;
branches;
next	1.60;

1.60
date	97.08.31.06.11.25;	author phk;	state Exp;
branches;
next	1.59;

1.59
date	97.07.31.11.30.30;	author phk;	state Exp;
branches;
next	1.58;

1.58
date	97.07.31.08.07.53;	author phk;	state Exp;
branches;
next	1.57;

1.57
date	97.06.09.05.10.54;	author bde;	state Exp;
branches;
next	1.56;

1.56
date	97.04.25.19.37.58;	author bde;	state Exp;
branches;
next	1.55;

1.55
date	97.03.05.15.43.03;	author bde;	state Exp;
branches;
next	1.54;

1.54
date	97.02.22.09.30.00;	author peter;	state Exp;
branches;
next	1.53;

1.53
date	97.01.14.06.37.23;	author jkh;	state Exp;
branches;
next	1.52;

1.52
date	96.11.23.07.38.25;	author peter;	state Exp;
branches;
next	1.51;

1.51
date	96.11.02.02.24.30;	author pst;	state Exp;
branches;
next	1.50;

1.50
date	96.10.14.17.25.52;	author pst;	state Exp;
branches
	1.50.2.1;
next	1.49;

1.49
date	96.10.14.12.37.47;	author bde;	state Exp;
branches;
next	1.48;

1.48
date	96.10.08.22.41.31;	author bde;	state Exp;
branches;
next	1.47;

1.47
date	96.10.08.22.35.48;	author bde;	state Exp;
branches;
next	1.46;

1.46
date	96.10.08.22.18.34;	author bde;	state Exp;
branches;
next	1.45;

1.45
date	96.09.07.21.16.44;	author bde;	state Exp;
branches;
next	1.44;

1.44
date	96.09.05.21.12.04;	author julian;	state Exp;
branches;
next	1.43;

1.43
date	96.09.04.18.28.33;	author julian;	state Exp;
branches;
next	1.42;

1.42
date	96.07.12.05.17.36;	author bde;	state Exp;
branches;
next	1.41;

1.41
date	96.07.09.02.28.15;	author julian;	state Exp;
branches;
next	1.40;

1.40
date	96.05.11.04.27.23;	author bde;	state Exp;
branches;
next	1.39;

1.39
date	96.04.07.14.27.55;	author bde;	state Exp;
branches;
next	1.38;

1.38
date	96.03.08.06.29.05;	author bde;	state Exp;
branches;
next	1.37;

1.37
date	96.02.03.21.12.27;	author joerg;	state Exp;
branches;
next	1.36;

1.36
date	96.01.21.11.30.11;	author joerg;	state Exp;
branches;
next	1.35;

1.35
date	96.01.06.23.37.10;	author joerg;	state Exp;
branches;
next	1.34;

1.34
date	96.01.05.19.28.55;	author ache;	state Exp;
branches;
next	1.33;

1.33
date	95.10.10.21.11.06;	author ache;	state Exp;
branches;
next	1.32;

1.32
date	95.08.19.15.59.19;	author joerg;	state Exp;
branches;
next	1.31;

1.31
date	95.07.25.00.35.40;	author bde;	state Exp;
branches;
next	1.30;

1.30
date	95.04.20.23.15.03;	author joerg;	state Exp;
branches
	1.30.4.1;
next	1.29;

1.29
date	95.04.20.18.36.13;	author phk;	state Exp;
branches;
next	1.28;

1.28
date	95.04.14.21.26.47;	author joerg;	state Exp;
branches;
next	1.27;

1.27
date	95.03.28.19.22.39;	author phk;	state Exp;
branches;
next	1.26;

1.26
date	95.01.24.00.41.50;	author jkh;	state Exp;
branches;
next	1.25;

1.25
date	95.01.20.07.52.42;	author wpaul;	state Exp;
branches;
next	1.24;

1.24
date	95.01.20.07.48.14;	author wpaul;	state Exp;
branches;
next	1.23;

1.23
date	94.12.18.19.14.08;	author bde;	state Exp;
branches;
next	1.22;

1.22
date	94.11.05.21.06.16;	author ache;	state Exp;
branches;
next	1.21;

1.21
date	94.10.28.07.54.13;	author rgrimes;	state Exp;
branches;
next	1.20;

1.20
date	94.10.15.03.59.19;	author phk;	state Exp;
branches;
next	1.19;

1.19
date	94.10.07.05.36.01;	author ache;	state Exp;
branches;
next	1.18;

1.18
date	94.10.06.09.40.58;	author rgrimes;	state Exp;
branches;
next	1.17;

1.17
date	94.10.02.05.18.23;	author rgrimes;	state Exp;
branches;
next	1.16;

1.16
date	94.09.20.22.24.58;	author adam;	state Exp;
branches;
next	1.15;

1.15
date	94.09.19.19.54.49;	author adam;	state Exp;
branches;
next	1.14;

1.14
date	94.09.18.19.10.11;	author swallace;	state Exp;
branches;
next	1.13;

1.13
date	94.09.18.07.39.53;	author swallace;	state Exp;
branches;
next	1.12;

1.12
date	94.08.21.18.15.45;	author paul;	state Exp;
branches;
next	1.11;

1.11
date	94.08.21.17.47.24;	author paul;	state Exp;
branches;
next	1.10;

1.10
date	94.06.20.04.32.40;	author jkh;	state Exp;
branches;
next	1.9;

1.9
date	94.06.16.03.53.24;	author adam;	state Exp;
branches;
next	1.8;

1.8
date	94.06.15.18.15.16;	author adam;	state Exp;
branches;
next	1.7;

1.7
date	94.06.02.16.50.56;	author jkh;	state Exp;
branches;
next	1.6;

1.6
date	94.05.30.05.23.46;	author ache;	state Exp;
branches;
next	1.5;

1.5
date	93.12.11.20.35.15;	author ats;	state Exp;
branches;
next	1.4;

1.4
date	93.11.16.02.02.05;	author ache;	state Exp;
branches;
next	1.3;

1.3
date	93.10.16.19.11.23;	author rgrimes;	state Exp;
branches;
next	1.2;

1.2
date	93.07.13.18.15.18;	author root;	state Exp;
branches;
next	1.1;

1.1
date	93.06.12.14.57.54;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.70.2.1
date	2002.07.18.13.31.27;	author ru;	state Exp;
branches;
next	1.70.2.2;

1.70.2.2
date	2002.08.07.16.31.55;	author ru;	state Exp;
branches;
next	1.70.2.3;

1.70.2.3
date	2012.11.17.07.26.05;	author svnexp;	state Exp;
branches;
next	;

1.68.2.1
date	99.08.29.16.04.42;	author peter;	state Exp;
branches;
next	;

1.50.2.1
date	96.11.06.10.30.03;	author phk;	state Exp;
branches;
next	1.50.2.2;

1.50.2.2
date	96.11.25.07.16.47;	author phk;	state Exp;
branches;
next	1.50.2.3;

1.50.2.3
date	97.03.05.15.50.20;	author bde;	state Exp;
branches;
next	1.50.2.4;

1.50.2.4
date	97.07.01.05.55.41;	author pst;	state Exp;
branches;
next	1.50.2.5;

1.50.2.5
date	98.05.27.23.46.03;	author danny;	state Exp;
branches;
next	1.50.2.6;

1.50.2.6
date	99.09.05.08.10.16;	author peter;	state Exp;
branches;
next	;

1.30.4.1
date	96.06.25.17.38.19;	author joerg;	state Exp;
branches;
next	1.30.4.2;

1.30.4.2
date	96.07.01.16.35.36;	author bde;	state Exp;
branches;
next	1.30.4.3;

1.30.4.3
date	96.11.12.12.42.05;	author jkh;	state Exp;
branches;
next	1.30.4.4;

1.30.4.4
date	99.09.05.08.28.37;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	93.06.12.14.57.55;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.71
log
@Remove the old a.out-only boot loader, we don't use it any more.
The new boot1/boot2 can load a.out and elf kernels directly.
I think the sys/pc98 version can go too as the sys/boot/pc98 code
appears to be functional, but I'll leave that for the pc98 folks.

"There can be only one."
@
text
@# $FreeBSD: src/sys/i386/boot/biosboot/Makefile,v 1.70 1999/12/23 17:48:51 bde Exp $
#

PROG=	boot
# Order is very important on the SRCS line for this prog
SRCS=	start.S table.c boot2.S boot.c asm.S bios.S serial.S
SRCS+=  probe_keyboard.c io.c disk.c sys.c

BINMODE=	444
CFLAGS=		-O2 -malign-functions=0 -malign-jumps=0 -malign-loops=0 \
		-DBOOTWAIT=${BOOTWAIT} -DTIMEOUT=${TIMEOUT}
CFLAGS+=	-DBOOTSEG=${BOOTSEG} -DBOOTSTACK=${BOOTSTACK}
CFLAGS+=	${CWARNFLAGS}

# By default, if a serial port is going to be used as console, use COM1
# (aka /dev/ttyd0).
BOOT_COMCONSOLE_PORT?=0x3F8
CFLAGS+=	-DCOMCONSOLE=${BOOT_COMCONSOLE_PORT}

BOOT_COMCONSOLE_SPEED?=9600
CFLAGS+=	-DCONSPEED=${BOOT_COMCONSOLE_SPEED}

# Enable code to take the default boot string from a fixed location on the
# disk.  See nextboot(8) and README.386BSD for more info.
#CFLAGS+=	-DNAMEBLOCK
#CFLAGS+=	-DNAMEBLOCK_WRITEBACK

# Bias the conversion from the BIOS drive number to the FreeBSD unit number
# for hard disks.  This may be useful for people booting in a mixed IDE/SCSI
# environment (set BOOT_HD_BIAS to the number of IDE drives).
#CFLAGS+=	-DBOOT_HD_BIAS=1
#
# Details: this only applies if BOOT_HD_BIAS > 0.  If the BIOS drive number
# for the boot drive is >= BOOT_HD_BIAS, then the boot drive is assumed to
# be SCSI and have unit number (BIOS_drive_number - BOOT_HD_BIAS).  E.g.,
# BOOT_HD_BIAS=1 makes BIOS drive 1 correspond to 1:da(0,a) instead of
# 1:wd(1,a).  If `da' is given explicitly, then the drive is assumed to be
# SCSI and have BIOS drive number (da_unit_number + BOOT_HD_BIAS).  E.g.,
# BOOT_HD_BIAS=1 makes da(0,a) correspond to 1:da(0,a) instead of 0:da(0,a).

CLEANFILES+=	boot.nohdr boot.strip boot1 boot2 sizetest
LDFLAGS+=	-N -T 0 -nostdlib
NOSHARED=	YES
NOMAN=
STRIP=

# tunable timeout parameter, waiting for keypress, calibrated in ms
BOOTWAIT?=	5000
# tunable timeout during string input, calibrated in ms
#TIMEOUT?=	30000

# Location that boot2 is loaded at
BOOTSEG=	0x1000

# Offset in BOOTSEG for the top of the stack, keep this 16 byte aligned
BOOTSTACK=	0xFFF0

boot.strip:	boot
	cp -p boot boot.strip
	strip -aout boot.strip
	size -aout boot.strip

boot.nohdr:	boot.strip
	dd if=boot.strip of=boot.nohdr ibs=32 skip=1 obs=1024b
	ls -l boot.nohdr

boot1:		boot.nohdr
	dd if=boot.nohdr of=boot1 bs=512 count=1

boot2:		boot.nohdr
	dd if=boot.nohdr of=boot2 bs=512 skip=1
	@@dd if=boot2 skip=14 of=sizetest 2> /dev/null
	@@if [ -s sizetest ] ; then \
		echo "boot2 is too big" >&2 ; \
		rm boot2 ; \
		exit 2 ; \
	fi

all:		boot1 boot2

install:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		boot1 boot2 ${DESTDIR}${BINDIR}/

install-boothelp:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
		${.CURDIR}/boot.help ${DESTDIR}/

.include <bsd.kern.mk>
.include <bsd.prog.mk>
@


1.70
log
@Removed vestiges of BAD144 support.
Removed -mno-486 from CFLAGS since it is no longer supported by gcc.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/i386/boot/biosboot/Makefile,v 1.69 1999/08/28 00:43:09 peter Exp $
@


1.70.2.1
log
@MFC: s/${INSTALL} -c/${INSTALL} ${COPY}/
@
text
@d1 1
a1 1
# $FreeBSD$
d86 1
a86 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
@


1.70.2.2
log
@MFC: Drop support for COPY.
@
text
@d82 1
a82 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
d86 1
a86 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
@


1.70.2.3
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/sys/i386/boot/biosboot/Makefile 101469 2002-08-07 16:32:02Z ru $
@


1.69
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
a10 1
		-mno-486 \
a12 1
CFLAGS+=	-DDO_BAD144
@


1.68
log
@Rely on ../Makefile.inc to set the object format in CFLAGS and the
default for BINDIR.  The default BINDIR of /usr/mdec can't be overridden
yet because libdisk still uses /usr/mdec and installing in /boot might
clobber the new boot blocks.

Don't install links to bootxx or xxboot.

Install boot1 and boot2 in 1 step.

Don't delete the boot.help source file on installing it when ${COPY} is
null.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.67 1998/11/21 21:07:17 ache Exp $
@


1.68.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.67
log
@add -aout key to cc, size, strip - it not work for elf system
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.66 1998/09/23 06:50:45 yokota Exp $
a8 1
BINDIR=		/usr/mdec
d10 1
a10 1
CFLAGS=         -aout -O2 -malign-functions=0 -malign-jumps=0 -malign-loops=0 \
d84 2
a85 10
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
		boot1 ${DESTDIR}${BINDIR}/boot1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
		boot2 ${DESTDIR}${BINDIR}/boot2
	for i in da fd wd od vn wfd ; do \
		( cd ${DESTDIR}${BINDIR} ; \
		rm -f boot$${i} $${i}boot ; \
		ln -s boot1 $${i}boot ; \
		ln -s boot2 boot$${i} ; ) \
	done
d88 1
a88 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
@


1.66
log
@Remove the -b boot option.  It is no longer necessary now that the VESA
BIOS support is optionally available for syscons.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.65 1998/09/15 09:59:57 gibbs Exp $
d11 1
a11 1
CFLAGS=		-O2 -malign-functions=0 -malign-jumps=0 -malign-loops=0 \
d63 2
a64 2
	strip boot.strip
	size boot.strip
@


1.65
log
@Adjust for sd->da and the loss of od.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.64 1998/05/27 12:13:18 jkoshy Exp $
a15 1
CFLAGS+=	-DVESA_SUPPORT
@


1.64
log
@Install ${DESTDIR}/boot.help during `make distribution'.

PR: 6063
Submitted by: Doug <Studded@@dal.net>
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.63 1998/03/07 10:48:07 eivind Exp $
d40 4
a43 4
# BOOT_HD_BIAS=1 makes BIOS drive 1 correspond to 1:sd(0,a) instead of
# 1:wd(1,a).  If `sd' is given explicitly, then the drive is assumed to be
# SCSI and have BIOS drive number (sd_unit_number + BOOT_HD_BIAS).  E.g.,
# BOOT_HD_BIAS=1 makes sd(0,a) correspond to 1:sd(0,a) instead of 0:sd(0,a).
a46 4
#LINKS=		${BINDIR}/sdboot ${BINDIR}/wdboot\
#		${BINDIR}/sdboot ${BINDIR}/fdboot\
#		${BINDIR}/bootsd ${BINDIR}/bootwd\
#		${BINDIR}/bootsd ${BINDIR}/bootfd
d90 1
a90 1
	for i in sd fd wd od vn wfd ; do \
@


1.63
log
@Make this handle -j<large>, and avoid .depend pointing at /usr/include.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.62 1998/02/15 21:38:17 eivind Exp $
d100 4
@


1.62
log
@Make bootblock building independent of /usr/include if relative
includes are available.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.61 1998/01/27 16:56:43 msmith Exp $
a16 4
.if exists(${.CURDIR}/../../../../include)
CFLAGS+=	-nostdinc -I${.CURDIR}/../../../../include
.endif
CFLAGS+=	-I${.CURDIR}/../../.. -I${.OBJDIR}
d45 1
a45 1
CLEANFILES+=	boot.nohdr boot.strip boot1 boot2 machine sizetest
d87 1
a87 6
pre-compile:
.if !exists(${.OBJDIR}/machine)
	ln -s ${.CURDIR}/../../include ${.OBJDIR}/machine
.endif

all:	pre-compile boot1 boot2
@


1.61
log
@Symlink bootblocks for 'wfd' disks as well.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.60 1997/08/31 06:11:25 phk Exp $
d17 4
a20 1
CFLAGS+=	-I${.CURDIR}/../../..
d49 1
a49 1
CLEANFILES+=	boot.nohdr boot.strip boot1 boot2 sizetest
d91 6
a96 1
all:		boot1 boot2
@


1.60
log
@Remove pbzero(), things we load zero their own bss.
Make VESA_SUPPORT default
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.59 1997/07/31 11:30:30 phk Exp $
d95 1
a95 1
	for i in sd fd wd od vn ; do \
@


1.59
log
@Oops, boot2 got too big.  make VESA_SUPPORT nondefault.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.58 1997/07/31 08:07:53 phk Exp $
d16 1
a16 1
#CFLAGS+=	-DVESA_SUPPORT
@


1.58
log
@Add support for booting in VESA 0x102 videomode.  Corresponding patches to
syscons are being reviewed by sos.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.57 1997/06/09 05:10:54 bde Exp $
a12 1
		-DVESA_SUPPORT -DDO_BAD144 \
d15 2
@


1.57
log
@- Added support for "dual" internal/serial consoles (-D flag).  If -D is set,
  then all i/o from the boot blocks is to and from both the internal console
  and the serial console.  -D has no effect on the kernel (-h decides the
  kernel serial console as usual).  -D should normally be set in /boot.config.
- Get help messages from /boot.help.  You should copy boot.help from the
  biosboot directory to the root directory on the boot drive when you
  install new boot blocks.
- New, less invasive keyboard probe.  Enable keyboard probe dynamically (-P
  flag).  Should probably never be used (use -h instead).
- Fixed/improved initialization from boot.config.  It didn't interact correctly
  with the NAMEBLOCK option, and the initialization of the drive/unit/partition
  didn't stick when a non-default kernel name was entered.
- Don't reset or forget the default drive/unit/... or kernel name so often.
- Set the default kernel name to something unbootable after `?'.
- Display the defaults better.
- Removed PROBE_KEYBOARD_LOCK option (use -h instead).,
- Removed BOOT_FORCE_COMCONSOLE option (use device flag 0x20 instead).
- Removed -a (RB_HALT) flag.  This flag is only used for reboots.
Submitted by:	about 2/3 by yokota
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.56 1997/04/25 19:37:58 bde Exp $
d13 2
a14 1
		-DDO_BAD144 -DBOOTWAIT=${BOOTWAIT} -DTIMEOUT=${TIMEOUT}
@


1.56
log
@Removed LDADD=-lc and associated DPADD.  libc would probably break
things if it were actually used.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.55 1997/03/05 15:43:03 bde Exp $
a16 15

# Probe the keyboard and use the serial console if the keyboard isn't found.
.if defined(BOOT_PROBE_KEYBOARD)
CFLAGS+=	-DPROBE_KEYBOARD
.endif

# Probe the keyboard lock and use the serial console if the keyboard is locked.
.if defined(BOOT_PROBE_KEYBOARD_LOCK)
CFLAGS+=	-DPROBE_KEYBOARD_LOCK
.endif

# Force use of the serial console.
.if defined(BOOT_FORCE_COMCONSOLE)
CFLAGS+=	-DFORCE_COMCONSOLE
.endif
@


1.55
log
@Added -mno-486 to CFLAGS to force smaller code in case someone compiles
with CC="cc -m486".  This doesn't fix PR2381, since PR2381 is for 2.1.x.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.54 1997/02/22 09:30:00 peter Exp $
a59 1
DPADD=		${LIBC}
a60 1
LDADD=		-lc
@


1.54
log
@Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$.  We are not
ready for it yet.
@
text
@d1 1
a1 1
#	$Id$
d12 1
@


1.53
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d1 1
a1 1
#	$FreeBSD$
@


1.52
log
@Make this compile again after the syscons/psm/kbdio changes that removed
the keyboard IO port definitions from <machine/console.h>.

Note: I do not have a machine available to test this yet,  I sent this
for review to several people who have not replied.

This is also totally busted in 2.2, which has half of the syscons/psm/kbdio
changes in it.  This really desperately needs to be tested and fixed
in 2.2 as well.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.51 1996/11/02 02:24:30 pst Exp $
@


1.51
log
@Rationalize support for serial consoles running at baud rates other than 9600
baud.  This isn't particularly beautiful, but neither is it disgustingly
gross.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.50 1996/10/14 17:25:52 pst Exp $
d14 1
@


1.50
log
@Expose the control mechanism for serial console boot so that the default
shipped with freebsd can be changed without modifying the Makefiles directly.

Creates:	BOOT_FORCE_COMCONSOLE
		BOOT_PROBE_KEYBOARD
		BOOT_PROBE_KEYBOARD_LOCK
		BOOT_COMCONSOLE			(port value for console)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.49 1996/10/14 12:37:47 bde Exp $
d35 3
@


1.50.2.1
log
@Merge from -current
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.50 1996/10/14 17:25:52 pst Exp $
a34 3

BOOT_COMCONSOLE_SPEED?=9600
CFLAGS+=	-DCONSPEED=${BOOT_COMCONSOLE_SPEED}
@


1.50.2.2
log
@YAMFC
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.50.2.1 1996/11/06 10:30:03 phk Exp $
a13 1
CFLAGS+=	-I${.CURDIR}/../../..
@


1.50.2.3
log
@YAMFC (added -mno-486 to CFLAGS).
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.50.2.2 1996/11/25 07:16:47 phk Exp $
a11 1
		-mno-486 \
@


1.50.2.4
log
@Bring in 3.0 changes (dual booting et al).
Unfortunately, with the addition of the kernel config file, the boot blocks
are FULL again.  Time to do more bit buming.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.50.2.3 1997/03/05 15:50:20 bde Exp $
d18 15
d60 1
d62 1
@


1.50.2.5
log
@PR:		6063
Reviewed by:	 jkoshy
Submitted by:	Doug <Studded@@dal.net>
MFC: Install boot.help during 'make distribution'
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.50.2.4 1997/07/01 05:55:41 pst Exp $
a98 4

install-boothelp:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
		${.CURDIR}/boot.help ${DESTDIR}/
@


1.50.2.6
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.49
log
@Oops, PROBE_KEYBOARD_LOCK wasn't supposed to be enabled by default.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.48 1996/10/08 22:41:31 bde Exp $
a12 1
CFLAGS+=	-DCOMCONSOLE=0x3F8
d17 3
a19 1
#CFLAGS+=	-DPROBE_KEYBOARD
d22 3
a24 1
#CFLAGS+=	-DPROBE_KEYBOARD_LOCK
d27 8
a34 1
#CFLAGS+=	-DFORCE_COMCONSOLE
@


1.48
log
@Added option PROBE_KEYBOARD_LOCK which gives a serial console if the
keyboard is locked.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.47 1996/10/08 22:35:48 bde Exp $
d21 1
a21 1
CFLAGS+=	-DPROBE_KEYBOARD_LOCK
d23 1
a23 2
# Force use of the serial console (after probing the keyboard if
# PROBE_KEYBOARD is defined).
@


1.47
log
@Saved about 160 bytes by using the gcc-2.7 alignment options.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.46 1996/10/08 22:18:34 bde Exp $
d19 3
@


1.46
log
@Use the same warning flags as for the kernel.  This causes surprisingly
few warnings.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.45 1996/09/07 21:16:44 bde Exp $
d11 1
a11 1
CFLAGS=         -O2 \
@


1.45
log
@Remove boot2 when the size test fails so that rebuilding without fixing
the problem doesn't bogusly succeed.

Print size failures to stderr instead of stdout and don't print bells
and whistles.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.44 1996/09/05 21:12:04 julian Exp $
d15 1
d100 1
@


1.44
log
@Back out the previous changes
I just couldn't get the code to be as small as it should have gotten..

atill a LITTLE bigger than before as I need to allow the
default string to have options as well
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.43 1996/09/04 18:28:33 julian Exp $
d80 3
a82 1
		echo "*** Boot2 is too BIG ***" ; exit 2 ; \
@


1.43
log
@3 changes:
1/ Makefile:  the maximum size for boot2 is 7.5K not 7K,
so don't complain until it reaches THAT size..
newfs leaves 8K and boot 1 is 512k. leaving 7.5K becasue the disklabel
is considered to part of the boot2 file.

[512  boot1][512 disklabel][     7K boot2 code        ]
[boot1 file][               boot2 file                ]

2/ Boot2.S: move the soring of the default name read from block 2 to AFTER
clearing the BSS.

3/ boot.c:
Move the parsing of the command line into the
place it's called for clarity.. alsoi comment it a bit and clean it
up a bit.. for some reason this seems ot have made it a little
larger, but I can't work out why.. maybe bruce might have ideas?
compensated for by shrinkage elsewhere..

the practical result of this is htat the default string can now contain args
e.g. if you change the default string to have -gd
then the machine will boot to the dgb debugger stub by default..
this is mostly useful with the nextboot utility..
as it now allows you to remotely force a machine to reboot into
the debugger.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.42 1996/07/12 05:17:36 bde Exp $
d78 1
a78 1
	@@dd if=boot2 skip=15 of=sizetest 2> /dev/null
@


1.42
log
@Fixed some speling, punctuation.. and spac ing errors.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.41 1996/07/09 02:28:15 julian Exp $
d78 1
a78 1
	@@dd if=boot2 skip=14 of=sizetest 2> /dev/null
@


1.41
log
@make the NAMEBLOCK changes conditional on that preprocessor variable,
and add more documentation of the option in the Makefile
also CORRECT the variable mentioned in the README.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.40 1996/05/11 04:27:23 bde Exp $
d24 1
a24 1
# disk.. see nextboot(8) and README.386BSD for more info
@


1.40
log
@Fixed BOOT_HD_BIAS.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.39 1996/04/07 14:27:55 bde Exp $
d22 5
@


1.39
log
@Allow specifying the BIOS drive number.  Removed the hd drive type.
hd essentially wired the FreeBSD drive number to 0 without changing
the BIOS drive number.  Now the numbers can be specified independently.

Replaced the BOOT_HD compile time flag with with BOOT_HD_BIAS.  Defining
the new flag as 1 should give the same behaviour as defining the old
flag as anything.  I haven't tested defining these flags.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.38 1996/03/08 06:29:05 bde Exp $
d24 2
a25 4
# for hard disks to save typing.  E.g., BOOT_HD_BIAS=1 makes BIOS drive 1
# correspond to 1:sd(0,a) instead of 1:sd(1,a).
# This may be useful for people booting in a mixed IDE/SCSI environment
# (set BOOT_HD_BIAS to the number of IDE drives).
d27 8
@


1.38
log
@Probe the keyboard if PROBE_KEYBOARD is defined instead of when `notyet'
is defined and FORCE_COMCONSOLE isn't defined.

Don't compile any keyboard probing code if PROBE_KEYBOARD isn't defined.

Makefile:
Removed -I paths.  They weren't used, and the one to /sys hasn't worked
since the source directory was moved down one level.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.37 1996/02/03 21:12:27 joerg Exp $
d23 6
a28 4
# Assume hd(*,a) instead of wd(*,a) if the boot seems to happen from
# a hard disk.
# This can be useful for people booting in a mixed IDE/SCSI environment.
#CFLAGS+=	-DBOOT_HD
@


1.37
log
@Create symlinks for vnboot and bootvn, too.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.36 1996/01/21 11:30:11 joerg Exp $
a14 1
CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/../..
d16 5
a20 1
# Force usage of serial console instead of keyboard probing.
@


1.36
log
@Implement an optional TIMEOUT value while entering the boot parameter
string.  This avoids indefinite hangs e.g. when used on a noisy serial
console.  It's not turned on by default.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.35 1996/01/06 23:37:10 joerg Exp $
d74 1
a74 1
	for i in sd fd wd od ; do \
@


1.35
log
@Document the ``BOOT_HD'' make option for the bootblocks.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.34 1996/01/05 19:28:55 ache Exp $
d12 2
a13 1
		-DDO_BAD144 -DBOOTWAIT=${BOOTWAIT} -DCOMCONSOLE=0x3F8
d37 1
a37 1
# tunable timeout parameter, waiting for keypress, calibrated in mS
d39 2
@


1.34
log
@Remove -fno-strength-reduce, gcc bug recently fixed
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.33 1995/10/10 21:11:06 ache Exp $
d16 1
a16 1
# force usage of serial console instead of keyboard probing
d18 5
@


1.33
log
@Add -fno-strength-reduce to neutralize possible bad effect of -O2
specified directly
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.32 1995/08/19 15:59:19 joerg Exp $
d11 1
a11 1
CFLAGS=         -O2 -fno-strength-reduce \
@


1.32
log
@First part of importing the Japanese `od' driver.

Claim the major numbers (before sombedoy else jumps in again and
claims the slots for his foocd driver :-), install all the hooks that
are required.

While i've been at this, i've cleaned up some of the routines at the
end of i386/conf.c; all the importers of the latest CDROM drivers
forgot to fill in the appropriate information.  The `ata' driver
(vapourware?) does only occupy a slot in the bdevsw[] array, btw.

The actual import of the code does require a minor change in the SCSI
subsystem, and i want to have this reviewed by Peter first, so it will
be deferred for some days.  The driver is already working for me
though.

Submitted by:	akiyama@@kme.mei.co.jp (Shunsuke Akiyama)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.31 1995/07/25 00:35:40 bde Exp $
d11 2
a12 1
CFLAGS=		-O2 -DDO_BAD144 -DBOOTWAIT=${BOOTWAIT} -DCOMCONSOLE=0x3F8
@


1.31
log
@Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.30 1995/04/20 23:15:03 joerg Exp $
d65 1
a65 1
	for i in sd fd wd ; do \
@


1.30
log
@.  Make Poul's boot2 overflow warning less noisy in case the blocks
   do fit, and beeping in case of an overflow.

.  Drop a comment about the ``FORCE_COMCONSOLE'' option into
   README.serial.

.  Increase the name buffer for the root directory from 100 bytes
   to 8 KB;  this is in no way ideal, but (IMHO) the best that can
   be done by now.  People did encounter problems with their root
   dir name listing overflowing the allocated buffer space.  Once
   we've got the three-stage boot, we should implement some basic
   malloc().  Swap space is already getting tight now, perhaps the
   swap should go into another 64 KB segment instead.

.  Make the keyboard probe less paranoid.  It should not give up in
   case of a keyboard that's continuously demanding RESEND's.  Even
   though the keyboard reset apparently has not been reported to be
   complete, it's at the very least proven that there IS something
   like a keyboard available.

   This solves problems with the ``Gateway-2000 AllKey programmable''
   (sp?) keyboard, that experienced a total hang with the previous
   probe.

   Thanks goes to Scott Blachowicz <scott@@statsci.com> for his
   extensive testing of my various interim (debugging) bootblocks
   to get this working.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.29 1995/04/20 18:36:13 phk Exp $
d61 1
a61 1
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
d63 1
a63 1
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
@


1.30.4.1
log
@Oversight when merging the "od" driver
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.30 1995/04/20 23:15:03 joerg Exp $
d65 1
a65 1
	for i in sd fd wd od ; do \
@


1.30.4.2
log
@Brought in changes for specifying the BIOS drive number to boot from.

Requested by:	Joerg
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.30.4.1 1996/06/25 17:38:19 joerg Exp $
a16 13

# Bias the conversion from the BIOS drive number to the FreeBSD unit number
# for hard disks.  This may be useful for people booting in a mixed IDE/SCSI
# environment (set BOOT_HD_BIAS to the number of IDE drives).
#CFLAGS+=	-DBOOT_HD_BIAS=1
#
# Details: this only applies if BOOT_HD_BIAS > 0.  If the BIOS drive number
# for the boot drive is >= BOOT_HD_BIAS, then the boot drive is assumed to
# be SCSI and have unit number (BIOS_drive_number - BOOT_HD_BIAS).  E.g.,
# BOOT_HD_BIAS=1 makes BIOS drive 1 correspond to 1:sd(0,a) instead of
# 1:wd(1,a).  If `sd' is given explicitly, then the drive is assumed to be
# SCSI and have BIOS drive number (sd_unit_number + BOOT_HD_BIAS).  E.g.,
# BOOT_HD_BIAS=1 makes sd(0,a) correspond to 1:sd(0,a) instead of 0:sd(0,a).
@


1.30.4.3
log
@[cry, wail, scream]

I thought I *merged* this already!  I even remember fixing the exact
same things I just fixed this time.  Sigh.  Maybe I just dreamed it.
Anyway, this would more than explain my floppy build problems. :-(

If anyone wants me, I'll be in the corner wearing the orange traffic cone.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.51 1996/11/02 02:24:30 pst Exp $
d11 1
a11 1
CFLAGS=		-O2 -DDO_BAD144 -DBOOTWAIT=${BOOTWAIT} -DTIMEOUT=${TIMEOUT}
d13 1
a13 1
CFLAGS+=	${CWARNFLAGS}
d15 2
a16 27
# Probe the keyboard and use the serial console if the keyboard isn't found.
.if defined(BOOT_PROBE_KEYBOARD)
CFLAGS+=	-DPROBE_KEYBOARD
.endif

# Probe the keyboard lock and use the serial console if the keyboard is locked.
.if defined(BOOT_PROBE_KEYBOARD_LOCK)
CFLAGS+=	-DPROBE_KEYBOARD_LOCK
.endif

# Force use of the serial console.
.if defined(BOOT_FORCE_COMCONSOLE)
CFLAGS+=	-DFORCE_COMCONSOLE
.endif

# By default, if a serial port is going to be used as console, use COM1
# (aka /dev/ttyd0).
BOOT_COMCONSOLE_PORT?=0x3F8
CFLAGS+=	-DCOMCONSOLE=${BOOT_COMCONSOLE_PORT}

BOOT_COMCONSOLE_SPEED?=9600
CFLAGS+=	-DCONSPEED=${BOOT_COMCONSOLE_SPEED}

# Enable code to take the default boot string from a fixed location on the
# disk.  See nextboot(8) and README.386BSD for more info.
#CFLAGS+=	-DNAMEBLOCK
#CFLAGS+=	-DNAMEBLOCK_WRITEBACK
d43 1
a43 1
# tunable timeout parameter, waiting for keypress, calibrated in ms
a44 2
# tunable timeout during string input, calibrated in ms
#TIMEOUT?=	30000
d68 1
a68 3
		echo "boot2 is too big" >&2 ; \
		rm boot2 ; \
		exit 2 ; \
d74 1
a74 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
d76 1
a76 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\
d78 1
a78 1
	for i in sd fd wd od vn ; do \
a84 1
.include <bsd.kern.mk>
@


1.30.4.4
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.29
log
@Added a check so compilation fails if the bootblocks are too big.

replaces a switch with ifs to reduce size.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.28 1995/04/14 21:26:47 joerg Exp $
d53 3
a55 3
	dd if=boot2 skip=14 of=sizetest
	if [ -s sizetest ] ; then \
		echo "*** Boot2 is too BIG ***" ; exit 2 ; \
@


1.28
log
@Boot block cleanup.

o Fix the keyboard probe to properly wait for the ready bit before
sending a command to the keyboard controller.  This should avoid the
problems some people are experiencing where the boot blocks hang the
system during keyboard probe.  (It does solve it for me.)

o Fix a bug that effectively prevented the boot blocks from ever
passing control to the serial console.  [while(--retries) instead of
while(retries--)]

o Gratuitously reduced the keyboard probe timeout from 500 to 5
seconds. :)

o Introduced a new option ``FORCE_COMCONSOLE'' as a commented-out
example in the Makefile, to force the usage of a serial console
regardless of a keyboard being connected or not.

o Moved all external declarations to boot.h, declared all functions
there, and ANSIfied all function declarations/definitions.
(printf() remains bogus, however -- i'm too lazy to fix this.)
We're in the ninetees, dunno why we should still support compilers
from the 70's.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.27 1995/03/28 19:22:39 phk Exp $
d18 1
a18 1
CLEANFILES+=	boot.nohdr boot.strip boot1 boot2
d53 4
@


1.27
log
@Don't install /usr/mdec/boot
Install the biosboot as /usr/mdec/boot[12]
Make the traditional links from [swf]dboot and boot[swf]d to boot[12] files.
Install dosboot as /usr/mdec/boot/fbsdboot.exe
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.26 1995/01/24 00:41:50 jkh Exp $
d14 4
@


1.26
log
@Y.A.B.M (Yet Another Bogus Makefile)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.25 1995/01/20 07:52:42 wpaul Exp $
d18 4
a21 4
LINKS=		${BINDIR}/sdboot ${BINDIR}/wdboot\
		${BINDIR}/sdboot ${BINDIR}/fdboot\
		${BINDIR}/bootsd ${BINDIR}/bootwd\
		${BINDIR}/bootsd ${BINDIR}/bootfd
d52 1
a52 1
beforeinstall:
d54 1
a54 1
		boot1 ${DESTDIR}${BINDIR}/sdboot
d56 7
a62 1
		boot2 ${DESTDIR}${BINDIR}/bootsd
@


1.25
log
@Removed hardcoded definition for RB_SERIAL that I left in my accident
(had it there for testing purposes). RB_SERIAL should be found in
<sys/reboot.h>.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.24 1995/01/20 07:48:14 wpaul Exp $
d57 1
a57 1
	
@


1.24
log
@Submitted by: Bill Paul (wpaul@@ctr.columbia.edu)
Obtained from:
bios boot block changed to allow booting from both the attached graphics
display and from a serial port. (A specially compiled serial boot block
is no longer necessary.) The boot block should detect the presence or
absence of a keyboard: if there is no keyboard, COM1 is turned into the
console. This simulates the behavior of the Sun boot PROMs. Unplug your
keyboard, attach a terminal to COM1 and you should be ready to go. :)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.23 1994/12/18 19:14:08 bde Exp $
d13 1
a13 1
CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/../.. -DRB_SERIAL=0x1000
@


1.23
log
@Pass the slice number of the boot device to the kernel in the previously
unused bitfields for the adaptor and the controller.  It should go in
the bitfield for the partition but that would not be backwards compatible.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.22 1994/11/05 21:06:16 ache Exp $
d6 2
a7 1
SRCS=	start.S table.c boot2.S boot.c asm.S bios.S io.c disk.c sys.c
d11 1
a11 1
CFLAGS=		-O -DDO_BAD144 -DBOOTWAIT=${BOOTWAIT}
d13 1
a13 1
CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/../..
@


1.22
log
@Change -O2 to -O
With each gcc version -O2 can cause absolutely unpredicatable things
Second stage boot still fits in allowed size
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.21 1994/10/28 07:54:13 rgrimes Exp $
d10 1
a10 1
CFLAGS=         -O -DDO_BAD144 -DBOOTWAIT=${BOOTWAIT}
@


1.21
log
@Removed extra slash between ${DESTDIR} and ${BINDIR}, noticed while working
on Makefile for netboot.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.20 1994/10/15 03:59:19 phk Exp $
d10 1
a10 1
CFLAGS=		-O2 -DDO_BAD144	-DBOOTWAIT=${BOOTWAIT}
@


1.20
log
@$DESTDIR missing...
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.19 1994/10/07 05:36:01 ache Exp $
d53 1
a53 1
		boot1 ${DESTDIR}/${BINDIR}/sdboot
d55 1
a55 1
		boot2 ${DESTDIR}/${BINDIR}/bootsd
@


1.19
log
@Change first CFLAGS+= to CFLAGS= or we got really bad results
especially with -m486 from make.conf
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.18 1994/10/06 09:40:58 rgrimes Exp $
d53 1
a53 1
		boot1 ${BINDIR}/sdboot
d55 1
a55 1
		boot2 ${BINDIR}/bootsd
@


1.18
log
@1.  BOOTSEG and BOOTSTACK are now set from the Makefile, the boot code has
    been relocated to run in the 64k segment at 0x10000 with the stack at
    the top of this segment.  This corrects the problems machines with 512K
    base memory had booting.

2.  startprog routing rewritten to convert the BOOTSEG ss to a KERNELSEG
    ss, this eliminated the last of the >512K memory references.  Additional
    cleanup in here included a better way to copy the arguments to the
    kernel stack.

3.  Elimination of argv and esym cruft saved a few bytes.

4.  Only need to truncate the head.a_entry to a meg boundary once intead
    of every time we used it!  [Saving more bytes].

5.  Addition of version 1 bootinfo structure support.  These boot blocks
    pass the kernel name in to the kernel now.

6.  Removed historical comments about MACH argv stuff, as it is useless now.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.17 1994/10/02 05:18:23 rgrimes Exp $
d10 1
a10 1
CFLAGS+=	-O2 -DDO_BAD144 -DBOOTWAIT=${BOOTWAIT}
@


1.17
log
@1.  Completely rewritten Makefile that uses bsd.prog.mk more effectively.

2.  Clean up the .S files to use /* */ style comments.

This is a totally cosmetic change, not one byte of the resulting boot
code changes.  But at least it is installed with correct owners and in
the right places, and gets recompiled correctly when things change!
@
text
@d1 1
a1 1
#	$Id$
d11 1
d27 6
@


1.16
log
@Better documentation, 1ms calibration, default 5 seconds BOOTWAIT
Reviewed by:	adam
Submitted by:	rgrimes
@
text
@d1 1
a2 29
# Permission to use, copy, modify and distribute this software and its
# documentation is hereby granted, provided that both the copyright
# notice and this permission notice appear in all copies of the
# software, derivative works or modified versions, and any portions
# thereof, and that both notices appear in supporting documentation.
#
# CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
# CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
# ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
#
# Carnegie Mellon requests users of this software to return to
#
#  Software Distribution Coordinator  or  Software.Distribution@@CS.CMU.EDU
#  School of Computer Science
#  Carnegie Mellon University
#  Pittsburgh PA 15213-3890
#
# any improvements or extensions that they make and grant Carnegie Mellon
# the rights to redistribute these changes.
#
#	from: Mach, Revision 2.2	92/04/04  11:33:46  rpd
#	$Id: Makefile,v 1.15 1994/09/19 19:54:49 adam Exp $
#

wd0:
	dd if=boot of=biosboot count=1
	dd if=boot of=bootbios skip=1
	disklabel -B -b biosboot -s bootbios wd0 
	rm biosboot bootbios
d4 19
a22 2
NOPROG=	noprog
NOMAN=	noman
a25 69
  
CFLAGS  = -O2 -DDO_BAD144 -DBOOTWAIT=${BOOTWAIT} -I${.CURDIR}
LIBS= -lc
INC= -I${.CURDIR}/../..

# start.o should be first
OBJS = start.o table.o boot2.o boot.o asm.o bios.o io.o disk.o sys.o

.SUFFIXES: .S .c .o

.c.o:
	$(CC)  $(CFLAGS) $(INC) -c $<

.S.o:
	$(CC)  $(CFLAGS) -c $<

boot: $(OBJS)
	$(LD) -Bstatic -N -T 0 -o boot $(OBJS) ${LDDESTDIR} $(LIBS)
	cp boot boot.sym
	@@strip boot
	@@size boot
	@@sh ${.CURDIR}/rmaouthdr boot boot.tmp
	@@mv -f boot.tmp boot
	@@ls -l boot

biosboot:	boot
	dd if=boot of=biosboot count=1

bootbios:	boot
	dd if=boot of=bootbios skip=1

${DESTDIR}/usr/mdec/bootsd:	bootbios
	cp bootbios ${DESTDIR}/usr/mdec/bootsd

${DESTDIR}/usr/mdec/sdboot:	biosboot
	cp biosboot ${DESTDIR}/usr/mdec/sdboot

${DESTDIR}/usr/mdec/bootwd:	${DESTDIR}/usr/mdec/bootsd
	rm -f ${DESTDIR}/usr/mdec/bootwd
	ln ${DESTDIR}/usr/mdec/bootsd ${DESTDIR}/usr/mdec/bootwd

${DESTDIR}/usr/mdec/wdboot:	${DESTDIR}/usr/mdec/sdboot
	rm -f ${DESTDIR}/usr/mdec/wdboot
	ln ${DESTDIR}/usr/mdec/sdboot ${DESTDIR}/usr/mdec/wdboot

${DESTDIR}/usr/mdec/bootfd:	${DESTDIR}/usr/mdec/bootsd
	rm -f ${DESTDIR}/usr/mdec/bootfd
	ln ${DESTDIR}/usr/mdec/bootsd ${DESTDIR}/usr/mdec/bootfd

${DESTDIR}/usr/mdec/fdboot:	${DESTDIR}/usr/mdec/sdboot
	rm -f ${DESTDIR}/usr/mdec/fdboot
	ln ${DESTDIR}/usr/mdec/sdboot ${DESTDIR}/usr/mdec/fdboot

sd:	${DESTDIR}/usr/mdec/bootsd ${DESTDIR}/usr/mdec/sdboot
wd:	${DESTDIR}/usr/mdec/bootwd ${DESTDIR}/usr/mdec/wdboot
fd:	${DESTDIR}/usr/mdec/bootfd ${DESTDIR}/usr/mdec/fdboot

all: biosboot bootbios

fd0:
	dd if=boot of=biosboot count=1
	dd if=boot of=bootbios skip=1
	disklabel -B -b biosboot -s bootbios fd0 
	rm biosboot bootbios

install: wd sd fd

clean:
	/bin/rm -f *.o *.d boot bootbios biosboot boot.sym
d27 23
@


1.15
log
@Default wait approx 10 seconds for keypress during boot
Added comment about multiplication factor
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.14 1994/09/18 19:10:11 swallace Exp $
d35 3
a37 3
# tunable loopcount parameter, waiting for keypress (*1/100s)
BOOTWAIT?=	1000

@


1.14
log
@Put LDDESTDIR before library listing.
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.13 1994/09/18 07:39:53 swallace Exp $
d35 2
a36 2
# tunable loopcount parameter, waiting for keypress
BOOTWAIT?=	2400
@


1.13
log
@Makefile:  add ${LDDESTDIR} to linking of boot code so ${DESTDIR}/usr/lib
is used instead of /usr/lib

io.c: add #include <machine/cpufunc.h> as instructed by David Greenman to
avoid inb/outb linking errors.
NOTE:  I just discovered that if GNUC is not used the inline functions will not be expanded from the include file and real inb/outb functions would
be needed.
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.12 1994/08/21 18:15:45 paul Exp $
d54 1
a54 1
	$(LD) -Bstatic -N -T 0 -o boot $(OBJS) $(LIBS) ${LDDESTDIR}
@


1.12
log
@Removed disk type from disklabel lines, not needed for installing
bootblocks.

Reviewed by:
Submitted by:
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.11 1994/08/21 17:47:24 paul Exp $
d54 1
a54 1
	$(LD) -Bstatic -N -T 0 -o boot $(OBJS) $(LIBS)
@


1.11
log
@Fixed bootblocks to work with FreeBSD 2.0

1) Fixed up some header locations
2) Replaced list of boot files with /kernel
3) Changed disklabel use in Makefile to conform to 4.4
4) Added size command in Makefile to get close estimate of bootblock
   sizes. Total size of text and data must be below 64K, slightly
   overestimated since a.out header subsequently gets stripped.
5) Various buffer sizes are set to 8192 bytes in sys.c. In 4.4 MAXBSIZE
   is set to 64K which is too big for the bootblocks to deal with.

Submitted by:	Paul Richards
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.10 1994/06/20 04:32:40 jkh Exp $
d29 1
a29 1
	disklabel -B -b biosboot -s bootbios wd0 nec5655
d99 1
a99 1
	disklabel -B -b biosboot -s bootbios fd0 floppy 
@


1.10
log
@Make BOOTWAIT a truly tunable parameter.  It was hard-set before.
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.9 1994/06/16 03:53:24 adam Exp $
d29 1
a29 1
	disklabel -r -w wd0 nec5655 newboot biosboot bootbios
d57 1
d99 1
a99 1
	disklabel -r -w fd0 floppy bootflpy biosboot bootbios
@


1.9
log
@Changed delay mechanism to rely more on I/O spinning. If spinning on the
like this is bad news, it will have to be revised.
Shortened some verbose messages for when the kernel is loaded below 640k.
Updated version number.
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.8 1994/06/15 18:15:16 adam Exp $
d36 1
a36 1
BOOTWAIT=2400
@


1.8
log
@make BOOTWAIT loopcount parameter available for tuning.
This changes nothing unless f.e. -DBOOTWAIT=0 or -DBOOTWAIT=640000 is used
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.7 1994/06/02 16:50:56 jkh Exp $
d36 1
a36 1
BOOTWAIT=240000
@


1.7
log
@This should fix up the absolute paths to /usr/mdec - just prepended
${DESTDIR} to all the right places (any reason why not?).
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.6 1994/05/30 05:23:46 ache Exp $
d35 4
a38 1
CFLAGS  = -O2 -DDO_BAD144 -I${.CURDIR}
@


1.6
log
@Make bootblocks fit into 7168 limit
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.5 1993/12/11 20:35:15 ats Exp $
d64 2
a65 2
/usr/mdec/bootsd:	bootbios
	cp bootbios /usr/mdec/bootsd
d67 2
a68 2
/usr/mdec/sdboot:	biosboot
	cp biosboot /usr/mdec/sdboot
d70 19
a88 19
/usr/mdec/bootwd:	/usr/mdec/bootsd
	rm -f /usr/mdec/bootwd
	ln /usr/mdec/bootsd /usr/mdec/bootwd

/usr/mdec/wdboot:	/usr/mdec/sdboot
	rm -f /usr/mdec/wdboot
	ln /usr/mdec/sdboot /usr/mdec/wdboot

/usr/mdec/bootfd:	/usr/mdec/bootsd
	rm -f /usr/mdec/bootfd
	ln /usr/mdec/bootsd /usr/mdec/bootfd

/usr/mdec/fdboot:	/usr/mdec/sdboot
	rm -f /usr/mdec/fdboot
	ln /usr/mdec/sdboot /usr/mdec/fdboot

sd:	/usr/mdec/bootsd /usr/mdec/sdboot
wd:	/usr/mdec/bootwd /usr/mdec/wdboot
fd:	/usr/mdec/bootfd /usr/mdec/fdboot
@


1.5
log
@Deleted the private cleandir target. It didn't had a rule for the
obj symlink in it and the normal bsd.prog.mk cleandir target does
already the correct thing.
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.4 1993/11/16 02:02:05 ache Exp $
d35 1
a35 1
CFLAGS	= -O -DDO_BAD144 -I${.CURDIR}
@


1.4
log
@We don't want shared boot, so -Bstatic added to ld options
@
text
@d23 1
a23 1
#	$Id: Makefile,v 1.3 1993/10/16 19:11:23 rgrimes Exp $
d100 1
a100 1
clean cleandir:
@


1.3
log
@Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some
minor cleanup.  Added $Id$ to files that did not have any version info, etc
@
text
@d23 1
a23 1
#	$Id$
d51 1
a51 1
	$(LD) -N -T 0 -o boot $(OBJS) $(LIBS)
@


1.2
log
@New boot blocks, from Bruce Evans, and NetBSD fixes.  Allows kernel to
be loaded above 1MB.  Same boot code for floppies now.  Speed improvements.
etc etc etc. (I don't have much history on this, but then have been tested)
@
text
@a1 3
# Ported to boot 386BSD by Julian Elischer (julian@@tfs.com)
# September 1992
#
d22 2
a23 50
#
# HISTORY
# $Log: Makefile,v $
# Revision 1.6  1993/07/11  12:02:17  andrew
# Fixes from bde, including support for loading @@ any MB boundary (e.g. a
# kernel linked for 0xfe100000 will load at the 1MB mark) and read-ahead
# buffering to speed booting from floppies.  Also works with aha174x
# controllers in enhanced mode.
#
# Revision 1.5  1993/07/04  14:03:03  cgd
# do the right thing, so things aren't built in /usr/src/sys
#
# Revision 1.4  1993/06/18  08:03:14  cgd
# install floppy boot block, too.
#
# Revision 1.3  1993/06/08  03:36:39  deraadt
# makes more sense if src is mounted readonly
#
# Revision 1.2  1993/04/28  08:45:51  deraadt
# Ensure the rmaouthdr shell script is executable before running it!
#
# Revision 1.1  1993/03/21  18:08:11  cgd
# after 0.2.2 "stable" patches applied
#
# 
# 93/06/30  bde
#	fd boot is now fast enough.
#	(Safe) target fd0 and (unsafe) target wd0 to temporarily avoid
#	updating /use/mdec.
#
# 93/06/29  bde
#	Deleted weirdness for not-really-separate code and data segments.
#	It is not necessary now that the GDT is dynamically initialized.
#	table.o doesn't need to be early any more.  boot.sed is not used
#	any more (delete it).  The shell commands that failed with status
#	0 no longer exist so the 93/06/28 fixes got deleted.
#
#	Use .S extension for asm files to get (g)cc to preprocess them
#	automatically.
#
# 93/06/28  bde
#	Don't exit 0 from failing shell commands.
#
# Thu Sep 10 22:40:23 PDT 1992
# Ported to 386BSD by Julian Elischer
# julian@@tfs.com
#
# Revision 2.2	92/04/04  11:33:46  rpd
#	Fabricated for MACH 3.0
#	[92/03/30	     mg32]
d25 1
@


1.1
log
@Initial revision
@
text
@d28 39
a66 3
# Revision 2.2	92/04/04  11:33:46  rpd
#	Fabricated for MACH 3.0
#	[92/03/30	     mg32]
d72 12
d85 1
a85 1
CFLAGS	= -O -DDO_BAD144
d87 1
a87 1
INC= -I../..
d89 1
a89 1
# start.o should be first, table.o should be second
d92 1
a92 1
.SUFFIXES: .s .c .o
a93 1
# These are wierd because we don't want separate code and data segments.. ok?
d95 1
a95 18
	@@echo $(CC) -c $(CFLAGS) $(INC) $*.c
	-@@trap "/bin/rm -f $*.i $*.s; exit 0" 0 1 2 3 10 15; \
	$(CC)  $(CFLAGS) $(INC) -S $<;	\
	if [ $$? != 0 ]; then :; else \
		sed -f boot.sed $*.s > $*.i;	\
		$(AS) $*.i -o $@@; \
	fi

.s.o:
	@@echo $(AS) -o $*.o $<
	-@@trap "/bin/rm -f $*.i X$*.c; exit 0" 0 1 2 3 10 15; \
	/bin/rm -f X$*.c;	\
	ln $*.s X$*.c;	\
	$(CC) -E $(CFLAGS) X$*.c > $*.i;	\
	if [ $$? != 0 ]; then :;	\
	else \
		$(AS) $*.i -o $@@;	\
	fi
d97 2
d100 1
a100 1
boot: boot.sed $(OBJS)
d104 1
a104 1
	@@./rmaouthdr boot boot.tmp
d140 1
a140 6
#wd0:	/usr/mdec/bootwd /usr/mdec/wdboot
#	disklabel -r -w wd0 julian julian5 /usr/mdec/wdboot /usr/mdec/bootwd
#

sd0:	/usr/mdec/bootsd /usr/mdec/sdboot
	disklabel -r -w sd0 XT-8760 scsitest /usr/mdec/sdboot /usr/mdec/bootsd
d142 5
d148 1
a148 11
#fd0:	/usr/mdec/bootfd /usr/mdec/fdboot
#	disklabel -r -w fd0 floppy5 bootflpy /usr/mdec/fdboot /usr/mdec/bootfd
#

install: wd sd 
# you should use the old floppy booter, it's MUCH faster
# This one works but it's too slow.
# besides how many kernels can you fit on a floppy?
# only use this one if you want to boot a kernel
# from a hard disk 2 when you've trashed hard disk 1
#install: wd sd fd
d150 1
a150 1
clean:
d153 1
a153 1

@


1.1.1.1
log
@Initial import, 0.1 + pk 0.2.4-B1
@
text
@@
