From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 18 09:57:43 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DADC216A4CE for ; Tue, 18 Nov 2003 09:57:43 -0800 (PST) Received: from mail.x123.info (165.Red-80-37-224.pooles.rima-tde.net [80.37.224.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83F3543FBF for ; Tue, 18 Nov 2003 09:57:41 -0800 (PST) (envelope-from esn@x123.info) Received: from x123.info (wlani.x123.info [192.168.1.4]) by mail.x123.info (Postfix) with ESMTP id DB6741707F for ; Tue, 18 Nov 2003 18:56:35 +0100 (CET) Date: Tue, 18 Nov 2003 18:56:56 +0100 From: "Sebastian Yepes F. [ESN]" To: freebsd-hackers@freebsd.org Message-Id: <20031118185656.3407a628.esn@x123.info> In-Reply-To: References: X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: console redirection to serial in Freebsd 5.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2003 17:57:44 -0000 On Tue, 18 Nov 2003 12:00:33 -0500 Loh John Wu wrote: > So I have a fresh install of FreeBSD 5.1 from a CD (ISO). > > Now I'm trying to turn on console redirection in my image, but I can't seem > to get it to work properly. > > I read the article on turning on console redirection at > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setu > p.html > > but I think that doc was geared towards a 4.X release as it says that > specific sio options > need to be set in the kernel config file. > > However, reading the man page on the sio driver in 5.1-release man pages at > > http://www.freebsd.org/cgi/man.cgi?query=sio&apropos=0&sektion=0&manpath=Fre > eBSD+5.1-RELEASE&format=html > > it seems that we just need to set those configs that used to be in the > kernel conf file in 4.7 in the > /boot/devices.hints file. > > So I've set these options in the hints file to turn on the serial > redirection with the flag 0x90 > > hint.sio.0.at="isa" > hint.sio.0.port="0x3F8" > hint.sio.0.flags="0x90" > hint.sio.0.irq="4" > hint.sio.1.at="isa" > hint.sio.1.port="0x2F8" > hint.sio.1.irq="3" > hint.sio.2.at="isa" > hint.sio.2.disabled="1" > hint.sio.2.port="0x3E8" > hint.sio.2.irq="5" > hint.sio.3.at="isa" > hint.sio.3.disabled="1" > hint.sio.3.port="0x2E8" > hint.sio.3.irq="9" > > I've also set in the /boot.config file the -P flag to > set the console to the serial console in the presence of a keyboard. > > and I've changed /etc/ttys to allow for the ttyd0 as well. > > I am using the generic FreeBSD 5.1 kernel with the generic 5.1 kernel config > options, > but from what I read, I think I can still enable serial console redirection > with the generic kernel. > Any ideas as to what I might be missing to have the redirection to teh > serial console. > > Thanks, > John > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" echo "-h" >/boot.conf and you well have serial... -- if (Better You Treat Them) { return "Worst You Get Treated"; } I have a dream that one day this nation will rise up and live out the true meaning of its creed.. (Martin Luther King) /* FingerPrint: 0D42 F870 F650 6B86 CA9E E199 A57D 3824 F8AA A934 */