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

📄 2.t

📁 早期freebsd实现
💻 T
📖 第 1 页 / 共 4 页
字号:
For example, if your machine has 16Mb bytes of memory, then\fBxxx\fP will be 16777216..PPThe messages that come out next show what devices were found onthe current processor.  These messages are described in.Xr autoconf (4).The distributed system may not havefound all the communications devices you haveor all the mass storage peripherals you have, especiallyif you have more thantwo of anything.  You will correct this when you createa description of your machine from which to configure a site-dependentversion of UNIX.The messages printed at boot here contain much of the informationthat will be used in creating the configuration.In a correctly configured system most of the informationpresent in the configuration descriptionis printed out at boot time as the system verifies that each deviceis present..PPThe \*(lqroot device?\*(rq prompt was printed by the systemto ask you for the name of the root filesystem to use.This happens because the distribution system is a \fIgeneric\fPsystem, i.e., it can be bootstrapped on a cpu with its root deviceand paging area on any available disk drive.You will most likely respond to the root device question with ``sd0''if you are booting from a SCSI disk,or with ``rd0'' if you are booting from an HP-IB disk.This response shows that the disk it is runningon is drive 0 of type ``sd'' or ``rd'' respectively.If you have other disks attached to the system,it is possible that the drive you are using will not be configuredas logical drive 0.Check the autoconfiguration messages printed out by the kernel tomake sure.These messages will show the type of every logical driveand their associated controller and slave addresses.You will later build a system tailored to your configurationthat will not prompt you for a root device when it is bootstrapped..DS\fBroot device?\fP \fI\*(Dk0\fP\fBWARNING: preposterous time in filesystem \-\- CHECK AND RESET THE DATE!\fP\fBerase ^?, kill ^U, intr ^C\fP\fB#\fP.DE.PPThe \*(lqerase ...\*(rq message is part of the.Pn /.profilethat was executed by the root shell when it started.  This messagetells you about the settings of the character erase,line erase, and interrupt characters..PPUNIX is now running,and the \fIUNIX Programmer's Manual\fP applies.  The ``#'' is the promptfrom the Bourne shell, and lets you know that you are the super-user,whose login name is \*(lqroot\*(rq..PPAt this point, the root filesystem is mounted read-only.Before continuing the installation, the filesystem needs to be ``updated''to allow writing and device special files for the following steps needto be created.This is done as follows:.DS.TSlw(2i) l.\fB#\fP \fImount_mfs -s 1000 -T type /dev/null /tmp\fP	(create a writable filesystem)(\fItype\fP is the disk type as determined from /etc/disktab)\fB#\fP \fIcd /tmp\fP	(connect to that directory)\fB#\fP \fI../dev/MAKEDEV \*(Dk#\fP	(create special files for root disk)(\fI\*(Dk\fP is the disk type, \fI#\fP is the unit number)(ignore warning from ``sh'')\fB#\fP \fImount \-uw /tmp/\*(Dk#a /\fP	(read-write mount root filesystem)\fB#\fP \fIcd /dev\fP	(go to device directory)\fB#\fP \fI./MAKEDEV \*(Dk#\fP	(create permanent special files for root disk)(again, ignore warning from ``sh'').TE.DE.Sh 4 "Step 4: (optional) restoring the root filesystem".PPThe root filesystem that you are currently running on is complete,however it probably is not optimally laid out for the disk onwhich you are running.If you will be cloning copies of the system onto multiple disks forother machines, you are advised to connect one of these disks tothis machine, and build and restore a properly laid out root filesystemonto it.If this is the only machine on which you will be running \*(4Bor peak performance is not an issue, you can skip this step andproceed directly to step 5..PPConnect a second disk to your machine.If you bootstrapped using the two disk method, you canoverwrite your initial HP-UX disk, as it will no longerbe needed (assuming you have no plans to run HP-UX again)..PPTo really create the root filesystem on drive 1you should first label the disk as described in step 5 below.Then run the following commands:.DS\fB#\fP \fIcd /dev\fP\fB#\fP \fI./MAKEDEV \*(Dk1a\fP\fB#\fP\|\fInewfs /dev/r\*(Dk1a\fP\fB#\fP\|\fImount /dev/\*(Dk1a /mnt\fP\fB#\fP\|\fIcd /mnt\fP\fB#\fP\|\fIdump 0f \- /dev/r\*(Dk0a | restore xf \-\fP(Note: restore will ask if you want to ``set owner/mode for '.'''to which you should reply ``yes''.).DE.PPWhen this completes,you should then shut down the system, and boot on the disk thatyou just created following the procedure in step (3) above..Sh 4 "Step 5: placing labels on the disks".PPFor each disk on the HP300, \*(4B places information about the geometryof the drive and the partition layout at byte offset 1024.This information is written with.Xr disklabel (8)..PPThe root image just loaded includes a ``generic'' label intended to alloweasy installation of the root and.Pn /usrand may not be suitable for the actualdisk on which it was installed.In particular,it may make your disk appear larger or smaller than its real size.In the former case, you lose some capacity.In the latter, some of the partitions may map non-existent sectorsleading to errors if those partitions are used.It is also possible that the defined geometry will interact poorly withthe filesystem code resulting in reduced performance.However, as long as you are willing to give up a little space,not use certain partitions or suffer minor performance degradation,you might want to avoid this step;especially if you do not know how to use.Xr ed (1)..PPIf you choose to edit this label,you can fill in correct geometry information from.Pn /etc/disktab .You may also want to rework the ``e'' and ``f'' partitions used for loading.Pn /usrand.Pn /var .You should not attempt to, and.Xr disklabelwill not let you, modify the ``a'', ``b'' and ``d'' partitions.To edit a label:.DS\fB#\fP \fIEDITOR=ed\fP\fB#\fP \fIexport EDITOR\fP\fB#\fP \fIdisklabel  -r  -e  /dev/r\fBXX#\fPd.DEwhere \fBXX\fP is the type and \fB#\fP is the logical drive number; e.g..Pn /dev/rsd0dor.Pn /dev/rrd0d .Note the explicit use of the ``d'' partition.This partition includes the bootblock as does ``c''and using it allows you to change the size of ``c''..PPIf you wish to label any additional disks, run the following command for each:.DS\fB#\|\fP\fIdisklabel  -rw  \fBXX#  type\fP  \fI"optional_pack_name"\fP.DEwhere \fBXX#\fP is the same as in the previous commandand \fBtype\fP is the HP300 disk device name as listed in.Pn /etc/disktab .The optional information may contain any descriptive name for thecontents of a disk, and may be up to 16 characters long.  This procedurewill place the label on the disk using the information found in.Pn /etc/disktabfor the disk type named.If you have changed the disk partition sizes,you may wish to add entries for the modified configuration in.Pn /etc/disktabbefore labeling the affected disks..PPYou have now completed the HP300 specific part of the installation.Now proceed to the generic part of the installationdescribed starting in section 2.5 below.Note that where the disk name ``sd'' is used throughout section 2.5,you should substitute the name ``rd'' if you are running on an HP-IB disk.Also, if you are loading on a single disk with the default disklabel,.Pn /varshould be restored to the ``f'' partition and.Pn /usrto the ``e'' partition..Sh 2 "Booting the SPARC".Sh 3 "Supported hardware".LPThe hardware supported by \*(4B for the SPARC is as follows:.TScenter box;lw(1i) lw(4i).CPU's	T{SPARCstation 1 series (1, 1+, SLC, IPC) andSPARCstation 2 series (2, IPX).T}_DISK's	T{SCSI.T}_TAPE's	T{none.T}_NETWORK	T{SPARCstation Lance (le).T}_GRAPHICS	T{bwtwo and cgthree.T}_INPUT	T{Keyboard and mouse.T}_MISC	T{Battery-backed real time clock,built-in serial devices,Sbus SCSI controller,and audio device.T}.TE.LPMajor items that are not supported includeanything VME-based,the GX (cgsix) display,the floppy disk, and SCSI tapes..Sh 3 "Limitations".LPThere are several important limitations on the \*(4B distributionfor the SPARC:.IP 1)You.B musthave SunOS 4.1.x or Solaris to bring up \*(4B.There is no SPARCstation bootstrap code in this distribution.  TheSun-supplied boot loader will be used to boot \*(4B; you must copythis from your SunOS distribution.  This imposes severalrestrictions on the system, as detailed below..IP 2)The \*(4B SPARC kernel does not remap SCSI IDs.  A SCSI disk attarget 0 will become ``sd0'', where in SunOS the same disk willnormally be called ``sd3''.  If your existing SunOS system isdiskful, it will be least painful to have SunOS running on the diskon target 0 lun 0 and put \*(4B on the disk on target 3 lun 0.  Bothsystems will then think they are running on ``sd0'', and you canboot either system as needed simply by changing the EEPROM's bootdevice..IP 3)There is no SCSI tape driver.You must have another system for tape reading and backups..IP 4)Although the \*(4B SPARC kernel will handle existing SunOS sharedlibraries, it does not use or create them itself, and thereforerequires much more disk space than SunOS does..IP 5)It is currently difficult (though not completely impossible) torun \*(4B diskless.  These instructions assume you will have a localboot, swap, and root filesystem..IP 6)When using a serial port rather than a graphics display as the console,only port.Pn ttyacan be used.Attempts to use port.Pn ttybwill fail when the kernel triesto print the boot up messages to the console..Sh 3 "The procedure".PPYou must have a spare disk on which to place \*(4B.The steps involved in bootstrapping this tape are as follows:.IP 1)Bring up SunOS (preferably SunOS 4.1.x or Solaris 1.x, althoughSolaris 2 may work \(em this is untested)..IP 2)Attach auxiliary SCSI disk(s).  Format and label using theSunOS formatting and labeling programs as needed.Note that the root filesystem currently requires at least 10 MB; 16 MBor more is recommended.  The b partition will be used for swap;this should be at least 32 MB..IP 3)Use the SunOS.Xr newfsto build the root filesystem.  You may alsowant to build other filesystems at the same time.  (By default, the\*(4B.Xr newfsbuilds a filesystem that SunOS will not handle; if youplan to switch OSes back and forth you may want to sacrifice theperformance gain from the new filesystem format for compatibility.)You can build an old-format filesystem on \*(4B by giving the \-Ooption to.Xr newfs (8)..Xr Fsck (8)can convert old format filesystems to new formatfilesystems, but not vice versa,so you may want to initially build old format filesystems so that theycan be mounted under SunOS,and then later convert them to new format filesystems when you aresatisfied that \*(4B is running properly.In any case,.Byou must build an old-style root filesystem.Rso that the SunOS boot program will work..IP 4)Mount the new root, then copy the SunOS.Pn /bootinto place and use the SunOS ``installboot'' programto enable disk-based booting.Note that the filesystem must be mounted when you do the ``installboot'':.DS.ft CW# mount /dev/sd3a /mnt# cp /boot /mnt/boot# cd /usr/kvm/mdec# installboot /mnt/boot bootsd /dev/rsd3a.DEThe SunOS.Pn /bootwill load \*(4B kernels; there is no SPARCstationbootstrap code on the distribution.  Note that the SunOS.Pn /bootdoes not handle the new \*(4B filesystem format..IP 5)Restore the contents of the \*(4B root filesystem..DS.ft CW# cd /mnt# rrestore xf tapehost:/dev/nrst0.DE.IP 6)Boot the supplied kernel:.DS.ft CW# haltok boot sd(0,3)vmunix -s		[for old proms] ORok boot disk3 -s			[for new proms]\&... [\*(4B boot messages].DE.LPTo install the remaining filesystems, use the procedure describedstarting in section 2.5.In these instructions,.Pn /usrshould be loaded into the ``e'' partition and.Pn /varin the ``f'' partition..LPAfter completing the filesystem installation you may wantto set up \*(4B to reboot automatically:.DS.ft CW# haltok setenv boot-from sd(0,3)vmunix	[for old proms] ORok setenv boot-device disk3		[for new proms].DEIf you build backwards-compatible filesystems, either with the SunOSnewfs or with the \*(4B ``\-O'' option, you can mount these underSunOS.  The SunOS fsck will, however, always think that these filesystemsare corrupted, as there are several new (previously unused)superblock fields that are updated in \*(4B.  Running ``fsck \-b32''and letting it ``fix'' the superblock will take care of this..sp 0.5If you wish to run SunOS binaries that use SunOS shared libraries, yousimply need to copy all the dynamic linker files from an existingSunOS system:.DS.ft CW# rcp sunos-host:/etc/ld.so.cache /etc/# rcp sunos-host:'/usr/lib/*.so*' /usr/lib/.DEThe SunOS compiler and linker should be able to produce SunOS binariesunder \*(4B, but this has not been tested.  If you plan to try it youwill need the appropriate .sa files as well..Sh 2 "Booting the DECstation".Sh 3 "Supported hardware".LPThe hardware supported by \*(4B for the DECstation is as follows:.TScenter box;lw(1i) lw(4i).CPU's	T{R2000 based (3100) andR3000 based (5000/200, 5000/20, 5000/25, 5000/1xx).T}_DISK's	T{SCSI-I (tested RZ23, RZ55, RZ57, Maxtor 8760S).T}_TAPE's	T{SCSI-I (tested DEC TK50, Archive DAT, Emulex MT02).T}_RS232	T{Internal DEC dc7085 and AMD 8530 based interfaces.T}_NETWORK	T{TURBOchannel PMAD-AA and internal LANCE based interfaces.T}_GRAPHICS	T{Terminal emulation and raw frame buffer support for3100 (color & monochrome),TURBOchannel PMAG-AA, PMAG-BA, PMAG-DV.T}_

⌨️ 快捷键说明

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