> -----Original Message-----
> From: imato [mailto:cooper.zp@...]
> Thanks for your reply. I have a question here:
> When I take a look /etc/inittab, i saw two command lines:
> S:2345:respawn:/sbin/getty 115200 ttyS2
> 1:2345:respawn:/sbin/getty 38400 tty1
> first line lets ttyS2 to be the login console, but what about
> the second line?
The second line sets up a login on tty1. If you have a keyboard
(eg. USB keyboard via a powered HUB) and display connected, then
you'd be able to login using those. I am using a chestnut43
board with LCD, and have used tty1 on a couple of occasions when
I messed up the networking.
> The reason why I asking this question is you tell me to use
> the following command:
> setenv console tty1
The console setting is passed to the kernel at boot time. It
Only tells the kernel where to send messages; It does not have
anything to do with login terminals as that is handled by inittab
and getty. I use tty1 because it allows me to see the kernel
messages on the LCD during boot.
> From the /etc/inittab, looks like the tty1 has already been
> used. If I assign the login console to tty1, will the tty1 be
> duplicative defined?
> I really appreciate your time to help me.