View Single Post
  #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

Michael

Quote:
# 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.

Quote:
# 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.
----------------------------------------------------
root <<<< IF I PRESS ENTER HERE INSTEAD OF TYPING "root"
Password:
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
logout

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

login:
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
-extproc
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