Loop at starting pid 164, tty '': '/sbin/getty'

ramkumarj Ramkumar ramkumarj2000 at gmail.com
Mon Dec 24 20:20:10 EST 2007


Hi Olof,

Thanks a lot for replying to the query posted. It works now. Initially I had
created the device file tts/0 instead of ttyS0 and still faced the same
issue. Now I have the ttyS0 created and created tty0 and also modified the
inittab as below,

--------------------------------------------------------------------------
Original Config ( Not Working )
--------------------------------------------------------------------------
::sysinit:/etc/init.d/rcS
#::askfirst:-/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::restart:/sbin/init
::respawn:/sbin/getty 38400 tts/0

Created the following devices in /dev through
mknod -m 660 console c 5 1
mknod -m 660 xsa b 254 0
mknod -m 660 xsa1 b 254 1
mknod -m 660 xsa2 b 254 2
mknod -m 660 xsa3 b 254 3
mkdir tts
cd tts
mknod -m 660 0 b 4 64
cd ..
mknod -m 660 null c 1 3

-------------------------------------------------------------------------
Working Config
-------------------------------------------------------------------------
# cat inittab
::sysinit:/etc/init.d/rcS
#::askfirst:-/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::restart:/sbin/init
::respawn:/sbin/getty -L ttyS0 38400 vt100

Created the following devices in /dev
# ls -al
drwxr-xr-x    5 root     root         1024 Jan  1 00:00 .
drwxr-xr-x   17 root     root         1024 Dec 21  2007 ..
crw--w--w-    1 root     root       5,   1 Jan  1 00:00 console
srw-rw-rw-    1 root     root            0 Jan  1 00:00 log
crw-rw----    1 root     root       1,   3 Dec 21  2007 null
drwxr-xr-x    2 root     root         1024 Dec 21  2007 pts
drwxr-xr-x    2 root     root         1024 Dec 21  2007 shm
drwxr-xr-x    2 root     root         1024 Dec 21  2007 tts
crw--w--w-    1 root     root       4,   0 Dec 24  2007 tty0
crw-------    1 root     root       4,  64 Jan  1 00:12 ttyS0
brw-rw----    1 root     root     254,   0 Dec 21  2007 xsa
brw-rw----    1 root     root     254,   1 Dec 21  2007 xsa1
brw-rw----    1 root     root     254,   2 Dec 21  2007 xsa2
brw-rw----    1 root     root     254,   3 Dec 21  2007 xsa3
#

Now I m able to see the login prompt :) .

I would be very grateful if the following questions could be addressed,

1. Does the inittab format changed for Linux 2.6. The old one was from
mkrootfs (which I think is pretty old). I could see some changes in the
"respawn" line.

2. Is it required to run the tty0 along with ttyS0. Is this is mandatory. I
assumed all these days console and ttyS0 should be sufficient.

3. A very basic question : What is the clear difference between ttyS0 ( UART
Driver ), console and tty0. To my understanding, ttyS0 is the first port
UART 's driver (for 16550/8250) which deals with the hardware as such by
writing and reading the registers. tty0 is virtual console, something to do
with telnet sessions. But I dont clearly understand why console and tty0 are
both required or not. Please correct me if my understanding is wrong.
Merry Christmas.

Thanks and Regards,
Ramkumar



On Dec 24, 2007 12:09 PM, Olof Johansson <olof at lixom.net> wrote:

> Hi,
>
> On Sat, Dec 22, 2007 at 04:51:16PM +0800, ramkumarj Ramkumar wrote:
>
> > I m trying to run Linux 2.6 ( From Grant) on ML-403. I used the
> > busybox-1.7.2. During booting, I found the following logs and it keeps
> > trying to respawn the getty.It keeps looping and I never see the login
> > prompt.  Am I missing something.
> >
> > process '/sbin/getty 38400 tts/0' (pid 163) exited. Scheduling it for
> > restart.
>
> Do you have a /dev/ttys/0? First serial port is normally /dev/ttyS0.
>
>
> -Olof
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20071224/ba580675/attachment.htm 


More information about the Linuxppc-embedded mailing list