Commit Graph

61495 Commits

Author SHA1 Message Date
rgrimes
2970641bb3 Update scsi code to the latest from Julian. This code is now identical
to the last copy from Julian.  After this commit I will be commiting the
local fixes and makeing diffs to send back to Julian so he can update his
code.

----
>From julian@jules.DIALix.oz.au  Thu Aug  5 09:25:23 1993
To: hd@world.std.com, julian@jules.DIALix.oz.au
Cc: nate@bsd.coe.montana.edu
Subject: Re: new scsi

----
>From julian@jules.DIALix.oz.au  Sat Aug  7 04:13:17 1993
To: hd@world.std.com (HD Associates)
Cc: nate@bsd.coe.montana.edu
Subject: Re: timeout diffs

Here are the diffs to take the scsi stuff to my latest tree from what
Nate and you received..

the changes remove all the local timeout stuff and use (un)timeout(),

----
>From julian@jules.DIALix.oz.au  Sat Aug  7 04:13:45 1993
To: hd@world.std.com (HD Associates)
Cc: nate@bsd.coe.montana.edu, briggs@csugrad.cs.vt.edu

here is a fix for a silly bug in the scsiconf I just sent out
and a similar fix for st.c
1993-08-20 09:21:40 +00:00
rgrimes
c34e1cd617 Update scsi code to the latest from Julian. This code is now identical
to the last copy from Julian.  After this commit I will be commiting the
local fixes and makeing diffs to send back to Julian so he can update his
code.

----
From julian@jules.DIALix.oz.au  Thu Aug  5 09:25:23 1993
To: hd@world.std.com, julian@jules.DIALix.oz.au
Cc: nate@bsd.coe.montana.edu
Subject: Re: new scsi

----
From julian@jules.DIALix.oz.au  Sat Aug  7 04:13:17 1993
To: hd@world.std.com (HD Associates)
Cc: nate@bsd.coe.montana.edu
Subject: Re: timeout diffs

Here are the diffs to take the scsi stuff to my latest tree from what
Nate and you received..

the changes remove all the local timeout stuff and use (un)timeout(),

----
From julian@jules.DIALix.oz.au  Sat Aug  7 04:13:45 1993
To: hd@world.std.com (HD Associates)
Cc: nate@bsd.coe.montana.edu, briggs@csugrad.cs.vt.edu

here is a fix for a silly bug in the scsiconf I just sent out
and a similar fix for st.c
1993-08-20 09:14:22 +00:00
rgrimes
13c3434c96 Moved /sys/scsi code files information to independed files file where it
should have always been.
1993-08-20 08:53:08 +00:00
alm
86178533d7 patch 1of2 to prevent kill -1 syslogd from hanging the console
blindly applied patch provided by Christoph Robitschko:
*** cons.c.orig	Sat Jun 12 07:57:53 1993
--- cons.c	Thu Aug 19 22:34:53 1993
***************
*** 56,61 ****
--- 56,62 ----
  #include "sys/tty.h"
  #include "sys/file.h"
  #include "sys/conf.h"
+ #include "sys/vnode.h"

  #include "cons.h"

***************
*** 105,118 ****
--- 106,130 ----
  	(*cp->cn_init)(cp);
  }

+ static struct vnode	*cnopenvp = NULLVP;
+
+
  cnopen(dev, flag, mode, p)
  	dev_t dev;
  	int flag, mode;
  	struct proc *p;
  {
+ 	int		error;
+
+
  	if (cn_tab == NULL)
  		return (0);
  	dev = cn_tab->cn_dev;
+ 	if (cnopenvp == NULLVP)
+ 		if ((error = getdevvp(dev, &cnopenvp, VCHR))) {
+ 			printf("cnopen: getdevvp returned %d !\n", error);
+ 			return(error);
+ 		}
  	return ((*cdevsw[major(dev)].d_open)(dev, flag, mode, p));
  }

***************
*** 121,130 ****
  	int flag, mode;
  	struct proc *p;
  {
  	if (cn_tab == NULL)
  		return (0);
  	dev = cn_tab->cn_dev;
! 	return ((*cdevsw[major(dev)].d_close)(dev, flag, mode, p));
  }

  cnread(dev, uio, flag)
--- 133,153 ----
  	int flag, mode;
  	struct proc *p;
  {
+ 	int		error;
+
+
  	if (cn_tab == NULL)
  		return (0);
  	dev = cn_tab->cn_dev;
! 	if (vcount(cnopenvp) <= 1)
! 		error = (*cdevsw[major(dev)].d_close)(dev, flag, mode, p);
! 	else
! 		error = 0;
! 	if (error == 0) {
! 		vrele(cnopenvp);
! 		cnopenvp = NULLVP;
! 	return(error);
! 	}
  }

  cnread(dev, uio, flag)
1993-08-20 05:46:09 +00:00
rgrimes
bde4b15b25 chess is now in src/gnu, moved here from src/games 1993-08-20 03:23:17 +00:00
rgrimes
3effaf213d Added libg++ since it is now in src/gnu 1993-08-20 03:06:18 +00:00
rgrimes
9844549f73 Removed gcc1 from top level make file, moving gcc1 to ports, gcc is becoming
the system default compiler.  The move of gcc1 in the cvs repository will
be done specially to retain all history.  You will only see a commit
message for it's removal, the addition of it to ports will be done, you
just won't see the commit.
1993-08-20 01:24:09 +00:00
alm
ca482e23cf added Bustek 545 support (patch from Christoph Robitschko):
*** aha1542.c~	Thu Aug 19 14:25:33 1993
--- aha1542.c	Thu Aug 19 14:25:49 1993
***************
*** 954,959 ****
--- 954,960 ----
  	printf("aha%d:",unit);
  #define	PRNT(x) printf(x)
  #endif	__386BSD__
+ 	DELAY(1000);	/* for Bustek 545 */
  	aha_cmd(unit,0, sizeof(conf), 0 ,&conf, AHA_CONF_GET);
  	switch(conf.chan)
  	{
1993-08-19 21:32:59 +00:00
rgrimes
47e1ede176 Replaced empty manual page with one that has atleast some of the stuff
in it.
From: Andreas Schulz <ats@g386bsd.first.gmd.de>

I have uploaded the man page from gas 2.1.1 under ~ats/as.1 .
1993-08-17 20:16:19 +00:00
jtc
46d985857a 1003.2 requires that lexical comparisons be done in locale specific manner,
so we have to use strcoll() instead of strcmp().
1003.2 requires that a null string be returned if a string does not match
a \( \) subexpression.
Replaced fprintf/exit with calls to err and errx as appropriate.
1993-08-17 16:06:00 +00:00
jtc
f3030a28f1 SRCS should contain *.c's, not *.o's. 1993-08-16 16:22:34 +00:00
alm
c05c784bea Nullify pattern after failed regcomp 1993-08-16 09:30:18 +00:00
alm
882c5ab2bd add more notes and examples 1993-08-15 07:11:52 +00:00
nate
3e2c95afbe Removed Jordan's DO_LINKS from the Makefile, since this behavior is not
'normal' CVS behavior, and we've never used nor depended on it.
(And at times I've gotten bit by it)
1993-08-14 22:00:14 +00:00
rgrimes
88c5858767 Wrong path for uucp login, was /usr/lib instead of /usr/libexec. Fixed 1993-08-13 23:07:31 +00:00
rgrimes
811a76e443 Fixed entry for t9600, baud rate was 19200, should be and now is 9600. 1993-08-13 23:05:49 +00:00
rgrimes
a7658a6504 Enable lastlog install commands. 1993-08-13 06:11:18 +00:00
rgrimes
608a68a81d Commented out installation of /var/log/lastlog:
The problem with having it enable is that lastlog grows big, none
of the current scripts deal with rotation of /var/log/lastlog,
so it shouldn't necessary be installed at first.  This has traditionally
been something the sysadmin has had to touch after system installations.

Nate:
(Besides, you're forced to learn more about the system by reading the man
pages if it doesn't exist. :-)
1993-08-12 15:20:56 +00:00
rgrimes
6c8236818b /etc/termcap is now created as a symlink to /usr/share/misc/termcap,
fixed creation of link for /etc/localtime.
1993-08-12 14:51:09 +00:00
rgrimes
e22df49c23 Fixed poor timeout code in out_fdc. The timeout counter was not being
reinitialized between while loops.  Added comments about what was going
on in the out_fdc routine.

out_fdc now returns if the direction bit is not set in time instead of
trying to wait for MRQ to get cleared.
1993-08-12 09:21:20 +00:00
rgrimes
8faa826740 Added 3 targets (kc-ah-floppy, inst1-floppy, inst2-floppy) which build
3 of the 4 needed floppies for FreeBSD.

Still need to do kc-bt-floppy for the Bustek/Ultrastore controllers.

Fixed installation of boot blocks in distribution:, now use a variable
(${MDEC}) instead of a find so that my zzz files don't end up in
the distribution!
1993-08-12 07:18:34 +00:00
rgrimes
c439871e04 Heavily modified from NetBSD sources to FreeBSD, many fixes and enhancements,
now users cpio instead of tar.  All displayed references to NetBSD changed
to ${OPSYSTEM}, OPSYSTEM=FreeBSD.
1993-08-12 07:14:23 +00:00
root
188e40bfa7 Due to broken pwd_mkdb always wanting to do it's work in /etc I have
had to add this file to src/etc, and do a special case install of it
to get things working right.
1993-08-11 13:23:23 +00:00
root
45ab6cf860 Initial import of NetBSD install2 floppy .profile 1993-08-11 12:51:37 +00:00
rgrimes
22e620ab62 Initial import of NetBSD install2 floppy /install script 1993-08-11 12:30:59 +00:00
rgrimes
0ab097a85d Changed printing messages to refer to ${OPSYSTEM} instead of NetBSD. Comments
left intact.

Simplified variables for drivename, drivetype, and sect_fwd.

Added rotdelay to newfs commands (defaults to newfs default except
for scsi disks where it defaults to 0).

Made the disk geometry questions more like what PC users are use to
reading (cylinders/heads/sectors).

Added minswap requirement of 8MB, recomendation of 2 x physical memory.

Added messages about what the blocking factor does.

Added message for mount point to NOT include the leading /

How to change disklabel to /sbin/disklabel due to bug in our /bin/sh,
I thought this has been fixed, but it has not!

Changed to use cpio instead of tar, since tar seems so brain dead.

Removed kernfs reference from /etc/fstab creation since FreeBSD does not
have the kernfs.  Made /etc/fstab tabbed so it looks pretty :-).

Added default of floppy drive 0 after we boot from hard disk.

Fixed path in inst1.profile, removed /usr/local/bin, /usr/contrib/bin and .
1993-08-11 12:30:00 +00:00
rgrimes
8c6b943ae8 Import of NetBSD inst1.fs floppy /.profile and /install scripts 1993-08-11 02:06:14 +00:00
rgrimes
a5a5a22723 Added support to build i386-kc_floppy:, kernel copy floppy for FreeBSD.
Added support to build and install GENERICISA kernel in the binary
distribution.
1993-08-10 14:22:34 +00:00
rgrimes
eac46d12f4 Corrected kernel name from newbsd to 386bsd, it now works. 1993-08-10 14:16:33 +00:00
rgrimes
66da9da9d7 Initial import of .profile from NetBSD Kernel Copy Floppy, to be used in
building FreeBSD Kernel Copy Floppy.
1993-08-10 12:20:12 +00:00
rgrimes
e02e22db3a Disabled the scan for SCCS checked out files since it was broken and
caused error messages to be mailed, and FreeBSD does NOT have SCCS,
we use CVS!
1993-08-10 11:35:46 +00:00
rgrimes
151a20f2d9 Miss spelled backups in BSD.var.dist, should have been backups, was backup. 1993-08-10 11:14:54 +00:00
rgrimes
4de7e479cd Added ntp 123/udp # Network Time Protocol for xntp usage since this is a
well known service.
1993-08-10 11:03:56 +00:00
rgrimes
b5b37b7f12 The fdisk man page doesn't show correctly the usage possibilities of
fdisk.  It was missing the disk argument.

From: Andreas Schulz <ats@g386bsd.first.gmd.de>
1993-08-10 10:31:35 +00:00
rgrimes
773148e7ce Removed one more reverence to the old Adaptec 1542b as.c driver, one less
dependent for autoconf.c.
1993-08-10 10:18:33 +00:00
alm
df01e6297c added (unsiged) cast to avoid int overflow
removed REGEX directive
1993-08-09 21:34:11 +00:00
rgrimes
0b65374368 Finish removal of reminents of as.c Adaptec scsi driver. 1993-08-09 19:02:21 +00:00
rgrimes
6189a3c911 Moved make copies of src/includes to be after the top level make install
so that the binary distribution ends up with full blown include files.
1993-08-09 18:39:50 +00:00
rgrimes
f604686b22 Moved _eintr{names,cnt} so that vmstat -i does not report all the debugging
stuff of the fast interrupt code.
1993-08-09 18:20:26 +00:00
rgrimes
86c85be452 Fixed install of ${FREEBSD}, forgot to do a install -c so it removed the
files from src on the install of them!
1993-08-09 17:29:20 +00:00
rgrimes
237ff6cadb Added installation of CONTRIB.386BSD CONTRIB.FreeBSD and COPYRIGHT to /
when building a distribution for the i386 case.  This keeps us from violating
Berkeley's and Bill Jolitz's copyrights.
1993-08-09 17:02:17 +00:00
rgrimes
8261c21fc4 Due to the bug with the console drivers and kill syslogd I have disabled that
in the daily and weekly scripts so that we don't get bug reports about
something we already know.  There are explanory comments in the files.
1993-08-09 15:18:02 +00:00
rgrimes
6533a77e90 Removal of support for old scsi as.c driver, removal off old unneeded
kernel config files since AH?TEST are now supported by GENERICISA,
and the others used the old as driver they are no longer valid.
1993-08-09 14:39:37 +00:00
rgrimes
e458b2bbfb Fixed spelling error in ifconfig line for ed0, from netwask to netmask 1993-08-09 09:14:47 +00:00
rgrimes
95c4372f76 From guido@gvr.win.tue.nl Sat Aug 7 06:58:04 1993
I posted some patches on the 386bsd_patchkit list to prohibit io access.
Because of a noninitialised filed in the tss, this was possible.
It is included below as the patch to machdep.c
However, when you do this *necessary* fix (security), it will be
impossible form within user space to do io.

therefor, I included another fix: when you open /dev/io, you
get the access. Of course you can rewrite it to use another minor
and thus giving access to the iospace when /dev/mem is opened, e.g.

NOTE: The /dev/io entry has not been added to /dev/MAKEDEV yet.
The patch is in NetBSD.
1993-08-09 06:16:42 +00:00
rgrimes
7551100f27 Removed man.conf since it is no longer used by the new manual page system 1993-08-08 09:27:53 +00:00
rgrimes
355f5f9e0e Fixed for DQFLQUIET flag from: Terry Lee <terry@uivlsisd.csl.uiuc.edu>
I submitted the part of patch00155 that fixes wd.c not reporting any
bad blocks.  Unfortunately, the patch created a new problem that makes new
installations using that kernel impossible.  I have included a patch below that
should fix both problems.  The fix comes from Tom Ivar Helbekkmo's wd driver
(the Norway wd driver).  I've also eliminated the use of the DKFL_QUIET flag
completely, since it is not used anymore.

Fixed wdgetctrl routines for so that it returns a meaniful string for
non IDE disk drives.  It also nolonger returns success when a drive is
not really there.
1993-08-08 07:03:21 +00:00
rgrimes
06eedd4f1f Removed the asking for a root file system when booting from floppy as that
is now handled by the new boot blocks immediatly after the kernel is loaded.
1993-08-08 06:24:15 +00:00
rgrimes
8dcdb66b78 Added printf for cases AHB_ASN (async even notification) and AHB_HW_ERR so
that we are notified when these events occur.  This may lead us to the
cause of certain AHB timeout/lockup problems.

From: Roy Neese of Adaptec
1993-08-08 04:46:37 +00:00
rgrimes
75bdcbe3df Changed afterintall: target to beforeinstall: so that it is easy to get
the regex.h header file installed.
1993-08-08 04:38:56 +00:00