2000-07-05 19:45:28 +04:00
|
|
|
.\" $NetBSD: bim.8,v 1.6 2000/07/05 15:45:30 msaitoh Exp $
|
1997-08-06 23:06:56 +04:00
|
|
|
.\"
|
|
|
|
.\" Copyright 1997 Piermont Information Systems Inc.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Written by Philip A. Nelson for Piermont Information Systems Inc.
|
|
|
|
.\"
|
|
|
|
.\" 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 develooped for the NetBSD Project by
|
|
|
|
.\" Piermont Information Systems Inc.
|
|
|
|
.\" 4. The name of Piermont Information Systems Inc. may not be used to endorse
|
|
|
|
.\" or promote products derived from this software without specific prior
|
|
|
|
.\" written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``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 PIERMONT INFORMATION SYSTEMS INC. 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.
|
|
|
|
.\"
|
|
|
|
.Dd July 16, 1997
|
1999-01-26 01:42:11 +03:00
|
|
|
.Os
|
1997-08-06 23:06:56 +04:00
|
|
|
.Dt BIM 8
|
|
|
|
.Sh NAME
|
|
|
|
.Nm bim
|
1997-08-15 22:57:15 +04:00
|
|
|
.Nd pc532 boot image manager
|
1997-08-06 23:06:56 +04:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
bim
|
1999-01-26 01:42:11 +03:00
|
|
|
.Op Fl y
|
1997-08-06 23:06:56 +04:00
|
|
|
.Op Fl c Ar command
|
|
|
|
.Op Ar device
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The pc532 has available an autoboot ROM monitor. This ROM monitor understands
|
1998-02-06 08:39:31 +03:00
|
|
|
the
|
|
|
|
.Bx
|
|
|
|
disklabel and expects a boot image directory following the
|
1997-08-06 23:06:56 +04:00
|
|
|
disklabel. Also, it expects an image partition for the storage of bootable
|
|
|
|
images. The image directory and the image partition is managed by
|
1997-09-15 05:29:26 +04:00
|
|
|
.Nm "" .
|
1997-08-06 23:06:56 +04:00
|
|
|
The
|
|
|
|
.Ar device
|
|
|
|
is the raw disk partition that includes the disklabel. The default
|
|
|
|
value of
|
|
|
|
.Ar device
|
|
|
|
is
|
|
|
|
.Pa /dev/rsd0c .
|
1997-09-15 05:29:26 +04:00
|
|
|
.Nm
|
1997-08-06 23:06:56 +04:00
|
|
|
directly accesses both the disklabel and the image partition directly
|
|
|
|
from the raw disk device. It does not open the device corresponding
|
|
|
|
to the boot partition.
|
|
|
|
.Pp
|
1999-01-26 01:42:11 +03:00
|
|
|
The
|
|
|
|
.Fl y
|
|
|
|
argument assumes a yes response to any questions
|
|
|
|
.Nm
|
|
|
|
would normally ask the user. It is mainly useful for
|
|
|
|
scripting.
|
|
|
|
.Pp
|
1997-08-06 23:06:56 +04:00
|
|
|
The
|
|
|
|
.Cm -c command
|
|
|
|
argument allows
|
|
|
|
.Nm
|
|
|
|
to execute commands given via the command line. This allows
|
|
|
|
.Nm
|
|
|
|
to be used from scripts. The
|
|
|
|
.Cm -c command
|
|
|
|
argument may be repeated up to 20 times. The commands
|
|
|
|
will be executed in the order given.
|
|
|
|
.Sh DISK INITIALIZATION
|
1997-09-15 05:29:26 +04:00
|
|
|
.Nm
|
1997-08-06 23:06:56 +04:00
|
|
|
is typically used as part of the initial setup on a disk.
|
|
|
|
The disk must be partitioned by using
|
|
|
|
.Xr disklabel 8 ,
|
1997-09-15 05:29:26 +04:00
|
|
|
making sure there is a boot boot partition. This boot
|
1997-08-06 23:06:56 +04:00
|
|
|
partition is often just after the disklabel. It must not include
|
|
|
|
the disklabel. If
|
|
|
|
.Nm
|
|
|
|
does not detect a boot image directory, it asks if the user wants
|
|
|
|
one created. From there, the operation of
|
|
|
|
.Nm
|
|
|
|
is completely command driven. The command interpreter is
|
|
|
|
.Sh COMMANDS
|
1997-09-15 05:29:26 +04:00
|
|
|
.Nm
|
|
|
|
supports the following commands.
|
1997-08-06 23:06:56 +04:00
|
|
|
There is on-line documentation for all commands.
|
|
|
|
.Pp
|
1997-09-15 05:29:26 +04:00
|
|
|
.Bl -tag -width "partitions"
|
1997-08-06 23:06:56 +04:00
|
|
|
.It add
|
|
|
|
Adds an executable file to the image partition.
|
|
|
|
.It delete
|
|
|
|
Deletes an image from the image partition.
|
|
|
|
.It default
|
|
|
|
Sets the default image boot.
|
|
|
|
.It exit
|
|
|
|
Exit
|
1997-09-15 05:29:26 +04:00
|
|
|
.Nm "" .
|
1997-08-06 23:06:56 +04:00
|
|
|
.It header
|
|
|
|
Print a small section of the disklabel.
|
|
|
|
.It help
|
|
|
|
Print help.
|
|
|
|
.It images
|
|
|
|
Print the image partition table.
|
|
|
|
.It init
|
|
|
|
Initialize the image partition and associated partition table.
|
|
|
|
.It partitions
|
|
|
|
Print the disklabel.
|
|
|
|
.It quit
|
|
|
|
Terminate
|
1997-09-15 05:29:26 +04:00
|
|
|
.Nm "" .
|
1997-08-06 23:06:56 +04:00
|
|
|
.It ?
|
|
|
|
Print help.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
For the details on these commands, ask for help from
|
1997-09-15 05:29:26 +04:00
|
|
|
.Nm "" .
|
1997-08-06 23:06:56 +04:00
|
|
|
.Sh SEE ALSO
|
2000-07-05 19:45:28 +04:00
|
|
|
.Xr disklabel 8
|
1997-08-06 23:06:56 +04:00
|
|
|
.Sh AUTHORS
|
|
|
|
Bruce Culbertson wrote the basic command interpreter for the pc532
|
|
|
|
ROM monitor. Philip A. Nelson took the command interpreter, modified
|
|
|
|
it to be a more generic command interpreter and added the
|
|
|
|
.Nm
|
|
|
|
specific code.
|