Commit Graph

232 Commits

Author SHA1 Message Date
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
simonb 4bb143c0ea Move callv variable declaration here from conf.c. 1999-11-27 06:44:00 +00:00
simonb c3c29ad5c5 Load second stage bootblocks from "boot.pmax", falling back to "boot"
for backwards compatibility and "boot.pma" after that for people who
make ISO filesystems with 8.3 format file names.
1999-11-27 06:34:06 +00:00
simonb 10c7b5ab91 Remove the remaining files in lib directory. The other files in
this directory were moved to ../common via a CVS repository copy.
1999-11-27 03:55:46 +00:00
simonb 40bbc6129e Remove the remaining files in scsiboot directory. The other files in
this directory were moved to ../common via a CVS repository copy.
1999-11-27 03:54:43 +00:00
simonb 426c66b28c Moved to common/callvec.c,v 1999-11-27 03:14:47 +00:00
simonb 42fdd5dfb7 Moved from lib/callvec.c,v 1999-11-27 03:14:46 +00:00
simonb e2751ce295 Moved to common/printf.S,v 1999-11-27 03:12:24 +00:00
simonb 360739d57f Moved from scsiboot/printf.S,v 1999-11-27 03:12:23 +00:00
simonb 88b44c10cb Moved to common/clear_cache.S,v 1999-11-27 03:11:56 +00:00
simonb ea515c3a7f Moved from scsiboot/clear_cache.S,v 1999-11-27 03:11:55 +00:00