Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Oct 2004 10:58:54 +0100
From:      Mark Cullen <mark.cullen@dsl.pipex.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Serial console weirdness
Message-ID:  <417E1FDE.3050407@dsl.pipex.com>

next in thread | raw e-mail | index | archive | help
Ok, I am having a bit of trouble setting up a serial console login. The 
cable is attached to com1, heres my /etc/ttys

# If console is marked "insecure", then init will ask for the root password
# when going to single-user mode.
console none                            unknown off secure
#
ttyv0   "/usr/libexec/getty Pc"         cons25  on  secure
# Virtual terminals
ttyv1   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv2   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv3   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv4   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv5   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv6   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv7   "/usr/libexec/getty Pc"         cons25  on  secure
ttyv8   "/usr/X11R6/bin/xdm -nodaemon"  xterm   off secure
# Serial terminals
# The 'dialup' keyword identifies dialin lines to login, fingerd etc.
ttyd0   "/usr/libexec/getty std.115200" dialup  on  secure
ttyd1   "/usr/libexec/getty std.9600"   dialup  off secure
ttyd2   "/usr/libexec/getty std.9600"   dialup  off secure
ttyd3   "/usr/libexec/getty std.9600"   dialup  off secure
# Dumb console
dcons   "/usr/libexec/getty std.9600"   vt100   off secure

As you can see I have set ttyd0 to on (and adjusted the speed, but it 
was the same on 9600 to0)

Now, my problem is that when I do a kill -HUP 1 nothing happens; Well, I 
am sure something happens, it certainly doesn't start getty on that 
serial port though! However(!) when I start getty manually on that port:

/usr/libexec/getty std.9600 ttyd0

It promptly goes into the background and on my other machine I get the 
login prompt and all is well (until I logout as getty isn't being 
respawned). I didn't see anything logged as to why it's not working.

I will mention that I yanked the (very very broken) graphics card out of 
that machine, so there's no ttyv's. Do I need to make the serial console 
my ... console/display for getty to start working again perhaps?

Any help would be much appreciated.
-- 
Internet Explorer? Try FireFox at http://www.mozilla.org/products/firefox/
Outlook Express? Try ThunderBird at 
http://www.mozilla.org/products/thunderbird/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?417E1FDE.3050407>