2003-10-24 15:44:10 +00:00
|
|
|
.\" Copyright (c) 2003 Hidetoshi Shimokawa
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
.\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
|
|
|
|
.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
|
|
.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2008-01-26 06:50:14 +00:00
|
|
|
.Dd January 26, 2008
|
2003-10-24 15:44:10 +00:00
|
|
|
.Dt DCONS 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm dcons
|
|
|
|
.Nd dumb console device driver
|
|
|
|
.Sh SYNOPSIS
|
2005-11-18 10:56:28 +00:00
|
|
|
To compile this driver into the kernel,
|
2005-10-07 06:43:04 +00:00
|
|
|
place the following lines in your kernel configuration file:
|
|
|
|
.Bd -ragged -offset indent
|
|
|
|
.Cd "options GDB"
|
|
|
|
.Cd "device firewire"
|
|
|
|
.Cd "device dcons"
|
|
|
|
.Ed
|
2003-10-24 15:44:10 +00:00
|
|
|
.Pp
|
2005-11-18 10:56:28 +00:00
|
|
|
Alternatively, to load the driver as a module at boot time,
|
2005-10-07 06:43:04 +00:00
|
|
|
place the following line in your kernel configuration file:
|
|
|
|
.Bd -ragged -offset indent
|
|
|
|
.Cd "options GDB"
|
|
|
|
.Ed
|
2003-10-24 15:44:10 +00:00
|
|
|
.Pp
|
2005-10-07 06:43:04 +00:00
|
|
|
and in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -ragged -offset indent
|
|
|
|
dcons_load="YES"
|
|
|
|
.Ed
|
2003-10-24 15:44:10 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2003-12-27 15:14:58 +00:00
|
|
|
device is a simple console device which just reads from and writes to
|
2004-06-17 19:51:17 +00:00
|
|
|
an allocated buffer for input and output respectively.
|
2003-12-27 15:14:58 +00:00
|
|
|
It is of no use by itself and it is supposed that the buffer is accessed
|
2003-10-24 15:44:10 +00:00
|
|
|
via a bus like
|
2003-12-24 12:58:35 +00:00
|
|
|
.Xr firewire 4
|
2003-10-28 01:31:50 +00:00
|
|
|
or
|
|
|
|
.Xr kvm 3
|
2003-10-24 15:44:10 +00:00
|
|
|
for interaction.
|
|
|
|
.Pp
|
|
|
|
The buffer consists of 4 channels.
|
2004-06-17 19:51:17 +00:00
|
|
|
There are 2 ports, one for the console TTY and another is GDB port,
|
|
|
|
then each port has an input channel and an output channel.
|
2005-01-21 08:36:40 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It Pa /dev/dcons
|
|
|
|
.It Pa /etc/ttys
|
|
|
|
.El
|
2004-06-17 19:51:17 +00:00
|
|
|
.Sh EXAMPLES
|
2003-10-24 15:44:10 +00:00
|
|
|
If you want to run
|
|
|
|
.Xr getty 8
|
2004-06-17 19:51:17 +00:00
|
|
|
on
|
|
|
|
.Nm ,
|
|
|
|
insert the following line into
|
2005-01-21 10:35:40 +00:00
|
|
|
.Xr ttys 5
|
2004-06-17 19:51:17 +00:00
|
|
|
and send a
|
|
|
|
.Dv HUP
|
|
|
|
signal to
|
2003-10-24 15:44:10 +00:00
|
|
|
.Xr init 8
|
2004-06-17 19:51:17 +00:00
|
|
|
using
|
2003-10-24 15:44:10 +00:00
|
|
|
.Xr kill 1 .
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
dcons "/usr/libexec/getty std.9600" vt100 on secure
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2003-12-27 15:14:58 +00:00
|
|
|
Once the
|
2005-01-21 10:35:40 +00:00
|
|
|
.Xr fwohci 4
|
2003-10-24 15:44:10 +00:00
|
|
|
device is initialized to allow physical access,
|
2004-06-17 19:51:17 +00:00
|
|
|
the buffer can be accessed from another host via a
|
|
|
|
.Xr firewire 4
|
|
|
|
bus using the
|
2003-10-28 01:31:50 +00:00
|
|
|
.Xr dconschat 8
|
2004-06-17 19:51:17 +00:00
|
|
|
application.
|
|
|
|
See
|
2003-10-28 01:31:50 +00:00
|
|
|
.Xr dconschat 8
|
2003-10-24 15:44:10 +00:00
|
|
|
for more details.
|
2008-01-26 06:50:14 +00:00
|
|
|
.Pp
|
|
|
|
If you want to use
|
|
|
|
.Xr dcons 4
|
|
|
|
as a
|
|
|
|
.Xr gdb 1
|
|
|
|
port, add the following line into
|
|
|
|
.Xr loader.conf 5
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
dcons_gdb="1"
|
|
|
|
.Ed
|
2003-10-24 15:44:10 +00:00
|
|
|
.Sh SEE ALSO
|
2003-10-28 01:31:50 +00:00
|
|
|
.Xr dcons_crom 4 ,
|
2003-10-24 15:44:10 +00:00
|
|
|
.Xr ddb 4 ,
|
|
|
|
.Xr firewire 4 ,
|
|
|
|
.Xr fwohci 4 ,
|
2008-01-26 06:50:14 +00:00
|
|
|
.Xr gdb 4 ,
|
2003-12-27 15:14:58 +00:00
|
|
|
.Xr ttys 5 ,
|
2006-03-20 17:10:09 +00:00
|
|
|
.Xr conscontrol 8 ,
|
2003-10-28 01:31:50 +00:00
|
|
|
.Xr dconschat 8 ,
|
2006-03-20 17:10:09 +00:00
|
|
|
.Xr fwcontrol 8
|
2003-10-24 15:44:10 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Hidetoshi Shimokawa Aq simokawa@FreeBSD.org
|
|
|
|
.Sh BUGS
|
2004-06-17 19:51:17 +00:00
|
|
|
This driver is
|
|
|
|
.Ud .
|