linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Cross-compiling standard utilities for 860
@ 2000-01-26  2:45 brian.neidig
  2000-01-26  7:20 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: brian.neidig @ 2000-01-26  2:45 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: brian.neidig



I am using an 860 based board, and am in need of several of the 'standard' Linux
utilities.  (shells, module support, ls, etc.)  In the past, I've always gone to
the net and started looking around for an RPM containing the source code that I
need and then take that and compile it for my platform.  However, lately, I've
spent a lot of time not finding what I am looking for.  Is there a place someone
can suggest that I can go to and get many of the standard utilities in source?

Sometimes, these utilities are in RPMs (if not all the time.)  Is there a place
that I can go to get a list of what utilities are in what RPMs?  (That is, how
would I know that the source to ls is in x.y-4.rpm?)   Distributions build them,
so they have to exist somewhere!

Thanks,
Brian Neidig


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cross-compiling standard utilities for 860
  2000-01-26  2:45 Cross-compiling standard utilities for 860 brian.neidig
@ 2000-01-26  7:20 ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2000-01-26  7:20 UTC (permalink / raw)
  To: brian.neidig; +Cc: linuxppc-embedded


In message <86256872.000F3FAD.00@notesmta.natinst.com> you write:
>
> I am using an 860 based board, and am in need of several of the 'standard' Linux
> utilities.  (shells, module support, ls, etc.)  In the past, I've always gone to

When your kernel has the FPU emulation code included  you  should  be
able  to run the tools from a standard LinuxPPC distribution; this is
probably not optimal but the  easiest  way  to  get  startet  and  to
provide the full working environment for NFS based systems.

This way you only need to recompile/optimize those tools  you  really
put into your embedded system.

> the net and started looking around for an RPM containing the source code that I
> need and then take that and compile it for my platform.  However, lately, I've
> spent a lot of time not finding what I am looking for.  Is there a place someone
> can suggest that I can go to and get many of the standard utilities in source?

Any of the GNU archives, of course. See ftp://prep.ai.mit.edu/pub/gnu
for a starting point and a list of mirror sites.

> Sometimes, these utilities are in RPMs (if not all the time.)  Is there a place

RPM's are already a higl-level  issue;  usually  you  will  find  the
sources in (compressed) tarballs.

> that I can go to get a list of what utilities are in what RPMs?  (That is, how

RTFM for RPM! Use "rpm -qa" to get a listing of all installed  RPM's,
and "rpm -ql ql <rpm_name>" to get a list of files that come with RPM
<rpm_name>.

> would I know that the source to ls is in x.y-4.rpm?)   Distributions build them,
> so they have to exist somewhere!

Use
	rpm -qf `which ls`
to find out that "ls" belongs to the fileutils RPM (and thus compiles
from the sources in the fileutils tarball from your GNU mirror site).

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
God may be subtle, but He isn't plain mean.         - Albert Einstein

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cross-compiling standard utilities for 860
       [not found] <388F1A55.D62E35B4@netx4.com>
@ 2000-01-26 16:50 ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2000-01-26 16:50 UTC (permalink / raw)
  To: Dan Malek; +Cc: Wolfgang Denk, brian.neidig, linuxppc-embedded


In message <388F1A55.D62E35B4@netx4.com> Dan Malek wrote:
>
> You have to be careful here.  If you choose to use the in-line
> floating point software, you must use it for all applications
> because the libraries are built to do this as well.  You can't
> mix programs that use the kernel FPU emulation and also in-line
> software floating-point.  The kernel works out of the floating
> point register area in the TSS, while the software float assigns
> real processor registers (and other memory locations) to contain
> the floating-point values.

I am aware that  I  cannot  mix  this  WITHIN  ONE  application,  for
instance  compiling  the  app  with  soft-float and linking against a
library that uses the kernel FPU emulation.

Are there really problems when running soft-float only  and  FPU  emu
only applications on the same machine? I did not expect any...

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Anyone who isn't confused here doesn't really know what's going on.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Cross-compiling standard utilities for 860
@ 2000-01-26 17:04 Matthew R Wette
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew R Wette @ 2000-01-26 17:04 UTC (permalink / raw)
  To: linuxppc-embedded


Wolfgang Denk writes ...
>
> In message <388F1A55.D62E35B4@netx4.com> Dan Malek wrote:
> >
> > You have to be careful here.  If you choose to use the in-line
> > floating point software, you must use it for all applications
> > because the libraries are built to do this as well.  You can't
> > mix programs that use the kernel FPU emulation and also in-line
> > software floating-point.  The kernel works out of the floating
> > point register area in the TSS, while the software float assigns
> > real processor registers (and other memory locations) to contain
> > the floating-point values.
>
> I am aware that  I  cannot  mix  this  WITHIN  ONE  application,  for
> instance  compiling  the  app  with  soft-float and linking against a
> library that uses the kernel FPU emulation.
>
> Are there really problems when running soft-float only  and  FPU  emu
> only applications on the same machine? I did not expect any...

I think this may be a problem if the compiler uses registers to pass
arguments to and/or return values from functions.  I'd guess if you
can fix that issue then you might be OK.

Matt


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-01-26 17:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-26  2:45 Cross-compiling standard utilities for 860 brian.neidig
2000-01-26  7:20 ` Wolfgang Denk
     [not found] <388F1A55.D62E35B4@netx4.com>
2000-01-26 16:50 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2000-01-26 17:04 Matthew R Wette

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).