📄 boot.8
字号:
.TH BOOT 8.SH NAMEboot \- from power on to the login prompt.SH DESCRIPTION.de SP.if t .sp 0.4.if n .sp..At power on the machine reads the first sector of the boot device into memoryand executes it. This bootstrap code loads.BR /boot ,the Minix Boot Monitor. The monitor loads the kernel binaries from.BR /minix ,or the newest file in.B /minixif it is a directory..PPThe Minix system is now running, the different tasks initialize themselvesand control is transferred to the last one,.BR init ..PP.B Initis the grandparent of all Minix processes, it is responsible for startinglogin processes on each terminal, but first it runs.BR /etc/rc ..PP.B /etc/rcchecks the state of the system and starts daemons. First it sets thekeyboard translation to the mapping in.B /etc/keymapif present, then it reads the time zone from.B /etc/timeinfofollowed by a call to.BR readclock (8)to set Minix time from the hardware clock. Next the file systems are checkedif necessary and the.B /usrfile system is mounted..PPThe system is now ready for multiuser startup,.B /etc/rcstarts the.BR update (8)and.BR cron (8)daemons, and initializes the network services..B /etc/rcfinally recovers crashed editor buffers and cleans out the.B tmpdirectories..PP.B Initreads.B /etc/ttytaband starts a.BR getty (8)for each enabled terminal line to allow a user to log in..SH "BOOT ENVIRONMENT"Many features of the drivers inside the kernel are controlled by settings inthe boot environment. The values of these variables are usually colon orcomma separated numbers configuring the driver..B "DPETH0 = 300:10"tells the ethernet driver to use I/O address 0x300, interrupt request10, and the default memory address (0xD0000, values may be omitted) for thefirst ethernet board. (Note that IRQ 2 is redirected to IRQ 9 on AT's andPS/2's, so use 9 if a device is jumpered for 2.).PPVariables that are special to both the monitor and the kernel are describedin.BR monitor (8).This section lists extra variables or variable settings:.TP\fBhd\fR = \fBat\fR | \fBbios\fP | \fBesdi\fR | \fBxt\fRChoose the driver that is to be used for the hard disk, in order: IBM/AT(classic AT or newer IDE), BIOS (generic driver), ESDI (some PS/2's), orIBM/XT. By default the first of these drivers that is enabled is used.Most drivers are present in the kernel as distributed, but may be taken outby modifying.BR /usr/include/minix/config.h .(An XT should always use the BIOS driver, not the XT driver, because BIOScalls are cheap on an XT. The XT driver can be used on AT machines with anold XT controller.).TP\fBDPETH\fIn\fR = \fBon\fR | \fBoff\fRTurn an ethernet board on or off. The driver is by default in "sink" modefor all boards. The sink mode allows one to use the driver without anethernet board installed. The driver will play /dev/null for that device,i.e. nothing comes in, and anything send out is dropped on the floor. Ifthe board is turned on then the driver will use it to send out packets, ifit is turned off then the driver will fail for that board..TP\fBDPETH\fIn\fR = \fII/O-addr\fR:\fIirq\fR:\fImem_addr\fRSet the I/O address (hex), IRQ (decimal) and memory address (hex) of the.IR n -thethernet board and turn it on. By default they are configured as280:3:D0000 and 300:5:CC000. The memory address is ignored for the Novellethernet boards, but may be explicitly set to zero to indicate that the board.B isa Novell ethernet board. You do not need to specify the IRQ with modernWestern Digital 8013 compatible ethernet cards, the driver asks the boardwhat its IRQ is.(Note that the default IRQ conflicts with the second serial line, so theserial line is turned off if the ethernet board is configured for IRQ 3.).TP\fBDPETH\fIn\fB_EA\fR = \fIe0\fR:\fIe1\fR:\fIe2\fR:\fIe3\fR:\fIe4\fR:\fIe5\fRSet the ethernet address of the.IR n -thethernet board. The address is normally obtained from the ethernet board,so only in exceptional circumstances is this setting ever needed. (Use theaddress of the main server if you want a career change.).TP\fBAHA0\fR = \fII/O-addr\fR:\fIbus-on\fR:\fIbus-off\fR:\fItr-speed\fRConfigure the Adaptec 154xA SCSI host adapter to use the given I/O address(hex), Bus-on time (decimal), Bus-off time (decimal) and transfer speed(hex). The default is 330:15:1:00. The default transfer speed is always5.0 Mb/s (code 00) ignoring the jumper settings..TP\fBsd\fIn\fR = \fItarget\fR,\fIlun\fRProgram SCSI disk.BI sd nto have the given target and logical unit number. The target and lunof a tape or other SCSI device may be changed by setting the.BI sd nvariable that would be used had it been a disk. So tape device st7 can beset to target 4, lun 1 with sd35=4,1..TP\fBMCD\fR = \fII/O-addr\fR:\fIirq\fRI/O address (hex) and IRQ (decimal) of the Mitsumi CD-ROM driver, by default300:10..SH "TCP/IP CONFIGURATION"To use TCP/IP you have to compile a kernel with networking enabled, andunless you are running standalone you have to enable the ethernet driver.See the.BI DPETH nboot variable above. The driver supports these ethernet cards: WesternDigital 8003, Western Digital 8013, SMC Elite Ultra 16, Novell NE1000,Novell NE2000. Many newer variants of the WD8013, now under the SMC brand,are also supported..PPYou are likely to use TCP/IP in one of three situations:.PP.RSStandalone with no connection to a network..SPIn a small network with no support from a "big" host..SPConnected to a large network with address and name servers..RE.PPIn each situation you need a different set of configuration files..SS StandaloneThe machine is configured with a fixed IP address:.BR 192.9.200.1 .This is one of the addresses Sun used to give to machines without aregistered network address. This address is normally blocked at gateways,so it can do no damage if used in a real net by accident. You need onefile,.BR /etc/hosts ,that should look like this (using the name "darask" as an example):.PP.RS.ta +15n127.0.0.1 localhost.br192.9.200.1 darask.RE.SS "Small Network"In a network where the Minix machine can't obtain its IP address and namefrom a different host you need specify the ethernet address to host nametranslation in the.B /etc/ethersfile for use by the RARP daemon. Suppose you have two machines in yournetwork then.B /etc/etherscould look like this:.PP.RS.ta +20n0:0:c0:a:77:23 darask.br0:0:c0:a:68:ce burask.RE.PPUse.B hostaddr \-eto find out what the six octet ethernet address of a host is. Use the addressas printed: lowercase hex digits, no leading zeros. The.B /etc/hostsfile shows their IP addresses:.PP.RS.ta +15n127.0.0.1 localhost.br192.9.200.1 darask.br192.9.200.2 burask.RE.PP.B Warning!Do not add ethernet addresses of diskless workstations to your ethers file.A Sun for instance has the stupid habit of booting from the first RARP serverthat answers, probably your Minix machine....SS "Large Network"In a network with a central network administration your machine's IP addressand name are given by the RARP and name services of the special servers onthe network. For a new machine you need to apply for an IP address and hostname with your network administrator supplying the ethernet address of yourmachine. You don't need any configuration files now, the.B irdpdand.B nonameddaemons automatically find a router and a name server..PPNote that no knowledge of the IP address or hostname of the Minix machineitself is necessary, it all comes from the RARP and name servers. A seriesof Minix machines can therefore set up identically. Even if you have no RARPor name servers you can still set them up identically if you list all theMinix hosts in the hosts and ethers files..SS "Simpler configuration tools"The.BR rarpd ,.BR irdpdand.BR nonameddaemons are complex little programs that try to obtain information abouttheir surroundings automatically to tell the machine what its place in thenetwork is. It should come as no surprise that there are simpler utilitiesto configure a machine. On a memory starved machine it may even be wise toconfigure a machine statically to get rid of the daemons. The first daemon,.BR rarpd ,can be replaced by:.PP.RS.B ifconfig \-h.I host-IP-address.RE.PPto set the IP address of the machine. Note that this is only necessary ifthere is no external RARP service. The second daemon.B irdpdcan be replaced by setting a static route:.PP.RS.B add_route \-g.I router-IP-address.RE.PP(if there is a router.) The last daemon,.BR nonamed ,can be replaced by an entry in.B /etc/resolv.confthat specifies an external name daemon:.PP.RS.B nameserver.I nameserver-IP-address.RE.PPThe.B ifconfigand.B add_routecalls can be placed in the file.BR /etc/rc.net .The calls to the daemons will have to be edited out of.BR /etc/rc .Note that these changes undo all the efforts to make Minix TCP/IPautoconfigurable. Make very sure that all the IP addresses are correct, andthat the IP address of your machine is unique. (Mistakenly using theaddress of a main server will make all other machines look at your machine,and will make all the users of all other machines look at you.).SH FILES.TP 20n/bootMinix Boot Monitor..TP/minixKernel image, or directory containing them..TP/etc/rcFirst of the system initialization files..TP/etc/hostsName to IP address mapping..TP/etc/ethersName to ethernet address mapping..SH "SEE ALSO".BR monitor (8),.BR init (8),.BR inet (8),.BR loadkeys (8),.BR readclock (8),.BR fsck (1),.BR update (8),.BR cron (8),.BR ttytab (5),.BR getty (8),.BR hostaddr (1),.BR ifconfig (8),.BR irdpd (8),.BR nonamed (8),.BR rarpd (8),.BR hosts (5),.BR ethers (5),.BR set_net_default (8)..SH DIAGNOSTICS.TP 5nChecking File Systems.If the system has crashed then.B fsckis called for the root and /usr file systems. It is wise to reboot if theroot file system must be fixed..TPFinish the name of device to mount as /usr: /dev/If the name of the /usr file system has not been set in /etc/fstab.You can type a device name, say.BR fd0 ..TPhostaddr: unable to fetch IP addressTCP/IP misconfiguration. The RARP may have failed because the ethernetaddress of the machine is not entered in either the remote or the localethers file. Either talk to your Network Administrator, or make an ethersand a hosts file..TP1.2.3.4 login:If you see an IP address instead of a host name then the system failed totranslate the IP address. Either talk to your Network Administrator tohave the reverse address translation tables fixed, or make a hosts file..SH NOTESThe names "darask" and "burask" are names of cities from the Dutchtranslation of the novel "The Many-Colored Land" by Julian May. The authorof this text likes names of hosts to be things that contain people, likecities and ships..SH BUGSIndefinite hangs are possible if I/O addresses or IRQ's are wrong. A drivermay babble about addresses and IRQ's, but that does not mean that what itsays is true, it may just be configured that way. It is very difficult tofind peripherals on a PC automatically, and Minix doesn't even try..SH AUTHORKees J. Bot (kjb@cs.vu.nl)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -