Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Nov 2011 13:47:46 +0100
From:      claudiu vasadi <claudiu.vasadi@gmail.com>
To:        h bagade <bagadeh@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: problem in changing serial console speed!
Message-ID:  <CAM-i3iib2Loq4xvW6YEmGT5xnuFJcbyxmWdJaqsB4AiRBPzq4w@mail.gmail.com>
In-Reply-To: <CAARSjE3aBYCCJdsvyBozo3Tcmdb+vq1zmYhtX6TBSKMWaXBbvA@mail.gmail.com>
References:  <CAARSjE3aBYCCJdsvyBozo3Tcmdb+vq1zmYhtX6TBSKMWaXBbvA@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Hi,

So basically you need the following:

1) Set the baud rate and the com interface in BIOS (ex: com1 and baud rate
19200)

2) /boot/loader.conf:
ipmi_load="YES"
3) reboot

4)
- use "dmesg | grep uart" and you will something like this:
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
uart0: console (19200,n,8,1)

Then, change   /boot/loader.conf to reflect the serial interface found by
the OS as ipmi-enabled (PS: if you find "uart1" with dmesg, use "uart1" in
"loader.conf")
# IPMI settings
hint.uart.0.at="isa"               < - use "dmesg"
hint.uart.0.baud="19200"      <- same as in BIOS
hint.uart.0.port="0x3f8"        < - use "dmesg"
hint.uart.0.flags="0x10"        < - use "dmesg"
hint.uart.0.irq="4"                 < - use "dmesg"

console="comconsole,vidconsole"
comconsole_speed="19200"         < - same as in BIOS
boot_multicons="YES"
boot_serial="YES"

5) /etc/ttys
- if you found, for example, uart0 as ipmi-enabled, do the folowing:
ttyu0 "/usr/libexec/getty std.19200" vt100 off secure
- ex for uart1:
ttyu1 "/usr/libexec/getty std.19200" vt100 off secure
- make sure to match the BAUD-rate, it;s important :)

6) /etc/make.conf (you need to rebuild the boot blocks with IPMI-enabled)
# IPMI boot block build options
BOOT_COMCONSOLE_PORT=0x3f8
BOOT_COMCONSOLE_SPEED=19200

7) compile new boot-blocks:
cd /usr/src/sys/boot
make clean
make
make install

8) reboot and pray :)

PS: with IPMI-console enabled, I was never able to see anything beyond the
messages that the kernel displays when booting (ex: no "Starting apache.
done" or "Starting ssh. done"). Maybe someone knows a workaround for this ?



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAM-i3iib2Loq4xvW6YEmGT5xnuFJcbyxmWdJaqsB4AiRBPzq4w>