Commit Graph

149 Commits

Author SHA1 Message Date
simonb fb8de5803e Use ELFCLASS32 instead of ELFCLASS. 1999-10-27 03:28:54 +00:00
kleink 522cbf0248 Update to match new SVR4-style definition names in <sys/exec_elf.h>. 1999-10-25 13:55:06 +00:00
simonb 249879ba34 Begone with some garish Mach_StructureNames.
Add a comment about the bootblock structure.
1999-10-25 02:29:45 +00:00
simonb 60f2775a8e Fix incorrect comment. 1999-09-28 02:26:35 +00:00
mrg f484530816 do not "quote" SAMISCMAKEFLAGS values, it causes pain and suffering. 1999-07-21 13:34:34 +00:00
simonb e37110cfef Add some instructions. 1999-05-13 08:40:08 +00:00
simonb bb592db897 Standalone program that contains a compressed kernel image suitable for
netbooting on machines that can't netboot a fullsize kernel.

This is only a stop-gap solution until the pmax gets a working two stage
netboot, and is not enabled by default.
1999-05-13 08:38:05 +00:00
christos c22a8166d9 use new loadfile 1999-04-28 09:18:47 +00:00
simonb cbd32a724f Sync with rev 1.9 of sys/arch/i386/stand/lib/loadfile.c:
another nit in error handling: don't try to print out a NULL
	filename (which means "use default" and is dealt with properly
	by open())
1999-04-17 11:24:16 +00:00
simonb b84e038e4b Bump version number to 1.1 for default kernel names. 1999-04-12 05:46:57 +00:00
simonb 71c3fc3251 If only a device name is specified with no kernel name, try to load a
kernel from a default list of names.  This list is netbsd, netbsd.bak,
netbsd.old, onetbsd and gennetbsd - all without and with a .gz
extension.
1999-04-12 05:19:25 +00:00
simonb ab3de4de0e Make the bootpath "N/rzY" with no trailing '/' valid by adding the extra
'/' before appending 'boot' to the path.
1999-04-12 05:14:51 +00:00
simonb 520c13bcc8 Fix an off-by-32 error - space was padded out to the 96th byte for the
DEC disk boot block header, but it's only 64 bytes long.  Gives us
another 32 bytes in the first stage.

Don't use a roll-your-own START_FRAME size and offsets for the stack
and ra - use the <mips/asm.h> provided CALLFRAME_SIZ, CALLFRAME_RA and
CALLFRAME_SP
1999-04-12 03:53:13 +00:00
simonb 0a7e699d22 Add "WARNS?= 1" - woohoo! 1999-04-11 04:31:02 +00:00
simonb cdc059d0d0 Use BOOTRZ instead of BOOTXX.
Add -DLIBSA_NO_DEV_IOCTL.
1999-04-11 04:28:14 +00:00
simonb 6247c771c1 Use BOOTRZ instead of BOOTXX.
Add a PROM callback for prom_close if not LIBSA_NO_DEV_CLOSE.
1999-04-11 04:27:53 +00:00
simonb deb30f311a Include <common.h> to get prototypes for PROM callbacks.
Use LIBSA_NO_DEV_CLOSE and BOOTRZ instead of SMALL.
In rzclose() call prom_close() on the descriptor if we're on a
    pre-REX machine.
1999-04-11 04:27:30 +00:00
simonb b2706c76c1 s/vmunix/netbsd/
Use BOOTRZ instead of SMALL.
1999-04-11 04:26:31 +00:00
simonb 558e5709dd Use LIBSA_NO_DEV_CLOSE and LIBSA_NO_DEV_IOCTL instead of SMALL. 1999-04-11 04:26:06 +00:00
simonb bc48dfc927 Clean up prototypes.
Print a message on failure to load or execute kernel.
1999-04-11 04:25:47 +00:00
simonb f1e493608f Move MKMAN to ../Makefile.inc. 1999-04-11 04:25:15 +00:00
simonb c8ba78a09e Move BINDIR, BINMODE to Makefile.inc.
Remove -DSMALL.
Define an empty LIBZ if building first stage bootblocks since LIBZ
   defaults to /usr/lib/libz.a.
1999-04-11 04:24:41 +00:00
simonb 96fba8337e Define BINDIR, BINMODE and MKMAN in the "standard" place. 1999-04-11 04:19:56 +00:00
simonb 9498a6da95 Clean up prototypes and entry variable usage. 1999-04-11 04:08:25 +00:00
simonb 2fb264a52e Declare some prototypes for the pmax-specific libsa functions. 1999-04-11 04:05:46 +00:00
simonb 39b90701da Include <stand.h> so we get a putchar() prototype. 1999-04-11 04:03:29 +00:00
simonb cda54b761e Apply rev 1.8 of sys/arch/i386/stand/lib/loadfile.c:
fix error handling: almost all errors were ignored

YES, this will be made MI soon...
1999-04-10 01:52:33 +00:00
simonb e6ab4443a2 Mention a few other (not implemented) space saving ideas in case we
get desparate in the future.
1999-04-01 08:47:38 +00:00
simonb f36bd65f46 Build the full MI libsa for the first stage bootblocks rather than
picking the bits we wanted explicitly, taking advantage of some of the
recent code-size trimming from cgd.  There's now no duplication if libsa
code in sys/arch/pmax/stand.

As a bonus, we now have 416 bytes free in stage one (up from 80), and
will all of Chris' space saving options enabled (these are commented out
in scsiboot/Makefile), theres over a 1kB free.
1999-04-01 06:05:04 +00:00
simonb 971284a4ed Add support for LIBSA_SINGLE_DEVICE and LIBSA_SINGLE_FILESYSTEM. 1999-04-01 05:52:38 +00:00
simonb ff2206f6df G/C UFS_NOSYMLINK, UFS_NOCLOSE and UFS_NOWRITE and use new LIBSA_NO_FS_*. 1999-03-31 07:43:39 +00:00
simonb 4c9bbd20fb Don't define errno expliticly, use libsa/errno.c in first stage and
${LIBSA} in the second stage.
1999-03-31 07:23:27 +00:00
simonb febdc0ddf2 Use recent LIBSA_NO_TWIDDLE support. 1999-03-31 04:30:11 +00:00
simonb 0f4c2803ca Create/build vers.c/vers.o inside the final link stage so that the build
datestamp get's updated each build.
1999-03-31 03:10:56 +00:00
simonb 5fbc10c671 Reorder ${LIBS} so that we don't need to explicitly pull in bcmp.c
and bzero.c from libkern.
1999-03-31 02:35:14 +00:00
simonb a487471f7c Remove bogus comment. 1999-03-29 13:48:25 +00:00
simonb 516865d17c Enable now that "make depend" works properly. 1999-03-27 07:39:06 +00:00
simonb d44e9483b0 Go back to a Makefile.booters scheme, like most other ports do. No
more problems for "make depend" - tested with and without obj dirs.
1999-03-27 07:17:50 +00:00
simonb d0e107a1a5 Update copyrights. 1999-03-26 05:23:58 +00:00
simonb 4fefe2cb37 Conditionally set BINMODE and BINDIR so lower level Makefiles can override
the location or modes.

Fix up the machine and mips symlink creation.
1999-03-26 02:12:17 +00:00
simonb 461afc9079 Explictly set BINMODE to 555 so that ../Makefile.inc doesn't override it. 1999-03-26 02:07:55 +00:00
simonb aff677bcae Updates for new bootblocks. 1999-03-25 12:24:56 +00:00
simonb 5010ae76c0 Remove old (not-enabled) local support for loading kernels. 1999-03-25 12:16:04 +00:00
simonb b295b577e1 Second stage bootblocks based on original single stage blocks. 1999-03-25 12:11:41 +00:00
simonb 2dde1643c2 Makefile for /boot. 1999-03-25 12:10:12 +00:00
simonb 7c060ce391 Version info for bootblocks. 1999-03-25 11:57:41 +00:00
simonb 26098f27a2 Emtpy twiddle() to save space in stage 1 bootblocks 1999-03-25 05:28:36 +00:00
simonb b9b7830d05 Unused now. 1999-03-25 05:27:00 +00:00
simonb 1e80ec96a0 Only include the dec disklabel at the start of BOOTXX is defined. 1999-03-25 05:23:48 +00:00
simonb fb11e9e236 Remove unused debugging code, and clean up an error message. 1999-03-25 05:22:44 +00:00