Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/doc/smm/config Minor updates - I've attempted to catch...



details:   https://anonhg.NetBSD.org/src/rev/bab797855f76
branches:  trunk
changeset: 330352:bab797855f76
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Jul 06 05:16:18 2014 +0000

description:
Minor updates - I've attempted to catch the most glaringly outdated
statements but haven't made any effort yet to rewrite the main content.

diffstat:

 share/doc/smm/config/0.t |  26 ++++++++++-------
 share/doc/smm/config/1.t |  10 +++---
 share/doc/smm/config/2.t |   8 ++--
 share/doc/smm/config/3.t |  62 +++++++++++++++++++++---------------------
 share/doc/smm/config/4.t |   4 +-
 share/doc/smm/config/6.t |  70 +++++++++++++++++++++--------------------------
 6 files changed, 89 insertions(+), 91 deletions(-)

diffs (truncated from 405 to 300 lines):

diff -r 3822af1bd259 -r bab797855f76 share/doc/smm/config/0.t
--- a/share/doc/smm/config/0.t  Sun Jul 06 04:47:26 2014 +0000
+++ b/share/doc/smm/config/0.t  Sun Jul 06 05:16:18 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: 0.t,v 1.1 2007/12/18 03:35:51 garbled Exp $
+.\" $NetBSD: 0.t,v 1.2 2014/07/06 05:16:18 dholland Exp $
 .\" Copyright (c) 1983, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
@@ -50,14 +50,16 @@
 \fB\\$1\fP\\$2
 ..
 .TL
-Building 4.4BSD Kernels with Config
+Building NetBSD Kernels with Config
 .AU
 Samuel J. Leffler and Michael J. Karels
+.\" (uncomment this once there are substantive changes)
+.\" Updated for NetBSD by David A. Holland
 .AI
-Computer Systems Research Group
-Department of Electrical Engineering and Computer Science
-University of California, Berkeley
-Berkeley, California  94720
+.\" Computer Systems Research Group
+.\" Department of Electrical Engineering and Computer Science
+.\" University of California, Berkeley
+.\" Berkeley, California  94720
 .de IR
 \fI\\$1\fP\\$2
 ..
@@ -67,8 +69,8 @@
 .AB
 .PP
 This document describes the use of
-\fIconfig\fP\|(8) to configure and create bootable
-4.4BSD system images.
+\fIconfig\fP\|(1) to configure and create bootable
+NetBSD system images.
 It discusses the structure of system
 configuration files and how to configure
 systems with non-standard hardware configurations.
@@ -78,12 +80,14 @@
 contains a summary of the rules used by the system
 in calculating the size of system data structures,
 and also indicates some of the standard system size
-limitations (and how to change them).
+limitations and how to change them.
 Other configuration options are also listed.
 .sp
 .LP
 Revised July 5, 1993
+.LP
+Revised for NetBSD beginning July 5, 2014
 .AE
 .LP
-.OH 'Building 4.4BSD Kernels with Config''SMM:2-%'
-.EH 'SMM:2-%''Building 4.4BSD Kernels with Config'
+.OH 'Building NetBSD Kernels with Config''Command Reference Documents'
+.EH 'Command Reference Documents''Building NetBSD Kernels with Config'
diff -r 3822af1bd259 -r bab797855f76 share/doc/smm/config/1.t
--- a/share/doc/smm/config/1.t  Sun Jul 06 04:47:26 2014 +0000
+++ b/share/doc/smm/config/1.t  Sun Jul 06 05:16:18 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: 1.t,v 1.1 2007/12/18 03:35:51 garbled Exp $
+.\" $NetBSD: 1.t,v 1.2 2014/07/06 05:16:18 dholland Exp $
 .\" Copyright (c) 1983, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
@@ -39,10 +39,10 @@
 INTRODUCTION
 .PP
 .I Config
-is a tool used in building 4.4BSD system images (the UNIX kernel).
-It takes a file describing a system's tunable parameters and
-hardware support, and generates a collection
-of files which are then used to build a copy of UNIX appropriate
+is a tool used in building BSD kernel images.
+It takes a file describing the tunable parameter settings, features,
+and drivers to include, and generates a collection
+of files which are then used to build a copy of the kernel appropriate
 to that configuration.
 .I Config
 simplifies system maintenance by isolating system dependencies
diff -r 3822af1bd259 -r bab797855f76 share/doc/smm/config/2.t
--- a/share/doc/smm/config/2.t  Sun Jul 06 04:47:26 2014 +0000
+++ b/share/doc/smm/config/2.t  Sun Jul 06 05:16:18 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: 2.t,v 1.1 2007/12/18 03:35:52 garbled Exp $
+.\" $NetBSD: 2.t,v 1.2 2014/07/06 05:16:18 dholland Exp $
 .\" Copyright (c) 1983, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
@@ -69,7 +69,7 @@
 \(dg DEC, VAX, UNIBUS, MASSBUS and MicroVAX are trademarks of Digital
 Equipment Corporation.
 .FE
-or some other machine on which 4.4BSD operates.  The machine type
+or some other machine on which NetBSD operates.  The machine type
 is used to locate certain data files which are machine specific, and
 also to select rules used in constructing the resultant
 configuration files.
@@ -179,8 +179,8 @@
 Other than the mandatory pieces of information described above, it
 is also possible to include various optional system facilities
 or to modify system behavior and/or limits.
-For example, 4.4BSD can be configured to support binary compatibility for
-programs built under 4.3BSD.  Also, optional support is provided
+For example, NetBSD can be configured to support binary compatibility for
+programs built under Linux and FreeBSD.  Also, optional support is provided
 for disk quotas and tracing the performance of the virtual memory
 subsystem.  Any optional facilities to be configured into
 the system are specified in the configuration file.  The resultant
diff -r 3822af1bd259 -r bab797855f76 share/doc/smm/config/3.t
--- a/share/doc/smm/config/3.t  Sun Jul 06 04:47:26 2014 +0000
+++ b/share/doc/smm/config/3.t  Sun Jul 06 05:16:18 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: 3.t,v 1.1 2007/12/18 03:35:52 garbled Exp $
+.\" $NetBSD: 3.t,v 1.2 2014/07/06 05:16:18 dholland Exp $
 .\" Copyright (c) 1983, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
@@ -38,7 +38,7 @@
 SYSTEM BUILDING PROCESS
 .PP
 In this section we consider the steps necessary to build a bootable system
-image.  We assume the system source is located in the ``/sys'' directory
+image.  We assume the system source is located in the ``/usr/src'' directory
 and that, initially, the system is being configured from source code.
 .PP
 Under normal circumstances there are 5 steps in building a system.
@@ -54,11 +54,11 @@
 .IP 4)
 Construct the source code interdependency rules for the
 configured system with
-.I make depend
+.I "make depend"
 using
 .IR make (1).
 .IP 5)
-Compile and load the system with 
+Compile and link the system with 
 .IR make .
 .PP
 Steps 1 and 2 are usually done only once.  When a system configuration
@@ -67,36 +67,38 @@
 on the modified configuration file, rebuild the source code dependencies,
 and remake the system.  Sometimes,
 however, configuration dependencies may not be noticed in which case
-it is necessary to clean out the relocatable object files saved
+it is necessary to clean out the object files saved
 in the system's directory; this will be discussed later.
 .NH 2
 Creating a configuration file
 .PP
-Configuration files normally reside in the directory ``/sys/conf''.
+Configuration files normally reside in the directory ``conf'' in the
+architecture-specific subtree of the kernel for the machine type in
+use.
+(For example, configuration files for 64-bit x86 machines live in
+``/usr/src/sys/arch/amd64/conf''.)
 A configuration file is most easily constructed by copying an
-existing configuration file and modifying it.  The 4.4BSD distribution
-contains a number of configuration files for machines at Berkeley;
-one may be suitable or, in worst case, a copy
-of the generic configuration file may be edited.
+existing configuration file and modifying it.  The NetBSD distribution
+contains assorted standard configuration files for different machine
+types and varieties.  Start with ``GENERIC'' if no other is more
+appropriate.
 .PP
 The configuration file must have the same name as the directory in
 which the configured system is to be built.  
 Further,
 .I config
-assumes this directory is located in the parent directory of
-the directory in which it
-is run.  For example, the generic
-system has a configuration file ``/sys/conf/GENERIC'' and an accompanying
-directory named ``/sys/GENERIC''.
+assumes this directory is located under the ``compile'' directory at
+the same level as the ``conf'' directory in which  it
+is run.  For example, the generic 64-bit x86
+system has a configuration file ``/usr/src/sys/arch/amd64/conf/GENERIC''
+and an accompanying
+directory named ``/usr/src/sys/arch/amd64/compile/GENERIC''.
 Although it is not required that the system sources and configuration
-files reside in ``/sys,'' the configuration and compilation procedure
+files reside in ``/usr/src,'' the configuration and compilation procedure
 depends on the relative locations of directories within that hierarchy,
 as most of the system code and the files created by
 .I config
 use pathnames of the form ``../''.
-If the system files are not located in ``/sys,''
-it is desirable to make a symbolic link there for use in installation
-of other parts of the system that share files with the kernel.
 .PP
 When building the configuration file, be sure to include the items
 described in section 2.  In particular, the machine type,
@@ -110,7 +112,7 @@
 section 6 discusses how to add new devices to
 the system.  If the devices to be configured are not already
 described in one of the existing configuration files you should check
-the manual pages in section 4 of the UNIX Programmers Manual.  For each
+the section 4 manual pages.  For each
 supported device, the manual page synopsis entry gives a
 sample configuration line.
 .PP
@@ -194,18 +196,17 @@
 .PP
 The makefile constructed by
 .I config
-should allow a new system to be rebuilt by simply typing ``make image-name''.
-For example, if you have named your bootable system image ``kernel'',
-then ``make kernel''
-will generate a bootable image named ``kernel''.  Alternate system image names
+should allow a new system to be rebuilt by simply typing ``make''.
+.\" XXX is this still supported?
+Alternate system image names
 are used when the root file system location and/or swapping configuration
 is done in more than one way.  The makefile which
 .I config
 creates has entry points for each system image defined in
 the configuration file.
-Thus, if you have configured ``kernel'' to be a system with the root file
-system on an ``hp'' device and ``hkkernel'' to be a system with the root
-file system on an ``hk'' device, then ``make kernel hkkernel'' will generate
+Thus, if you have configured ``netbsd'' to be a system with the root file
+system on an ``hp'' device and ``hknetbsd'' to be a system with the root
+file system on an ``hk'' device, then ``make netbsd hknetbsd'' will generate
 binary images for each.
 As the system will generally use the disk from which it is loaded
 as the root filesystem, separate system images are only required
@@ -226,8 +227,8 @@
 which run much faster when the symbols they need are located at
 the front of the symbol table.  
 Remember also that many programs expect
-the currently executing system to be named ``/kernel''.  If you install
-a new system and name it something other than ``/kernel'', many programs
+the currently executing system to be named ``/netbsd''.  If you install
+a new system and name it something other than ``/netbsd'', many programs
 are likely to give strange results.
 .NH 2
 Sharing object modules
@@ -244,8 +245,7 @@
 where disk quotas are not needed, while another is a production machine
 where they are), etc.  In these cases it is possible
 for common systems to share relocatable object modules which are not
-configuration dependent; most of the modules in the directory ``/sys/sys''
-are of this sort.
+configuration dependent.
 .PP
 To share object modules, a generic system should be built.  Then, for
 each system configure the system as before, but before recompiling and
diff -r 3822af1bd259 -r bab797855f76 share/doc/smm/config/4.t
--- a/share/doc/smm/config/4.t  Sun Jul 06 04:47:26 2014 +0000
+++ b/share/doc/smm/config/4.t  Sun Jul 06 05:16:18 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: 4.t,v 1.1 2007/12/18 03:35:52 garbled Exp $
+.\" $NetBSD: 4.t,v 1.2 2014/07/06 05:16:18 dholland Exp $
 .\" Copyright (c) 1983, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
@@ -151,7 +151,7 @@
 The
 .I sysname
 field is the name given to the loaded system image; almost everyone
-names their standard system image ``kernel''.  The configuration clauses
+names their standard system image ``netbsd''.  The configuration clauses
 are one or more specifications indicating where the root file system
 is located and the number and location of paging devices.
 The device used by the system to process argument lists during
diff -r 3822af1bd259 -r bab797855f76 share/doc/smm/config/6.t
--- a/share/doc/smm/config/6.t  Sun Jul 06 04:47:26 2014 +0000
+++ b/share/doc/smm/config/6.t  Sun Jul 06 05:16:18 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: 6.t,v 1.1 2007/12/18 03:35:53 garbled Exp $
+.\" $NetBSD: 6.t,v 1.2 2014/07/06 05:16:18 dholland Exp $
 .\" Copyright (c) 1983, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
@@ -49,9 +49,9 @@
 .IP \(bu 3
 general guidelines to be followed in modifying system code,
 .IP \(bu 3
-how to add non-standard system facilities to 4.4BSD,
+how to add non-standard system facilities to NetBSD, and
 .IP \(bu 3
-how to add a device driver to 4.4BSD, and
+how to add a device driver to NetBSD.
 .NH 2
 Modifying system code
 .PP
@@ -63,9 +63,7 @@
 #endif
 .DE
 to allow your source to be easily distributed to others, and
-also to simplify \fIdiff\fP\|(1) listings.  If you choose not
-to use a source code control system (e.g. SCCS, RCS), and
-perhaps even if you do, it is



Home | Main Index | Thread Index | Old Index