| From | Sent On | Attachments |
|---|---|---|
| Anders Nordby | May 22, 2007 1:51 pm | |
| jmc | May 22, 2007 3:02 pm | |
| Anders Nordby | Oct 10, 2007 3:43 am | |
| Anders Nordby | Oct 15, 2007 9:49 am |
| Subject: | Using Virtual Serial Port on COM1 | |
|---|---|---|
| From: | Anders Nordby (and...@FreeBSD.org) | |
| Date: | Oct 15, 2007 9:49:43 am | |
| List: | org.freebsd.freebsd-proliant | |
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: <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 <and...@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.
_______________________________________________ free...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-proliant To unsubscribe, send any mail to "free...@freebsd.org"
-- Anders.
_______________________________________________ free...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-proliant To unsubscribe, send any mail to "free...@freebsd.org"
-- Anders.





