⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 4.t

📁 早期freebsd实现
💻 T
📖 第 1 页 / 共 2 页
字号:
.PPNormally, the areas configured for swap space are sized by the systemat boot time.  If a non-standard size is to be used for oneor more swap areas (less than the full partition),this can also be specified.  To do this, thedevice name specified for a swap area should have a ``size''specification appended.  For example,.IP.nf\fBconfig\fP vmunix \fBroot\fP \fBon\fP hp0 \fBswap\fP \fBon\fP hp0b \fBsize\fP 1200.fi.LPwould force swapping to be done in partition ``b'' of ``hp0'' andthe swap partition size would be set to 1200 sectors.  A swap areasized larger than the associated disk partition is trimmed to thepartition size..PPTo create a generic configuration, only the clause ``swap generic''should be specified; any extra clauses will cause an error..NH 2Device specifications.PPEach device attached to a machine must be specifiedto.I configso that the system generated will know to probe for it duringthe autoconfiguration process carried out at boot time.  Hardwarespecified in the configuration need not actually be present onthe machine where the generated system is to be run.  Only thehardware actually found at boot time will be used by the system..PPThe specification of hardware devices in the configuration fileparallels the interconnection hierarchy of the machine to beconfigured.  On the VAX, this means that a configuration file mustindicate what MASSBUS and UNIBUS adapters are present, and towhich \fInexi\fP they might be connected.* .FS* While VAX-11/750's and VAX-11/730 do not actually have nexi, the system treats them as having .I "simulated nexi"to simplify device configuration..FESimilarly, devicesand controllers must be indicated as possibly being connectedto one or more adapters.  A device description may provide acomplete definition of the possible configuration parametersor it may leave certain parameters undefined and make the systemprobe for all the possible values.  The latter allows a singledevice configuration list to match many possible physicalconfigurations.  For example, a disk may be indicated as presentat UNIBUS adapter 0, or at any UNIBUS adapter which the systemlocates at boot time.  The latter scheme, termed .IR wildcarding ,allows more flexibility in the physical configuration of a system;if a disk must be moved around for some reason, the system willstill locate it at the alternate location..PPA device specification takes one of the following forms:.IP.nf\fBmaster\fP \fIdevice-name\fP \fIdevice-info\fP\fBcontroller\fP \fIdevice-name\fP \fIdevice-info\fP [ \fIinterrupt-spec\fP ]\fBdevice\fP \fIdevice-name\fP \fIdevice-info\fP \fIinterrupt-spec\fP\fBdisk\fP \fIdevice-name\fP \fIdevice-info\fP\fBtape\fP \fIdevice-name\fP \fIdevice-info\fP.fi.LPA ``master'' is a MASSBUS tape controller; a ``controller'' is adisk controller, a UNIBUS tape controller, a MASSBUS adapter, ora UNIBUS adapter.  A ``device'' is an autonomous device whichconnects directly to a UNIBUS adapter (as opposed to somethinglike a disk which connects through a disk controller).  ``Disk''and ``tape'' identify disk drives and tape drives connected toa ``controller'' or ``master.''.PPThe.I device-nameis one of the standard device names, asindicated in section 4 of the UNIX Programmers Manual,concatenated with the.I logicalunit number to be assigned the device (the .I logicalunit number may be different than the.I physicalunit number indicated on the front of somethinglike a disk; the.I logicalunit number is used to refer to the UNIX device, notthe physical unit number).  For example, ``hp0'' is logicalunit 0 of a MASSBUS storage device, even though it mightbe physical unit 3 on MASSBUS adapter 1..PPThe.I device-infoclause specifies how the hardware isconnected in the interconnection hierarchy.  On the VAX,UNIBUS and MASSBUS adapters are connected to the internalsystem bus througha \fInexus\fP.Thus, one of the followingspecifications would be used:.IP.ta 1.5i 2.5i 4.0i.nf\fBcontroller\fP	mba0	\fBat\fP \fBnexus\fP \fIx\fP\fBcontroller\fP	uba0	\fBat\fP \fBnexus\fP \fIx\fP.fi.LPTo tie a controller to a specific nexus, ``x'' would be suppliedas the number of that nexus; otherwise ``x'' may be specified as``?'', in whichcase the system will probe all nexi present lookingfor the specified controller..PPThe remaining interconnections on the VAX are:.IP \(bu 3a controllermay be connected to another controller (e.g. a disk controller attachedto a UNIBUS adapter),.IP \(bu 3a master is always attached to a controller (a MASSBUS adapter),.IP \(bu 3a tape is always attached to a master (for MASSBUStape drives),.IP \(bu 3a disk is always attached to a controller, and.IP \(bu 3devicesare always attached to controllers (e.g. UNIBUS controllers attachedto UNIBUS adapters)..LPThe following lines give an example of each of these interconnections:.IP.ta 1.5i 2.5i 4.0i.nf\fBcontroller\fP	hk0	\fBat\fP uba0 ...\fBmaster\fP	ht0	\fBat\fP mba0 ...\fBdisk\fP	hp0	\fBat\fP mba0 ...\fBtape\fP	tu0	\fBat\fP ht0 ...\fBdisk\fP	rk1	\fBat\fP hk0 ...\fBdevice\fP	dz0	\fBat\fP uba0 ....fi.LPAny piece of hardware which may be connected to a specificcontroller may also be wildcarded across multiple controllers..PPThe final piece of information needed by the system to configuredevices is some indication of where or how a device will interrupt.For tapes and disks, simply specifying the \fIslave\fP or \fIdrive\fPnumber is sufficient to locate the control status register for thedevice.\fIDrive\fP numbers may be wildcardedon MASSBUS devices, but not on disks on a UNIBUS controller.For controllers, the control status register must begiven explicitly, as well the number of interrupt vectors used andthe names of the routines to which they should be bound. Thus the example lines given above might be completed as:.IP.ta 1.5i 2.5i 4.0i.nf\fBcontroller\fP	hk0	\fBat\fP uba0 \fBcsr\fP 0177440	\fBvector\fP rkintr\fBmaster\fP	ht0	\fBat\fP mba0 \fBdrive\fP 0\fBdisk\fP	hp0	\fBat\fP mba0 \fBdrive\fP ?\fBtape\fP	tu0	\fBat\fP ht0 \fBslave\fP 0\fBdisk\fP	rk1	\fBat\fP hk0 \fBdrive\fP 1\fBdevice\fP	dz0	\fBat\fP uba0 \fBcsr\fP 0160100	\fBvector\fP dzrint dzxint.fi.PPCertain device drivers require extra information passed to themat boot time to tailor their operation to the actual hardware present.The line printer driver, for example, needs to know how many columnsare present on each non-standard line printer (i.e. a line printerwith other than 80 columns).  The drivers for the terminal multiplexorsneed to know which lines are attached to modem lines so that no one willbe allowed to use them unless a connection is present.  For this reason,one last parameter may be specified to a.IR device ,a .I flagsfield.  It has the syntax.IP\fBflags\fP \fInumber\fP.LPand is usually placed after the.I csrspecification.  The.I numberis passed directly to the associated driver.  The manual pagesin section 4 should be consulted to determine how each driveruses this value (if at all).Communications interface drivers commonly use the flagsto indicate whether modem control signals are in use..PPThe exact syntax for each specific device is given in the Synopsissection of its manual page in section 4 of the manual..NH 2Pseudo-devices.PPA number of drivers and software subsystemsare treated like device drivers without any associated hardware.To include any of these pieces, a ``pseudo-device'' specificationmust be used.  A specification for a pseudo device takes the form.IP.DT.nf\fBpseudo-device\fP	\fIdevice-name\fP [ \fIhowmany\fP ].fi.PPExamples of pseudo devices are\fBpty\fP, the pseudo terminal driver (where the optional.I howmanyvalue indicates the number of pseudo terminals to configure, 32 default),and \fBloop\fP, the software loopback network pseudo-interface.Other pseudo devices for the network include\fBimp\fP (required when a CSS or ACC imp is configured)and \fBether\fP (used by the Address Resolution Protocolon 10 Mb/sec Ethernets).More information on configuring each of these can also be foundin section 4 of the manual.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -