Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 13th May 2008
michaelk michaelk is offline
New User
Join Date: May 2008
Posts: 9
Unhappy getty dies on serial console?

Hi Everyone

I have a small but extremely annoying problem.

when connecting to to my freebsd serial console if I hit the <Enter> key then the getty will die?!
(or sometimes hang...and I'm not able not log in anymore )

If I type "root" directly (or any other username) instead I will the get the password prompt and everything works fine.

Once I'm logged in through the serial connection then also everything works fine.

On my linux box if I hit enter I just get the login prompt displayed again.

Anyone having similar problem? Any hints why the getty just dies?
(It's not being restarted by init either I have restart it manually from the command line)

Thanks in advance


# grep ttyd0 /etc/ttys
ttyd0 "/usr/libexec/getty std.9600" vt100 on secure

# ps aux | grep getty
root 75105 0.0 0.2 3156 1068 d0 Is+ 7:59PM 0:00.01 /usr/libexec/getty std.9600 ttyd0
root 1132 0.0 0.2 3156 1068 v0 Is+ 1:08PM 0:00.01 /usr/libexec/getty Pc ttyv0
My freebsd box is connected (using a null modem cable) to a linux box so I can log in to the console using kermit. I've also tested using minicom, putty & securecrt...I get the same behavior.

# kermit -c
Connecting to /dev/ttyS1, speed 9600
Escape character: Ctrl-Q (ASCII 17, DC1): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
Last login: Mon May 12 19:52:06 on ttyd0
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.

FreeBSD 7.0-RELEASE (GENERIC) #0: Sun Feb 24 19:59:52 UTC 2008
[root@itchy ~]# exit

FreeBSD/i386 (itchy.homeip.net) (ttyd0)

Closing /dev/ttyS1...OK

# stty -a
speed 9600 baud; 0 rows; 0 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
brkint -inpck -ignpar -parmrk
oflags: opost onlcr -ocrnl oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl clocal -cstopb -crtscts -dsrflow
-dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U;
lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;

# cat .kermrc
set line /dev/ttyS1
set speed 9600
set terminal bytesize 8
set parity none
set stop-bits 1
set flow-control none
set file type binary
set carrier-watch off
set modem type none
set escape-character ^Q
Reply With Quote

serial console getty

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
init: can't exec getty after power failure mtx FreeBSD General 0 20th January 2009 10:14 AM
Controlling a RS-232 Serial Console from a Shell Script ishikawanakano Programming 0 9th January 2009 10:00 PM
Setting up the serial console PeterSteele FreeBSD General 6 3rd November 2008 04:42 PM
Serial connections JMJ_coder General software and network 9 25th July 2008 03:28 PM
cyrus-sasl2 dies chavez243 FreeBSD Ports and Packages 9 10th May 2008 03:01 PM

All times are GMT. The time now is 08:34 PM.

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