Commit Graph

132 Commits

Author SHA1 Message Date
pk
70262fb287 Properly split boot spec into file name and arguments. 1998-05-27 10:29:10 +00:00
cgd
9da165424c allow LDSTATIC definition to be overridden by bsd.own.mk/mk.conf 1998-03-02 19:57:00 +00:00
pk
964a147839 Clean vers.c & vers.o. 1997-12-18 21:03:58 +00:00
pk
639260ce32 Use DESTDIR consistently when constructing `boot.net'. 1997-11-15 14:29:36 +00:00
pk
a309481f34 Change load address to avoid cache-aliasing on machines with Harvard-style
cache implementations (notably the Hypersparcs).
1997-11-12 00:37:07 +00:00
lukem
3e8e744696 getopt returns -1 not EOF 1997-11-01 06:49:14 +00:00
pk
97128ca91e Header magic is now done in stand/boot/Makefile. 1997-10-31 22:12:21 +00:00
pk
b5d7e8f444 Install a version of the secondary boot block in /usr/mdec that is
suitable for use on a server for diskless booting.  Done mostly to
simplify the installation notes and avoid questions ...
1997-10-31 22:05:17 +00:00
pk
b5004e4ce1 Call the device close routine when we're done reading. 1997-09-14 19:28:17 +00:00
pk
5ba6b94ba6 Do not use KERNBASE to calculate the `end of symbols' location. Instead
use the `a_entry' field from the kernel's header as a base.

Pass on a new DDB magic number to the kernel, so kernels linked for a
different KERNBASE value can apply a correction when booted from old
bootblocks.
1997-09-14 19:27:21 +00:00
pk
4969489cb6 Define a new DDB magic number to pass to the kernel. 1997-09-14 19:22:55 +00:00
drochner
bdb232d2b6 Don't use <lib/libsa/if_ether.h> anymore. This was a copy of the
old (before ARP changes) <netinet/if_ether.h>, intended for
temporary use.
1997-07-22 17:41:01 +00:00
mrg
5dad1a32a4 move installboot.8 into src/share so everyone builds it. 1997-06-16 13:58:24 +00:00
mrg
81f7adf672 need to bump this back to version 1.7 (last one). 1997-06-01 14:08:58 +00:00
mrg
76b4fd4206 need to bump this back to version 1.7. 1997-06-01 14:08:15 +00:00
mrg
2a4bfcce7b need to bump this back to version 1.7. 1997-06-01 14:07:27 +00:00
mrg
640e369d6c need to bump this back to version 1.7. 1997-06-01 14:07:01 +00:00
mrg
887cadb09b need to bump this back to version 1.7. 1997-06-01 14:06:23 +00:00
mrg
e3ee873c1f need to bump this back to version 1.7. 1997-06-01 14:05:49 +00:00
mrg
7cedf69cbd Completely rearrange SPARC boot code, modeling it after alpha and hp300
ports' boot programs.  Also added support for loading gzip'd kernels,
useful for booting from floppy.  From Jason R. Thorpe <thorpej@nas.nasa.gov>,
tested by Matthew Green <mrg@eterna.com.au> and Erik Fair <fair@clock.org>.
1997-06-01 03:39:03 +00:00
mycroft
84bca5d679 Don't use _SUBDIRUSE outside of bsd.subdir.mk. 1997-05-07 17:28:47 +00:00
pk
6c717dd82c Bump version number to celebrate the fact that the bootblocks can be used
unmodified across all platforms.
1997-05-04 14:19:22 +00:00
thorpej
5b733ef58a STRIP -> STRIPFLAG 1997-04-17 07:41:05 +00:00
is
07b064e02e New ARP system, supports IPv4 over any hardware link.
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
pk
4364fc8f2c Adapt to sys/lib/lib{sa,kern}/Makefile.inc changes 1997-01-24 01:18:22 +00:00
pk
c5c074b053 remove header munging hack. 1996-11-29 15:00:25 +00:00
pk
48830f7cb1 ffs bootblock install can be simplified since installboot(8) handles that now.
To install a TFTPable boot image, we have to play the header tricks here.
1996-11-29 14:59:32 +00:00
pk
af0ec0d1d4 installboot(8) now handles required a.out header munging.
Also, the munging is extended by inserting an instruction that branches
past the header, so the same boot image can be used on all supported
sun platforms.
1996-11-29 14:55:20 +00:00
pk
b246894d9b Document `-a karch' option.
Fix a formatting nit.
1996-10-20 16:17:04 +00:00
pk
5ced353a7a Add -a <arch>' switch to force the target architecture. Retain -h' for
compatibility.
1996-10-20 16:00:14 +00:00
thorpej
150c33e60b Use ${INSTALL}. 1996-10-18 05:55:26 +00:00
thorpej
c9592404ce Clarify the comment about enabling interrupts above level 11, suggested
by Andrew Gillham.
1996-10-18 01:36:16 +00:00
mrg
a632bcbe9c update for kern/sa lib Makefile.inc changes. 1996-10-05 23:46:43 +00:00
pk
3c13903472 Enable just enough interrupts to get "L1-A" through. Patch from Jason to
avoid spurious floppy interrupts on Jason's machine...
1996-05-23 22:35:11 +00:00
pk
0ba8565c86 mountroot: return error code to caller, not -1. 1996-05-04 19:36:01 +00:00
thorpej
940ccbc5df Fix typo that caused sun4 machines to be misidentified as sun4c-class.
Fixes reported problem of binstall not stripping the a.out header from
the boot block on sun4 machines.
1996-04-07 20:00:12 +00:00
mycroft
88e512b693 LOCORE -> _LOCORE 1996-02-01 22:28:24 +00:00
pk
b7feb4a35e Enable interrupts; some ROM versions apparently turn them off. 1995-12-13 23:35:18 +00:00
pk
0c031adc76 Not all v2 proms understand the `mac-address' word (from Theo). 1995-11-14 15:04:01 +00:00
pk
c2cd05605d UFS => FFS conversion. 1995-11-08 09:09:20 +00:00
pk
54ec9fb697 Correct test for sun4 machines (thanks Chuck).
Since uname currently does not allow to discriminate different sparc
models, we use `sysctl.hw.cpumodel' to do this somewhat heuristicly:
if the returned strings starts with "SUN4-" a sun4 architecture is
assumed. This information is used to determine whether or not to strip
the a.out header off the 1st-stage bootblocks.
1995-11-07 11:45:24 +00:00
pk
ce2afd8d64 Sync filesystem before running installboot. 1995-10-11 13:32:57 +00:00
pk
64a90cd0b0 Check input channel in gettick(); for `L1-A' processing. 1995-10-10 20:11:33 +00:00
pk
ebe37d8041 We don't need `rem.o'. 1995-10-10 20:07:54 +00:00
pk
4dcb5917b8 Brr.. libkern.o is way too big for our bootxx.. 1995-10-09 23:25:54 +00:00
pk
48849279bf Script to assist installing second-stage boot programs. 1995-10-05 21:03:12 +00:00
pk
13dcbfbb29 Make this work with OBJ dirs. 1995-09-30 21:43:35 +00:00
pk
160b38697c Refer to installboot(8) 1995-09-30 21:33:30 +00:00
pk
a029979ad3 Manual page for installboot(8). 1995-09-30 21:32:14 +00:00
pk
691b9f2bfa Avoid reading the filesystem superblock in bootxx; all info now prepared
by installboot (per Gordon Ross).
1995-09-27 09:03:13 +00:00
chuck
b3ecc4c310 make sure devopen() sets pd->devtype properly when BOOTXX is defined
(should be DT_BLOCK).  otherwise the bootxx boot block will fail if
you are on a system with a v2 openprom [because it will not do the
v2_seek in obp_strategy()].    fixes the problem recently noted on
the port-sparc list by matthew green <mrg@eterna.com.au>.   i tested
fix on a ss2 with a v2 prom.
1995-09-26 20:07:53 +00:00
pk
c030fa6ef2 Install in /usr/mdec 1995-09-18 23:33:42 +00:00
pk
aa41c30406 Don't strip bootxx on installation. 1995-09-18 23:32:41 +00:00
pk
371dd67d56 sync filesystems just prior to writing the bootblocks to the raw device. 1995-09-18 22:36:19 +00:00
pk
974115eb54 Adapt to libsa changes & some other minor nits. 1995-09-18 21:31:44 +00:00
chuck
05f929580f read superblock into &sblock rather than LOADADDR. we can't read
into LOADADDR because it can't be mapped into DVMA space.   this fixes
a dvma panic on a sun4 boot from an xd disk.
1995-09-18 20:24:53 +00:00
chuck
24ba08adca Fixed RELOC's to be hex numbers (as expected) rather than decimal.
(e.g. s/340000/0x340000/).   Fixes DVMA panic on my sun-4/280 when
booted diskless.
1995-09-18 19:52:15 +00:00
pk
a32163f292 Correct some prototypes. 1995-09-17 00:50:54 +00:00
pk
f97c30e5fe Network booting; "oldmon" support; combine all functionality in single images.
Many thanks to Gordon Ross and Chuck Cranor for figuring out and testing
the old monitor (sun4) stuff.
1995-09-16 23:20:22 +00:00
pk
f5252faa3b Include exec header in length computation. 1995-08-18 21:44:01 +00:00
pk
09ea33db05 Do away with ROM printf. 1995-06-26 23:45:06 +00:00
pk
a50ba2b546 Adapt to new lib{sa,kern} regime. 1995-06-26 23:26:57 +00:00
pk
2321aeb62a Reserve arguments 2-4 for SunOS loaders; pass DDB stuff in args 5 and 6. 1995-06-25 23:26:21 +00:00
cgd
8f62c773e8 don't assume the f_fsnamelen is nul-truncated or longer than MFSNAMELEN 1995-06-18 14:45:14 +00:00
pk
39a8c80c65 Prototype internal function. 1995-05-16 15:28:01 +00:00
pk
530cf06fbb Adapt declaration to stand.h; PR #1036 1995-05-08 18:56:06 +00:00
mycroft
a01e93cf4e Use the twiddle() from libsa. 1995-02-22 08:18:18 +00:00
pk
e8880dceb9 Follow prototype changes in libsa. 1994-12-11 15:18:34 +00:00
pk
fc1b40eef4 cosmetic change. 1994-12-06 10:39:40 +00:00
deraadt
e7728e3080 support obj directory 1994-11-25 23:09:34 +00:00
deraadt
f08d8394d7 putchar is void 1994-11-25 23:09:20 +00:00
deraadt
2bfe2ea770 round text segment to __LDPGSZ 1994-11-25 23:09:09 +00:00
deraadt
274a90762d copyright/Id cleanup 1994-11-20 20:51:32 +00:00
pk
1b07d18247 Keep those pointers moving. 1994-08-13 08:33:51 +00:00
pk
820532e4cf Remove bogus fsstat(). 1994-08-13 08:33:08 +00:00
pk
cb1f841e18 Use PROM node properties to determine device type. 1994-07-30 14:22:11 +00:00
pk
94c3db28ba Make it work for V0 proms.
First cut at two stage bootstrap.
1994-07-20 20:47:02 +00:00
pk
7d2e12f330 Adapt to current libsa. 1994-07-01 10:46:55 +00:00
pk
4f785694ac DDB support 1994-03-20 09:13:37 +00:00
pk
4fb4e6a9ec bootblocks must be stripped. 1994-02-27 18:28:20 +00:00
pk
188f08ecf9 A one liner for now. 1994-02-26 11:04:02 +00:00
pk
196acb6c78 Sparc bootblocks (a tight fit) 1994-02-26 10:57:09 +00:00