* Serial Console Login Fails
@ 2003-04-23 2:11 Aman
2003-04-23 12:30 ` Martin Hicks
0 siblings, 1 reply; 6+ messages in thread
From: Aman @ 2003-04-23 2:11 UTC (permalink / raw)
To: linuxppc embedded
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial Console Login Fails
2003-04-23 2:11 Serial Console Login Fails Aman
@ 2003-04-23 12:30 ` Martin Hicks
2003-04-23 12:59 ` Mark Hatle
0 siblings, 1 reply; 6+ messages in thread
From: Martin Hicks @ 2003-04-23 12:30 UTC (permalink / raw)
To: Aman; +Cc: linuxppc embedded
On Wed, Apr 23, 2003 at 07:41:40AM +0530, Aman wrote:
>
> 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
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.
> "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 || mort@bork.org || 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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial Console Login Fails
2003-04-23 12:30 ` Martin Hicks
@ 2003-04-23 12:59 ` Mark Hatle
2003-04-23 13:46 ` Aman
0 siblings, 1 reply; 6+ messages in thread
From: Mark Hatle @ 2003-04-23 12:59 UTC (permalink / raw)
To: Martin Hicks; +Cc: Aman, linuxppc embedded
Martin Hicks wrote:
> On Wed, Apr 23, 2003 at 07:41:40AM +0530, Aman wrote:
>
>>"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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial Console Login Fails
2003-04-23 12:59 ` Mark Hatle
@ 2003-04-23 13:46 ` Aman
2003-04-23 13:59 ` Martin Hicks
2003-04-23 14:13 ` Mark Hatle
0 siblings, 2 replies; 6+ messages in thread
From: Aman @ 2003-04-23 13:46 UTC (permalink / raw)
To: Mark Hatle, Martin Hicks; +Cc: linuxppc embedded
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" <fray@mvista.com>
To: "Martin Hicks" <mort@bork.org>
Cc: "Aman" <aman@mistralsoftware.com>; "linuxppc embedded"
<linuxppc-embedded@lists.linuxppc.org>
Sent: Wednesday, April 23, 2003 6:29 PM
Subject: Re: Serial Console Login Fails
> Martin Hicks wrote:
> > On Wed, Apr 23, 2003 at 07:41:40AM +0530, Aman wrote:
> >
> >>"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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial Console Login Fails
2003-04-23 13:46 ` Aman
@ 2003-04-23 13:59 ` Martin Hicks
2003-04-23 14:13 ` Mark Hatle
1 sibling, 0 replies; 6+ messages in thread
From: Martin Hicks @ 2003-04-23 13:59 UTC (permalink / raw)
To: Aman; +Cc: Mark Hatle, linuxppc embedded
On Wed, Apr 23, 2003 at 07:16:35PM +0530, Aman wrote:
> 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 || mort@bork.org || 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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Serial Console Login Fails
2003-04-23 13:46 ` Aman
2003-04-23 13:59 ` Martin Hicks
@ 2003-04-23 14:13 ` Mark Hatle
1 sibling, 0 replies; 6+ messages in thread
From: Mark Hatle @ 2003-04-23 14:13 UTC (permalink / raw)
To: Aman; +Cc: Martin Hicks, linuxppc embedded
Aman wrote:
> 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/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-04-23 14:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23 2:11 Serial Console Login Fails Aman
2003-04-23 12:30 ` Martin Hicks
2003-04-23 12:59 ` Mark Hatle
2003-04-23 13:46 ` Aman
2003-04-23 13:59 ` Martin Hicks
2003-04-23 14:13 ` Mark Hatle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).