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.
39 .Op Fl C Ar console_port
46 .Op Fl C Ar console_port
54 utility is designed to provide a way for users to access
56 (dumb console device) on a local or remote system.
59 utility interacts with
65 and interacts with the user over TTY or TCP/IP.
70 you have to specify target EUI64 address using the
78 driver communicate using 2 ports, one for the console port and another
82 Users are supposed to access
88 You can specify listen ports for console and
95 The port number 0 has special meaning that
96 current TTY (stdin/stdout) is used instead of TCP/IP.
97 A negative port number will disable the port.
104 sequence to the console port,
105 or send signal to the process.
111 acts as a slave device and
113 acts as a master device with
115 .Bl -tag -width indent
117 Translate Ctrl-C to ALT_BREAK (CR +
123 Replay old buffer on connection.
125 Verbose debug output.
128 options increase verbosity.
130 Listen on a wildcard address rather than localhost.
133 Do not write anything to the
137 Enable ad-hoc workaround for the TELNET protocol to
138 remove unnecessary byte sequences.
139 It should be set when you access
145 Read available buffer, then exit.
150 Specify polling rate.
151 The default value is 100.
152 .It Fl C Ar console_port
153 Specify the console port.
154 The default value is 0 (stdin/stdout).
159 The default value is \-1 (disabled).
163 Specify system file such as
164 .Pa /boot/kernel/kernel .
165 .It Fl t Ar target_eui64
166 Specify the 64-bit extended unique identifier of the target,
167 and use FireWire to access remote
170 Specify the physical I/O address of the
176 If this option is not specified,
178 tries to get the address from the Configuration ROM on the target.
179 You are supposed to enable
181 on the target to omit this option.
183 Specify FireWire bus number.
187 .Bl -tag -width indent -compact
195 with FireWire for remote
197 you have to specify the EUI64 of the target.
198 You can obtain EUI64 by running
201 The first EUI64 is of the host running
203 and others on the bus follow.
204 .Bd -literal -offset indent
206 2 devices (info_len=2)
208 1 77-66-55-44-33-22-11-00 0
209 0 00-11-22-33-44-55-66-77 1
212 The EUI64 does not change unless you change the hardware
213 as the ethernet address.
217 .Bd -literal -offset indent
218 # dconschat -br -G 12345 -t 00-11-22-33-44-55-66-77
221 You will get console output of the target and login prompt if a
225 You can break to DDB with ALT_BREAK (CR +
231 .Dv ALT_BREAK_TO_DEBUGGER
232 are enabled in the target kernel.
233 To quit the session, type CR +
241 port is almost the same as remote
243 over serial line except
244 using TCP/IP instead of
247 .Sx "On-line Kernel Debugging Using Remote GDB"
249 .%T "The FreeBSD Developers Handbook"
253 .Bd -literal -offset indent
254 % gdb -k kernel.debug
255 (kgdb) target remote :12345
260 is attached and you specified the
266 causes a break to debugger.
268 The following command gets the console log from the crash dump:
269 .Bd -literal -offset indent
270 # dconschat -1 -M vmcore.0 -N kernel.0
273 If you want access to the console using
276 .Bd -literal -offset indent
277 # dconschat -rTC 5555 &
278 # telnet localhost 5555
281 You may want to keep logging console output of several machines.
283 in the Ports collection may help you.
284 Insert the following lines in
286 .Bd -literal -offset indent
290 exec /usr/sbin/dconschat -rh 25;
295 exec /usr/sbin/dconschat -rh 25 -t 00-11-22-33-44-55-66-77;
311 .An Hidetoshi Shimokawa Aq simokawa@FreeBSD.org