Main index | Section 8 | Options |
The
dconschat
utility and the
dcons(4)
driver communicate using 2 ports, one for the console port and another
for remote
gdb(1)
port.
Users are supposed to access
dconschat
using TTY,
telnet(1)
and
gdb(1).
You can specify listen ports for console and
gdb(1)
port using the
Typed characters are normally transmitted directly to dcons(4). A escape character (the default is ‘~’ ) appearing as the first character of a line is an escape signal; the following are recognized:
~. | Drop the connection and exit. |
~^G | Invoke kgdb on the terminal on which dconschat is running. |
~^R | Reset the target over FireWire if a reset address is registered in Configuration ROM. |
~^Z | Suspend the dconschat process. |
The following options are supported.
| |
Translate Ctrl-C to ALT_BREAK (CR + ‘~’ + Ctrl-B) on gdb(1) port. | |
| |
Replay old buffer on connection. | |
| |
Verbose debug output.
Multiple
| |
| |
Listen on a wildcard address rather than localhost. | |
| |
Read-only. Do not write anything to the dcons(4) buffer. | |
| |
Enable ad-hoc workaround for the TELNET protocol to remove unnecessary byte sequences. It should be set when you access dconschat using telnet(1). | |
| |
One-shot.
Read available buffer, then exit.
This implies the
| |
| |
Specify escape character. The default is '~'. | |
| |
Specify polling rate. The default value is 100. | |
| |
Specify the console port. The default value is 0 (stdin/stdout). | |
| |
Specify gdb(1) port. The default value is -1 (disabled). | |
| |
Specify core file. | |
| |
Specify system file such as /boot/kernel/kernel. | |
| |
Specify the 64-bit extended unique identifier of the target, and use FireWire to access remote dcons(4). | |
| |
Specify the physical I/O address of the dcons(4) buffer. See dcons(4) for details. If this option is not specified, dconschat tries to get the address from the Configuration ROM on the target. You are supposed to enable dcons_crom(4) on the target to omit this option. | |
| |
Specify FireWire bus number. The default is 0. | |
/dev/fwmem0.0
/dev/mem /dev/kmem | |
# fwcontrol 2 devices (info_len=2) node EUI64 status 1 77-66-55-44-33-22-11-00 0 0 00-11-22-33-44-55-66-77 1
The EUI64 does not change unless you change the hardware as the ethernet address.
Now we can run dconschat.
# dconschat -br -G 12345 -t 00-11-22-33-44-55-66-77
You will get console output of the target and login prompt if a getty(8) is running on dcons(4). You can break to DDB with ALT_BREAK (CR + ‘~’ + Ctrl-B) if DDB and ALT_BREAK_TO_DEBUGGER are enabled in the target kernel. To quit the session, type CR + ‘~’ + ‘amp;.’ in the console port.
Using gdb(1) port is almost the same as remote gdb(1) over serial line except using TCP/IP instead of /dev/cu*. See On-line Kernel Debugging Using Remote GDB section of The FreeBSD Developers Handbook and gdb(4) for details.
% gdb -k kernel.debug (kgdb) target remote :12345
Once
gdb(1)
is attached and you specified the
The following command gets the console log from the crash dump:
# dconschat -1 -M vmcore.0 -N kernel.0
If you want access to the console using telnet(1), try the following:
# dconschat -rTC 5555 & # telnet localhost 5555
You may want to keep logging console output of several machines. conserver-com in the Ports collection may help you. Insert the following lines in conserver.cf:
console local { master localhost; type exec; exec /usr/sbin/dconschat -rh 25; } console remote { master localhost; type exec; exec /usr/sbin/dconschat -rh 25 -t 00-11-22-33-44-55-66-77; }
DCONSCHAT (8) | February 11, 2003 |
Main index | Section 8 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology. | ” |
— The Unix Haters' handbook |