Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 1999 22:34:00 -0700
From:      Doug <Doug@gorean.org>
To:        cjclark@home.com
Cc:        skalir scalar <skalir@hotmail.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: serial cable login
Message-ID:  <37E9BBC8.EE9AF49A@gorean.org>
References:  <199909230324.XAA30082@cc942873-a.ewndsr1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Crist J. Clark" wrote:
> 
> Doug wrote,

> >       Unfortunately at this time there is no way on -Current or -Stable
> > to get just the tty without first booting with a serial console. IIRC it
> > has something to do with the way the new boot blocks work. Assuming there
> > is no keyboard plugged into the machine you want the tty on, just put '-P'
> > in /boot.config (no 'quotes'), edit the /etc/ttys file as indicated in the
> > handbook and reboot. Your tty will come up after the boot. Meanwhile, if
> > you are going to have a serial terminal hooked up anyway, you might as
> > well have the console, it's pretty slick stuff. :)
> 
> Hey, Doug. You contribute a lot on this list and usually give pretty
> good answers, but I just have to say of this response, "What the heck
> are you talking about, dude?"
> 
> The first sentence is Just Plain Wrong. To get the tty alive, you just
> need to edit /etc/ttys and have init re-read it with a 'kill -HUP 1'.

	Thank you for the kind words. I do know that what you are describing is
how it is _supposed_ to work. However I've done numerous new installs of
both -current and -stable in the last two months, and it has been
universally true that merely enabling the tty before booting with an
option that directs output to the serial console (like boot -P) has not
been enough to bring the tty up. In every case I had to reboot with -P
or -h, then the tty came up as advertised. Reporting this problem was on
my list, however till now it was pretty far down there due to about 148
other things being more important right now. 

	You can easily demonstrate this for yourself. Remove all traces of your
serial console settings, like /boot.config, /etc/ttys, /etc/make.conf,
kernel config file, and anything else you might have changed. Then do a
make world, make a new kernel and reboot. Now try bringing up the tty by
simply editing /etc/ttys and hup'ing init. I'd lay money that it won't
work for you till you boot -P. 

Good luck,

Doug
-- 
"My mama told me, my mama said, 'don't cry.' She said, 'you're too young
a man
to have as many women you got.' I looked at my mother dear and didn't
even
crack a smile. I said, 'If women kill me, I don't mind dyin!'" 

    - John Belushi as "Joliet" Jake Blues, "I Don't Know"


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37E9BBC8.EE9AF49A>