From owner-freebsd-questions@FreeBSD.ORG Sun Aug 23 18:25:58 2009 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 21A30106568D for ; Sun, 23 Aug 2009 18:25:58 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-yw0-f202.google.com (mail-yw0-f202.google.com [209.85.211.202]) by mx1.freebsd.org (Postfix) with ESMTP id CF7588FC1F for ; Sun, 23 Aug 2009 18:25:57 +0000 (UTC) Received: by ywh40 with SMTP id 40so2651188ywh.14 for ; Sun, 23 Aug 2009 11:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=i8zphjT1FY73ZPK+j0f/7AXnJbGh2uc4aLk69vn9R9Q=; b=a/4eOkSGwrRdBdjAfEg0hwlrTpTPqT02nX5ZxHx5ngufk/kLJaSRAggYUtHvpnlHtJ vOzvY5HsMLV7KehqeCksxfmLQwJiyicT17VpP2DmwRt6TJb2MO84M9L4ZDahE5KU8KlQ mpIkjlxwejkli1ZbXWp5A3PJSPzWtepLPdHpU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KORIYIgCY05XPix7yhDd7+7ao+jLkQjDdkFoalIp2RvBq/o6IQICbsTDMr8QGmWpDJ s4FY/OWJtb5aAaPSegEolRmp3pzHk5qAfB7bZZ14eToH5ejEIR1ah/DecCwq1urQzJqt FKECpfnxpDnnrOo1ovvG5gs1gr9r48+5NZg5M= MIME-Version: 1.0 Received: by 10.101.88.18 with SMTP id q18mr3716537anl.64.1251051957215; Sun, 23 Aug 2009 11:25:57 -0700 (PDT) In-Reply-To: <2E76B1A5-C7B3-4845-9919-1C9FFC7EDA63@exscape.org> References: <2E76B1A5-C7B3-4845-9919-1C9FFC7EDA63@exscape.org> Date: Sun, 23 Aug 2009 12:25:57 -0600 Message-ID: From: Tim Judd To: Thomas Backman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Serial console trouble: loader and login works, but no kernel messages 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: Sun, 23 Aug 2009 18:25:58 -0000 On 8/23/09, Thomas Backman wrote: > First off: Not subscribed to this list, please make sure to Cc me if > you don't reply directly. :) > > Anyway, I finally got my null modem cable, and plugged in in between a > machine running 8.0-BETA2 and one running WinXP using Hyperterminal. > > My settings: > > /boot/loader.conf: > boot_multicons="YES" > boot_serial="YES" > comconsole_speed="115200" > console="comconsole,vidconsole" > > /etc/ttys: > # Serial terminals > # The 'dialup' keyword identifies dialin lines to login, fingerd etc. > ttyu0 "/usr/libexec/getty std.115200" vt100 on secure > > /boot.config (which is read properly): > -Dh -S115200 > > Anything wrong in the above? > Hyperterminal is set to 115200 bps, 8 bits, no parity, 1 stop bit, and > no flow control (if that's the correct translation to English). > > On the serial console, I go from the screen with the FreeBSD logo, > with single-user options etc. (which works fine), and then nothing, > until a login tty pops up (which also works fine). The main, if not > only, reason I want a serial console is to be able to use it for > single user mode, DDB, and so on. > All kernel messages, and all rc messages are seen only on the graphics > card; the serial console receives nothing but the "/boot.config: - > Dh ...", the logo screen, and then the login screen, during startup > and *nothing* at all during shutdown. Also, I'm able to login and use > the system both via the serial console and via the graphics card/ > keyboard... Is this supposed to be? I'm not complaining, I just got > the impression it was one or the other. > > Any advice on how to get the kernel/rc messages etc. to the serial > console (only or as well)? > > Regards, > Thomas Do you use the VGA/vidconsole at all? A serial-only device (think soekris, ALIX/WRAP boards) that has no VGA will have different requirements than a serial-only device will. Your loader.conf statements are different than mine in the definition that you have more than I do to enable serial. My loader.conf just has one statement: console="comconsole" - to feed ALL bootloaders, kernel probing, rc startup on the serial device. /etc/ttys defines the login lines. Though trial and error, I found when you use a dual-setup: "comconsole,vidconsole", the first one (comconsole) will get rc output, and vidconsole won't. Of course, you're on 8.0 and I don't run BETAs. So the 8.0 BETA might still be having com port oddities, plus I noticed your ttys line is ttyu0, not ttyd0. Did 8.0 change the serial line device? To enable a serial-only device in my setups: /boot/loader.conf: console="comconsole" /boot.config: -D /etc/ttys: # enable serial line, cons25 or vt100, depending if I'm originating from a bsd or windows box. Enabling dual-setups should be just the loader.conf change to dual console. HTH