Using Virtual Serial Port on COM1
Anders Nordby
anders at FreeBSD.org
Wed Oct 10 03:43:53 PDT 2007
Hi,
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 at 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: <Standard PC COM port> 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 <anders at freebsd.org> 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: <Standard PC COM port> 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 at freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-proliant
> >To unsubscribe, send any mail to "freebsd-proliant-unsubscribe at freebsd.org"
> >
--
Anders.
More information about the freebsd-proliant
mailing list