* getty problems
@ 2001-08-06 12:27 Lech Szychowski
2001-08-06 12:30 ` Chris Wedgwood
0 siblings, 1 reply; 7+ messages in thread
From: Lech Szychowski @ 2001-08-06 12:27 UTC (permalink / raw)
To: linux-kernel
In short: on 2.4.7-ac[3-7] getty cannot open /dev/ttyX,
while on 2.4.5 it can.
I've done "strace -o /tmp/GETTY-`uname -r` /sbin/getty tty9 vc linux"
in both cases and compared otput files. The big difference is here:
2.4.5:
open("/dev/tty9", O_RDWR|O_NONBLOCK) = 0
2.4.7-ac7:
open("/dev/tty9", O_RDWR|O_NONBLOCK) = -1 ENODEV (No such device)
And yes, I believe I have terminal support compiled in:
===
#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SERIAL_CONSOLE=y
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
===
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
This problem hit me when I compiled and installed new kernel
(2.4.5 comes with the distribution) - I could not log in because
all gettys got disabled:
Aug 6 14:10:09 nnet /sbin/agetty[103]: /dev/tty6: cannot open as standard input: No such device
Aug 6 14:10:09 nnet init: Id "c4" respawning too fast: disabled for 5 minutes
--
Leszek.
-- lech7@pse.pl 2:480/33.7 -- REAL programmers use INTEGERS --
-- speaking just for myself...
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: getty problems
2001-08-06 12:27 getty problems Lech Szychowski
@ 2001-08-06 12:30 ` Chris Wedgwood
2001-08-06 13:45 ` Lech Szychowski
0 siblings, 1 reply; 7+ messages in thread
From: Chris Wedgwood @ 2001-08-06 12:30 UTC (permalink / raw)
To: linux-kernel; +Cc: Lech Szychowski
On Mon, Aug 06, 2001 at 02:27:04PM +0200, Lech Szychowski wrote:
2.4.7-ac7:
open("/dev/tty9", O_RDWR|O_NONBLOCK) = -1 ENODEV (No such device)
And yes, I believe I have terminal support compiled in:
/prox/devices says?
--cw
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: getty problems
2001-08-06 12:30 ` Chris Wedgwood
@ 2001-08-06 13:45 ` Lech Szychowski
2001-08-06 14:09 ` Chris Wedgwood
0 siblings, 1 reply; 7+ messages in thread
From: Lech Szychowski @ 2001-08-06 13:45 UTC (permalink / raw)
To: Chris Wedgwood; +Cc: linux-kernel
> open("/dev/tty9", O_RDWR|O_NONBLOCK) = -1 ENODEV (No such device)
>
> And yes, I believe I have terminal support compiled in:
>
> /prox/devices says?
2.4.5:
------
Character devices:
1 mem
2 pty/m%d
3 pty/s%d
4 tts/%d
5 cua/%d
6 lp
7 vcs
10 misc
21 sg
29 fb
108 ppp
109 lvm
128 ptm
129 ptm
136 pts/%d
137 pts/%d
162 raw
/proc/tty/drivers
serial /dev/cua/%d 5 64-127 serial:callout
serial /dev/tts/%d 4 64-127 serial
pty_slave /dev/pts/%d 137 0-255 pty:slave
pty_master /dev/ptm 129 0-255 pty:master
pty_slave /dev/pts/%d 136 0-255 pty:slave
pty_master /dev/ptm 128 0-255 pty:master
pty_slave /dev/pty/s%d 3 0-255 pty:slave
pty_master /dev/pty/m%d 2 0-255 pty:master
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
/dev/ptmx /dev/ptmx 5 2 system
/dev/console /dev/console 5 1 system:console
/dev/tty /dev/tty 5 0 system:/dev/tty
unknown /dev/vc/%d 4 1-63 console
2.4.7-ac7:
----------
/proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
7 vcs
10 misc
128 ptm
136 pts
162 raw
/proc/tty/drivers
serial /dev/cua 5 64-127 serial:callout
serial /dev/ttyS 4 64-127 serial
pty_slave /dev/pts 136 0-255 pty:slave
pty_master /dev/ptm 128 0-255 pty:master
pty_slave /dev/ttyp 3 0-255 pty:slave
pty_master /dev/pty 2 0-255 pty:master
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
/dev/ptmx /dev/ptmx 5 2 system
/dev/console /dev/console 5 1 system:console
/dev/tty /dev/tty 5 0 system:/dev/tty
--
Leszek.
-- lech7@pse.pl 2:480/33.7 -- REAL programmers use INTEGERS --
-- speaking just for myself...
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: getty problems
2001-08-06 13:45 ` Lech Szychowski
@ 2001-08-06 14:09 ` Chris Wedgwood
2001-08-06 16:24 ` Lech Szychowski
0 siblings, 1 reply; 7+ messages in thread
From: Chris Wedgwood @ 2001-08-06 14:09 UTC (permalink / raw)
To: Lech Szychowski; +Cc: linux-kernel
On Mon, Aug 06, 2001 at 03:45:30PM +0200, Lech Szychowski wrote:
2.4.7-ac7:
----------
/proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 ttyS
5 cua
7 vcs
10 misc
128 ptm
136 pts
162 raw
Are you use this kernel isn't devfs inflicted?
--cw
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: getty problems
2001-08-06 14:09 ` Chris Wedgwood
@ 2001-08-06 16:24 ` Lech Szychowski
2001-08-06 22:06 ` H. Peter Anvin
0 siblings, 1 reply; 7+ messages in thread
From: Lech Szychowski @ 2001-08-06 16:24 UTC (permalink / raw)
To: Chris Wedgwood; +Cc: linux-kernel
> 2.4.7-ac7:
> ----------
[snip]
>
> Are you use this kernel isn't devfs inflicted?
2.4.7-ac7 is compiled without devfs, 2.4.5 has devfs support
compiled in but - IMHO - not used:
$ cat /proc/filesystems | grep devfs
nodev devfs
$ /sbin/lsmod
Module Size Used by
de4x5 39440 2
lech7@nnet:~$ mount
/dev/sda6 on / type ext2 (rw)
/dev/sda7 on /var type ext2 (rw)
/dev/sda8 on /tmp type ext2 (rw)
/dev/sda9 on /usr/local/squid type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /proc type proc (rw)
$ uname -r
2.4.5
--
Leszek.
-- lech7@pse.pl 2:480/33.7 -- REAL programmers use INTEGERS --
-- speaking just for myself...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: getty problems
2001-08-06 16:24 ` Lech Szychowski
@ 2001-08-06 22:06 ` H. Peter Anvin
2001-08-06 23:17 ` Richard Gooch
0 siblings, 1 reply; 7+ messages in thread
From: H. Peter Anvin @ 2001-08-06 22:06 UTC (permalink / raw)
To: linux-kernel
Followup to: <20010806182414.A29605@lech.pse.pl>
By author: Lech Szychowski <lech.szychowski@pse.pl>
In newsgroup: linux.dev.kernel
>
> > 2.4.7-ac7:
> > ----------
> [snip]
> >
> > Are you use this kernel isn't devfs inflicted?
>
> 2.4.7-ac7 is compiled without devfs, 2.4.5 has devfs support
> compiled in but - IMHO - not used:
>
Yes, this is a known pathology of devfs. It will do this to you even
if it isn't used.
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <amsp@zytor.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: getty problems
2001-08-06 22:06 ` H. Peter Anvin
@ 2001-08-06 23:17 ` Richard Gooch
0 siblings, 0 replies; 7+ messages in thread
From: Richard Gooch @ 2001-08-06 23:17 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: linux-kernel
H. Peter Anvin writes:
> Followup to: <20010806182414.A29605@lech.pse.pl>
> By author: Lech Szychowski <lech.szychowski@pse.pl>
> In newsgroup: linux.dev.kernel
> >
> > > 2.4.7-ac7:
> > > ----------
> > [snip]
> > >
> > > Are you use this kernel isn't devfs inflicted?
> >
> > 2.4.7-ac7 is compiled without devfs, 2.4.5 has devfs support
> > compiled in but - IMHO - not used:
>
> Yes, this is a known pathology of devfs. It will do this to you even
> if it isn't used.
Would someone care to forward me the unsnipped bug report? I didn't
see the original message.
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-08-06 23:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-06 12:27 getty problems Lech Szychowski
2001-08-06 12:30 ` Chris Wedgwood
2001-08-06 13:45 ` Lech Szychowski
2001-08-06 14:09 ` Chris Wedgwood
2001-08-06 16:24 ` Lech Szychowski
2001-08-06 22:06 ` H. Peter Anvin
2001-08-06 23:17 ` Richard Gooch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox