Tiny Core Linux

Tiny Core Base => Micro Core => Topic started by: alexdepa on April 19, 2010, 09:30:21 AM

Title: Login at /dev/ttyS0
Post by: alexdepa on April 19, 2010, 09:30:21 AM
Hi all,
I've just install Micro Core on a flash disk and I put it on an Alix board that doesn't have a vga output so, my only way to dialog with it is through serial console. I've enabled console=ttyS0,115200n8 on menu.lst and now I can view the boot process through serial console but, in the end, the system make a root login on tty1. How can I enable root login on ttyS0?

Thanks!
Title: Re: Login at /dev/ttyS0
Post by: curaga on April 19, 2010, 10:07:48 AM
Edit this line in /etc/inittab:

Quote
tty1::respawn:/sbin/rungetty tty1 --autologin root

How, that depends on the serial line I guess.

edit: Actually, rungetty doesn't do serial. Looks like you'll need to compile a suitable getty to do that.
edit2: Or see if busybox getty would work.
Title: Re: Login at /dev/ttyS0
Post by: alexdepa on April 19, 2010, 10:29:59 AM
Ok but how can I edit /dev/inittab once I've installed Micro Core an a hard/flash disk?
Title: Re: Login at /dev/ttyS0
Post by: curaga on April 19, 2010, 10:49:26 AM
http://tinycorelinux.com/wiki/tiki-index.php?page=Remastering
Title: Re: Login at /dev/ttyS0
Post by: alexdepa on April 19, 2010, 10:55:35 AM
Thank you! It works!  ;)