Add in /etc/inittab something like: s0::respawn:/sbin/startshell Where /sbin/startshell is marked as executable and contains:
#!/bin/bash export HOME=/root exec /bin/bash --login -i </dev/ttyAM0 &>/dev/ttyAM0 (init doesn't handle redirections well) Alternatively you can get rid of init completely or replace it with your own program or even a shell script. I did this to create a very small (i386) system used as router. Just make sure init doesn't exit! (well, not until you are going to stop the system and unmounted all filesystems except perhaps RAM based ones) BTW, having a RAM disk mounted as / is not a bad idea for an embedded system. You can create most of other standard tree as symlinks to a filesystem which is mounted later. For example I had a minimal /lib in ramdisk which was overwritten later using ln -s -f /mnt/realfs/lib /lib -- Paul Chitescu [EMAIL PROTECTED] http://pchitescu.myip.org/ ICQ:22641673 Any spammers will be painfully squeezed into /dev/null ----- Original Message ----- From: "Kam Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 29, 2001 4:14 AM Subject: getty and serial terminal > Hi all, > Finally I'm able to boot up ramdisk_ks.gz (after some mod) with > Integrator/920T. I'm able to log in and browse around the file system using > serial terminal. Thank you for all the posts in here, in kernel too and the > Linux world. Now I'm ready to do the real stuff. > I have a question for you guy. Since I develop an embedded system, login is > not necessary. But "getty" is tied to login which gives way to a shell. At > the moment, I can only use "getty" to open ttyAM0 for serial terminal usage. > Is there any other method to bypass this login and able to open ttyAM0 and > gives control to a shell? > > Thanks in advance. > Kam _______________________________________________ http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm Please visit the above address for information on this list.
