1 .\" Copyright (c) 2003 Hidetoshi Shimokawa
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
17 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
22 .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23 .\" POSSIBILITY OF SUCH DAMAGE.
33 .Nd user interface to dcons
38 .Op Fl C Ar console_port
45 .Op Fl C Ar console_port
53 utility is designed to provide a way for users to access
55 (dumb console device) on a local or remote system.
64 and interact with a user over tty or TCP/IP.
69 you have to specify target EUI64 address by
77 communicate using 2 port, one for console port and the other for
79 Users are supposed to access
81 using tty, telnet and gdb.
82 You can specify listen ports for console and gdb port by
86 options respectively. The port number 0 has special meaning that
87 current tty(stdin/out) is used instead of TCP/IP.
88 A negative port number will disable the port.
89 To quit dconschat, send a CR + '~' + '.' sequence to the console port
90 or send signal to the process.
96 acts as a slave device and
98 acts as a master device with
101 .Bl -tag -width indent
103 Translate Ctrl-C to ALT_BREAK(CR + '~' + Ctrl-B) on gdb port.
105 Replay old buffer on connection.
107 Verbose debug output. Multiple '-v' increase verbosity.
109 Listen on wildcard address rather than localhost.
111 Read-only. Don't write anything on dcons buffer.
113 Enable ad hoc workaround for telnet protocol to
114 remove unnecessary byte sequences.
115 It should be set when you access dconschat using telnet.
117 One-Shot. Read available buffer then exit. This implies
121 Specify polling rate. The default value is 100.
122 .It Fl C Ar console_port
123 Specify console port. The default value is 0(stdin/stdout).
125 Specify gdb port.. The default value is -1(disabled).
129 Specify system file such as /boot/kernel/kernel.
130 .It Fl t Ar target_eui64
131 Specify the 64bit extended unique identifier of the target and use FireWire to access remote
134 Specify the physical/IO address of the dcons buffer. See
137 If this option is not specified,
139 tries to get the address from the Configuration ROM on the target.
140 You are supposed to enable
142 on the target to omit this option.
144 Specify FireWire bus number. The default is 0.
149 with FireWire for remote
151 you have to specify the eui64 of the target.
152 You can obtain EUI64 by running
155 The first EUI64 is of the host running fwcontrol and others on the
157 .Bd -literal -offset indent
159 2 devices (info_len=2)
161 1 77-66-55-44-33-22-11-00 0
162 0 00-11-22-33-44-55-66-77 1
165 The EUI64 doesn't change unless you change the hardware
166 as the ethernet address.
170 .Bd -literal -offset indent
171 # dconschat -br -G 12345 -t 00-11-22-33-44-55-66-77
174 You'll get console output of the target and login prompt if a getty is
175 running on dcons. You can break to DDB with ALT_BREAK (CR + '~' + Ctrl-B)
176 if DDB and ALT_BREAK_TO_DEBUGGER is enabled in the target kernel.
177 To quit the session, type CR + '~' + '.' in the console port.
179 Using gdb port is almost the same as remote gdb over serial line except
180 using TCP/IP instead of /dev/cu*. See
181 "On-line Kernel Debugging Using Remote GDB"
182 section of The FreeBSD Developers Handbook and
185 .Bd -literal -offset indent
186 % gdb -k kernel.debug
187 (kgdb) target remote :12345
190 Once gdb is attached and you specified '-b' option to dconschat,
191 typing "Ctrl-C" on gdb causes break to debugger.
193 The following command get console log from crash dump:
194 .Bd -literal -offset indent
195 # dconschat -1 -M vmcore.0 -N kernel.0
198 If you want access to the console using telnet, try the following:
199 .Bd -literal -offset indent
200 # dconschat -rTC 5555 &
201 # telnet localhost 5555
204 You may want to keep logging console output of several machines. Conserve-com
205 in the ports collection may help you. Insert the following lines
207 .Bd -literal -offset indent
211 exec /usr/sbin/dconschat -rh 25;
216 exec /usr/sbin/dconschat -rh 25 -t 00-11-22-33-44-55-66-77;
220 .Bl -tag -width indent
238 .An Hidetoshi Shimokawa Aq simokawa@FreeBSD.org
240 This utility is still under development.