serial console and log-in
Natanael Copa
natanael.copa at gmail.com
Wed Feb 21 10:44:17 UTC 2007
On Wed, 2007-02-21 at 01:04 +0100, Denis Vlasenko wrote:
> On Tuesday 20 February 2007 22:50, akennedy at techmoninc.com wrote:
> >
> > > -------- Original Message --------
> > > Subject: RE: serial console and log-in
> > > From: akennedy at techmoninc.com
> > > Date: Sat, February 17, 2007 2:33 pm
> > > To: Denis Vlasenko <vda.linux at googlemail.com>
> > >
> > > > We should fix init's crazy handling of console and stdio fd's first
> > > > (see my earlier mail today). Not too hard, I just need people who
> > > > are willing to test changes.
> > >
> > > I'll do some testing for you. I can at least test the serial stuff ;).
> > >
> > > Andy
> >
> > Serial console works with
> >
> > ::respawn:-/bin/sh
> >
> > Haven't tested anything else, but I'd guess if that works, so does everything else.
>
> Ok, will apply that patch to svn.
> A bit more tests will be useful.
> Does it work _without_ serial console?
> In both cases, is there controlling tty? IOW:
>
> echo TEST >/dev/tty
> TEST
>
> This is good (controlling tty exists)
>
> echo TEST >/dev/tty
> sh: /dev/tty: No such device or address
>
> This isn't good.
I backported the svn init to 1.4.1 (i depend on releases).
My inittab line looks like this:
::respawn:/sbin/getty - 9600 vt100
I got a login prompt but no controlling tty:
-ash: cant't access tty; job control turned off
~$ echo TEST > /dev/tty
-ash: cannot create /dev/tty: No such device or address
That was on a VGA console.
Then I tried to run it in qemu, with -nographic. It booted, it gave me a
login, but same as VGA, no controlling tty.
--
Natanael Copa
More information about the busybox
mailing list