Commit Graph

467 Commits

Author SHA1 Message Date
Rodney W. Grimes
b6c78fe436 define SHMMAXPGS where it is suppose to be, you can over ride this with
a kernel config options "SHMAXPGS=xxx", default is currently 64 pages
due to limit kernel map space.
1993-09-27 00:36:57 +00:00
Rodney W. Grimes
a0ea6f1c94 Added at 0xFE100000 to config line as this kernel HAS to load high, and
it is the place people seem to look for samples.  Also since this kernel
has so so many symbols in it also added SYMTAB_SPACE=89000.
1993-09-26 23:21:12 +00:00
Rodney W. Grimes
2d717e4a25 This Makefile is for FreeBSD, not 4.3 BSD-Reno. Moved $Id$.
Added STRIP=, DBSYM=, and LOAD_ADDRESS?=
Now use LOAD_ADDRESS for linking kernel and for dbsym, added strip -x to
cut kernel size.

Added machde.o: dependency, this will be needed in the future, and for
now it does not hurt anyone.

Cleaned out conf.o: dependency, mkdep does the right things.  Same for
param.c:

This is really a Merge in of NetBSD's Makefile.i386, here is the relevant
rlog info:
----------------------------
revision 1.27
date: 1993/08/27 23:58:20;  author: brezak;  state: Exp;  lines: +2 -2
Need LOAD_ADDRESS for depend pass.
----------------------------
revision 1.25
date: 1993/07/19 16:52:16;  author: mycroft;  state: Exp;  lines: +3 -3
Add ${DEBUG} to CFLAGS and -f to dbsym.
----------------------------
revision 1.22
date: 1993/07/18 10:08:22;  author: mycroft;  state: Exp;  lines: +5 -6
Change to work with new config stuff for specifying load address.
----------------------------
revision 1.20
date: 1993/07/18 09:47:40;  author: mycroft;  state: Exp;  lines: +6 -5
Use new -T option to dbsym.
----------------------------
revision 1.17
date: 1993/07/11 08:42:22;  author: cgd;  state: Exp;  lines: +2 -2
don't ignore errors from dbsym...  it might say that, e.g. there's
not enough symbol space!
----------------------------
revision 1.14
date: 1993/06/06 23:29:03;  author: cgd;  state: Exp;  lines: +2 -2
make conf.o actually depend on conf.c...
----------------------------
revision 1.8
date: 1993/04/29 03:27:39;  author: cgd;  state: Exp;  lines: +5 -10
use ed instead of ex.  the script to use is identical, and we might
want to switch back to using ex when our ex supports -.
----------------------------
revision 1.5
date: 1993/03/24 18:48:57;  author: cgd;  state: Exp;  lines: +1 -1
now use absolute path for dbsym
----------------------------
1993-09-26 19:44:33 +00:00
Rodney W. Grimes
f69c1fd09c Import NetBSD version of dbsym (below is rlog of there version), and add
$Id$ to Makefile.

----------------------------
revision 1.8
date: 1993/08/02 17:57:02;  author: mycroft;  state: Exp;  lines: +5 -0
Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
----------------------------
revision 1.7
date: 1993/07/19 16:50:10;  author: mycroft;  state: Exp;  lines: +43 -15
Kitchen sink version of dbsym.

-f      force; don't complain if db_symtab is missing
-g      debugging; include line number and function info
-x      remove local symbols
-T addr specify load address (necessary to determine file positions)
----------------------------
revision 1.6
date: 1993/07/18 10:34:52;  author: mycroft;  state: Exp;  lines: +1 -1
Hmmm.  I suppose text_Adr really should be an int...
----------------------------
revision 1.5
date: 1993/07/18 09:44:12;  author: mycroft;  state: Exp;  lines: +12 -6
Add -T option to specify load address of kernel (like ld); default to KERNBASE
for compatibility.
----------------------------
revision 1.4
date: 1993/07/12 18:01:51;  author: brezak;  state: Exp;  lines: +19 -2
Changes for GCC2 generated symbols.
----------------------------
revision 1.3
date: 1993/07/11 08:43:34;  author: cgd;  state: Exp;  lines: +2 -2
if no symbols present, don't complain, and exit with 0 exit status.
that way we can use dbsym from kernel makefiles and actually pay attention
to its errors...
----------------------------
revision 1.2
date: 1993/06/18 06:52:03;  author: cgd;  state: Exp;  lines: +3 -1
convert magic numbers to network byte order, and attendent changes
----------------------------
revision 1.1
date: 1993/03/21 09:59:19;  author: cgd;  state: Exp;
branches:  1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 1993/03/21 09:59:20;  author: cgd;  state: Exp;  lines: +0 -0
initial import of 386bsd-0.1 sources
1993-09-26 16:40:41 +00:00
Jordan K. Hubbard
05c1dd5de3 Fixed spelling errors 1993-09-25 15:50:43 +00:00
David Greenman
ee0ccf358a * Revision 1.30 93/09/24 18:43:31 davidg
* fix bug where Compex boards ident themselves as 8003E's and the
 * 16bit override wasn't working
1993-09-25 01:50:15 +00:00
Rodney W. Grimes
2eca4bfaec Enable SYSVSHM, and set SHMMAXPGS=64. 1993-09-24 21:01:11 +00:00
Rodney W. Grimes
96210b28be >From: rich@id.slip.bcm.tmc.edu.cdrom.com (Rich Murphey)
Date: Sun, 12 Sep 1993 18:19:05 -0500
This will allow you to compile and run a freebsd kernel with shared
memory support.  I haven't tested the shm*() calls yet.

You run out of page table descriptors if you specify 4Mb of sharable
memory (SHMMAXPGS=1024).  I don't know what the limit is, but
SHMMAXPGS=64 works.   Rich
1993-09-24 21:00:29 +00:00
Rodney W. Grimes
35ba288998 >From: "J.T. Conklin" <jtc@sun-lamp.cs.berkeley.edu>
Date: Fri, 24 Sep 1993 10:19:20 -0700

Fixed bug that was reported (with patch) on gnu.utils.bug.
Immediate operands of the pushw instruction were being output as 32
bits, rather than the 16 bits they were supposed to be.
1993-09-24 17:51:10 +00:00
Rodney W. Grimes
db53bc6c38 Added libmalloc to top level Makefile 1993-09-24 17:20:35 +00:00
Rodney W. Grimes
936298e2bd This is gnu lib malloc from NetBSD verbatium, here is the version info
that Chris created:
this version of GNU malloc was obtained from prep.ai.mit.edu on
9/22/1993.  There was no version noted.
1993-09-24 13:03:39 +00:00
J.T. Conklin
bbc2a68087 Entries so RPC servers are started. 1993-09-23 17:41:08 +00:00
Rodney W. Grimes
92ed385a09 >From: bde@kralizec.zeta.org.au (Bruce Evans)
Date: Thu, 16 Sep 93 01:35:10 +1000
Julian writes:

>In fact DEVIDLE and FINDWORK ended up being basically equivalent.
>the bit I wonder about, is the returning of 0.. What (other than
>another request from somewhere else in the kernel) is going to start
>work on the next item on the queue?

I think removing FINDWORK would make things clearer.

Nothing much is going to start work on the next item.  However, it is
pointless to continue processing the queue for the same unready drive.
Aborting all reads and trying harder to perform all writes would be
better.
Julian writes.

> no, actually it should be:
> fdt = fd_data[FDUNIT(minor(dev))].ft;

Fixed.
From: bde@kralizec.zeta.org.au (Bruce Evans)
Date: Thu, 16 Sep 93 22:56:01 +1000
The fd driver reported the wrong cylinder/head/sector numbers after an
error (ST3 is only valid after a sense-drive command), and didn't report
fs block numbers (diskerr was not used).

There was an old problem with writes to block fd devices.   Try this:

1. write protect floppy in fd0.
2. tar cf /dev/fd0a /dev/null.  Repeat a few times.  Later writes tend to
   terminate earlier.
   3. un-write protect floppy.
   4. repeat step 2.  The writes tend to return 0, 2048, 4096, ... and then
      succeed.

This was caused by a bug in vfs__bios.c.  (The bug is fixed in NetBSD's
vfs_bio.c.)  fd.c sets bp->b_resid to nonzero after an error.  vfs__bios.c
was not initializing bp->b_resid.  This causes some writes to terminate
early (e.g., writes to block devices; see spec_write()).

Related funnies:

1. Nothing tries to write the residual bytes.
2. The wd driver sets bp->b_resid to 0 after an error, so there's no
   way anything else could write the residual bytes.
3. I use the block fd device for tar because the raw device seemed to
   have more bugs long ago, and because it ought to be able to handle
   buffering more transparently (I don't want to have to know the
   device size).  But spec_write() always uses the size BLKDEV_IOSIZE
   == 2048 which is too small.  For disks it should use the size of
   one track (rounded down to meet the next track boundary or the i/o
   size).  Here it would help if the DIOCGPART ioctl worked.  But
   DIOCGPART is not implemented for floppies, and the disk size is
   ignored except for partitions of type FS_BSDFFS.

Bruce
1993-09-23 15:22:57 +00:00
David Greenman
60381058cd rewrote interrupt code to be cleaner, fixed up some other parts
to make it easier to add future board types.
1993-09-22 17:47:43 +00:00
Rich Murphey
931407698e Increaed the fixed static buffer sizes and maximum hunk size that
otherwise causes the XFree86 1.3 patch set to fail.
1993-09-22 16:51:03 +00:00
Andrew Moore
3e79ffa604 added to install_notes instructions for loading distribtuion
files from a MS-DOS partition.
Minor cleanup:
fixed spelling error in inst1.install
capitalized sentences in kc.profile
reworded initial load_fd options
1993-09-22 07:38:18 +00:00
Rodney W. Grimes
2f5ccc2f2e Bring README into sync with Julians latest README (1 line deleted which was
a reference to README.AHA1742)
1993-09-21 20:26:02 +00:00
Andrew Moore
2712db44d1 Extended load_fd() to support reading from the first Primary DOS
partition of the boot disk.  So we have yet another medium via
which to load the FreeBSD distribution files.  load_fd() has
options for listing and (if reading from the C:  drive) changing
directories.

load_fd's notation assumes that the first Primary partition on
disk is the DOS drive C: (since this and only this one is mounted
by install).  Otherwise, the notation may be a bit confusing.
We'll know the assumption is bad if people complain about
not finding files on their "C:" drive...

Added a device file existence check to kc.profile.
1993-09-21 10:24:42 +00:00
Rodney W. Grimes
155fb48285 Added BSD.local.dist to MTREE files so that it gets installed in /etc/mtree 1993-09-21 08:14:32 +00:00
Rodney W. Grimes
e13ca98c57 Increased pseudo-device bpfilter from 1 unit to 4 units 1993-09-21 06:16:07 +00:00
Rodney W. Grimes
29a25f9ec3 Increase the number of ptys to 12, puts the kernel sizes very close to
the limit.
1993-09-21 06:12:20 +00:00
Rodney W. Grimes
a70983c40b >From julian@jules.DIALix.oz.au Fri Sep 10 22:58:30 1993
>Date: Sat, 11 Sep 93 12:59:39 +0800

1/ fix bug where cd0a was unusable because it was compared against
the number of 2k blocks not the number of 512byte blocks.. gave
an error for all reads past 1/4 way through the disk (cd0d was ok).

2/ fix open code so that it now notices if a disk has been changed
and updates the disklabel.

3/ use the new error handling code from st.c

4/ start adding stuff to get ready for using cd_scsi_cmd from
cd_start (like is done in st and sd)

5/ more general cleanups including making dmesg report
sector size of disk.. (believe it or not SUN drives use 512 byte)
1993-09-21 05:30:35 +00:00
Nate Williams
02954343b7 Now works with/without obj directories 1993-09-20 23:47:51 +00:00
Rodney W. Grimes
06a1e2ded2 Increase the timeout from 2000 counts to 6000 counts, reported by someone
on the net (I lost the mail).  This should fix some units not showing up
during probes.
1993-09-20 06:28:13 +00:00
Rodney W. Grimes
968d6ea058 The dynamically allocated struct's where not getting properly initialized
as malloc memory is NOT zerod.  Added bzero's after the malloc calls
to make sure that things are initialized.

>From Julian Elischer
1993-09-20 06:27:06 +00:00
Andrew Moore
3bef766f61 1) Install now creates a DOS partition for the first (and only the
first) Primary (un-Extended) DOS partition, providing /dev/xx0h
is available.  It is mounted on /dos by default.  The /etc/fstab
entry omits the dump and fsck fields, i.e.:
/dev/xx0h	/dos	pcfs rw

The Secondary DOS partition is not used (System ID 0xF2), because I don't
know what that is.

2) Fixed default sizes so that if someone attempts to install BSD on a 24 Mb
partition by accepting defaults, they don't end up with a 1 Mb /usr
partition (up to USRMIN Mb's).  In this case, all space is split between
swap and root.

TODO:
1) Extend load_fd() to support loading distribution files directly from
the DOS partition of the hard disk.

2) Provide translated parameters to the install program (maybe
add an option to fdisk).  Currently, the true geometry is used as
default, which is inappropriate for coexistence with DOS.

3) Support installing on multiple or secondary disks.
1993-09-19 20:45:10 +00:00
Jordan K. Hubbard
0d58df1c64 Finally stuck a version number on this thing! :) 1993-09-19 01:52:33 +00:00
Andrew Moore
d5a38159eb Added /var/run to CPIO_DIRS 1993-09-19 01:21:15 +00:00
Andrew Moore
7103cef162 Added /etc/remote to CPIO files. 1993-09-18 08:23:19 +00:00
Andrew Moore
a1ab210660 Added /usr/distbin to PATH 1993-09-18 08:20:32 +00:00
Jordan K. Hubbard
f165719da7 Added code for doing % sequence expansion, added new @unexec command. 1993-09-18 03:39:50 +00:00
Jordan K. Hubbard
d4473b1c59 Doc new % sequence expansion for command execution.
Fixed bad verbose message.
1993-09-18 03:39:21 +00:00
Jordan K. Hubbard
ec97537369 Make sure permissions on registry location are readable by pkg_info.
Add new % sequence expansion for command execution.
1993-09-18 03:38:48 +00:00
Rodney W. Grimes
bdf1099dbb >From: Drew Hess <dhess@CS.Stanford.EDU>
>Date: Thu, 16 Sep 1993 23:35:48 -0700 (PDT)
There is a typo in disktab in the NetBSD-0.9 distribution.  This may be
already fixed in NetBSD-current, but it's not in any of the source that I've
sup'ed.
line 9 reads:
#       sc      #sectors/cylinder, nc*nt default
should read:
#       sc      #sectors/cylinder, ns*nt default
1993-09-18 00:00:16 +00:00
Andrew Moore
9483b7bb0e Added the following to the opening statement of install:
Before starting, it is important to know your hard disk's geometry
(i.e., number of cylinders, heads and sectors/track).  If installing
FreeBSD on the same disk as another operating system, then the
two systems should use the same geometry.  In particular, FreeBSD's
default geometry is inappropriate for MS-DOS.  So in this case, the
DOS geometry should be used instead.

[This seems to be true for SCSI disks.   What about IDE?  With the new
boot blocks, can we ignore the disks true geometry??]
1993-09-17 09:05:52 +00:00
Andrew Moore
dbc93016fb added /var/spool and /var/spool/lock to CPIO_DIRS. These are needed by
both tip and kermit.
1993-09-17 06:41:45 +00:00
Andrew Moore
e1001e11da The load_fd() now initializes the `interactive' variable to -i instead
of -v (my fault).
The extract() command now rm's /tmp/cat, not /bin/cat (my fault).
1993-09-16 00:45:34 +00:00
Rodney W. Grimes
c81df31a3b Enabled floppy drive ioctl's so that disklabel on a floppy is now
quite and works correctly.  This is derived from notes in Bruce Evans
lattest patches to fd.c:

>From: bde@kralizec.zeta.org.au (Bruce Evans)
>Subject: fixes for fd driver

6. I picked up some code posted the other day to implement label ioctls.
   Now `disklabel fd0' works.  See a comment for how to modify conf.c.
1993-09-15 23:29:11 +00:00
Rodney W. Grimes
dc4ff321f2 Removed $Log$ section and patch kit headers. And here is the full
message for Bruces changes:

>From: bde@kralizec.zeta.org.au (Bruce Evans)
>Subject: fixes for fd driver

I think I've fixed some bugs in the 0.2.4 fd driver.

1. The main cause of hangs was that there was no timeout for seeks.  So
   attempting i/o with no floppy in the drive hung iff a seek was required.

2. Opens of unattached drives were allowed.  The kernel usually paniced
   soon after due to a bad pointer.

3. Some timeout functions ran at splclock() instead of splbio().  This
   may not have mattered.

4. The state machine was left in a funny state after a timeout.

5. Some function headers were new-style.

6. I picked up some code posted the other day to implement label ioctls.
   Now `disklabel fd0' works.  See a comment for how to modify conf.c.
1993-09-15 23:27:45 +00:00
Rodney W. Grimes
02aa90d831 >From: paul@u.tvt.se (Paul Pries)
>Subject: Bad bug in kbdtables.h [FreeBSD]

I found a bug in /sys/i386/isa/kbdtables.h which contain the
different keyboard layouts for syscons.  This regards all tables exept
the Danish and US.  When compiling the kernel with any other keymapping
than Danish or none at all (US), you get an error that 'key_map' is undefined.
This is because there is a typo in the name of the struct containing
the tables, keymap intead of key_map.
1993-09-15 23:03:21 +00:00
J.T. Conklin
97124a9413 Include <rpc/rpc.h> instead of various individual <rpc/*.h> header files
to compile with the newly prototyped rpc headers.
1993-09-15 20:27:25 +00:00
J.T. Conklin
4cf61aba29 Fix grammar to eliminate support for unary minus expressions -- they
weren't supported, they aren't standard, and they caused expr to dump
core.
1993-09-14 22:49:52 +00:00
Rodney W. Grimes
7de54fdffe >From: kuku@acds.physik.rwth-aachen.de (Christoph Kukulies)
Comment was wrong about what entries get made for vtyNN, it
is 0-b, not 00-12.
1993-09-14 21:42:14 +00:00
Andrew Moore
f814ff388d Added option to overwrite an existing partition during install.
Added notes about ob-bs to install_notes.
1993-09-14 21:26:32 +00:00
Jordan K. Hubbard
5db659db0b Fixed broken -t flag; thanks Rich! 1993-09-14 19:53:01 +00:00
Jordan K. Hubbard
f5f7ba035f Bruce's multifarious patches for the floppy driver (not well tested, but
since what we have is crap as it is, it can't do much worse!).
1993-09-14 19:34:32 +00:00
Rodney W. Grimes
25344f7002 Make MOUNT be MOUNT? so I can easily override it for building 2 floppies
concurrently now that the floppy driver works good enought to do this!
1993-09-14 04:14:30 +00:00
Andrew Moore
02f990bac0 The install disks now print the partition table data with
offsets and sizes in units of cylinders.  This will help
those who want to install FreeBSD between two existing
partitions.

Faked notes on installing via Kermit
1993-09-14 02:36:09 +00:00
Rodney W. Grimes
b6545fcc19 Removed DOS floppy build stuff, as this was just a poor idea that needs
a much better solution.
1993-09-14 00:59:49 +00:00
Rodney W. Grimes
4bf5b33639 Fixed missing newline at end of file. 1993-09-14 00:54:19 +00:00