From owner-freebsd-questions@FreeBSD.ORG Thu Sep 14 12:30:26 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C276816A416 for ; Thu, 14 Sep 2006 12:30:26 +0000 (UTC) (envelope-from CQG00620@nifty.ne.jp) Received: from mail.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EF7943D45 for ; Thu, 14 Sep 2006 12:30:25 +0000 (GMT) (envelope-from CQG00620@nifty.ne.jp) Received: from asahi-net.jp (l204142.ppp.asahi-net.or.jp [218.219.204.142]) by mail.asahi-net.or.jp (Postfix) with ESMTP id EE27B1527A; Thu, 14 Sep 2006 21:30:16 +0900 (JST) Date: Thu, 14 Sep 2006 21:30:16 +0900 From: Watanabe Kazuhiro To: freebsd-questions In-Reply-To: <200609141240.14031.jonathan@hst.org.za> References: <200609141240.14031.jonathan@hst.org.za> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/20.7 (i386--freebsd) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Message-Id: <20060914123016.EE27B1527A@mail.asahi-net.or.jp> Cc: Jonathan McKeown Subject: Re: Using PC as serial terminal on running system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2006 12:30:26 -0000 Hi, At Thu, 14 Sep 2006 12:40:13 +0200, Jonathan McKeown wrote: > On Wednesday 13 September 2006 14:59, Jonathan McKeown wrote: > > I'm using my laptop and tip(1) as a serial terminal. This is working well > > when a machine is booted with the laptop connected to its serial port. > > However, I need to be able to connect the laptop to a machine which was > > booted without a serial console. > > > > I've set the ttyd0 line in /etc/ttys and sigHUPed init. The machine is > > still not recognising the presence of the ``serial terminal'' - the > > getty(1) process on the server is not bound to a controlling terminal and > > nothing is appearing in the tip(1) screen on the laptop. > > OK, creating a line in /etc/ttys for cuad0 seems to have worked. Will that > cause problems later? I assume the problem is that the tip(1) process (or > possibly the USB-serial adapter) is not DTRT with respect to carrier. Is > there any other way round this? > > Jonathan Perhaps your serial cable is not a null-modem cable, but an interlink cable. These are similar, but has different pin assignments. The former generates a carrier signal but the latter is not. See the FreeBSD Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serial.html By the way, if a serial port is set to the console, the port is set to CLOCAL mode (see stty(1)). In this mode, getty(8) can output the login prompt to the port without a carrier signal. --- Watanabe Kazuhiro (CQG00620@nifty.ne.jp)