From owner-freebsd-questions@FreeBSD.ORG Sat Jan 31 19:09:43 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 44E1D10656FB for ; Sat, 31 Jan 2009 19:09:43 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id EB3B98FC1D for ; Sat, 31 Jan 2009 19:09:42 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so373643yxb.13 for ; Sat, 31 Jan 2009 11:09:42 -0800 (PST) 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:content-type; bh=79E8dOydB5UyPxmr5OBsyZlFdHiRwoR5OghHM7wL3Kg=; b=OQDjOJE3tCl2VzWOOQnLksxX+2USBYUDcKRMoRwHc44ExG8g4sTLKiWmjU9jhcstL/ iVKVIfC8TLVYsaCjTilg648kZdu7YtA89XWWyNjeyj681V5Ief3FIwwA9TEK10LWVX2m xKHa9saRxitsOEjLw9E/Cb+YTkl75TV/cA6KE= 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 :content-type; b=lCD1LuDmq9w9je/9/ZiYjV1CbpB3QiKYYN/HB/8A8IKsB79f5f/+f3kP95vPJulsax ExUbgXl/GXrqzqu9seKd6nT+SmcaFgJd5429j903Y9SUoTMioJZ2AU++4y/tcT4SlSGY +tjK35SRgI09o5czHQEG+wW1QZr45LdUmBU6I= MIME-Version: 1.0 Received: by 10.231.30.198 with SMTP id v6mr326326ibc.26.1233428968760; Sat, 31 Jan 2009 11:09:28 -0800 (PST) In-Reply-To: <20090130172843.GB89911@saturn.pcs.ms> References: <20090130172843.GB89911@saturn.pcs.ms> Date: Sat, 31 Jan 2009 12:09:28 -0700 Message-ID: From: Tim Judd To: Martin Schweizer , freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Using Serial Port Other Than sio0 for the Console 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, 31 Jan 2009 19:09:43 -0000 On Fri, Jan 30, 2009 at 10:28 AM, Martin Schweizer wrote: > Hello > > I want to use sio1 for console access. I read chapter 26.6 in the handbook > and did the following: > > /boot.config: > -P > > /boot/device.hints: > [snip] > hint.sio.0.at="isa" > hint.sio.0.port="0x3F8" > ### hint.sio.0.flags="0x10" > hint.sio.0.irq="4" > hint.sio.1.at="isa" > hint.sio.1.port="0x2F8" > hint.sio.1.flags="0x10" > hint.sio.1.irq="3" > [snip] > > My custom kernel: > [snip] > device sio > [snip] > > /var/run/dmesg.boot: > [snip] > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0 > sio0: type 16550A > sio0: [FILTER] > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on > acpi0 > sio1: type 16550A, console > sio1: [FILTER] > [snip] > > /etc/ttys: > [snip] > ttyd0 "/usr/libexec/getty std.9600" vt100 on secure > ttyd1 "/usr/libexec/getty std.9600" vt100 on secure > ttyd2 "/usr/libexec/getty std.9600" vt100 on secure > ttyd3 "/usr/libexec/getty std.9600" vt100 on secure > [snip] > > The baud rate etc. are correct as well (the standard settings). > > The problem is I get no connection. I'm sure that my terminal works correct > because I can connect other FreeBSD sever over the serial cable but not the > above. > Any ideas? > > Kind regards, > > -- > > Martin Schweizer > > > PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon > Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; > public key : http://www.pc-service.ch/pgp/public_key.asc; > fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; > Surprised nobody's really responded. Enabling serial logins on ttyd1 (COM2 in Microsoft terms) is on -- it's defined in your ttys. The guaranteed "enabling" is to restart, but I've heard that sigHUP init will reread ttys and enable logins (but I hadn't got that to work yet). Enabling serial as your console output (in terms of the boot process and everything) should be, if available, enabled in /boot/loader.conf There doesn't seem to be a setting to enable COM2 as your console device, the only options (by reading through /boot/defaults/loader.conf) is to enable comconsole, which runs over COM1 You would likely have to hack the bootloader files in source and reinstall to get that kind of functionality. Does this help? let me know if you want more help. I like enabling serial console for the fact that you can get into out-of-bounds management this way easily. --Tim