* Loop at starting pid 164, tty '': '/sbin/getty' @ 2007-12-22 8:51 ramkumarj Ramkumar 2007-12-24 4:09 ` Olof Johansson 0 siblings, 1 reply; 4+ messages in thread From: ramkumarj Ramkumar @ 2007-12-22 8:51 UTC (permalink / raw) To: linuxppc-embedded [-- Attachment #1: Type: text/plain, Size: 864 bytes --] Hi All, 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. <snip> Starting system... mounting /proc: done. Mounting '/' read-write: done. brining up loopback interface: done. Mounting /tmp: done. Starting syslogd: done. Starting klogd: done. Starting inetd: done. System started. starting pid 163, tty '': '/sbin/getty' [ 7.218444] XSysAce: Queue is plugged process '/sbin/getty 38400 tts/0' (pid 163) exited. Scheduling it for restart. starting pid 164, tty '': '/sbin/getty' process '/sbin/getty 38400 tts/0' (pid 164) exited. Scheduling it for restart. starting pid 165, tty '': '/sbin/getty' Any suggestion or pointers would be very helpful. Best Regards, Ramkumar [-- Attachment #2: Type: text/html, Size: 1154 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Loop at starting pid 164, tty '': '/sbin/getty' 2007-12-22 8:51 Loop at starting pid 164, tty '': '/sbin/getty' ramkumarj Ramkumar @ 2007-12-24 4:09 ` Olof Johansson 2007-12-24 9:20 ` ramkumarj Ramkumar 0 siblings, 1 reply; 4+ messages in thread From: Olof Johansson @ 2007-12-24 4:09 UTC (permalink / raw) To: ramkumarj Ramkumar; +Cc: linuxppc-embedded 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Loop at starting pid 164, tty '': '/sbin/getty' 2007-12-24 4:09 ` Olof Johansson @ 2007-12-24 9:20 ` ramkumarj Ramkumar 2007-12-24 19:38 ` Olof Johansson 0 siblings, 1 reply; 4+ messages in thread From: ramkumarj Ramkumar @ 2007-12-24 9:20 UTC (permalink / raw) To: Olof Johansson; +Cc: linuxppc-embedded [-- Attachment #1: Type: text/plain, Size: 3628 bytes --] 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@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 > [-- Attachment #2: Type: text/html, Size: 5595 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Loop at starting pid 164, tty '': '/sbin/getty' 2007-12-24 9:20 ` ramkumarj Ramkumar @ 2007-12-24 19:38 ` Olof Johansson 0 siblings, 0 replies; 4+ messages in thread From: Olof Johansson @ 2007-12-24 19:38 UTC (permalink / raw) To: ramkumarj Ramkumar; +Cc: linuxppc-embedded Hi, On Mon, Dec 24, 2007 at 05:20:10PM +0800, ramkumarj Ramkumar wrote: > 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. Inittab isn't tied to the kernel, but to the init process. So no, it should not have changed between 2.4 and 2.6. > 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. tty0 is normally one of the vga consoles. It shouldn't be needed if all you have is serial. > 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. ttyS<x> are normally 8250-compatible uarts, yes. pts/<x> is remote connections such as telnet or ssh-based ones. tty<x> are normally the local vga consoles. -Olof ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-24 19:30 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-12-22 8:51 Loop at starting pid 164, tty '': '/sbin/getty' ramkumarj Ramkumar 2007-12-24 4:09 ` Olof Johansson 2007-12-24 9:20 ` ramkumarj Ramkumar 2007-12-24 19:38 ` Olof Johansson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).