Embedded Linux >> "Headless" Linux & agetty Issues

by mark » Thu, 06 May 2004 23:15:09 GMT

Hi,

I'm trying to setup a headless Linux system on a PC/104 board. I had some
problems with the following error message ...

INIT: Id "S1" respawning too fast: disabled for 5 minutes

... which I solved by commenting out the lines in /etc/inittab that
controlled the respawning of agetty on all the virtual consoles. It seems
to work now, but there are some situations with my PC/104 board where I
connect a video card to make troubleshooting easier. With my new
/etc/inittab this won't work any more. Is there any way to set it up so
that it will work under both configurations? Can it somehow detect if a
video card is present and only do the respawn stuff if it detects one?

Any suggestions?

Thanks,

Mark


Embedded Linux >> "Headless" Linux & agetty Issues

by Juha Laiho » Fri, 07 May 2004 02:32:03 GMT


mark < XXXX@XXXXX.COM > said:

Hmm.. 'S1' would refer to the agetty listening on the (secondary)
serial port, not on any virtual console. So, if it's just 'S1' entry
that causes problems, then by all means do comment out that entry.


Hmm.. not having a video card might very well make it so that not even
the vc gettys can be started, because the vcs are anyway bound to the
video card.


Hmm.. I think you could find the existence of the video card at least
through lspci, and then do some magic to replace and reread the inittab
file.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)



Embedded Linux >> "Headless" Linux & agetty Issues

by noreply » Tue, 11 May 2004 18:54:18 GMT


I had a similar problem when I was testing the bare bones linux on a laptop
prior to putting it on a DiskonChip

The laptop had an IrDA port on ttyS2 and was continually trying to handle
logins.

It's probably not the problem you have but, it had me fooled for a while.








"Headless" Linux & agetty Issues

by barry » Fri, 16 Jul 2004 10:43:10 GMT




<snip>

One possible solution is to set another option instead of 'respawn' in
your inittab file. (ie. "once" comes to mind)

Maybe cobble together some bash script that inittab launches and have
that check if the video is present by searching /proc, if so execute
getty, otherwise exit.

Check out 'man inittab' for some background.

-Barry


Similar Threads

1. Play mp3 on a headless box, control headless box with a web browser

I have been looking around for a project with similar specifications. 
If there is not one started I'd like to get some hacks together.

The concept is to have a headless box, that boots from the network
file server and plays mp3s from the file server. The headless box will
run httpd with php, be connected to the component stereo system.  From
various workstations in the house you can open a browser and connect
to the livingroom_mp3.home.net and start and play the mp3s probably
using xmms, or the command line version.

Please let me know if you have come by something like this and/or want
to start a project.