From owner-freebsd-proliant@FreeBSD.ORG Mon Oct 15 16:50:02 2007 Return-Path: Delivered-To: freebsd-proliant@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B087416A418 for ; Mon, 15 Oct 2007 16:50:02 +0000 (UTC) (envelope-from anders@FreeBSD.org) Received: from fupp.net (totem.fix.no [80.91.36.20]) by mx1.freebsd.org (Postfix) with ESMTP id 517C413C4A3 for ; Mon, 15 Oct 2007 16:50:01 +0000 (UTC) (envelope-from anders@FreeBSD.org) Received: from localhost (totem.fix.no [80.91.36.20]) by fupp.net (Postfix) with ESMTP id 0D4B48D992B; Mon, 15 Oct 2007 18:50:00 +0200 (CEST) Received: from fupp.net ([80.91.36.20]) by localhost (totem.fix.no [80.91.36.20]) (amavisd-new, port 10024) with LMTP id Az19xfGNAIwR; Mon, 15 Oct 2007 18:49:59 +0200 (CEST) Received: by fupp.net (Postfix, from userid 1000) id 4789D8D992A; Mon, 15 Oct 2007 18:49:59 +0200 (CEST) Date: Mon, 15 Oct 2007 18:49:59 +0200 From: Anders Nordby To: jmc Message-ID: <20071015164959.GA76455@fupp.net> References: <20070522133120.GA80289@fupp.net> <6863f0c90705220736q7f523910pd1f340cd67f3b90f@mail.gmail.com> <20071010102540.GA17495@fupp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071010102540.GA17495@fupp.net> X-PGP-Key: http://anders.fix.no/pgp/ X-PGP-Key-FingerPrint: 1E0F C53C D8DF 6A8F EAAD 19C5 D12A BC9F 0083 5956 User-Agent: Mutt/1.5.11 Cc: freebsd-proliant@FreeBSD.org Subject: Re: Using Virtual Serial Port on COM1 X-BeenThere: freebsd-proliant@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion of FreeBSD on HP ProLiant server platforms." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2007 16:50:02 -0000 Hi, FWIW, if I disable the embedded serial port, and set the virtual serial port to COM1, this setup works. Which is fine, for most machines, except the odd cases where I like to use the serial port and log output over time (I prefer that instead of VSP then). The BIOS changes needed: rbsu> SET CONFIG EMBEDDED SERIAL PORT 4 Embedded Serial Port 1|COM 1; IRQ4; IO: 3F8h-3FFh 2|COM 2; IRQ3; IO: 2F8h-2FFh 3|COM 3; IRQ5; IO: 3E8h-3EFh 4|Disabled <= rbsu> SET CONFIG VIRTUAL SERIAL PORT 1 Virtual Serial Port 1|COM 1; IRQ4; IO: 3F8h-3FFh <= 2|COM 2; IRQ3; IO: 2F8h-2FFh 3|COM 3; IRQ5; IO: 3E8h-3EFh 4|Disabled rbsu> SET CONFIG BIOS SERIAL CONSOLE PORT 3 BIOS Serial Console Port 1|Auto 2|Disabled 3|COM 1; IRQ4; IO: 3F8h-3FFh <= 4|COM 2; IRQ3; IO: 2F8h-2FFh rbsu> SET CONFIG BIOS SERIAL CONSOLE BAUD RATE 9600 BIOS Serial Console Baud Rate 1|9600 <= 2|19200 3|57600 4|115200 Bye, Anders. On Wed, Oct 10, 2007 at 12:25:40PM +0200, Anders Nordby wrote: > I tried this again, and it is only partly working. > > First, I: > > 1) Set in the BIOS: > > SET CONFIG EMS CONSOLE 1 (=> DISABLED) > SET CONFIG EMBEDDED SERIAL PORT 2 (=> COM2) > SET CONFIG VIRTUAL SERIAL PORT 1 (=> COM1) > SET CONFIG BIOS SERIAL CONSOLE BAUD RATE 9600 > SET CONFIG BIOS SERIAL CONSOLE PORT 3 (=> COM2) > > 2) Enable ttyd0 in /etc/ttys with vt100 emulation: > > ttyd0 "/usr/libexec/getty std.9600" vt100 on secure > > 3) Set the boot loader to use serial port: > > echo '-h' >/boot.config > > Then I get the BIOS, the bootloader and the kernel output. > > However, once booted, the system then only sees one serial port: > > root@cache12:/etc# grep ^sio /var/run/dmesg.boot > sio0: configured irq 3 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: configured irq 3 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 > sio0: type 16550A, console > sio0: [FILTER] > > It does not give me a login prompt, instead it gives that on the > physical serial port! I want everything to be on the vsp. > > Enabling the EMS console on either port did not help. You can download > acpidump -dt output from http://anders.fupp.net/test/acpidump-vsp-com1.txt. > > Any clues? > > On Tue, May 22, 2007 at 09:36:03AM -0500, jmc wrote: > > It looks like the VSP is not getting described in ACPI when configured > > the way you have it. Have you tried Enabling EMS Console? Perhaps > > that will cause VSP to be enabled in ACPI. > > > > On 5/22/07, Anders Nordby wrote: > > >Hi, > > > > > >To ease the configuration of the Virtual Serial Port, I was thinking the > > >best way to do it was to set up VSP on COM1, and have the external > > >serial port be COM2. In rbsu (this is on a DL 360 G5), I set this: > > > > > >rbsu> SHOW CONFIG SCRIPT > > >(..) > > >SET CONFIG Embedded Serial Port COM 2; IRQ3; IO: 2F8h-2FFh > > >SET CONFIG Virtual Serial Port COM 1; IRQ4; IO: 3F8h-3FFh > > >SET CONFIG BIOS Serial Console Port COM 1; IRQ4; IO: 3F8h-3FFh > > >SET CONFIG BIOS Serial Console Baud Rate 9600 > > >SET CONFIG EMS Console Disabled > > > > > >Then, I only need to add a /boot.config with the -h option, to boot with > > >a serial console. > > > > > >With this setup, the boot loader and kernel shows the output on the VSP > > >just fine. The terminal on ttyd0 does not show up however, I get no > > >login: prompt. In dmesg.boot, there is only: > > > > > >sio0: port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 > > > > > >How come the VSP COM1 port on 3f8 is not found? Did anyone run into > > >this? > > > > > >If I set up VSP on COM2 as is the standard thing to do, everything works > > >fine. But then I have to recompile the boot loader (eeeew!). > > > > > >Cheers, > > > > > >-- > > >Anders. > > >_______________________________________________ > > >freebsd-proliant@freebsd.org mailing list > > >http://lists.freebsd.org/mailman/listinfo/freebsd-proliant > > >To unsubscribe, send any mail to "freebsd-proliant-unsubscribe@freebsd.org" > > > > > > -- > Anders. > _______________________________________________ > freebsd-proliant@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-proliant > To unsubscribe, send any mail to "freebsd-proliant-unsubscribe@freebsd.org" -- Anders.