Commit Graph

242 Commits

Author SHA1 Message Date
simonb
02383cded0 The "debug" variable is only used during network debugging, and then
only if NET_DEBUG is defined.  Put it's declaration and initialisation
inside '#ifdef NET_DEBUG' and save another 16 bytes.
2002-03-15 13:31:08 +00:00
gmcgarry
feb0773e27 Support two-stage netboot. Is known to work on maxine, but problems
have been reported on 3min.
2002-02-23 21:43:57 +00:00
lukem
0d0b003e9c use ${INSTALL_FILE} instead of "cp -p" 2002-01-31 04:23:15 +00:00
lukem
b0b0a32ad7 Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
tv
5489b30b60 ${MAKE} print-objdir -> ${PRINTOBJDIR} 2001-11-14 00:58:48 +00:00
scw
45e7238a02 Bump the version numbers of all bootloaders which use loadfile_elfXX() now
that it tries hard to avoid backwards seeks.
2001-11-09 19:53:11 +00:00
simonb
bc2ec5e553 Use a single ldscript instead of separate scripts for either endianness;
use command line parameters to ld(1) instead to set the endian format.
Clean up some endian decisions in mips/conf/Makefile.mips.
Wrap some long lines.
2001-10-05 05:03:27 +00:00
wiz
4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
tsutsui
baa3ec7385 Fix errors on make cleandir in stand/boot* dirs.
Patch from misc/14012 by kwellsch@tampabay.rr.com.
2001-09-22 05:19:39 +00:00
bjh21
ad2c12a28d Bump version numbers of all bootloaders that use loadfile/ELF, to account for
my changes to symbol loading.  I should probably have done this at the time,
but it's better late than never.
2001-08-02 12:24:05 +00:00
simonb
c23e6dcb90 b{cmp,copy,zero} -> mem{cmp,cpy,set}
Also remove some unnecessary argument casts.
2001-07-07 14:20:59 +00:00
cgd
8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
dmcmahill
028cdb58b4 add '-s' option which will cause the installboot program to recalculate the
16 bit sun checksum.  This flag is needed when making iso 9660 images which
are bootable on both sparc and pmax machines.

this addresses PR port-pmax/10929
2000-10-17 01:54:30 +00:00
dmcmahill
7eb3c0fb47 make the MAGIC check be endian safe when clearing the bootstrap. 2000-10-16 13:47:17 +00:00
dmcmahill
339897211a make this be endian independent. The installboot program now works correctly
on big endian machines as well as little endian machines.
2000-10-15 03:14:24 +00:00
simonb
57a9ae4559 Add support for booting off RAIDframe RAID1 mirrors.
If the first partition is of type FS_RAID, then add 64 to the block
number for each I/O in rzstrategy().
2000-09-13 04:06:46 +00:00
jhawk
a022cf9d37 Use
${MAKE}
instead of
  make
2000-08-30 23:51:46 +00:00
jdolecek
5942ac860b switch to sys/conf/newvers_stand.sh for generating vers.c 2000-07-13 22:25:14 +00:00
jdolecek
9c15bcabda switch to sys/conf/newvers_stand.sh for generating vers.c
sync comments in */version with i386
2000-07-13 22:18:12 +00:00
jdolecek
f6330c6500 switch to sys/conf/newvers_stand.sh for generating vers.c
sync comments in */version with i386
add a hack to ${PROG} target so that symlinks machine, pmax, mips are
  created properly even when building on NetBSD/pmax 1.4.1
2000-07-13 22:18:08 +00:00
soren
e3c19eafd0 Update comment. 2000-07-11 01:02:44 +00:00
matt
1b7636d353 uint32_t -> u_int32_t 2000-06-21 20:41:13 +00:00
matt
1976bfc798 Use <dev/dec/dec_boot.h>. Use *le32* to set boot block info. XXX Needs to
use *le32* to read ELF bootstrap file.
2000-06-16 23:24:30 +00:00
matt
1881f3c3d2 Make this compilable on other than pmax. 2000-06-11 23:28:38 +00:00
soren
b70819c71a Also share BE ldscripts. 2000-05-21 02:50:10 +00:00
simonb
bf851ea6cb Nuke register. 2000-03-30 14:45:04 +00:00
soren
95054da1a1 Fix doubled 'the's in comments. 2000-03-13 23:52:25 +00:00
mycroft
7b49d242ce Clean up the machine symlink stuff ever so slightly. Needs to be
standardized between files.
2000-01-23 17:04:03 +00:00
simonb
e065c9fbda Store only the kernel name itself in the bootinfo BOOTPATH record, and
not the full boot device specification.

With this change, /etc/rc doesn't spew garbage when kvm_mkdb can't
find a kernel called "3/rz0/netbsd" or some such...
1999-12-08 14:23:34 +00:00
simonb
3328370469 Return the blocksize-rounded-up length (which was the size malloc()d
anyway).  The resultant pwrite() is now a multiple of the blocksize and
doesn't fail on a pmax with the MI SCSI driver.

Problem noticed by Tohru Nishimura.
1999-12-01 05:02:03 +00:00
simonb
1fcc860815 Enable new pmax bootblocks. 1999-11-28 03:17:11 +00:00
simonb
bc7deba55e Bump bootblock version number to 1.2. 1999-11-28 00:40:16 +00:00
simonb
70cbfb6fcd Add CPPFLAGS and set LDSTATIC to -static. 1999-11-28 00:39:30 +00:00
simonb
50b389d4a6 Bootblock installer - based heavily on the alpha installboot but with
some significant differences:
 * Because the pmax bootblocks don't have a fixed load address, we
   need to keep the first stage blocks in /usr/mdec with some sort
   of executable format that includes load and transfer address.
   Since ELF is native, /usr/mdec/bootxx_* are in ELF format and
   installboot (in loadbootstrap.c) needs knowledge of the ELF format.
 * Support for installing the first stage at an arbitiary position.
   -a adds the first stage to end of the "disk" (only on works on
   regular files) and -i <block> puts the first stage at ISO
   filesystem block number <block> for use in multi-arch boot
   CDs (see installboot(8) for more details and an example).
 * No checksum support.  This should really be done in some sort of
   MI way rather than duplicating code between ports' installboot.c
1999-11-28 00:32:29 +00:00
simonb
b96c403e14 New alpha-style first stage bootblock Makefiles. 1999-11-27 23:59:15 +00:00
simonb
b013ce2a48 Updated for new Makefile.booters and stand/ layout. 1999-11-27 23:57:42 +00:00
simonb
6fb34407ab Update for new alpha-style bootblocks - a good deal of this is based on
the alpha stand/Makefile.bootprogs and stand/Makefile.bootxx.
1999-11-27 23:55:23 +00:00
simonb
42b18ab82a Clean up headers. 1999-11-27 07:07:04 +00:00
simonb
64b57a767e Add prom_write() declaration. 1999-11-27 07:02:24 +00:00
simonb
77f2cc3a2f Use alpha-style banner display and bootprog_* variables.
Look for default kernels in order of: netbsd.pmax netbsd netbsd.gz
  netbsd.bak netbsd.old onetbsd gennetbsd.
1999-11-27 07:00:35 +00:00
simonb
4772d7bcd7 Check that a first-stage bootblock fits in a specified size - virtually
a copy of the alpha checksize.sh.
1999-11-27 06:55:04 +00:00
simonb
326cce3c7a Add a PROM call stub for getchar. 1999-11-27 06:52:05 +00:00
simonb
92bd89485a Remove code in sector 0 support - we don't need the space and it allows
for the coexistance for other port's bootblocks in sector 0.
1999-11-27 06:49:34 +00:00
simonb
1463e10159 Don't require a disklabel at the start of a disk - needed for
ISO 9660 f/s support.
1999-11-27 06:48:08 +00:00
simonb
31d531e54b Header file include cleanup. 1999-11-27 06:47:24 +00:00
simonb
4001a35043 Small cleanup based on Alpha newvers.sh. 1999-11-27 06:46:56 +00:00
simonb
0246cad68c GC register keyword.
Add LIBSA_SINGLE_DEVICE support.
1999-11-27 06:46:36 +00:00
simonb
8160906e08 Add lfs, cd9660, nfs and ustarfs filesystem support.
Remove callv variable declaration.
1999-11-27 06:45:52 +00:00
simonb
55ae392784 Add some PROM function prototypes
Add bootprog* variable declarations (ala alpha/stand/common.h).
1999-11-27 06:45:07 +00:00