Building latest tools for Coldfire

Joel Sherrill joel.sherrill at OARcorp.com
Thu Mar 13 13:27:26 UTC 2003



"Aaron J. Grier" wrote:
> 
> On Wed, Mar 12, 2003 at 10:53:12AM -0600, Mike Siers wrote:
> > I have an older Coldfire bsp that I want to get working with the
> > latest RTEMS snapshot.  I am using OpenBSD as my host system so I need
> > to build the tools from the source code.  I have successfully built
> > the tools for both the i386 and arm platforms but I have a few
> > questions about the m68k/coldfire platform.
> 
> I do m68k from NetBSD/i386. good to see more BSD users around here.  ;)
> 
> > 1) Are there any specific patches that I should use for the Coldfire
> >    with the latest gnu tools?
> 
> yes... see below.
> 
> > 2) Is there a way to tell gcc to only build support for the Coldfire
> >    processor?  I am just trying to save some time in compiling gcc.
> 
> there should be... I'm in a similar situation as you, except I build
> exclusively for cpu32, and don't need coldfire (or any other multilib)
> support.  now would be as good a time to update my gcc, so I'll look
> into this.
> 
> > 3) What configure options should I be using to build gcc?  I used the
> >    options below but when I link I noticed that the crti.o and crtn.o
> >    files were not built and copied to the appropriate spot.  I built
> >    the files manually but my application is dying at startup time.
> >
> >    ../gcc-3.2.1/configure --target=m68k-rtems --with-gnu-ld
> >                           --with-gnu-as --with-newlib
> >                           --enable-threads --prefix=/opt/rtems
> 
> that looks correct, although I personally don't enable threads and
> typically build everything (except gdb) from a unified one-pass tree.
> 
> as for the crti/crto issue, see PR 324 at
> http://www.oarcorp.com/cgi-bin/gnatsweb.pl?database=RTEMS&cmd=login&user=guest&password=guest
> this (and other RTEMS-specific) patches also were integrated into gcc
> 3.2.2 so it might be less work just use that.  there should also be
> diffs up on ftp.rtems.com...

The upcoming 3.2.3 will also include some more m68k target specific
fixes.

> make sure your linker script is pulling these in crti/crto as well.  I
> (and others) can provide examples if you'd like.
> 
> I also have an {Open,Net}BSD/i386 LKM for BDM that was passed on to me a
> while back if anybody's interested.  (I use it daily under NetBSD/i386.)
> 
> --
>   Aaron J. Grier  |   Frye Electronics, Tigard, OR   |  aaron at frye.com

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list