* Re: My cookbook approach to building a cross compiler for the powerpc on an intel x86 Linux box
@ 2000-01-10 5:23 Grant Erickson
2000-01-12 3:05 ` Dan Dickey
0 siblings, 1 reply; 3+ messages in thread
From: Grant Erickson @ 2000-01-10 5:23 UTC (permalink / raw)
To: Dan Dickey; +Cc: linuxppc-embedded@lists.linuxppc.org, Linux PPC Dev
Also, consider the documentation at:
http://www.lcse.umn.edu/~grant/Linux/cross.html
Regards,
Grant Erickson
On 1/9/2000 6:23 PM, Dan Dickey wrote:
>Ok; I originally wrote this in HTML - but the list doesn't accept
>attachments. So, here is how it looks as text; sorry for the
>poor formatting. Consider it a work in progress. :)
> -Dan
>
>Other documents referenced:
>
> * http://members.home.com/mmporter/linux/cross/ (less useful)
> * http://www.objsw.com/CrossGCC/ (more useful)
Grant Erickson University of Minnesota Alumni
o mail:grant@borg.umn.edu 1996 BSEE
o http://www.tc.umn.edu/~erick205 1998 MSEE
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: My cookbook approach to building a cross compiler for the powerpc on an intel x86 Linux box
2000-01-10 5:23 My cookbook approach to building a cross compiler for the powerpc on an intel x86 Linux box Grant Erickson
@ 2000-01-12 3:05 ` Dan Dickey
0 siblings, 0 replies; 3+ messages in thread
From: Dan Dickey @ 2000-01-12 3:05 UTC (permalink / raw)
To: Grant Erickson; +Cc: linuxppc-embedded@lists.linuxppc.org, Linux PPC Dev
Grant Erickson wrote:
>
> Also, consider the documentation at:
>
> http://www.lcse.umn.edu/~grant/Linux/cross.html
>
> Regards,
>
> Grant Erickson
Grant,
thanks for the pointer!
This is fantastic! I believe that it would have saved me at least
an hour last Saturday had I known about your page. Ah well.
It looks like your page is a good reference for building
a "straight" cross-compiler environment. Building applications
based on glibc that will actually run on the target machine with
Linux as the OS.
What I was trying to do to begin with was a bit simpler - just
build a cross environment to allow code to run on one of the
PPC boards that are available. No OS yet, certainly not glibc.
What I imagined is having one environment for building the
"simple" environment, and a later one for actually building
the applications to run on Linux with glibc.
-Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* My cookbook approach to building a cross compiler for the powerpc on an intel x86 Linux box
@ 2000-01-10 2:23 Dan Dickey
0 siblings, 0 replies; 3+ messages in thread
From: Dan Dickey @ 2000-01-10 2:23 UTC (permalink / raw)
To: linuxppc-embedded@lists.linuxppc.org, Linux PPC Dev
Ok; I originally wrote this in HTML - but the list doesn't accept
attachments. So, here is how it looks as text; sorry for the
poor formatting. Consider it a work in progress. :)
-Dan
Other documents referenced:
* http://members.home.com/mmporter/linux/cross/ (less useful)
* http://www.objsw.com/CrossGCC/ (more useful)
------------------------------------------------------------------------
Binutils
Originally retrieved from ftp.cygnus.com - but that seems to be a fairly
"old"
version in terms of the PowerPC world. Downloaded binutils-2.9.1.0.19a
from
ftp://ftp.cdrom.com/pub/linux/tsx-11/packages/GCC/binutils-2.9.1.0.19a.tar.gz
and built and installed it. Went on to GCC-2.95.2; but it insists that
a
newer
version of binutils is needed. Referred to binutils-2.9.4.0.8 or newer.
Downloaded
ftp://ftp.varesearch.com/pub/support/hjl/binutils/binutils-2.9.5.0.22.tar.bz2
and will build and install it.
$ cd /usr/local/src
$ bunzip2 -c binutils-2.9.5.0.22.tar.bz2 | tar xf -
$ cd /usr/local/ppc
$ mkdir build-binutils-2.9.5.0.22
$ cd build-binutils-2.9.5.0.22
$ ../../src/binutils-2.9.5.0.22/configure --target=powerpc-eabi
--prefix=/usr/local/ppc -v
$ make all
$ make install
------------------------------------------------------------------------
Newlib - part 1
$ cd /usr/local/src
$ tar zxf newlib-1.8.2.tar.gz
------------------------------------------------------------------------
GCC
Using the latest version of egcs (now GCC) - version 2.95.2 as retrieved
using
anonymous cvs.
$ PATH=$PATH:/usr/local/ppc/bin
$ export CVSROOT=:pserver:anoncvs@anoncvs.cygnus.com:/cvs/gcc
$ cvs login
(Logging in to anoncvs@anoncvs.cygnus.com)
CVS password: anoncvs
$ cd /usr/local/src
$ cvs -z 9 co -rgcc-2_95-branch egcs
$ cd egcs
$ ln -s ../newlib-1.8.2/newlib .
$ ln -s ../newlib-1.8.2/libgloss .
$ cd /usr/local/ppc
$ mkdir build-gcc-2.95.2
$ cd build-gcc-2.95.2
$ ../../src/egcs/configure --target=powerpc-eabi --with-cpu=860 \
--with-newlib --enable-languages=c++ --prefix=/usr/local/ppc -v
$ make all
$ make install
------------------------------------------------------------------------
Newlib - part 2
$ cd /usr/local/ppc
$ mkdir build-newlib-1.8.2
$ cd build-newlib-1.8.2
$ ../../src/newlib-1.8.2/configure --target=powerpc-eabi
--prefix=/usr/local/ppc -v
$ make all
$ make install
------------------------------------------------------------------------
Glibc
------------------------------------------------------------------------
Bootloader
------------------------------------------------------------------------
Kernel
------------------------------------------------------------------------
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-01-12 3:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-10 5:23 My cookbook approach to building a cross compiler for the powerpc on an intel x86 Linux box Grant Erickson
2000-01-12 3:05 ` Dan Dickey
-- strict thread matches above, loose matches on Subject: below --
2000-01-10 2:23 Dan Dickey
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).