diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /man/8/rdbgsrv | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'man/8/rdbgsrv')
| -rw-r--r-- | man/8/rdbgsrv | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/man/8/rdbgsrv b/man/8/rdbgsrv new file mode 100644 index 00000000..139cd4c5 --- /dev/null +++ b/man/8/rdbgsrv @@ -0,0 +1,111 @@ +.TH RDBGSRV 8 +.SH NAME +rdbgsrv \- remote debug server +.SH SYNOPSIS +.B "bind -b '#t' /dev" +.PP +.B auxi/rdbgsrv +[ +.BI \-d n +] [ +.BI \-s baud +] [ +.BI \-f dev +] +.I mountpoint +.SH DESCRIPTION +.I Rdbgsrv +is intended for use with versions of +.IR sboot (10.8) +that do not use +.IR styxmon (10.8), +but serve Styx directly. +.I Rdbgsrv +interposes itself between +.I dev +(default: +.BR /dev/eia0 ) +and +.I mountpoint +to convey Styx messages via the serial port to and from a Styx server program +running on a board running native Inferno. +The +.B \-f +option specifies the serial device; the default is +.BR /dev/eia0 . +The +.B \-s +option sets the line speed; the default is 38400 baud. +The +.B \-d +option selects debugging options by a bit mask: +1, print trace of Styx message types; +2, print actual Styx message contents. +.PP +The monitor program on the board must be started first. +.I Rdbgsrv +writes the two byte message +.BR go , +and keeps reading the device until it sees the reply +.BR ok . +It then attempts to mount the exported name space, and +copies Styx messages to and from the device. +.PP +Once +.I rdbgsrv +is running, several device files provided by the program +will be visible at +.IR mountpoint . +The files include flash partitions, a console file, and a file representing +temporary storage in the device's memory: +.TF sbootconsole +.PD +.TP +.B sbootconsole +Accepts +.IR sboot (10.8) +commands. +When read, it returns output from recent commands. +.TP +.B tmp +Temporary memory buffer that accepts data to be copied to the flash. +.TP +.BI F! partition +Represents the flash partition with the name +.IR partition . +.PP +The following example +Inferno +session on the host mounts the serial device on +.BR /n/rdbg , +and sends commands by writing to +.BR /n/rdbg/sbootconsole . +.IP +.EX +% bind -b '#t' /dev # ensure /dev/eia0 is visible +% auxi/rdbgsrv /n/rdbg +% ls /n/rdbg +/n/rdbg/F!kern +/n/rdbg/F!fs +/n/rdbg/sbootconsole +/n/rdbg/tmp +% cp /os/sa1100/isword.p9.gz /n/rdbg/F!kern # copy kernel +% cp /tmp/fs.tgz /n/rdbg/tmp # copy compressed file system +% echo c/u T! F!fs >/n/rdbg/sbootconsole +% cat /n/rdbg/sbootconsole +% echo P >/n/rdbg/sbootconsole +% echo b F!kern >/n/rdbg/sbootconsole # boot from F!kern +.EE +.PP +Copying a file containing +.I sboot +commands to +.B /n/rdbg/sbootconsole +has the same effect as writing the individual commands to the console. +.SH SOURCE +.B /appl/auxi/rdbgsrv.b +.SH SEE ALSO +.IR sboot (10.8), +.IR styxmon (10.8) +.SH BUGS +No error recovery is applied, let alone error correction. |
