Commit Graph

121 Commits

Author SHA1 Message Date
thorpej
e2c6ed87ec Fix several semantic bugs:
- Always allow RAW_PART to be opened, regardless of the partition table.
- Never do partition translation on RAW_PART; it's always offset 0.
- Always make sure the disklabel is read from RAW_PART.
- Make *strategy() return values consistent.

This fixes a condition where a bogus partition table could be written
to the disk from SYS_INST, and the user had no way to rewrite with
a correct partition table, since RAW_PART would be invalid.
1996-12-21 21:34:40 +00:00
thorpej
0d58626f72 This wasn't just a spelling error... I invented a whole new word! 1996-12-21 21:23:43 +00:00
thorpej
c0c07cd30e Always use `SLOWSCSI'. Some devices need a long delay between phase
changes, apparently.  This is reported to work around some odd failures
people were seeing during first-time installation onto a SCSI disk.
1996-12-17 09:21:42 +00:00
thorpej
150c33e60b Use ${INSTALL}. 1996-10-18 05:55:26 +00:00
thorpej
27f386f5b2 Garbage collect some now unneeded code, and declare the punit device
driver entry point switch.
1996-10-14 07:34:48 +00:00
thorpej
415248a4f2 Move the machdep_start() code into machdep.c. No need for different
versions of this function anymore, now that we have a sane kernel setroot().
1996-10-14 07:33:43 +00:00
thorpej
18c2b0460a Garbage collect some hackish code that was needed when we had a lame
kernel setroot().  The device type for network boot is set like any
other device now.  Also, call the punit entry point for device drivers
to properly set `bootdev'.
1996-10-14 07:31:47 +00:00
thorpej
9ff0348a49 Implement ctpunit(), a "set physical unit" entry point. 1996-10-14 07:29:57 +00:00
thorpej
9d51a5dcf7 Add a standalone driver entry point that sets the physical unit (HP-IB's
equivalent of a LUN) in `bootdev'.  This is needed to properly detect the
boot device if booted from the tape unit of an HP-IB disk/tape combo.
1996-10-14 07:29:15 +00:00
thorpej
84da57f13b Clean up the code that sets `bootdev' based on information provided
by the BOOTROM.  Also, give network devices the attention they deserve.
1996-10-14 07:26:06 +00:00
thorpej
24d2e8ec5f Sanity sweep. 1996-10-07 04:45:41 +00:00
thorpej
a2f9031d2f Add support for copying the miniroot from HP-IB cartridge tape. 1996-10-07 04:45:10 +00:00
thorpej
bc504916f3 Garbage-collect some sun3-specific stuff, add some debugging code,
and KNF.
1996-10-06 19:07:53 +00:00
thorpej
61a0ffca58 Fixup (unused) netstrategy() routine's calling convention (just returns
EIO).  Garbage collect unused netioctl() - conf.c redirects netioctl()
to noioctl().
1996-10-06 19:07:00 +00:00
thorpej
a3c29be5e0 Fixup ctstrategy() calling convention. The standalone ct driver
works again.
1996-10-06 19:05:27 +00:00
mycroft
6ea58d5fae Serial console changes:
* Enable FIFO with trigger level 1.
* Set DTR and RTS so terminals are happy.
* Do not set IEN.
1996-10-06 01:42:45 +00:00
thorpej
eae3f0bb96 When opening a disk for non-filesystem i/o, make sure we only return
an error condition when an error occurs.

Bug noticed by Terry Lambert <terry@lambert.org>.
1996-09-11 18:05:02 +00:00
thorpej
180c16eff6 Oops, forgot this required change in previous commit. 1996-06-26 18:11:24 +00:00
thorpej
fc699e8440 Major revamp of the boot code.
- Good bye SYS_PBOOT and SYS_NBOOT, hello SYS_UBOOT (unified boot)
	  Currently supports booting from SCSI and HP-IB disk and network
	  from a single boot block.  Infrastructure for booting from
	  HP-IB tape is there, but it doesn't quite work yet.

	- Add a slightly modified version of Gordon Ross's "rawfs",
	  which provides a filesystem-like interface to tape devices.
	  Still needs debugging (see above).

	- Rename sys_inst.c to inst.c, so that the LIF directory entry
	  turns out right (used to look like SYS_SYS_I if loaded from
	  tape).

	- Add a "netio_ask" hint to netio.c, so that a special instnetio.o
	  doesn't have to be compiled for SYS_INST.  Defaults to using
	  bootparams, but if set, will prompt user for information
	  usually obtained from bootparams.

	- General cleanup.
1996-06-26 17:44:21 +00:00
thorpej
570949e0e4 Catch up with ITE data structure changes. 1996-03-03 04:23:33 +00:00
scottr
f08c9ffa5a make this compile again, since CONUNIT is no longer defined for us.
per Jason.
1996-02-27 22:11:44 +00:00
thorpej
cf93780656 Adjust for the new console code; CONSCODE is now a kernel option, not
a dca-specific constant.  For now, hardwire standalone DCA console
at select code 9 (which is what the old constant expanded to).  Really
should make the way the bootblock console is probed look just like how
the kernel console is probed.
1996-02-26 21:51:25 +00:00
thorpej
90a0b784de Build memcpy.c 1996-01-30 19:47:32 +00:00
thorpej
abe8231c4f Catch up with changes to libsa. 1996-01-30 19:09:09 +00:00
thorpej
1eff435896 Use ${BINOWN} and ${BINGRP} per Arne H. Juul <arnej@ikke.idt.unit.no>
in PR #705.  Also, clean up some stuff left over from HP-BSD.
1996-01-15 01:41:37 +00:00
thorpej
e7cf87f5dc Add the last revision previous to the switch to the MI LANCE code of
hp300/dev/if_lereg.h to the standalone code; the standalone LANCE driver
for the hp300 needs it.
1996-01-01 18:10:54 +00:00
thorpej
62150b43b1 Truncate the incoming packet if it doesn't fit into the buffer. 1995-10-19 18:43:27 +00:00
thorpej
b675177228 Put new-style RCS ids in the startup banner. Makes bootblock revisions
much easier to recognize; old method could have revision corrupted by
local RCS control.
1995-10-04 07:24:31 +00:00
thorpej
d08330454a Determine the select code of the console device, or -1 for internal grf.
Pass this value to the kernel in register d5.  This value isn't currently
used by the kernel, but will be in the future.
1995-10-04 06:54:42 +00:00
thorpej
3810bc32eb Compile the system installation program and install it in /usr/mdec/rbootd
as SYS_INST.
1995-09-23 17:40:54 +00:00
thorpej
a8c323442d Add a standalone system installation program. Currently implements:
* Prompt user for disklabel information and label disk.
	* Copy miniroot image from NFS server to `b' partition.
	* Boot kernel in miniroot image into single-user mode.
Hooks for tape support are there, but the meat for that isn't implemented yet.
1995-09-23 17:38:51 +00:00
thorpej
a35f639de0 If compiled for the system installation program, prompt for myip, gateip,
netmask, serverip, and path rather than using rarp/bootparam.

Catch up with libsa changes.
1995-09-23 17:31:10 +00:00
thorpej
d429f2e11f Re-arrange a mite; for the system installation program. Catch up with libsa
changes.
1995-09-23 17:28:11 +00:00
thorpej
188f6e6912 Add *close() routines. Basically, zaps softc structure so that partition
information will be re-loaded upon next open.

Catch up with libsa changes.
1995-09-23 17:19:58 +00:00
thorpej
b8e9fb1b0b Catch up with libsa changes. 1995-09-23 17:17:03 +00:00
thorpej
f47d026fb3 Fix cosmetic typo in kernel name prompt. 1995-09-13 18:52:39 +00:00
thorpej
231db77094 Fix thinko in netboot-related changes. 1995-09-02 23:36:09 +00:00
thorpej
acdc651ece Add support for network booting; uses the following procedure:
rbootd->rarp->bootparam->nfs
Add "reset" option to disk and network boot prompts to reload boot code.
1995-09-02 05:04:14 +00:00
thorpej
b56fc99724 Catch up with an include file change I missed before. 1995-08-05 16:47:34 +00:00
thorpej
4313e3aa62 Make the boot blocks compile (and work!) again. 1995-08-04 07:55:34 +00:00
mycroft
f96a1945c5 Remove `nboot' completely. 1995-02-21 09:16:34 +00:00
mycroft
85eb2facec Use the libsa exec(). 1995-02-21 09:06:13 +00:00
mycroft
28983f9e3f Tweak to make the twiddler look better. 1995-02-21 06:39:01 +00:00
mycroft
e9685fc52f Don't define netif_debug here. 1995-02-20 00:19:43 +00:00
mycroft
30b00f8878 Slight rearrangement. 1995-02-20 00:15:06 +00:00
mycroft
19a789aae8 Update to the new RCS id convention. 1995-02-20 00:12:09 +00:00
mycroft
6cd040ac12 Don't stall if we get packets back-to-back. 1995-02-19 23:54:18 +00:00
mycroft
388209113e Don't panic if the battery is dead. 1995-02-19 23:53:19 +00:00
mycroft
2fd9d0abfb Add unfinished netboot code, and reorganize the Makefile somewhat. 1995-02-19 19:17:01 +00:00
cgd
132b41434c new RCS ID format. 1994-10-26 07:22:45 +00:00
mycroft
9b9fa4f2a0 Fix misguided attempt to reorganize bootdev, and fix a few
other miscellaneous bugs and nits.
1994-09-19 00:23:36 +00:00
brezak
dd945bf3c1 Don't echo here 1994-08-22 21:41:23 +00:00
brezak
901e645db3 Do echo here just like libsa::gets() 1994-08-22 21:41:07 +00:00
mycroft
8f2482ff3d Fix `make depend' error. 1994-08-15 06:42:04 +00:00
mycroft
eade2eabf4 Clean up deleted files. 1994-08-05 23:16:10 +00:00
brezak
62a05786ea Use installboot.sh from 4.4 instead of installboot.c 1994-08-04 19:42:16 +00:00
mycroft
3451593ece Dorothy, I don't think we're in Utah any more... 1994-07-18 06:27:12 +00:00
hpeyerl
73485a0035 Why was DESTDIR= here? From Dave Carrel <carrel@cisco.com 1994-06-27 04:00:52 +00:00
mycroft
b0327583a8 Update an #include. 1994-06-22 03:12:23 +00:00
hpeyerl
48fb64c3f7 hp300/stand stuff from Lite. We can boot hp4xx series nodes now! 1994-06-19 01:49:49 +00:00
brezak
3d090222c3 Fix for disk (and tape) units > 0 1994-03-09 20:17:38 +00:00
hpeyerl
81058be6b3 fix up some #include's. 1994-02-19 17:55:12 +00:00
mycroft
f2d8e8807d Add a missing ${.CURDIR}. 1994-01-30 20:02:56 +00:00
cgd
fe65a36342 .PATH in ${S}/stand 1994-01-26 04:17:23 +00:00
mycroft
11af788baa Clean up deleted files. 1994-01-26 02:39:06 +00:00
brezak
b001602018 hp300 stanealone bootstrap program ported to use CMU libsa 1994-01-26 02:38:16 +00:00
mycroft
0b3f240c49 Ditto. 1993-09-02 19:05:40 +00:00
mycroft
4862b84c92 Add RCS identifiers (this time on the correct side of the branch), and
incorporate recent changes in netbsd-0-9 branch.
1993-08-01 19:22:24 +00:00
mycroft
690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
cgd
30177b538f add rcsids to everything and clean up headers 1993-05-22 07:56:12 +00:00
cgd
6dedb5151c add hp300 kernel files. generic kernel files might need some help... 1993-05-13 13:56:20 +00:00