From owner-freebsd-questions@FreeBSD.ORG Sat Dec 24 12:17:20 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9CED106566B for ; Sat, 24 Dec 2011 12:17:20 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id B089D8FC15 for ; Sat, 24 Dec 2011 12:17:20 +0000 (UTC) Received: by iadj38 with SMTP id j38so19124226iad.13 for ; Sat, 24 Dec 2011 04:17:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=W98AATigUP+MqzXuYhMExv+bgO5WjcHU4F+272EK92U=; b=r5RQSx1KUjk8kwYhMXxAmfBJmiM6SaxbEMpiZAYAvocRerQVtjwZ5cuGrw5DDb/cG+ UoclN0thdP4cn/07OqCuFfLmKPzt4mdsJRFUMl4rB9KiDkm/TEupsLsMxTt8Hy/k1rBw WUUVD1qFw06atP45wPDlXhf8hEppxloR9mVIA= MIME-Version: 1.0 Received: by 10.50.181.197 with SMTP id dy5mr18297732igc.13.1324729040039; Sat, 24 Dec 2011 04:17:20 -0800 (PST) Received: by 10.42.166.201 with HTTP; Sat, 24 Dec 2011 04:17:19 -0800 (PST) In-Reply-To: <4EF59C88.2010202@luckie.org.nz> References: <4EF59C88.2010202@luckie.org.nz> Date: Sat, 24 Dec 2011 07:17:19 -0500 Message-ID: From: Mehmet Erol Sanliturk To: Matthew Luckie Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: serial consoles 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: Sat, 24 Dec 2011 12:17:21 -0000 On Sat, Dec 24, 2011 at 4:34 AM, Matthew Luckie wrote: > Hi > > I'd like to be able to login using a null modem cable to a freebsd server, > from a freebsd laptop. It doesn't need to display boot messages, just > allow me to login after the system has booted. > > I've got a null modem cable connected to my freebsd server, and on the > other end is a USB serial port on my laptop. On the server I've got: > > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > uart0: [FILTER] > > in /etc/ttys on the server: > > ttyu0 "/usr/libexec/getty std.9600" vt100 on secure > > and there is a getty running on that: > > $ ps xa| grep getty > 1825 ?? I 0:00.00 /usr/libexec/getty std.9600 ttyu0 > > On the laptop, I have: > ugen1.2: at usbus1 > uftdi0: on usbus1 > > as well as cuaU0 and ttyU0 entries in /dev. > > However, when I use cu on the laptop: > > sudo cu -l /dev/cuaU0 -s 9600 > > I never get a login prompt. If I press enter, the cursor scrolls down. > Likewise other characters echo back. I'm reasonably sure that I'm > connected to the appropriate com port on the server because if I plug it > into the other com port and press enter, nothing happens. > > It feels to me that I'm missing something basic. Can someone provide me > with some clue? > > Note: I'm reasonably sure the null modem cable and USB device are fine, > I've used them recently on an arm board (gateworks) running freebsd and it > worked fine then. > > Matthew > Perhaps the following pages will be helpful : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serial.html#SERIAL-CABLES-PORTS http://www.freebsddiary.org/serial-console.php Thank you very much . Mehmet Erol Sanliturk