2002-10-01 17:40:23 +04:00
|
|
|
.\" $NetBSD: bim.8,v 1.8 2002/10/01 13:40:25 wiz 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
|
2001-04-21 18:44:13 +04:00
|
|
|
.\" 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
|
1997-08-06 23:06:56 +04:00
|
|
|
.\" 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)
|
2001-04-21 18:44:13 +04:00
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
1997-08-06 23:06:56 +04:00
|
|
|
.\" THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.Dd July 16, 1997
|
1999-01-26 01:42:11 +03:00
|
|
|
.Os
|
2001-04-21 18:44:13 +04:00
|
|
|
.Dt BIM 8 pc532
|
1997-08-06 23:06:56 +04:00
|
|
|
.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
|
2002-10-01 17:40:23 +04:00
|
|
|
The pc532 has available an autoboot ROM monitor.
|
|
|
|
This ROM monitor understands the
|
1998-02-06 08:39:31 +03:00
|
|
|
.Bx
|
2002-10-01 17:40:23 +04:00
|
|
|
disklabel and expects a boot image directory following the 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
|
2002-10-01 17:40:23 +04:00
|
|
|
is the raw disk partition that includes the disklabel.
|
|
|
|
The default value of
|
1997-08-06 23:06:56 +04:00
|
|
|
.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
|
2002-10-01 17:40:23 +04:00
|
|
|
from the raw disk device.
|
|
|
|
It does not open the device corresponding to the boot partition.
|
1997-08-06 23:06:56 +04:00
|
|
|
.Pp
|
1999-01-26 01:42:11 +03:00
|
|
|
The
|
|
|
|
.Fl y
|
|
|
|
argument assumes a yes response to any questions
|
|
|
|
.Nm
|
2002-10-01 17:40:23 +04:00
|
|
|
would normally ask the user.
|
|
|
|
It is mainly useful for scripting.
|
1999-01-26 01:42:11 +03:00
|
|
|
.Pp
|
2001-04-21 18:44:13 +04:00
|
|
|
The
|
1997-08-06 23:06:56 +04:00
|
|
|
.Cm -c command
|
2001-04-21 18:44:13 +04:00
|
|
|
argument allows
|
1997-08-06 23:06:56 +04:00
|
|
|
.Nm
|
2002-10-01 17:40:23 +04:00
|
|
|
to execute commands given via the command line.
|
|
|
|
This allows
|
1997-08-06 23:06:56 +04:00
|
|
|
.Nm
|
2002-10-01 17:40:23 +04:00
|
|
|
to be used from scripts.
|
|
|
|
The
|
1997-08-06 23:06:56 +04:00
|
|
|
.Cm -c command
|
2002-10-01 17:40:23 +04:00
|
|
|
argument may be repeated up to 20 times.
|
|
|
|
The commands will be executed in the order given.
|
1997-08-06 23:06:56 +04:00
|
|
|
.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 ,
|
2002-10-01 17:40:23 +04:00
|
|
|
making sure there is a boot boot partition.
|
|
|
|
This boot partition is often just after the disklabel.
|
|
|
|
It must not include the disklabel.
|
|
|
|
If
|
1997-08-06 23:06:56 +04:00
|
|
|
.Nm
|
2002-10-01 17:40:23 +04:00
|
|
|
does not detect a boot image directory,
|
|
|
|
it asks if the user wants one created.
|
|
|
|
From there, the operation of
|
1997-08-06 23:06:56 +04:00
|
|
|
.Nm
|
2002-10-01 17:40:23 +04:00
|
|
|
is completely command driven.
|
|
|
|
The command interpreter is
|
1997-08-06 23:06:56 +04:00
|
|
|
.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
|
2001-04-21 18:44:13 +04:00
|
|
|
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
|
2001-04-21 18:44:13 +04:00
|
|
|
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
|
2002-10-01 17:40:23 +04:00
|
|
|
ROM monitor.
|
|
|
|
Philip A. Nelson took the command interpreter, modified
|
2001-04-21 18:44:13 +04:00
|
|
|
it to be a more generic command interpreter and added the
|
|
|
|
.Nm
|
1997-08-06 23:06:56 +04:00
|
|
|
specific code.
|