[Skiboot] [PATCH 2/2] external/opal-prd: Add opal-prd manual page

Jeremy Kerr jk at ozlabs.org
Fri Jun 19 13:11:51 AEST 2015

Add an initial manual page for the opal-prd utility.

Signed-off-by: Jeremy Kerr <jk at ozlabs.org>

 external/opal-prd/Makefile   |    3 +
 external/opal-prd/opal-prd.8 |   78 +++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

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
 	$(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 ""
+opal-prd \- Processor recovery diagnostics daemon for OpenPower hardware
+.SY opal\-prd
+.OP \-\-debug
+.OP \-\-file <hbrt\-image>
+.OP \-\-pnor <device>
+.OP daemon
+.SY opal\-prd
+.I <command>
+.OP arguments
+\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.
+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.
+\fIopal-prd\fP will log to syslog, using the LOG_DAEMON facility. Messages will
+use the string "opal-prd" for their syslog ident.
+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.
+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:
+ opal-prd <command> [arguments]
+Note that the daemon must be running in the background here, as a separate
+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.
+verbose logging for debug information
+\fB\-\-pnor\fR DEVICE
+use PNOR MTD device
+\fB\-\-file\fR FILE
+use FILE for hostboot runtime code (instead of code
+exported by firmware)
+log to stdio, instead of syslog
+.PD 0
+.B /dev/opal-prd
+.B /run/opal-prd-control

More information about the Skiboot mailing list