Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem in changing serial console speed!

1 view
Skip to first unread message

h bagade

unread,
Nov 27, 2011, 1:07:32 AM11/27/11
to
Hi all,

I want to change serial console speed on freebsd 8.2. I've found out
different way of doing so but none was successful! I've tried the following
ways:

1- change /boot.config: add -S*speed

*2- change /boot/loader.conf: add following lines
boot_multicons="YES"
boot_serial="YES"
comconsole_speed="115200"
console="comconsole,vidconsole"

3- change /etc/ttys as follows:
ttyu0 "/usr/libexec/getty std.115200" vt100 on secure

none of the above methods worked and only changing /etc/makefile had an
effect on serial console speed which is not appropriate.
Is there anything else should be take in to consideration in any of the
ways? What am I missing?

Any comments or hints are really appreciated.
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

claudiu vasadi

unread,
Nov 27, 2011, 7:47:46 AM11/27/11
to
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 ?

CyberLeo Kitsana

unread,
Nov 27, 2011, 1:09:00 PM11/27/11
to
On 11/27/2011 12:07 AM, h bagade wrote:
> Hi all,
>
> I want to change serial console speed on freebsd 8.2. I've found out
> different way of doing so but none was successful! I've tried the following
> ways:
>
> 1- change /boot.config: add -S*speed
>
> *2- change /boot/loader.conf: add following lines
> boot_multicons="YES"
> boot_serial="YES"
> comconsole_speed="115200"
> console="comconsole,vidconsole"
>
> 3- change /etc/ttys as follows:
> ttyu0 "/usr/libexec/getty std.115200" vt100 on secure
>
> none of the above methods worked and only changing /etc/makefile had an
> effect on serial console speed which is not appropriate.
> Is there anything else should be take in to consideration in any of the
> ways? What am I missing?

You have to do all of them.

With my Intel SS4200 NAS boxen (which are headless), I do the following:

----8<----
Set the serial port to 115200 in the bios and disable console
redirection after boot.

Add to /boot.config to set boot block serial speed:
-h -S115200

Add to loader.conf to set /loader serial speed:
console="comconsole"
conconsole_speed="115200"

Edit /etc/ttys to set serial login speed:
ttyu0 "/usr/libexec/getty std.115200" vt100 on secure
----8<----

This is sufficient to completely replace the emulated VGA with native
serial output across all phases of the boot sequence, from the boot
block through /loader, kernel and startup messages, all the way to login.

Some changes may be necessary if you intend to use a serial port other
than 0, or if you wish to have both serial and VGA consoles available.

--
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<Cybe...@CyberLeo.Net>

Furry Peace! - http://wwww.fur.com/peace/

Fritz Wuehler

unread,
Nov 28, 2011, 1:21:55 AM11/28/11
to
> 1- change /boot.config: add -S*speed
>
> *2- change /boot/loader.conf: add following lines
> boot_multicons="YES"
> boot_serial="YES"
> comconsole_speed="115200"
> console="comconsole,vidconsole"
>
> 3- change /etc/ttys as follows:
> ttyu0 "/usr/libexec/getty std.115200" vt100 on secure
>
> none of the above methods worked and only changing /etc/makefile had an
> effect on serial console speed which is not appropriate.
> Is there anything else should be take in to consideration in any of the
> ways? What am I missing?

I don't know but I do know a real VT100 won't run at 115,200 unless you drop
it out of an airplane. Are you using a physical terminal or an emulator? If
an emulator you often have to match up the emulator speed and parity
settings etc. to the host settings. Alas my Sun boxes only run at 9,800 over
serial even though minicom itself could do alot more.

Chip Camden

unread,
Nov 28, 2011, 1:49:51 PM11/28/11
to
Quoth Fritz Wuehler on Monday, 28 November 2011:
>
> I don't know but I do know a real VT100 won't run at 115,200 unless you drop
> it out of an airplane. Are you using a physical terminal or an emulator? If
> an emulator you often have to match up the emulator speed and parity
> settings etc. to the host settings. Alas my Sun boxes only run at 9,800 over
> serial even though minicom itself could do alot more.
>
Sorry for the OT reply, but this made me laugh out loud. Having been
shackled to a real VT100 for years, the image of dropping one from an
airplane is full of win.

--
.O. | Sterling (Chip) Camden | http://camdensoftware.com
..O | ster...@camdensoftware.com | http://chipsquips.com
OOO | 2048R/D6DBAF91 | http://chipstips.com
0 new messages