1*f80fae76Sapb.\" $NetBSD: boot.8,v 1.15 2014/08/16 08:43:12 apb Exp $ 222abd625Soki.\" 322abd625Soki.\" Copyright (c) 1980, 1991, 1993 422abd625Soki.\" The Regents of the University of California. All rights reserved. 522abd625Soki.\" 622abd625Soki.\" Redistribution and use in source and binary forms, with or without 722abd625Soki.\" modification, are permitted provided that the following conditions 822abd625Soki.\" are met: 922abd625Soki.\" 1. Redistributions of source code must retain the above copyright 1022abd625Soki.\" notice, this list of conditions and the following disclaimer. 1122abd625Soki.\" 2. Redistributions in binary form must reproduce the above copyright 1222abd625Soki.\" notice, this list of conditions and the following disclaimer in the 1322abd625Soki.\" documentation and/or other materials provided with the distribution. 14075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors 1522abd625Soki.\" may be used to endorse or promote products derived from this software 1622abd625Soki.\" without specific prior written permission. 1722abd625Soki.\" 1822abd625Soki.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1922abd625Soki.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2022abd625Soki.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2122abd625Soki.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2222abd625Soki.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2322abd625Soki.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2422abd625Soki.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2522abd625Soki.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2622abd625Soki.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2722abd625Soki.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2822abd625Soki.\" SUCH DAMAGE. 2922abd625Soki.\" 308c115084Sminoura.\" @(#)boot_i386.8 8.2 (Berkeley) 4/19/94 3122abd625Soki.\" 32*f80fae76Sapb.Dd August 16, 2014 331e063583Slukem.Dt BOOT 8 x68k 3422abd625Soki.Os 3522abd625Soki.Sh NAME 3622abd625Soki.Nm boot 3766da0649Swiz.Nd system bootstrapping procedures 3822abd625Soki.Sh DESCRIPTION 39af2a0559Swiz.Ss Power fail and crash recovery 4022abd625SokiNormally, the system will reboot itself at power-up or after crashes. 4122abd625SokiAn automatic consistency check of the file systems will be performed, 4222abd625Sokiand unless this fails, the system will resume multi-user operations. 43af2a0559Swiz.Ss Cold starts 4422abd625SokiThe X68000/X68030 system boots from the device 4522abd625Sokiwhich is determined by the configuration of 4622abd625Sokibattery-backuped SRAM. 47fd894e8fSwizBy default, the boot ROM attempts to boot from 48fd894e8fSwizfloppy disk drives (from 0 to 3) first, 49fd894e8fSwizand then attempts to boot from hard disk (SASI or SCSI). 5034a98169SperryOn the 51fd894e8fSwiz.Nx Ns Tn /x68k , 528c115084Sminourabooting from SCSI disks (sd??) 5322abd625Sokiand 2HD floppy disks (fd?a, fd?c) is currently supported. 54fd894e8fSwiz.Ss Bootstrapping from a floppy 558c115084SminouraWhen the floppy disk is selected as the boot device, the initial 56fd894e8fSwizprogram loader of the IOCS (firmware) reads the 578c115084Sminoura.Pa fdboot_ufs 588c115084Sminouraprogram at the top of the disk, and then the fdboot_ufs program loads the 598c115084Sminoura.Pa /boot 60ed449c06Swizprogram from the FFS or LFS file system. 61ed449c06SwizNormally, the 628c115084Sminoura.Pa /boot 638c115084Sminouraprogram then loads the 6434a98169Sperry.Nx 6534a98169Sperrykernel 6622abd625Soki.Pa /netbsd 67ed449c06Swizfrom the same floppy. 68ed449c06SwizIn addition, the 698c115084Sminoura.Pa /boot 70fd894e8fSwizprogram has abilities to uncompress gzip'ed kernels, to read 718c115084Sminourathe kernel from other disks of other file systems etc (see below). 7222abd625Soki.Pp 73fd894e8fSwizFor floppy disks, 74fd894e8fSwiz.Pa fdboot_ustar 75fd894e8fSwizis also provided to read large 76fd894e8fSwizkernels which do not fit one a single floppy. 778c115084Sminoura.Ss Bootstrapping from a SCSI hard disk 788c115084SminouraWhen a SCSI hard disk is selected as the boot device, the initial 798c115084Sminouraprogram loader on the SCSI host adapter's ROM reads the 80fd894e8fSwizoperating system-independent IPL menu program at the top of the disk. 81fd894e8fSwizThe IPL menu program recognizes the partition table, and selects the partition 82ed449c06Swizto read the operating system kernel. 83ed449c06SwizDuring this phase, when the HELP key on the keyboard is pressed, 84ed449c06Swizthe IPL menu program displays the partition menu of that disk to 85ed449c06Swizprompt the user to select the boot partition (although the 868c115084Sminoura.Nx 878c115084Sminouraimplementation of the IPL menu, 888c115084Sminoura.Pa /usr/mdec/mboot , 89fd894e8fSwizdoes not have this functionality). 908c115084Sminoura.Pp 918c115084SminouraNext, the IPL menu reads the OS-dependent boot program from the 92ed449c06Swiztop of the selected partition. 93ed449c06SwizFor 948c115084Sminoura.Nx 95fd894e8fSwizFFS/LFS file systems 968c115084Sminoura.Pa sdboot_ufs 97ed449c06Swizis used. 98ed449c06SwizThe 998c115084Sminoura.Pa sdboot_ufs 1008c115084Sminouraprogram then loads the 1018c115084Sminoura.Pa /boot 1028c115084Sminouraprogram from that partition. 1038c115084Sminoura.Ss Normal Operation 1048c115084SminouraOnce running, a banner similar to the following will appear: 1059e3abd4bSwiz.Bd -literal -offset indent 1068c115084SminouraNetBSD Multi-boot, Revision 1.1 1078c115084Sminoura(user@buildhost, builddate) 1088c115084SminouraPress return to boot now, any other key for boot menu 1098c115084Sminourabooting sd0a:netbsd - starting in 5 1108c115084Sminoura.Ed 1118c115084Sminoura.Pp 112ed449c06SwizAfter a countdown, the system image listed will be loaded. 113ed449c06Swiz(In the example above, it will be 1148c115084Sminoura.Dq Li sd0a:netbsd 1158c115084Sminourawhich is the file 1168c115084Sminoura.Nm netbsd 1178c115084Sminouraon partition 1188c115084Sminoura.Dq a 1198c115084Sminouraof the 1208c115084Sminoura.Nx 1218c115084SminouraSCSI hard disk of ID 0. 1228c115084SminouraPressing a key within the time limit will enter interactive mode. 1238c115084Sminoura.Ss Interactive mode 1248c115084SminouraIn interactive mode, the boot loader will present a prompt, allowing 1258c115084Sminourainput of these commands: 1265b7b2b65Slukem.Bl -tag -width helpx -offset indent 127*f80fae76Sapb.It Ic boot Oo Ar device : Oc Ns Oo Ar filename Oc Oo Fl adqsv Oc 1288c115084SminouraThe default 129fd894e8fSwiz.Ar device 1308c115084Sminourawill be set to the disk that the boot loader was 1318c115084Sminouraloaded from. 1328c115084SminouraTo boot from an alternate disk, the full name of the device should 1338c115084Sminourabe given at the prompt. 134fd894e8fSwiz.Ar device 1358c115084Sminourais of the form 136c2fc0b2fSwiz.Xo 137c2fc0b2fSwiz.Ar xd Ns Oo 138c2fc0b2fSwiz.Ar N Ns Oo 139c2fc0b2fSwiz.Ar x 140c2fc0b2fSwiz.Oc 141c2fc0b2fSwiz.Oc 1428c115084Sminoura.Xc 1438c115084Sminourawhere 144fd894e8fSwiz.Ar xd 1458c115084Sminourais the device from which to boot, 146fd894e8fSwiz.Ar N 1478c115084Sminourais the unit number, and 148fd894e8fSwiz.Ar x 1498c115084Sminourais the partition letter. 1508c115084Sminoura.Pp 1518c115084SminouraThe following list of supported devices may vary from installation to 1528c115084Sminourainstallation: 1538c115084Sminoura.Pp 1548c115084Sminoura.Bl -hang -compact 1558c115084Sminoura.It sd 156ed449c06SwizSCSI disks on a controller recognized by the IOCS. 157ed449c06SwizThe unit number is the SCSI ID. 1588c115084Sminoura.It fd 1598c115084SminouraFloppy drives as numbered by the IOCS. 1608c115084Sminoura.El 1618c115084Sminoura.Pp 1628c115084SminouraThe default 163fd894e8fSwiz.Ar filename 1648c115084Sminourais 1658c115084Sminoura.Pa netbsd ; 1668c115084Sminouraif the boot loader fails to successfully 1678c115084Sminouraopen that image, it then tries 1688c115084Sminoura.Pa netbsd.gz 169fd894e8fSwiz(expected to be a kernel image compressed by 170fd894e8fSwiz.Xr gzip 1 ) . 1718c115084SminouraAlternate system images can be loaded by just specifying the name of the image. 1728c115084Sminoura.Pp 1738c115084SminouraOptions are: 1748c115084Sminoura.Bl -tag -width xxx 1758c115084Sminoura.It Fl a 1765b7b2b65SlukemPrompt for the root file system device, the system crash dump 1775b7b2b65Slukemdevice, and the path to 1785b7b2b65Slukem.Xr init 8 . 1798c115084Sminoura.It Fl d 180ed449c06SwizBring the system up in debug mode. 181ed449c06SwizHere it waits for a kernel debugger connect; see 1828c115084Sminoura.Xr ddb 4 . 1838c115084Sminoura.It Fl q 1848c115084SminouraBoot the system in quiet mode. 1858c115084Sminoura.It Fl s 1868c115084SminouraBring the system up in single-user mode. 1878c115084Sminoura.It Fl v 1888c115084SminouraBoot the system in verbose mode. 1898c115084Sminoura.El 1908c115084Sminoura.It Ic help 1918c115084SminouraPrint an overview about commands and arguments. 1928c115084Sminoura.It Ic ls Op Pa path 1938c115084SminouraPrint a directory listing of 1948c115084Sminoura.Pa path , 1958c115084Sminouracontaining inode number, filename and file type. 1968c115084Sminoura.Pa path 1978c115084Sminouracan contain a device specification. 1988c115084Sminoura.It Ic halt 1998c115084SminouraReboot the system. 2008c115084Sminoura.El 2018c115084Sminoura.Ss Model-specific notes 20222abd625SokiNote for X68030+MC68030 systems: 20334a98169SperryNothing special to be attended to; you can boot 20434a98169Sperry.Nx 20534a98169Sperryjust like as 20622abd625Sokiother operating systems such as Human68k and OS-9. 20722abd625Soki.Pp 20822abd625SokiNote for X68030/040turbo(68040 accelerator by BEEPs) systems: 20934a98169Sperry.Nx 21034a98169Sperrycan boot under 040 mode. 21122abd625SokiIt can also boot under 030 mode if you have MC68030 on the board. 21222abd625Soki.Pp 21322abd625SokiNote for X68000/Xellent30(68030 accelerator by TSR)+MC68030 systems: 21434a98169SperryIn order to boot 21534a98169Sperry.Nx , 21634a98169Sperryyou must choose 030 mode by using 21722abd625Soki.Pa CH30.SYS , 21822abd625Sokiwhich must reside in the battery-backuped SRAM. 21922abd625Soki.Pp 22022abd625SokiNote for X68000/Jupiter-X(68040/060 accelerator by FTZ-net) systems: 22122abd625SokiThe system must be in 040/060 processor mode. 22222abd625Soki.Sh FILES 2238c115084Sminoura.Bl -tag -width /usr/mdec/xxboot_ufs -compact 22422abd625Soki.It Pa /netbsd 22522abd625Sokisystem code 2268c115084Sminoura.It Pa /netbsd.gz 2278c115084Sminouragzip-compressed system code 2288c115084Sminoura.It Pa /usr/mdec/xxboot_ufs 2298c115084Sminouraboot block (read by installboot), xx is disktype 2308c115084Sminoura.It Pa /usr/mdec/boot 2318c115084Sminourasource of /boot (can be just copied to the root directory) 2328c115084Sminoura.It Pa /boot 2338c115084Sminouramain part of the boot program 23422abd625Soki.El 23522abd625Soki.Sh SEE ALSO 23622abd625Soki.Xr reboot 2 , 23722abd625Soki.Xr disklabel 8 , 23822abd625Soki.Xr halt 8 , 23922abd625Soki.Xr reboot 8 , 24022abd625Soki.Xr shutdown 8 2418c115084Sminoura.\" installboot(8) must be written 242