Serial Console Login Fails
Hi All
I am using IBM PPC 440 processor on custom board , which has no network support. I am using Monta Vista Linux with ramdisk enabled. In the ramdisk , I have very less files. Since there is no network on the board , I am trying to enable the serial console login. To achieve this, I disabled serial console logging by saying "console=NULL " in the cmdline and in the /etc/inittab file added this line
"T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100"
Bcos of which during the linux bootup , there wont be console message on the screen , after some time , there is a login prompt
<none>login:
If I try login then it waits for some seconds and then display the same i.e <none>login:
Can anybody help me in solving this issue?
Thanking you in advance
Regards
Aman
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 9 lines · Aman
Hi All
I am using IBM PPC 440 processor on custom board , which has no network support. I am using Monta Vista Linux with ramdisk enabled. In the ramdisk , I have very less files. Since there is no network on the board , I am trying to enable the serial console login. To achieve this, I disabled serial console logging by saying "console=NULL " in the cmdline and in the
/etc/inittabfile added this line
If the kernel is compiled with CONFIG_SERIAL_CONSOLE then you can do "console=ttyS0", which will give you a 9600bps 8n1 serial console to see the kernel boot messages.
Quoted 6 lines
"T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100"
Bcos of which during the linux bootup , there wont be console message on the screen , after some time , there is a login prompt
<none>login:
If I try login then it waits for some seconds and then display the same i.e <none>login:
You don't have "ttyS0" in /etc/securetty
mh
--
Martin Hicks || [email protected] || PGP/GnuPG: 0x4C7F2BEE plato up 5 days, 21:20, 12 users, load average: 0.49, 0.50, 0.46
Beer: So much more than just a breakfast drink.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 11 lines · Martin Hicks
Quoted 6 lines · Aman
"T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100"
Bcos of which during the linux bootup , there wont be console message on the screen , after some time , there is a login prompt
<none>login:
If I try login then it waits for some seconds and then display the same i.e <none>login:You don't have "ttyS0" in
/etc/securetty
Actually if that was the case you'd get a login denied message of some type.. If you don't have an /etc/securetty then it allows all logins.. (that is the typical setup of systems we recommend for our customers development systems..)
The problem is that they are missing either the pam libraries or they are missing /bin/login. Turn on syslogd, set a console to go right to a shell and look at the output of /var/log/messages. This will tell you what is missing. It is usually /bin/login is missing, secondary cause is PAM (or a module) is missing, or that your /etc/passwd and/or /etc/group files are missing or corrupt.
(I wonder if we should create a FAQ for this list and post it once a month.. this question/answer come up at _LEAST_ once a week.. doesn't anyone read the list archives?)
--Mark
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hi Martin
I have the etc/securetty file with entry ttyS0. Actually I cant see the log messages since the linux boots up and gets struck in the login itself . Is there any other way to get the log messages. In my board , I don't have network support. So each I time I have to modify the ramdisk image and run it. I tried putting in /bin/login, however I getting the following error "/bin/login: error while loading shared libraries: cannot open shared object file
: cannot load shared object file: No such file or directory"
I think the related shared libraries is not there , how to find related shared libraries for any file.
Thanking you in advance
Regards
Aman
----- Original Message -----
From: "Mark Hatle" <[email protected]>
To: "Martin Hicks" <[email protected]>
Cc: "Aman" <[email protected]>; "linuxppc embedded" <[email protected]>
Sent: Wednesday, April 23, 2003 6:29 PM
Subject: Re: Serial Console Login Fails
Quoted 5 lines
Quoted 4 lines · Martin Hicks
Quoted 2 lines · Aman
"T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100"
Bcos of which during the linux bootup , there wont be console message on
the
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
screen , after some time , there is a login prompt <none>login:
If I try login then it waits for some seconds and then display the same
i.e
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
<none>login:
You don't have "ttyS0" in
/etc/securettyActually if that was the case you'd get a login denied message of some
type..
Quoted 1 line
If you don't have an
/etc/securettythen it allows all logins.. (that is
the
Quoted 1 line
typical setup of systems we recommend for our customers development
systems..)
Quoted 3 lines
The problem is that they are missing either the pam libraries or they are missing
/bin/login. Turn on syslogd, set a console to go right to a shell
and
Quoted 1 line
look at the output of
/var/log/messages. This will tell you what is
missing.
Quoted 1 line
It is usually
/bin/loginis missing, secondary cause is PAM (or a module)
is
Quoted 1 line
missing, or that your
/etc/passwdand/or/etc/groupfiles are missing or
corrupt.
Quoted 2 lines
(I wonder if we should create a FAQ for this list and post it once a
month..
Quoted 1 line
this question/answer come up at _LEAST_ once a week.. doesn't anyone read
the
Quoted 5 lines
list archives?)
--Mark
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 12 lines · Aman
Hi Martin
I have the etc/securetty file with entry ttyS0. Actually I cant see the log messages since the linux boots up and gets struck in the login itself . Is there any other way to get the log messages. In my board , I don't have network support. So each I time I have to modify the ramdisk image and run it. I tried putting in
/bin/login, however I getting the following error "/bin/login: error while loading shared libraries: cannot open shared object file
: cannot load shared object file: No such file or directory"
I think the related shared libraries is not there , how to find related shared libraries for any file.
You can check which shared libraries are required in order to run an application with "ldd". There should be a cross version on your host system with your development kit.
Otherwise, I'd compile login statically (or use busybox or something similar) to get past this hurdle and get the correct shared libs installed.
mh
--
Martin Hicks || [email protected] || PGP/GnuPG: 0x4C7F2BEE plato up 5 days, 22:50, 12 users, load average: 0.62, 0.51, 0.55 Great Spirits have always encountered opposition from mediocre minds
-Albert Einstein
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 12 lines · Aman
Hi Martin
I have the etc/securetty file with entry ttyS0. Actually I cant see the log messages since the linux boots up and gets struck in the login itself . Is there any other way to get the log messages. In my board , I don't have network support. So each I time I have to modify the ramdisk image and run it. I tried putting in
/bin/login, however I getting the following error "/bin/login: error while loading shared libraries: cannot open shared object file
: cannot load shared object file: No such file or directory"
I think the related shared libraries is not there , how to find related shared libraries for any file.
<target>-objdump -p <filename> | grep NEEDED
--Mark
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/