1.\" $NetBSD: boot.8,v 1.3 2008/04/30 13:10:58 martin Exp $ 2.\" Copyright (c) 2006 The NetBSD Foundation, Inc. 3.\" All rights reserved. 4.\" 5.\" This code is derived from software contributed to The NetBSD Foundation 6.\" by Tim Rightnour 7.\" 8.\" Redistribution and use in source and binary forms, with or without 9.\" modification, are permitted provided that the following conditions 10.\" are met: 11.\" 1. Redistributions of source code must retain the above copyright 12.\" notice, this list of conditions and the following disclaimer. 13.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" notice, this list of conditions and the following disclaimer in the 15.\" documentation and/or other materials provided with the distribution. 16.\" 17.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 18.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 21.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27.\" POSSIBILITY OF SUCH DAMAGE. 28.\" 29.Dd March 23, 2006 30.Dt BOOT 8 prep 31.Os 32.Sh NAME 33.Nm boot 34.Nd system bootstrapping procedures 35.Sh SYNOPSIS 36.Nm boot 37.Sh DESCRIPTION 38.Ss Power fail and crash recovery 39Normally, the system will reboot itself at power-up or after crashes. 40An automatic consistency check of the file systems will be performed 41as described in 42.Xr fsck 8 , 43and unless this fails, the system will resume multi-user operations. 44.Ss Cold starts 45The prep architecture does not allow the direct booting of a kernel 46from the hard drive. 47Instead it requires a complete boot image to be loaded. 48This boot image contains a 49.Nx 50kernel, which will then provide access to the devices on the machine. 51The image can be placed on any device that the firmware considers 52a bootable device. 53Usually this is either a SCSI disk, tape, CD-ROM, or floppy drive. 54.Ss Boot program options 55The prep architecture and bootloader does not support any option 56parsing at the boot prompt. 57.Ss Boot partition 58The prep port requires a special boot partition on the primary boot 59device in order to load the kernel. 60This partition consists of a PC-style i386 partition label, a small 61bootloader, and a kernel image. 62The prep firmware looks for a partition of type 0x41 (65) and 63expects the bootloader, immediately followed by the kernel, to be 64there. 65The 66.Xr mkbootimage 8 67command needs to be used to generate this image. 68.Sh FILES 69.Bl -tag -width /usr/mdec/boot_com0xx -compact 70.It Pa /netbsd 71system code 72.It Pa /usr/mdec/boot 73system bootstrap 74.It Pa /usr/mdec/boot_com0 75system bootstrap with serial console 76.El 77.Sh SEE ALSO 78.Xr disklabel 8 , 79.Xr fsck 8 , 80.Xr halt 8 , 81.Xr init 8 , 82.Xr installboot 8 , 83.Xr mkbootimage 8 , 84.Xr rc 8 , 85.Xr shutdown 8 , 86.Xr syslogd 8 87