summaryrefslogtreecommitdiff
path: root/static/netbsd/man8/man8.sgimips
diff options
context:
space:
mode:
Diffstat (limited to 'static/netbsd/man8/man8.sgimips')
-rw-r--r--static/netbsd/man8/man8.sgimips/Makefile4
-rw-r--r--static/netbsd/man8/man8.sgimips/boot.8132
-rw-r--r--static/netbsd/man8/man8.sgimips/sgivol.8155
3 files changed, 291 insertions, 0 deletions
diff --git a/static/netbsd/man8/man8.sgimips/Makefile b/static/netbsd/man8/man8.sgimips/Makefile
new file mode 100644
index 00000000..5b657add
--- /dev/null
+++ b/static/netbsd/man8/man8.sgimips/Makefile
@@ -0,0 +1,4 @@
+MAN = $(wildcard *.8)
+
+include ../../../mandoc.mk
+
diff --git a/static/netbsd/man8/man8.sgimips/boot.8 b/static/netbsd/man8/man8.sgimips/boot.8
new file mode 100644
index 00000000..71c687d4
--- /dev/null
+++ b/static/netbsd/man8/man8.sgimips/boot.8
@@ -0,0 +1,132 @@
+.\" $NetBSD: boot.8,v 1.7 2017/02/17 22:30:28 christos Exp $
+.\"
+.\" Copyright (c) 2006 Stephen M. Rumble
+.\" All rights reserved.
+.\"
+.\" 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. The name of the author may not be used to endorse or promote products
+.\" derived from this software without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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 February 17, 2017
+.Dt BOOT 8 sgimips
+.Os
+.Sh NAME
+.Nm boot
+.Nd sgimips system bootstrapping procedures
+.Sh DESCRIPTION
+.Tn Silicon Graphics
+MIPS-based computers all feature essentially similar firmware systems.
+However, as of the Indigo R4x00 series (IP20), quasi-
+.Tn ARCS
+(Advanced RISC Computing Specification) compatible features are also present.
+All known PROM implementations support loading executables from disk
+devices, as well as from the network via BOOTP and TFTP.
+.Sh Disk Booting
+.Tn SGI
+provides a small filesystem at the beginning of each bootable disk called
+a Volume Header, which contains a boot loader and other standalone utilities.
+Booting
+.Nx
+requires that we write our bootloader into to the volume header using
+.Xr sgimips/sgivol 8 .
+.Pp
+Once a bootloader is present in the volume header, it may be executed
+directly by the PROM either manually, or at boot time using the
+.Dq OSLoader
+PROM environment variable.
+The
+.Nx
+bootloader will obtain the kernel filename to boot from the PROM or EEPROM.
+This is specified by setting the PROM environment variable
+.Dq OSLoadFilename
+to an appropriate value.
+For instance,
+.Dq /netbsd.ecoff .
+.Pp
+For example, the following will configure the PROM to use the bootloader
+.Dq aoutboot
+to load the kernel
+.Dq netbsd.old
+.Pp
+.Dl Ic setenv OSLoader aoutboot
+.Dl Ic setenv OSLoadFilename netbsd.old
+.Sh Network Booting
+The system firmware will obtain an IP address, TFTP server address, and an
+optional filename from the BOOTP server and download it via TFTP.
+The PROM's configurable network address environment variable
+.Dq netaddr
+must match the address provided by the BOOTP server.
+.Pp
+An example BOOTP entry for
+.Xr dhcpd 8
+follows:
+.Pp
+.Bd -unfilled -offset indent
+ host indigo3k {
+ hardware ethernet 08:00:69:42:42:42;
+ fixed-address 192.168.0.2;
+ option host-name "indigo3k.foo";
+ #filename "/netbsd.ecoff";
+ next-server 192.168.0.1;
+ option root-path "/export/indigo3k/root";
+ server-name "192.168.0.1";
+ }
+.Ed
+.Pp
+To boot a kernel named
+.Dq netbsd.ecoff
+the user would type:
+.Dl Ic boot -f bootp():/netbsd.ecoff
+.Pp
+See
+.Xr dhcpd.conf 5
+for more information on configuring
+.Xr dhcpd 8
+as a BOOTP server.
+.Sh SEE ALSO
+.Xr dhcpd.conf 5 ,
+.Xr dhcpd 8 ,
+.Xr sgimips/sgivol 8
+.Sh CAVEATS
+Some older PROM revisions do not support loading of ELF images.
+The build system automatically prepares ECOFF versions, which are
+correctly interpreted.
+.Sh BUGS
+.Nx
+does not support booting from disk on systems lacking an ARCS-compatible
+firmware (presently supported systems include Personal Iris and Indigo R3000).
+It is possible to work around this by creating a sufficiently large volume
+header and placing the kernel in it, or by network booting.
+.Pp
+Some firmware revisions have a bug, which precludes them from communicating
+with TFTP servers using ports above 32767.
+When using
+.Nx
+as the TFTP server, this problem may be worked around as follows:
+.Pp
+.Dl Ic sysctl -w net.inet.ip.anonportmin=20000
+.Dl Ic sysctl -w net.inet.ip.anonportmax=32767
+.Pp
+Another bug exists in some firmware revisions, which precludes the PROM from
+communicating with TFTP servers that employ PMTU (Path MTU) discovery.
+This bug may be worked around by disabling PMTU on the TFTP server.
+This does not presently affect
+.Nx
+servers.
+.Pp
+This man page is horribly incomplete.
diff --git a/static/netbsd/man8/man8.sgimips/sgivol.8 b/static/netbsd/man8/man8.sgimips/sgivol.8
new file mode 100644
index 00000000..e2635c70
--- /dev/null
+++ b/static/netbsd/man8/man8.sgimips/sgivol.8
@@ -0,0 +1,155 @@
+.\" $NetBSD: sgivol.8,v 1.10 2017/02/17 22:30:28 christos Exp $
+.\"
+.\" Copyright (c) 2006 Stephen M. Rumble
+.\" All rights reserved.
+.\"
+.\" 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. The name of the author may not be used to endorse or promote products
+.\" derived from this software without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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 February 17, 2017
+.Dt SGIVOL 8 sgimips
+.Os
+.Sh NAME
+.Nm /usr/mdec/sgivol
+.Nd configure SGI Volume Header
+.Sh SYNOPSIS
+.Nm
+.Op Fl fq
+.Ar device
+.Nm
+.Op Fl fq
+.Fl i
+.Op Fl h Ar vhsize
+.Ar device
+.Nm
+.Op Fl fq
+.Fl r
+.Ar vhfilename
+.Ar diskfilename
+.Ar device
+.Nm
+.Op Fl fq
+.Fl w
+.Ar vhfilename
+.Ar diskfilename
+.Ar device
+.Nm
+.Op Fl fq
+.Fl d
+.Ar vhfilename
+.Ar device
+.Nm
+.Op Fl fq
+.Fl m
+.Ar vhfilename
+.Ar vhfilename
+.Ar device
+.Nm
+.Op Fl fq
+.Fl p
+.Ar partno
+.Ar partfirst
+.Ar partblocks
+.Ar parttype
+.Ar device
+.Sh DESCRIPTION
+The
+.Nm
+program prepares an SGI Volume Header to be used to boot
+.Nx .
+The
+.Tn SGI
+PROM is able to load executables within the header, which in turn are used
+to load the kernel from another file system.
+.Sh OPTIONS
+The following options are available:
+.Bl -tag -width 123456
+.It Fl f
+Force the operation.
+Do not ask the user before proceeding.
+.It Fl h
+Set the size of the newly initialized volume header in blocks.
+One block is 512 bytes.
+The default volume header size is 3135 blocks (1.53MB).
+.It Fl q
+Suppress output.
+.El
+.Sh PARTITION TYPES
+The numerical partition types for the volume header include:
+.Bd -unfilled -offset indent
+ 0: Volume Header
+ 1: Replicated Tracks
+ 2: Replicated Sectors
+ 3: Raw
+ 4: BSD4.2 file system
+ 5: SysV file system
+ 6: Entire Volume (all disk blocks)
+ 7: EFS
+ 8: Logical Volume
+ 9: Raw Logical Volume
+ 10: XFS
+ 11: XFS Log
+ 12: XLV Volume
+ 13: XVM Volume
+.Ed
+.Sh EXAMPLES
+To display the existing volume header and partition table on disk
+.Dq sd0 :
+.Dl Ic sgivol sd0
+.Pp
+To initialize a new volume header 42 512-byte blocks large on disk
+.Dq sd0 :
+.Dl Ic sgivol -i -h 42 sd0
+.Pp
+To copy a file
+.Pa boot
+from the volume header to local file
+.Pa /tmp/boot
+on disk
+.Dq sd0 :
+.Dl Ic sgivol -r boot /tmp/boot sd0
+.Pp
+To copy a local file
+.Pa /usr/mdec/ip2xboot
+to the volume header as
+.Pa boot
+on disk
+.Dq sd0 :
+.Dl Ic sgivol -w boot /usr/mdec/ip2xboot sd0
+.Pp
+To delete the existing file
+.Pa boot
+from the volume header on disk
+.Dq sd0 :
+.Dl Ic sgivol -d boot sd0
+.Pp
+To move (rename) an existing file
+.Pa file1
+to
+.Pa file2
+in the volume header on disk
+.Dq sd0 :
+.Dl Ic sgivol -m file1 file2 sd0
+.Pp
+To change partition 0 to type 4 (BSD4.2) beginning at block offset 3200
+and continue for 28000 blocks on disk
+.Dq sd0 :
+.Dl Ic sgivol -p 0 3200 28000 4 sd0
+.Sh SEE ALSO
+.Xr sgimips/boot 8