aboutsummaryrefslogtreecommitdiff
path: root/external/opal-prd
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-06-19 11:11:51 +0800
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-19 15:12:57 +1000
commite05dde1bf33d2480dda6c5d7b5a7d9fd054ef79b (patch)
tree9e8f706f989c1e26cc9b9d46d449dcb2a2eca989 /external/opal-prd
parent4c241e9e99b195dc526d597bd5e40fce1f44532f (diff)
downloadskiboot-e05dde1bf33d2480dda6c5d7b5a7d9fd054ef79b.zip
skiboot-e05dde1bf33d2480dda6c5d7b5a7d9fd054ef79b.tar.gz
skiboot-e05dde1bf33d2480dda6c5d7b5a7d9fd054ef79b.tar.bz2
external/opal-prd: Add opal-prd manual page
Add an initial manual page for the opal-prd utility. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/opal-prd')
-rw-r--r--external/opal-prd/Makefile3
-rw-r--r--external/opal-prd/opal-prd.878
2 files changed, 81 insertions, 0 deletions
diff --git a/external/opal-prd/Makefile b/external/opal-prd/Makefile
index 9ccc6f6..433ab71 100644
--- a/external/opal-prd/Makefile
+++ b/external/opal-prd/Makefile
@@ -7,6 +7,8 @@ CPPFLAGS = -I. -I../../include -I../../
prefix = /usr/local/
sbindir = $(prefix)/sbin
+datadir = $(prefix)/share
+mandir = $(datadir)/man
# Use make V=1 for a verbose build.
ifndef V
@@ -71,6 +73,7 @@ test/test_pnor: test/test_pnor.o pnor.o libflash/libflash.o libflash/libffs.o
install: all
install -D opal-prd $(DESTDIR)$(sbindir)/opal-prd
+ install -D -m 0644 opal-prd.8 $(DESTDIR)$(mandir)/man8/opal-prd.8
clean:
$(RM) *.[odsa] opal-prd
diff --git a/external/opal-prd/opal-prd.8 b/external/opal-prd/opal-prd.8
new file mode 100644
index 0000000..f3aa797
--- /dev/null
+++ b/external/opal-prd/opal-prd.8
@@ -0,0 +1,78 @@
+.TH opal-prd 8 ""
+.SH NAME
+opal-prd \- Processor recovery diagnostics daemon for OpenPower hardware
+.SH SYNOPSIS
+.SY opal\-prd
+.OP \-\-debug
+.OP \-\-file <hbrt\-image>
+.OP \-\-pnor <device>
+.OP daemon
+.
+.SY opal\-prd
+.I <command>
+.OP arguments
+.YS
+.SH DESCRIPTION
+\fBopal-prd\fP is a daemon that listens for hardware diagnostic events (by
+listening on the \fI/dev/opal-prd\fP device), and executes firmware-provided
+executable code to handle these events. Only one instance of the daemon
+can be running at a time.
+
+.PP
+If no arguments are provided, or the \fIdaemon\fP command is used, then
+the PRD daemon will be started and will listen for incoming hardware events.
+Generally, this will be run from init as a background service, and not
+be run as a user or with user interaction.
+
+.PP
+\fIopal-prd\fP will log to syslog, using the LOG_DAEMON facility. Messages will
+use the string "opal-prd" for their syslog ident.
+
+.PP
+For debugging, run the daemon with the \fI--debug\fP and \fI--stdio\fP
+options. This will log to stdout (instead of syslog), and enable extra
+debugging information.
+
+.PP
+A running opal-prd daemon will also listen for control messages from
+the user; these are sent using the same \fIopal-prd\fP executable, run
+with the <command> argument:
+
+.RS
+ opal-prd <command> [arguments]
+.RE
+
+.PP
+Note that the daemon must be running in the background here, as a separate
+process.
+
+.PP
+Currently, there's one command available, 'occ', for controling the
+on-chip-controllers. That has 3 possible sub-commands: \fIreset\fP,
+\fIenable\fP, and \fIdisable\fP.
+
+.SH OPTIONS
+.TP
+\fB\-\-debug\fR
+verbose logging for debug information
+.TP
+\fB\-\-pnor\fR DEVICE
+use PNOR MTD device
+.TP
+\fB\-\-file\fR FILE
+use FILE for hostboot runtime code (instead of code
+exported by firmware)
+.TP
+\fB\-\-stdio\fR
+log to stdio, instead of syslog
+
+.SH FILES
+.PD 0
+.B /dev/opal-prd
+.br
+.B /run/opal-prd-control
+.br
+.PD
+
+.SH "SEE ALSO"
+syslog(3)