* RE: ping says unknown protocol icmp I have /etc/protocols file.
@ 2001-02-02 15:18 Subodh Nijsure
2001-02-02 18:33 ` Frank Rowand
0 siblings, 1 reply; 7+ messages in thread
From: Subodh Nijsure @ 2001-02-02 15:18 UTC (permalink / raw)
To: 'jeffrey.d.kowing1@jsc.nasa.gov'; +Cc: linuxppc-embedded
Hello Jeffrey,
Thanks, indeed it was an issue of having libresolv library
I copied libresolve to /usr/lib when building the ramdisk and
ping works now.
BTW, is there a something equivalent to ldd in powerpc world, so one
can find out which shared library an executable is linked with?
I have 8xx environment from MontaVista and I don't see ppc_8xx-ldd
/Subodh Nijsure
> -----Original Message-----
> From: Jeffrey D. Kowing [mailto:jeffrey.d.kowing1@jsc.nasa.gov]
> Sent: Friday, February 02, 2001 5:56 AM
> To: Subodh Nijsure
> Cc: linuxppc-embedded@lists.linuxppc.org
> Subject: ping says unknown protocol icmp I have /etc/protocols file.
>
>
>
> Subodh Nijsure writes:
> >
> > I have 2.4.1 running on my board with ramdisk loading etc.
> >
> > However when I try to use ping it says unknown protocol icmp.
> >
> > I have searched the mailing list archive and made sure
> that I have correct
> > /etc/protocols, /etc/services files.
>
> Had a similar problem recently. Sadly, my little brain does not
> exactly remember the solution, but I believe the problem was that I
> did not have one of the necessary libraries on my ramdisk that allowed
> ping to lookup the icmp protocol in the files you mention.
>
> I think it was one of those libresolv* or libnss* libraries.
>
>
> --
> Jeff Kowing
> jeffrey.d.kowing1@jsc.nasa.gov
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ping says unknown protocol icmp I have /etc/protocols file.
2001-02-02 15:18 ping says unknown protocol icmp I have /etc/protocols file Subodh Nijsure
@ 2001-02-02 18:33 ` Frank Rowand
2001-02-02 18:55 ` ppc_8xx-ldd Joe Green
2001-02-05 1:40 ` ping says unknown protocol icmp I have /etc/protocols file Graham Stoney
0 siblings, 2 replies; 7+ messages in thread
From: Frank Rowand @ 2001-02-02 18:33 UTC (permalink / raw)
To: Subodh Nijsure
Cc: 'jeffrey.d.kowing1@jsc.nasa.gov', linuxppc-embedded
Subodh Nijsure wrote:
>
> Hello Jeffrey,
>
> Thanks, indeed it was an issue of having libresolv library
>
> I copied libresolve to /usr/lib when building the ramdisk and
> ping works now.
>
> BTW, is there a something equivalent to ldd in powerpc world, so one
> can find out which shared library an executable is linked with?
> I have 8xx environment from MontaVista and I don't see ppc_8xx-ldd
>
> /Subodh Nijsure
Yes, ldd is /bin/ldd in the target file system.
-Frank
--
Frank Rowand <frank_rowand@mvista.com>
MontaVista Software, Inc
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ppc_8xx-ldd
2001-02-02 18:33 ` Frank Rowand
@ 2001-02-02 18:55 ` Joe Green
2001-02-02 19:18 ` ppc_8xx-ldd Joe Green
2001-02-05 1:40 ` ping says unknown protocol icmp I have /etc/protocols file Graham Stoney
1 sibling, 1 reply; 7+ messages in thread
From: Joe Green @ 2001-02-02 18:55 UTC (permalink / raw)
To: Frank Rowand, Subodh Nijsure
Cc: 'jeffrey.d.kowing1@jsc.nasa.gov', linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 749 bytes --]
On Fri, 02 Feb 2001, Frank Rowand wrote:
> Subodh Nijsure wrote:
> > BTW, is there a something equivalent to ldd in powerpc world, so one
> > can find out which shared library an executable is linked with?
> > I have 8xx environment from MontaVista and I don't see ppc_8xx-ldd
>
> Yes, ldd is /bin/ldd in the target file system.
For execution on a development host, I've attached a simple shell script
that does something like ldd. (ldd actually loads the program, which
won't work for cross-developed programs.) It must be run from the same
directory as the target architecture objcopy and objdump, and must have
the same prefix (e.g., ppc_8xx-ldd, ppc_8xx-objcopy, ppc_8xx-objdump).
--
Joe Green <jgreen@mvista.com>
MontaVista Software, Inc.
[-- Attachment #2: ppc_8xx-ldd --]
[-- Type: application/x-shellscript, Size: 2768 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ppc_8xx-ldd
2001-02-02 18:55 ` ppc_8xx-ldd Joe Green
@ 2001-02-02 19:18 ` Joe Green
0 siblings, 0 replies; 7+ messages in thread
From: Joe Green @ 2001-02-02 19:18 UTC (permalink / raw)
To: Frank Rowand, Subodh Nijsure
Cc: 'jeffrey.d.kowing1@jsc.nasa.gov', linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 570 bytes --]
On Fri, 02 Feb 2001, Joe Green wrote:
> For execution on a development host, I've attached a simple shell script
> that does something like ldd. (ldd actually loads the program, which
> won't work for cross-developed programs.) It must be run from the same
> directory as the target architecture objcopy and objdump, and must have
> the same prefix (e.g., ppc_8xx-ldd, ppc_8xx-objcopy, ppc_8xx-objdump).
Of course, it would be better if it correctly removed the tmp file, as
the attached version does. :-/
--
Joe Green <jgreen@mvista.com>
MontaVista Software, Inc.
[-- Attachment #2: ppc_8xx-ldd --]
[-- Type: application/x-shellscript, Size: 2776 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ping says unknown protocol icmp I have /etc/protocols file.
2001-02-02 18:33 ` Frank Rowand
2001-02-02 18:55 ` ppc_8xx-ldd Joe Green
@ 2001-02-05 1:40 ` Graham Stoney
1 sibling, 0 replies; 7+ messages in thread
From: Graham Stoney @ 2001-02-05 1:40 UTC (permalink / raw)
To: frowand
Cc: Subodh Nijsure, 'jeffrey.d.kowing1@jsc.nasa.gov',
linuxppc-embedded
On Fri, Feb 02, 2001 at 10:33:15AM -0800, Frank Rowand wrote:
> Yes, ldd is /bin/ldd in the target file system.
Only problem is, you have to run it on the/a target, which implies that your
target is working (at least somewhat). I looked around for a way of doing
this on the development system, but couldn't find anything better than
strings(1)...
Regards,
Graham
--
Graham Stoney
Assistant Technology Manager
Canon Information Systems Research Australia
Ph: +61 2 9805 2909 Fax: +61 2 9805 2929
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* ping says unknown protocol icmp I have /etc/protocols file.
@ 2001-02-02 2:36 Subodh Nijsure
2001-02-02 13:55 ` Jeffrey D. Kowing
0 siblings, 1 reply; 7+ messages in thread
From: Subodh Nijsure @ 2001-02-02 2:36 UTC (permalink / raw)
To: linuxppc-embedded
I have 2.4.1 running on my board with ramdisk loading etc.
However when I try to use ping it says unknown protocol icmp.
I have searched the mailing list archive and made sure that I have correct
/etc/protocols, /etc/services files.
Also I can see eth0 and loopback interface using ifconfig
Anybody knows how to get ping going.
Thanks.
/Subodh Nijsure
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* ping says unknown protocol icmp I have /etc/protocols file.
2001-02-02 2:36 Subodh Nijsure
@ 2001-02-02 13:55 ` Jeffrey D. Kowing
0 siblings, 0 replies; 7+ messages in thread
From: Jeffrey D. Kowing @ 2001-02-02 13:55 UTC (permalink / raw)
To: Subodh Nijsure; +Cc: linuxppc-embedded
Subodh Nijsure writes:
>
> I have 2.4.1 running on my board with ramdisk loading etc.
>
> However when I try to use ping it says unknown protocol icmp.
>
> I have searched the mailing list archive and made sure that I have correct
> /etc/protocols, /etc/services files.
Had a similar problem recently. Sadly, my little brain does not
exactly remember the solution, but I believe the problem was that I
did not have one of the necessary libraries on my ramdisk that allowed
ping to lookup the icmp protocol in the files you mention.
I think it was one of those libresolv* or libnss* libraries.
--
Jeff Kowing
jeffrey.d.kowing1@jsc.nasa.gov
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-02-05 1:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-02 15:18 ping says unknown protocol icmp I have /etc/protocols file Subodh Nijsure
2001-02-02 18:33 ` Frank Rowand
2001-02-02 18:55 ` ppc_8xx-ldd Joe Green
2001-02-02 19:18 ` ppc_8xx-ldd Joe Green
2001-02-05 1:40 ` ping says unknown protocol icmp I have /etc/protocols file Graham Stoney
-- strict thread matches above, loose matches on Subject: below --
2001-02-02 2:36 Subodh Nijsure
2001-02-02 13:55 ` Jeffrey D. Kowing
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).