2003-11-10 12:19:03 +03:00
|
|
|
.\" $NetBSD: installboot.8,v 1.36 2003/11/10 09:19:03 fvdl Exp $
|
2002-04-03 09:21:16 +04:00
|
|
|
.\"
|
2003-04-20 04:38:31 +04:00
|
|
|
.\" Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
|
2002-04-03 09:21:16 +04:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Luke Mewburn of Wasabi Systems.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2003-11-08 19:44:35 +03:00
|
|
|
.Dd November 8, 2003
|
2002-04-03 09:21:16 +04:00
|
|
|
.Dt INSTALLBOOT 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm installboot
|
|
|
|
.Nd install disk bootstrap software
|
|
|
|
.
|
|
|
|
.Sh SYNOPSIS
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm
|
2002-04-04 11:27:44 +04:00
|
|
|
.Op Fl nv
|
2002-04-03 09:21:16 +04:00
|
|
|
.Bk -words
|
|
|
|
.Op Fl m Ar machine
|
|
|
|
.Ek
|
|
|
|
.Bk -words
|
|
|
|
.Op Fl o Ar options
|
|
|
|
.Ek
|
|
|
|
.Bk -words
|
|
|
|
.Op Fl t Ar fstype
|
|
|
|
.Ek
|
2002-04-04 11:24:55 +04:00
|
|
|
.Bk -words
|
user visible stuff:
- add `-B s2bno', to provide the starting block for the secondary bootstrap.
intended for use on platforms where the blocks of the stage2 bootstrap
are hardcoded into the stage1 bootstrap (currently: sparc, sun2)
- don't support `-b s1bno' for sparc or sun2, since the primary is always
at a fixed location on the disk.
- if `filesystem' is a regular file, use fsync(2) instead of sync(2)
code changes:
- add hardcode_stage2(), which uses -B s2bno and the size of the
provided secondary bootstrap (as an actual file, not as part of the
`filesystem' argument) to provide a sequential list of blocks from s2bno,
each block being the appropriate file system size (from
params->fstype->blocksize)
- add blocksize and needswap run-time parameters to ib_fs
- in *_match(), set params->fstype->blocksize to the underlying block size
(8KB for raw), and params->fstype->needswap as appropriate
- rename IB_STARTBLOCK to IB_STAGE1START, and add IB_STAGE2START
- use hardcode_stage2() to implement raw_findstage2() and IB_STAGE2BLOCK
support for ffs_findstage2()
- improve some comments, add some prototypes, ...
2002-05-14 10:18:50 +04:00
|
|
|
.Op Fl b Ar s1bno
|
|
|
|
.Ek
|
|
|
|
.Bk -words
|
|
|
|
.Op Fl B Ar s2bno
|
2002-04-04 11:24:55 +04:00
|
|
|
.Ek
|
2002-04-03 09:21:16 +04:00
|
|
|
.Ar filesystem
|
2002-04-12 10:50:41 +04:00
|
|
|
.Ar primary
|
|
|
|
.Op Ar secondary
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm
|
2002-04-03 09:21:16 +04:00
|
|
|
.Fl c
|
2002-04-04 11:27:44 +04:00
|
|
|
.Op Fl nv
|
2002-04-03 09:21:16 +04:00
|
|
|
.Bk -words
|
|
|
|
.Op Fl m Ar machine
|
|
|
|
.Ek
|
|
|
|
.Bk -words
|
|
|
|
.Op Fl o Ar options
|
|
|
|
.Ek
|
|
|
|
.Bk -words
|
|
|
|
.Op Fl t Ar fstype
|
|
|
|
.Ek
|
|
|
|
.Ar filesystem
|
|
|
|
.
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2002-04-04 11:24:55 +04:00
|
|
|
utility installs and removes
|
|
|
|
.Nx
|
2002-04-04 17:45:25 +04:00
|
|
|
disk bootstrap software into a file system.
|
2002-04-03 09:21:16 +04:00
|
|
|
.Nm
|
|
|
|
can install
|
2002-04-12 10:50:41 +04:00
|
|
|
.Ar primary
|
2002-04-03 09:21:16 +04:00
|
|
|
into
|
|
|
|
.Ar filesystem ,
|
|
|
|
or disable an existing bootstrap in
|
|
|
|
.Ar filesystem .
|
|
|
|
.Pp
|
2002-04-04 11:24:55 +04:00
|
|
|
Generally,
|
|
|
|
.Nx
|
|
|
|
disk bootstrap software consists of two parts: a
|
|
|
|
.Dq primary
|
|
|
|
bootstrap program usually written into the disklabel area of the
|
2002-04-04 17:45:25 +04:00
|
|
|
file system by
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm ,
|
2002-04-04 11:24:55 +04:00
|
|
|
and a
|
|
|
|
.Dq secondary
|
2002-04-04 17:45:25 +04:00
|
|
|
bootstrap program that usually resides as an ordinary file in the file system.
|
2002-04-04 11:24:55 +04:00
|
|
|
.Pp
|
|
|
|
When booting, the primary bootstrap program is loaded and invoked by
|
|
|
|
the machine's PROM or BIOS.
|
|
|
|
After receiving control of the system it loads and runs the secondary
|
|
|
|
bootstrap program, which in turn loads and runs the kernel.
|
|
|
|
The secondary bootstrap may allow control over various boot parameters
|
|
|
|
passed to the kernel.
|
|
|
|
.Pp
|
2002-04-04 17:45:25 +04:00
|
|
|
Perform the following steps to make a file system bootable:
|
|
|
|
.Bl -enum
|
|
|
|
.It
|
|
|
|
Copy the secondary bootstrap (usually
|
2002-06-30 08:39:05 +04:00
|
|
|
.Pa /usr/mdec/boot. Ns Sy MACHINE
|
|
|
|
or
|
2002-06-30 16:49:29 +04:00
|
|
|
.Pa /usr/mdec/boot )
|
2002-04-04 17:45:25 +04:00
|
|
|
to the root directory of the target file system.
|
|
|
|
.Pp
|
|
|
|
.
|
|
|
|
.It
|
|
|
|
Use
|
2002-04-04 11:24:55 +04:00
|
|
|
.Nm
|
|
|
|
to install the primary bootstrap program
|
|
|
|
(usually
|
2002-06-30 12:10:40 +04:00
|
|
|
.Pa /usr/mdec/bootxx_ Ns Sy FSTYPE )
|
2002-04-04 17:45:25 +04:00
|
|
|
into
|
|
|
|
.Ar filesystem .
|
|
|
|
.Pp
|
2002-05-06 06:30:28 +04:00
|
|
|
The following platforms do not require this step if the primary bootstrap
|
|
|
|
already exists and the secondary bootstrap file is just being updated:
|
2002-05-15 17:39:22 +04:00
|
|
|
.Sy alpha ,
|
2003-01-15 09:33:13 +03:00
|
|
|
.Sy amiga ,
|
2003-04-15 18:22:13 +04:00
|
|
|
.Sy i386 ,
|
2002-05-15 17:39:22 +04:00
|
|
|
.Sy pmax ,
|
|
|
|
.Sy sparc64 ,
|
2002-04-04 17:45:25 +04:00
|
|
|
and
|
2002-05-15 17:39:22 +04:00
|
|
|
.Sy vax .
|
2002-04-04 17:45:25 +04:00
|
|
|
.Pp
|
2003-10-28 03:26:17 +03:00
|
|
|
The following platform does not require the first step since a
|
|
|
|
single bootstrap file is used.
|
|
|
|
The single bootstrap is installed like the primary bootstrap on
|
|
|
|
other platforms:
|
2003-10-27 19:51:05 +03:00
|
|
|
.Sy next68k .
|
|
|
|
.Pp
|
2002-04-04 17:45:25 +04:00
|
|
|
.El
|
2002-04-03 09:21:16 +04:00
|
|
|
.Pp
|
2003-04-20 04:38:31 +04:00
|
|
|
The options and arguments recognized by
|
2002-04-03 09:21:16 +04:00
|
|
|
.Nm
|
|
|
|
are as follows:
|
|
|
|
.
|
user visible stuff:
- add `-B s2bno', to provide the starting block for the secondary bootstrap.
intended for use on platforms where the blocks of the stage2 bootstrap
are hardcoded into the stage1 bootstrap (currently: sparc, sun2)
- don't support `-b s1bno' for sparc or sun2, since the primary is always
at a fixed location on the disk.
- if `filesystem' is a regular file, use fsync(2) instead of sync(2)
code changes:
- add hardcode_stage2(), which uses -B s2bno and the size of the
provided secondary bootstrap (as an actual file, not as part of the
`filesystem' argument) to provide a sequential list of blocks from s2bno,
each block being the appropriate file system size (from
params->fstype->blocksize)
- add blocksize and needswap run-time parameters to ib_fs
- in *_match(), set params->fstype->blocksize to the underlying block size
(8KB for raw), and params->fstype->needswap as appropriate
- rename IB_STARTBLOCK to IB_STAGE1START, and add IB_STAGE2START
- use hardcode_stage2() to implement raw_findstage2() and IB_STAGE2BLOCK
support for ffs_findstage2()
- improve some comments, add some prototypes, ...
2002-05-14 10:18:50 +04:00
|
|
|
.Bl -tag -width "optionsxxx"
|
2002-04-03 09:21:16 +04:00
|
|
|
.
|
user visible stuff:
- add `-B s2bno', to provide the starting block for the secondary bootstrap.
intended for use on platforms where the blocks of the stage2 bootstrap
are hardcoded into the stage1 bootstrap (currently: sparc, sun2)
- don't support `-b s1bno' for sparc or sun2, since the primary is always
at a fixed location on the disk.
- if `filesystem' is a regular file, use fsync(2) instead of sync(2)
code changes:
- add hardcode_stage2(), which uses -B s2bno and the size of the
provided secondary bootstrap (as an actual file, not as part of the
`filesystem' argument) to provide a sequential list of blocks from s2bno,
each block being the appropriate file system size (from
params->fstype->blocksize)
- add blocksize and needswap run-time parameters to ib_fs
- in *_match(), set params->fstype->blocksize to the underlying block size
(8KB for raw), and params->fstype->needswap as appropriate
- rename IB_STARTBLOCK to IB_STAGE1START, and add IB_STAGE2START
- use hardcode_stage2() to implement raw_findstage2() and IB_STAGE2BLOCK
support for ffs_findstage2()
- improve some comments, add some prototypes, ...
2002-05-14 10:18:50 +04:00
|
|
|
.It Fl b Ar s1bno
|
2002-04-03 09:21:16 +04:00
|
|
|
Install
|
2002-04-12 10:50:41 +04:00
|
|
|
.Ar primary
|
2002-04-03 09:21:16 +04:00
|
|
|
at block number
|
user visible stuff:
- add `-B s2bno', to provide the starting block for the secondary bootstrap.
intended for use on platforms where the blocks of the stage2 bootstrap
are hardcoded into the stage1 bootstrap (currently: sparc, sun2)
- don't support `-b s1bno' for sparc or sun2, since the primary is always
at a fixed location on the disk.
- if `filesystem' is a regular file, use fsync(2) instead of sync(2)
code changes:
- add hardcode_stage2(), which uses -B s2bno and the size of the
provided secondary bootstrap (as an actual file, not as part of the
`filesystem' argument) to provide a sequential list of blocks from s2bno,
each block being the appropriate file system size (from
params->fstype->blocksize)
- add blocksize and needswap run-time parameters to ib_fs
- in *_match(), set params->fstype->blocksize to the underlying block size
(8KB for raw), and params->fstype->needswap as appropriate
- rename IB_STARTBLOCK to IB_STAGE1START, and add IB_STAGE2START
- use hardcode_stage2() to implement raw_findstage2() and IB_STAGE2BLOCK
support for ffs_findstage2()
- improve some comments, add some prototypes, ...
2002-05-14 10:18:50 +04:00
|
|
|
.Ar s1bno
|
2002-04-03 09:21:16 +04:00
|
|
|
instead of the default location for the machine and file system type.
|
2002-05-15 17:39:22 +04:00
|
|
|
.Sy [ alpha ,
|
|
|
|
.Sy pmax ,
|
|
|
|
.Sy vax ]
|
user visible stuff:
- add `-B s2bno', to provide the starting block for the secondary bootstrap.
intended for use on platforms where the blocks of the stage2 bootstrap
are hardcoded into the stage1 bootstrap (currently: sparc, sun2)
- don't support `-b s1bno' for sparc or sun2, since the primary is always
at a fixed location on the disk.
- if `filesystem' is a regular file, use fsync(2) instead of sync(2)
code changes:
- add hardcode_stage2(), which uses -B s2bno and the size of the
provided secondary bootstrap (as an actual file, not as part of the
`filesystem' argument) to provide a sequential list of blocks from s2bno,
each block being the appropriate file system size (from
params->fstype->blocksize)
- add blocksize and needswap run-time parameters to ib_fs
- in *_match(), set params->fstype->blocksize to the underlying block size
(8KB for raw), and params->fstype->needswap as appropriate
- rename IB_STARTBLOCK to IB_STAGE1START, and add IB_STAGE2START
- use hardcode_stage2() to implement raw_findstage2() and IB_STAGE2BLOCK
support for ffs_findstage2()
- improve some comments, add some prototypes, ...
2002-05-14 10:18:50 +04:00
|
|
|
.
|
|
|
|
.It Fl B Ar s2bno
|
|
|
|
When hard-coding the blocks of
|
|
|
|
.Ar secondary
|
|
|
|
into
|
|
|
|
.Ar primary ,
|
|
|
|
start from block
|
|
|
|
.Ar s2bno
|
|
|
|
instead of trying to determine the block numbers occupied by
|
|
|
|
.Ar secondary
|
|
|
|
by examining
|
|
|
|
.Ar filesystem .
|
|
|
|
If this option is supplied,
|
|
|
|
.Ar secondary
|
|
|
|
should refer to an actual secondary bootstrap (rather than the
|
|
|
|
file name of the one present in
|
|
|
|
.Ar filesystem )
|
|
|
|
so that its size can be determined.
|
2002-04-03 09:21:16 +04:00
|
|
|
.
|
|
|
|
.It Fl c
|
|
|
|
Clear (remove) any existing bootstrap instead of installing one.
|
|
|
|
.
|
|
|
|
.It Fl m Ar machine
|
|
|
|
Use
|
|
|
|
.Ar machine
|
|
|
|
as the target machine type.
|
|
|
|
The default machine is determined from
|
|
|
|
.Xr uname 3
|
|
|
|
and then
|
|
|
|
.Ev MACHINE .
|
|
|
|
The following machines are currently supported by
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm :
|
2002-04-03 09:21:16 +04:00
|
|
|
.Bd -ragged -offset indent
|
2002-04-03 14:21:01 +04:00
|
|
|
.Sy alpha ,
|
2003-11-08 19:44:35 +03:00
|
|
|
.Sy amd64 ,
|
2003-01-15 09:33:13 +03:00
|
|
|
.Sy amiga ,
|
2003-11-10 12:19:03 +03:00
|
|
|
.\" Sy hp300 ,
|
2003-04-15 18:22:13 +04:00
|
|
|
.Sy i386 ,
|
2002-05-15 17:39:22 +04:00
|
|
|
.Sy macppc ,
|
2002-05-20 20:05:26 +04:00
|
|
|
.Sy news68k ,
|
|
|
|
.Sy newsmips ,
|
2003-10-27 19:51:05 +03:00
|
|
|
.Sy next68k ,
|
2002-04-03 10:34:31 +04:00
|
|
|
.Sy pmax ,
|
2002-05-07 03:18:20 +04:00
|
|
|
.Sy sparc ,
|
2002-04-04 17:45:25 +04:00
|
|
|
.Sy sparc64 ,
|
2002-04-22 21:17:35 +04:00
|
|
|
.Sy sun2 ,
|
2002-05-17 21:42:36 +04:00
|
|
|
.Sy sun3 ,
|
2002-06-02 14:44:30 +04:00
|
|
|
.Sy vax ,
|
|
|
|
.Sy x68k
|
2002-04-03 09:21:16 +04:00
|
|
|
.Ed
|
|
|
|
.
|
|
|
|
.
|
|
|
|
.It Fl n
|
|
|
|
Do not write to
|
|
|
|
.Ar filesystem .
|
|
|
|
.
|
|
|
|
.It Fl o Ar options
|
|
|
|
Machine specific
|
|
|
|
.Nm
|
|
|
|
options, comma separated.
|
|
|
|
.Pp
|
|
|
|
Supported options are (with the machines for they are valid in brackets):
|
|
|
|
.
|
2002-04-03 14:21:01 +04:00
|
|
|
.Bl -tag -offset indent -width alphasum
|
|
|
|
.
|
|
|
|
.It Sy alphasum
|
2002-05-15 17:39:22 +04:00
|
|
|
.Sy [ alpha ]
|
2002-04-03 14:21:01 +04:00
|
|
|
Recalculate and restore the Alpha checksum.
|
|
|
|
This is the default for
|
|
|
|
.Nx Ns Tn /alpha .
|
2002-04-03 09:21:16 +04:00
|
|
|
.
|
|
|
|
.It Sy append
|
2002-10-03 11:27:50 +04:00
|
|
|
.Sy [ alpha ,
|
|
|
|
.Sy pmax ,
|
2002-05-15 17:39:22 +04:00
|
|
|
.Sy vax ]
|
2002-04-03 09:21:16 +04:00
|
|
|
Append
|
2002-04-12 10:50:41 +04:00
|
|
|
.Ar primary
|
2002-04-03 09:21:16 +04:00
|
|
|
to the end of
|
|
|
|
.Ar filesystem ,
|
2002-04-04 15:06:47 +04:00
|
|
|
which must be a regular file in this case.
|
2002-04-03 09:21:16 +04:00
|
|
|
.
|
2003-10-28 03:26:17 +03:00
|
|
|
.It Sy command=\*[Lt]boot command\*[Gt]
|
2003-01-15 09:33:13 +03:00
|
|
|
.Sy [ amiga ]
|
|
|
|
Modify the default boot command line.
|
|
|
|
.
|
2003-10-28 03:26:17 +03:00
|
|
|
.It Sy console=\*[Lt]console name\*[Gt]
|
2003-04-15 18:22:13 +04:00
|
|
|
.Sy [ i386 ]
|
2003-10-28 03:26:17 +03:00
|
|
|
Set the console device, \*[Lt]console name\*[Gt] must be one of:
|
2003-04-15 18:22:13 +04:00
|
|
|
pc, com0, com1, com2, com3, com0kbd, com1kbd, com2kbd or com3kbd.
|
|
|
|
.
|
2003-10-28 03:26:17 +03:00
|
|
|
.It Sy password=\*[Lt]password\*[Gt]
|
2003-04-15 18:22:13 +04:00
|
|
|
.Sy [ i386 ]
|
|
|
|
Set the password which must be entered before the boot menu can be accessed.
|
|
|
|
.
|
|
|
|
.It Sy resetvideo
|
|
|
|
.Sy [ i386 ]
|
|
|
|
Reset the video before booting.
|
|
|
|
.
|
2003-10-28 03:26:17 +03:00
|
|
|
.It Sy speed=\*[Lt]baud rate\*[Gt]
|
2003-04-15 18:22:13 +04:00
|
|
|
.Sy [ i386 ]
|
|
|
|
Set the baud rate for the serial console.
|
|
|
|
.
|
2002-04-03 09:21:16 +04:00
|
|
|
.It Sy sunsum
|
2002-10-03 11:27:50 +04:00
|
|
|
.Sy [ alpha ,
|
|
|
|
.Sy pmax ,
|
2002-05-15 17:39:22 +04:00
|
|
|
.Sy vax ]
|
2002-04-03 09:21:16 +04:00
|
|
|
Recalculate and restore the Sun and
|
|
|
|
.Nx Ns Tn /sparc
|
|
|
|
compatible checksum.
|
2002-04-04 15:06:47 +04:00
|
|
|
.Em Note :
|
|
|
|
The existing
|
2002-04-03 09:21:16 +04:00
|
|
|
.Nx Ns Tn /sparc
|
|
|
|
disklabel should use no more than 4 partitions.
|
2003-04-15 18:22:13 +04:00
|
|
|
.
|
2003-10-28 03:26:17 +03:00
|
|
|
.It Sy timeout=\*[Lt]seconds\*[Gt]
|
2003-04-15 18:22:13 +04:00
|
|
|
.Sy [ i386 ]
|
|
|
|
Set the timeout before the automatic boot begins to the given number of seconds.
|
2002-04-03 09:21:16 +04:00
|
|
|
.El
|
|
|
|
.
|
|
|
|
.It Fl t Ar fstype
|
|
|
|
Use
|
|
|
|
.Ar fstype
|
|
|
|
as the type of
|
|
|
|
.Ar filesystem .
|
|
|
|
The default operation is to attempt to auto-detect this setting.
|
2002-04-19 11:08:51 +04:00
|
|
|
The following file system types are currently supported by
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm :
|
2002-04-30 18:45:12 +04:00
|
|
|
.
|
|
|
|
.Bl -tag -offset indent -width ffs
|
|
|
|
.
|
|
|
|
.It Sy ffs
|
|
|
|
.Bx
|
|
|
|
Fast File System.
|
|
|
|
.
|
|
|
|
.It Sy raw
|
|
|
|
.Sq Raw
|
|
|
|
image.
|
user visible stuff:
- add `-B s2bno', to provide the starting block for the secondary bootstrap.
intended for use on platforms where the blocks of the stage2 bootstrap
are hardcoded into the stage1 bootstrap (currently: sparc, sun2)
- don't support `-b s1bno' for sparc or sun2, since the primary is always
at a fixed location on the disk.
- if `filesystem' is a regular file, use fsync(2) instead of sync(2)
code changes:
- add hardcode_stage2(), which uses -B s2bno and the size of the
provided secondary bootstrap (as an actual file, not as part of the
`filesystem' argument) to provide a sequential list of blocks from s2bno,
each block being the appropriate file system size (from
params->fstype->blocksize)
- add blocksize and needswap run-time parameters to ib_fs
- in *_match(), set params->fstype->blocksize to the underlying block size
(8KB for raw), and params->fstype->needswap as appropriate
- rename IB_STARTBLOCK to IB_STAGE1START, and add IB_STAGE2START
- use hardcode_stage2() to implement raw_findstage2() and IB_STAGE2BLOCK
support for ffs_findstage2()
- improve some comments, add some prototypes, ...
2002-05-14 10:18:50 +04:00
|
|
|
Note: if a platform needs to hard-code the block offset of the secondary
|
|
|
|
bootstrap, it cannot be searched for on this file system type, and must
|
|
|
|
be provided with
|
|
|
|
.Fl B Ar s2bno .
|
2002-04-30 18:45:12 +04:00
|
|
|
.El
|
2002-04-03 09:21:16 +04:00
|
|
|
.
|
|
|
|
.It Fl v
|
|
|
|
Verbose operation.
|
2003-04-20 04:38:31 +04:00
|
|
|
.
|
|
|
|
.It Ar filesystem
|
|
|
|
The path name of the device or file system image that
|
|
|
|
.Nm
|
|
|
|
is to operate on.
|
|
|
|
It is not necessary for
|
|
|
|
.Ar filesystem
|
|
|
|
to be a currently mounted file system.
|
|
|
|
.
|
|
|
|
.It Ar primary
|
|
|
|
The path name of the
|
|
|
|
.Dq primary
|
|
|
|
boot block to install.
|
|
|
|
.
|
|
|
|
.It Ar secondary
|
|
|
|
The path name of the
|
|
|
|
.Dq secondary
|
|
|
|
boot block,
|
|
|
|
relative to the top of
|
|
|
|
.Ar filesystem .
|
|
|
|
Most systems require
|
|
|
|
.Ar secondary
|
|
|
|
to be in the
|
|
|
|
.Dq root
|
|
|
|
directory of the file system, so the leading
|
|
|
|
.Dq Pa /
|
|
|
|
is not necessary on
|
|
|
|
.Ar secondary .
|
|
|
|
.Pp
|
|
|
|
Only certain combinations of
|
|
|
|
platform
|
|
|
|
.Pq Fl m Ar machine
|
|
|
|
and file system type
|
|
|
|
.Pq Fl t Ar fstype
|
|
|
|
require that the name of the secondary bootstrap is
|
|
|
|
supplied as
|
|
|
|
.Ar secondary ,
|
|
|
|
so that information such as the disk block numbers occupied
|
|
|
|
by the secondary bootstrap can be stored in the primary bootstrap.
|
|
|
|
These are:
|
|
|
|
.Bl -column "Platform" "File systems" -offset indent
|
|
|
|
.It Sy "Platform" Ta Sy "File systems"
|
|
|
|
.It macppc Ta ffs, raw
|
|
|
|
.It news68k Ta ffs, raw
|
|
|
|
.It newsmips Ta ffs, raw
|
|
|
|
.It sparc Ta ffs, raw
|
|
|
|
.It sun2 Ta ffs, raw
|
|
|
|
.It sun3 Ta ffs, raw
|
|
|
|
.El
|
2002-04-03 09:21:16 +04:00
|
|
|
.El
|
2002-04-04 11:24:55 +04:00
|
|
|
.Pp
|
|
|
|
.Nm
|
|
|
|
exits 0 on success, and \*[Gt]0 if an error occurs.
|
2002-04-03 09:21:16 +04:00
|
|
|
.
|
|
|
|
.Sh ENVIRONMENT
|
|
|
|
.Nm
|
|
|
|
uses the following environment variables:
|
|
|
|
.
|
|
|
|
.Bl -tag -width "MACHINE"
|
|
|
|
.
|
|
|
|
.It Ev MACHINE
|
|
|
|
Default value for
|
|
|
|
.Ar machine ,
|
|
|
|
overriding the result from
|
|
|
|
.Xr uname 3 .
|
|
|
|
.
|
|
|
|
.El
|
|
|
|
.
|
|
|
|
.Sh FILES
|
2002-05-21 00:24:49 +04:00
|
|
|
Most
|
|
|
|
.Nx
|
|
|
|
ports will contain variations of the following files:
|
2002-04-04 11:24:55 +04:00
|
|
|
.Pp
|
2003-10-03 17:43:34 +04:00
|
|
|
.Bl -tag -width /usr/mdec/bootxx_ustarfs
|
2002-04-04 11:24:55 +04:00
|
|
|
.
|
2002-06-30 12:10:40 +04:00
|
|
|
.It Pa /usr/mdec/bootxx_ Ns Sy FSTYPE
|
2002-04-19 11:08:51 +04:00
|
|
|
Primary bootstrap for file system type
|
2002-06-30 12:10:40 +04:00
|
|
|
.Sy FSTYPE .
|
2002-04-04 11:24:55 +04:00
|
|
|
Installed into the bootstrap area of the file system by
|
2003-02-25 13:34:36 +03:00
|
|
|
.Nm .
|
2002-04-04 11:24:55 +04:00
|
|
|
.
|
2003-10-03 17:43:34 +04:00
|
|
|
.It Pa /usr/mdec/bootxx_ffsv1
|
|
|
|
Primary bootstrap for
|
|
|
|
.Sy FFSv1
|
|
|
|
file systems
|
2003-10-28 03:26:17 +03:00
|
|
|
(the "traditional"
|
|
|
|
.Nx
|
|
|
|
file system).
|
2003-10-03 17:43:34 +04:00
|
|
|
.
|
|
|
|
.It Pa /usr/mdec/bootxx_ffsv2
|
|
|
|
Primary bootstrap for
|
|
|
|
.Sy FFSv2
|
|
|
|
file systems.
|
|
|
|
.
|
|
|
|
.It Pa /usr/mdec/bootxx_lfsv1
|
|
|
|
Primary bootstrap for
|
|
|
|
.Sy LFSv1
|
|
|
|
file systems.
|
|
|
|
.
|
|
|
|
.It Pa /usr/mdec/bootxx_lfsv2
|
|
|
|
Primary bootstrap for
|
|
|
|
.Sy LFSv2
|
|
|
|
file systems
|
|
|
|
(the default LFS version).
|
|
|
|
.
|
Overhaul MBR handling (part 1):
<sys/bootblock.h>:
* Added definitions for the Master Boot Record (MBR) used by
a variety of systems (primarily i386), including the format
of the BIOS Parameter Block (BPB).
This information was cribbed from a variety of sources
including <sys/disklabel_mbr.h> which this is a superset of.
As part of this, some data structure elements and #defines
were renamed to be more "namespace friendly" and consistent
with other bootblocks and MBR documentation.
Update all uses of the old names to the new names.
<sys/disklabel_mbr.h>:
* Deprecated in favor of <sys/bootblock.h> (the latter is more
"host tool" friendly).
amd64 & i386:
* Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
be consistent with the naming convention of the msdosfs tools.
* Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
and it's confusing to have two functionally equivalent bootblocks,
especially given that "ufs" has multiple meanings (it could be
a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).
* Rework pbr.S (the first sector of bootxx_*):
+ Ensure that BPB (bytes 11..89) and the partition table
(bytes 446..509) do not contain code.
+ Add support for booting from FAT partitions if BOOT_FROM_FAT
is defined. (Only set for bootxx_msdos).
+ Remove "dummy" partition 3; if people want to installboot(8)
these to the start of the disk they can use fdisk(8) to
create a real MBR partition table...
+ Compile with TERSE_ERROR so it fits because of the above.
Whilst this is less user friendly, I feel it's important
to have a valid partition table and BPB in the MBR/PBR.
* Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
with other platforms.
* Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
we can boot off FAT partitions.
* Crank version of /usr/mdec/boot to 3.1, and fix some of the other
entries in the version file.
installboot(8) (i386):
* Read the existing MBR of the filesystem and retain the BIOS
Parameter Block (BPB) in bytes 11..89 and the MBR partition
table in bytes 446..509. (Previously installboot(8) would
trash those two sections of the MBR.)
mbrlabel(8):
* Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
to map the MBR partition type to the NetBSD disklabel type.
Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 08:25:43 +04:00
|
|
|
.It Pa /usr/mdec/bootxx_msdos
|
|
|
|
Primary bootstrap for
|
|
|
|
.Tn MS-DOS
|
|
|
|
.Sy FAT
|
|
|
|
file systems.
|
2003-10-03 17:43:34 +04:00
|
|
|
.
|
|
|
|
.It Pa /usr/mdec/bootxx_ustarfs
|
|
|
|
Primary bootstrap for
|
|
|
|
.Sy TARFS
|
|
|
|
boot images.
|
|
|
|
This is used by various install media.
|
|
|
|
.
|
2002-04-04 11:24:55 +04:00
|
|
|
.It Pa /usr/mdec/boot. Ns Sy MACHINE
|
|
|
|
Secondary bootstrap for machine type
|
|
|
|
.Sy MACHINE .
|
|
|
|
This should be installed into the file system before
|
|
|
|
.Nm
|
|
|
|
is run.
|
|
|
|
.
|
2003-10-03 17:43:34 +04:00
|
|
|
.It Pa /usr/mdec/boot
|
|
|
|
Synonym for
|
|
|
|
.Pa /usr/mdec/boot. Ns Sy MACHINE
|
|
|
|
.
|
2002-04-04 11:24:55 +04:00
|
|
|
.It Pa /boot. Ns Sy MACHINE
|
|
|
|
Installed copy of secondary bootstrap for machine type
|
|
|
|
.Sy MACHINE .
|
|
|
|
.
|
|
|
|
.It Pa /boot
|
|
|
|
Installed copy of secondary bootstrap.
|
|
|
|
Searched for by the primary bootstrap if
|
|
|
|
.Pa /boot. Ns Sy MACHINE
|
|
|
|
is not found.
|
|
|
|
.
|
|
|
|
.El
|
2002-05-21 00:24:49 +04:00
|
|
|
.
|
2003-10-27 19:51:05 +03:00
|
|
|
.Ss NetBSD/next68k files
|
|
|
|
.
|
|
|
|
.Bl -tag -width /usr/mdec/bootxx_ustarfs
|
|
|
|
.
|
|
|
|
.It Pa /usr/mdec/boot
|
|
|
|
.Nx Ns Tn /next68k
|
|
|
|
bootstrap.
|
|
|
|
.
|
|
|
|
.El
|
|
|
|
.
|
2002-04-04 17:45:25 +04:00
|
|
|
.Ss NetBSD/sparc64 files
|
|
|
|
.
|
2003-10-03 17:43:34 +04:00
|
|
|
.Bl -tag -width /usr/mdec/bootxx_ustarfs
|
2002-04-04 17:45:25 +04:00
|
|
|
.
|
|
|
|
.It Pa /usr/mdec/bootblk
|
|
|
|
.Nx Ns Tn /sparc64
|
|
|
|
primary bootstrap.
|
2002-04-04 11:24:55 +04:00
|
|
|
.
|
2002-04-04 17:45:25 +04:00
|
|
|
.It Pa /usr/mdec/ofwboot
|
|
|
|
.Nx Ns Tn /sparc64
|
|
|
|
secondary bootstrap.
|
|
|
|
.
|
|
|
|
.It Pa /ofwboot
|
|
|
|
Installed copy of
|
|
|
|
.Nx Ns Tn /sparc64
|
|
|
|
secondary bootstrap.
|
|
|
|
.
|
|
|
|
.El
|
2002-04-04 11:24:55 +04:00
|
|
|
.
|
|
|
|
.Sh EXAMPLES
|
2002-06-30 12:10:40 +04:00
|
|
|
.
|
2002-06-30 08:39:05 +04:00
|
|
|
.Ss common
|
|
|
|
Verbosely install the Berkeley Fast File System primary bootstrap on to disk
|
2002-05-06 06:30:28 +04:00
|
|
|
.Sq sd0 :
|
2002-06-30 08:39:05 +04:00
|
|
|
.Dl Ic installboot -v /dev/rsd0c /usr/mdec/bootxx_ffs
|
2002-04-04 11:24:55 +04:00
|
|
|
.Pp
|
2002-05-06 06:30:28 +04:00
|
|
|
Remove the primary bootstrap from disk
|
|
|
|
.Sq sd1 :
|
2002-06-30 08:39:05 +04:00
|
|
|
.Dl Ic installboot -c /dev/rsd1c
|
|
|
|
.
|
2003-10-28 03:26:17 +03:00
|
|
|
.Ss NetBSD/amiga
|
|
|
|
Modify the command line to change the default from "netbsd -ASn2" to
|
|
|
|
"netbsd -S":
|
|
|
|
.Dl Ic installboot -m amiga -o command="netbsd -S" /dev/rsd0a /usr/mdec/bootxx_ffs
|
|
|
|
.
|
2003-08-16 22:42:53 +04:00
|
|
|
.Ss NetBSD/i386
|
2003-11-02 19:04:31 +03:00
|
|
|
This example demonstrates installing new boot blocks on an existing
|
|
|
|
mounted root file system on
|
|
|
|
.Sq wd0 ,
|
|
|
|
setting the timeout to five seconds:
|
|
|
|
.Dl Ic cp /usr/mdec/boot /boot
|
|
|
|
.Dl Ic installboot -v -o timeout=5 /dev/rwd0a /usr/mdec/bootxx_ffsv1
|
|
|
|
.
|
|
|
|
.Pp
|
|
|
|
This example shows how to create a bootable floppy disk with an FFSv1
|
|
|
|
file system for a small custom kernel (note: bigger kernels needing
|
|
|
|
multiple disks are handled with the ustarfs file system):
|
2003-08-16 22:42:53 +04:00
|
|
|
.Dl Ic newfs -s 1440k /dev/rfd0a
|
|
|
|
Ignore the warnings this spews (it can not write a disklabel, which is no
|
|
|
|
problem for a floppy disk)
|
|
|
|
.Dl Ic mount /dev/fd0a /mnt
|
Overhaul MBR handling (part 1):
<sys/bootblock.h>:
* Added definitions for the Master Boot Record (MBR) used by
a variety of systems (primarily i386), including the format
of the BIOS Parameter Block (BPB).
This information was cribbed from a variety of sources
including <sys/disklabel_mbr.h> which this is a superset of.
As part of this, some data structure elements and #defines
were renamed to be more "namespace friendly" and consistent
with other bootblocks and MBR documentation.
Update all uses of the old names to the new names.
<sys/disklabel_mbr.h>:
* Deprecated in favor of <sys/bootblock.h> (the latter is more
"host tool" friendly).
amd64 & i386:
* Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
be consistent with the naming convention of the msdosfs tools.
* Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
and it's confusing to have two functionally equivalent bootblocks,
especially given that "ufs" has multiple meanings (it could be
a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).
* Rework pbr.S (the first sector of bootxx_*):
+ Ensure that BPB (bytes 11..89) and the partition table
(bytes 446..509) do not contain code.
+ Add support for booting from FAT partitions if BOOT_FROM_FAT
is defined. (Only set for bootxx_msdos).
+ Remove "dummy" partition 3; if people want to installboot(8)
these to the start of the disk they can use fdisk(8) to
create a real MBR partition table...
+ Compile with TERSE_ERROR so it fits because of the above.
Whilst this is less user friendly, I feel it's important
to have a valid partition table and BPB in the MBR/PBR.
* Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
with other platforms.
* Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
we can boot off FAT partitions.
* Crank version of /usr/mdec/boot to 3.1, and fix some of the other
entries in the version file.
installboot(8) (i386):
* Read the existing MBR of the filesystem and retain the BIOS
Parameter Block (BPB) in bytes 11..89 and the MBR partition
table in bytes 446..509. (Previously installboot(8) would
trash those two sections of the MBR.)
mbrlabel(8):
* Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
to map the MBR partition type to the NetBSD disklabel type.
Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 08:25:43 +04:00
|
|
|
.Dl Ic cp /usr/mdec/boot /mnt/boot
|
2003-10-28 03:26:17 +03:00
|
|
|
.Dl Ic gzip -9 \*[Lt] sys/arch/i386/compile/mykernel/netbsd \*[Gt] /mnt/netbsd.gz
|
2003-08-16 22:42:53 +04:00
|
|
|
.Dl Ic umount /mnt
|
2003-11-02 19:04:31 +03:00
|
|
|
.Dl Ic installboot -v /dev/rfd0a /usr/mdec/bootxx_ffsv1
|
2003-10-27 19:51:05 +03:00
|
|
|
.
|
|
|
|
.Ss NetBSD/next68k
|
|
|
|
Install the bootstrap on to disk
|
|
|
|
.Sq sd0 :
|
|
|
|
.Dl Ic installboot /dev/rsd0c /usr/mdec/boot
|
|
|
|
.Pp
|
|
|
|
.
|
2002-06-30 08:39:05 +04:00
|
|
|
.Ss NetBSD/pmax
|
|
|
|
Install the Berkeley Fast File System primary bootstrap on to disk
|
|
|
|
.Sq sd0 :
|
|
|
|
.Dl Ic installboot /dev/rsd0c /usr/mdec/bootxx_ffs
|
|
|
|
.Pp
|
|
|
|
.Nx Ns Tn /pmax
|
|
|
|
requires that this file system starts at block 0 of the disk.
|
2002-04-30 18:45:12 +04:00
|
|
|
.Pp
|
2002-04-04 11:24:55 +04:00
|
|
|
Install the ISO 9660 primary bootstrap in the file
|
|
|
|
.Pa /tmp/cd-image :
|
|
|
|
.Dl Ic installboot -m pmax /tmp/cd-image /usr/mdec/bootxx_cd9660
|
|
|
|
.Pp
|
|
|
|
Make an ISO 9660 filesystem in the file
|
|
|
|
.Pa /tmp/cd-image
|
|
|
|
and install the ISO 9660 primary bootstrap in the filesystem, where the
|
|
|
|
source directory for the ISO 9660 filesystem contains a kernel, the
|
|
|
|
primary bootstrap
|
2002-06-30 08:39:05 +04:00
|
|
|
.Pp
|
2002-04-04 11:24:55 +04:00
|
|
|
.Pa bootxx_cd9660
|
|
|
|
and the secondary bootstrap
|
|
|
|
.Pa boot.pmax :
|
|
|
|
.Dl Ic mkisofs -o /tmp/cd-image -a -l -v iso-source-dir
|
|
|
|
.Dl ...
|
|
|
|
.Dl 48 51 iso-source-dir/bootxx_cd9660
|
|
|
|
.Dl ...
|
|
|
|
.Dl Ic installboot -b `expr 48 \e* 4` /tmp/cd-image /usr/mdec/bootxx_cd9660
|
2002-04-03 09:21:16 +04:00
|
|
|
.
|
2002-06-30 08:39:05 +04:00
|
|
|
.Ss NetBSD/sparc
|
|
|
|
Install the Berkeley Fast File System primary bootstrap on to disk
|
2002-05-06 06:30:28 +04:00
|
|
|
.Sq sd0 ,
|
|
|
|
with the secondary bootstrap
|
|
|
|
.Sq Pa /boot
|
|
|
|
already present:
|
2002-06-30 08:39:05 +04:00
|
|
|
.Dl Ic installboot /dev/rsd0c /usr/mdec/bootxx /boot
|
|
|
|
.
|
|
|
|
.Ss NetBSD/sparc64
|
|
|
|
Install the Berkeley Fast File System primary bootstrap on to disk
|
|
|
|
.Sq wd0 :
|
|
|
|
.Dl Ic installboot /dev/rwd0c /usr/mdec/bootblk
|
|
|
|
.Pp
|
|
|
|
The secondary
|
|
|
|
.Nx Ns Tn /sparc64
|
|
|
|
bootstrap is located in
|
|
|
|
.Pa /usr/mdec/ofwboot .
|
|
|
|
.
|
2002-06-30 12:10:40 +04:00
|
|
|
.Ss NetBSD/sun2 and NetBSD/sun3
|
2002-06-30 08:39:05 +04:00
|
|
|
Install the Berkeley Fast File System primary bootstrap on to disk
|
|
|
|
.Sq sd0 ,
|
|
|
|
with the secondary bootstrap
|
|
|
|
.Sq Pa /boot
|
|
|
|
already present:
|
|
|
|
.Dl Ic installboot /dev/rsd0c /usr/mdec/bootxx /boot
|
2002-06-30 12:10:40 +04:00
|
|
|
.
|
2002-04-03 09:21:16 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr uname 3 ,
|
|
|
|
.Xr boot 8 ,
|
2002-06-30 12:10:40 +04:00
|
|
|
.Xr disklabel 8
|
2002-04-03 09:21:16 +04:00
|
|
|
.
|
|
|
|
.Sh HISTORY
|
2002-04-04 11:24:55 +04:00
|
|
|
This implementation of
|
2002-04-03 09:21:16 +04:00
|
|
|
.Nm
|
2002-04-04 11:24:55 +04:00
|
|
|
appeared in
|
2002-04-03 09:21:16 +04:00
|
|
|
.Nx 1.6 .
|
|
|
|
.
|
2002-04-04 11:24:55 +04:00
|
|
|
.Sh AUTHORS
|
2002-04-04 15:06:47 +04:00
|
|
|
The machine independent portion of this implementation of
|
2002-04-04 11:24:55 +04:00
|
|
|
.Nm
|
|
|
|
was written by Luke Mewburn.
|
|
|
|
The following people contributed to the various machine dependent
|
|
|
|
back-ends:
|
|
|
|
Simon Burge (pmax),
|
|
|
|
Chris Demetriou (alpha),
|
2002-05-17 21:42:36 +04:00
|
|
|
Matthew Fredette (sun2, sun3),
|
2002-04-04 17:45:25 +04:00
|
|
|
Matthew Green (sparc64),
|
2002-04-04 11:24:55 +04:00
|
|
|
Ross Harvey (alpha),
|
2003-04-16 17:02:45 +04:00
|
|
|
Michael Hitch (amiga),
|
user visible stuff:
- add `-B s2bno', to provide the starting block for the secondary bootstrap.
intended for use on platforms where the blocks of the stage2 bootstrap
are hardcoded into the stage1 bootstrap (currently: sparc, sun2)
- don't support `-b s1bno' for sparc or sun2, since the primary is always
at a fixed location on the disk.
- if `filesystem' is a regular file, use fsync(2) instead of sync(2)
code changes:
- add hardcode_stage2(), which uses -B s2bno and the size of the
provided secondary bootstrap (as an actual file, not as part of the
`filesystem' argument) to provide a sequential list of blocks from s2bno,
each block being the appropriate file system size (from
params->fstype->blocksize)
- add blocksize and needswap run-time parameters to ib_fs
- in *_match(), set params->fstype->blocksize to the underlying block size
(8KB for raw), and params->fstype->needswap as appropriate
- rename IB_STARTBLOCK to IB_STAGE1START, and add IB_STAGE2START
- use hardcode_stage2() to implement raw_findstage2() and IB_STAGE2BLOCK
support for ffs_findstage2()
- improve some comments, add some prototypes, ...
2002-05-14 10:18:50 +04:00
|
|
|
Paul Kranenburg (sparc),
|
2003-04-15 18:22:13 +04:00
|
|
|
David Laight (i386),
|
2003-10-27 19:51:05 +03:00
|
|
|
Christian Limpach (next68k),
|
2002-05-15 17:39:22 +04:00
|
|
|
Luke Mewburn (macppc),
|
2002-05-20 20:05:26 +04:00
|
|
|
Matt Thomas (vax),
|
2002-04-04 17:45:25 +04:00
|
|
|
and
|
2003-04-16 17:02:45 +04:00
|
|
|
Izumi Tsutsui (news68k, newsmips).
|
2002-04-04 11:24:55 +04:00
|
|
|
.
|
2002-04-03 09:21:16 +04:00
|
|
|
.Sh BUGS
|
2002-04-04 11:24:55 +04:00
|
|
|
There are not currently primary bootstraps to support all file systems
|
|
|
|
types which are capable of being the root file system.
|
2002-06-30 12:10:40 +04:00
|
|
|
.
|
2002-06-30 08:39:05 +04:00
|
|
|
.Ss NetBSD/alpha
|
|
|
|
The
|
|
|
|
.Nx Ns Tn /alpha
|
|
|
|
primary bootstrap program can only load the secondary bootstrap program
|
|
|
|
from file systems starting at the beginning (block 0) of disks.
|
|
|
|
Similarly, the secondary bootstrap program can only load kernels from
|
|
|
|
file systems starting at the beginning of disks.
|
|
|
|
.Pp
|
|
|
|
The size of primary bootstrap programs is restricted to 7.5KB, even
|
2003-04-16 17:02:45 +04:00
|
|
|
though some file systems (e.g., ISO 9660) are able to accommodate larger
|
2002-06-30 08:39:05 +04:00
|
|
|
ones.
|
2002-06-30 12:10:40 +04:00
|
|
|
.
|
2003-11-10 12:19:03 +03:00
|
|
|
.\" .Ss NetBSD/hp300
|
|
|
|
.\" The disk must have a boot partition large enough to hold the bootstrap code.
|
|
|
|
.\" Currently the primary bootstrap must be a LIF format file.
|
|
|
|
.\" .
|
2003-11-08 19:44:35 +03:00
|
|
|
.Ss NetBSD/i386 and NetBSD/amd64
|
2003-04-15 18:22:13 +04:00
|
|
|
The size of primary bootstrap programs is restricted to 8KB, even
|
2003-04-16 17:02:45 +04:00
|
|
|
though some file systems (e.g., ISO 9660) are able to accommodate larger
|
2003-04-15 18:22:13 +04:00
|
|
|
ones.
|
|
|
|
.
|
2003-10-27 19:51:05 +03:00
|
|
|
.Ss NetBSD/next68k
|
|
|
|
The size of bootstrap programs is restricted to the free space before
|
|
|
|
the file system at the beginning of the disk minus 8KB.
|
|
|
|
.
|
2002-06-30 08:39:05 +04:00
|
|
|
.Ss NetBSD/pmax
|
2002-04-04 11:24:55 +04:00
|
|
|
The
|
|
|
|
.Nx Ns Tn /pmax
|
|
|
|
secondary bootstrap program can only load kernels from file
|
|
|
|
systems starting at the beginning of disks.
|
|
|
|
.Pp
|
|
|
|
The size of primary bootstrap programs is restricted to 7.5KB, even
|
2003-04-16 17:02:45 +04:00
|
|
|
though some file systems (e.g., ISO 9660) are able to accommodate larger
|
2002-04-04 11:24:55 +04:00
|
|
|
ones.
|
2002-06-30 12:10:40 +04:00
|
|
|
.
|
|
|
|
.Ss NetBSD/sun2 and NetBSD/sun3
|
2002-06-30 08:39:05 +04:00
|
|
|
The
|
2002-06-30 12:10:40 +04:00
|
|
|
.Nx Ns Tn /sun2
|
|
|
|
and
|
2002-06-30 08:39:05 +04:00
|
|
|
.Nx Ns Tn /sun3
|
|
|
|
secondary bootstrap program can only load kernels from file
|
|
|
|
systems starting at the beginning of disks.
|
2002-06-30 12:10:40 +04:00
|
|
|
.
|
2002-06-30 08:39:05 +04:00
|
|
|
.Ss NetBSD/vax
|
|
|
|
The
|
|
|
|
.Nx Ns Tn /vax
|
|
|
|
secondary bootstrap program can only load kernels from file systems
|
|
|
|
starting at the beginning of disks.
|
|
|
|
.Pp
|
|
|
|
The size of primary bootstrap programs is restricted to 7.5KB, even
|
2003-04-16 17:02:45 +04:00
|
|
|
though some file systems (e.g., ISO 9660) are able to accommodate larger
|
2002-06-30 08:39:05 +04:00
|
|
|
ones.
|