DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st October 2008
PeterSteele PeterSteele is offline
Port Guard
 
Join Date: Jul 2008
Posts: 43
Thanked 0 Times in 0 Posts
Default Setting up the serial console

We have a terminal server hooked up to the serial console ports on our FreeBSD boxes. Everything works, almost. The problem is that when we reboot we want to be able to see the full boot log, including the BIOS and POST sessions. It seems though that the BIOS is running ata different baud rate than what we have configured for ttyd0 (115200). How do we configure the serial console so that everything is set to the same baud rate?
Reply With Quote
  #2   (View Single Post)  
Old 31st October 2008
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Thanked 5 Times in 8 Posts
Default

Add:

comconsole_speed="115200"

to your /boot/loader.conf file. Of course, change the baud rate to what it needs to be :-)

Don't forget to change the baud rate in /etc/ttys too, of course.

Adam
Reply With Quote
  #3   (View Single Post)  
Old 1st November 2008
PeterSteele PeterSteele is offline
Port Guard
 
Join Date: Jul 2008
Posts: 43
Thanked 0 Times in 0 Posts
Default

We already have that entry in loader.conf, as well as the line

ttyd0 "/usr/libexec/getty std.115200" vt100 on secure


in /etc/ttys. We still don't get the boot, just the latter part. None of the BIOS or early boot messages. Maybe the BIOS itself has serial console baud rate settings?
Reply With Quote
  #4   (View Single Post)  
Old 1st November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

how do you expect FreeBSD settings to affect your serial console at boot time, when fbsd ain't even loaded....???
Not possible!!!

Besides, BIOS boot is same every time..... unless some hardware fails, or someone hacks PC guts, without telling you....
you will still notice changes in dmesg, in this case

Last edited by graudeejs; 1st November 2008 at 10:01 AM.
Reply With Quote
  #5   (View Single Post)  
Old 2nd November 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

In order to view the BIOS/POST boot messages, you'll have to have BIOS support for serial consoles. AKA boot redirection, or boot message redirect, and similar in the BIOS. However, then you also need to have a serial console configured before the OS boots, which generally means you need some kind of add-in management card.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #6   (View Single Post)  
Old 3rd November 2008
PeterSteele PeterSteele is offline
Port Guard
 
Join Date: Jul 2008
Posts: 43
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by killasmurf86 View Post
how do you expect FreeBSD settings to affect your serial console at boot time, when fbsd ain't even loaded....???
Not possible!!!

Besides, BIOS boot is same every time..... unless some hardware fails, or someone hacks PC guts, without telling you....
you will still notice changes in dmesg, in this case
You're right, the BIOS has nothing to do with FreeBSD. I did find another FreeBSD option that gives us more of the boot text. We have to put the option

-S115200

in /boot.config, and that lets us see almost all of the FreeBSD boot session. The only thing that we don't see is the actual part that shows when it is loading these parameters, just before it displays the big FreeBSD splash page, but that's technically still in BIOS land. We don't see any of the BIOS boot messages, although I do have the BIOS set to use a serial console at 115200 baud. So I'm not sure what's going on there, but at least I have all of the core FreeBSD text displaying properly at 115200 baud.

Thanks for the replies. We're almost there.
Reply With Quote
  #7   (View Single Post)  
Old 3rd November 2008
mdh's Avatar
mdh mdh is offline
Real Name: Matt D. Harris
FreeBSD 2.2.6 User
 
Join Date: Oct 2008
Location: West Virginia
Posts: 139
Thanked 8 Times in 8 Posts
Default

If the BIOS claims to support it but it isn't working, then you'll probably need to ask your BIOS manufacturer for support.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling a RS-232 Serial Console from a Shell Script ishikawanakano Programming 0 9th January 2009 10:00 PM
Setting up a multi-card serial server dk_netsvil General software and network 14 4th October 2008 01:00 PM
Serial Consoles ddekok FreeBSD General 4 26th June 2008 07:16 PM
getty dies on serial console? michaelk FreeBSD General 9 18th May 2008 08:44 AM
Mounting a second serial hd keyboard112 Other BSD and UNIX/UNIX-like 4 12th May 2008 08:06 AM


All times are GMT. The time now is 07:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick