Carsten,

On Wed, Aug 22, 2007 at 07:11:27PM +0200, Carsten Schlote wrote:
> I spent some time this afternoon to investigate the current situation
> for a GCC/GLibC toolchain supporting the latest Coldfire generations
> mcf547x and mcf548x. It's the first non-crippeled version of the
> Coldfire M68k architecture including MMU and FPU, which is usable for a
> real linux kernel (or whatever).

Yup; we still have a Phytec board laying around somewhere in the lab,
but we never managed to do anything useful with it, because at the time
we started, there was no CodeSourcery activity visible wrt. gcc, and the
freescale stuff was not usable.

> The latest GCC release 4.2.1 doesn't include some very hot changes for
> these CPU cores yet. They seem to be scheduled for release with the
> up-coming GCC 4.3.
>
> Basically this means, that I can use 4.2.1 as basement and apply about
> 63 patches to get the latest coldfire changes into the GCC sources, or
> wait for GCC 4.3 to be released - but that will happen about end this
> year I fear.

Then I would go the patch way; what you can also do is make a big patch
from gcc-4.2-latest to CVS as of some date, and start from there.

> GLibC Ports 2.6.1 seems to support these latest GCC improvements
> already.

Good start.

> Anyway with GCC 4.2.1 the OSELAS build process terminates at
> 'glibc-crt.compile' - for some reason the stage 1 GCC isn't not found
> and glibc-ports can't determine the m68k target CPU. I'm not sure, if
> this is caused by extremly long path names or other reasons, yet (see
> below). $(CC) seems to be undefined in line 16 and bash tries to execute
> '-E'.

...

> ""/opt/"OSELAS.Toolchain-1.1.0""/""m68k-mcfv4e-linux-gnu"/gcc-"4.2.1"-gl
> ibc-"2.6.1"-kernel-"2.6.20.7"""/src/target/glibc-2.6.1/configure
> --prefix=/usr --build=i686-pc-linux-gnu --host="m68k-mcfv4e-linux-gnu"
> --target="m68k-mcfv4e-linux-gnu" --with-fp --enable-add-ons=ports,nptl
> --with-headers=/opt/OSELAS.Toolchain-1.1.0/m68k-mcfv4e-linux-gnu/gcc-4.2
> .1-glibc-2.6.1-kernel-2.6.20.7/sysroot-m68k-mcfv4e-linux-gnu/usr/include
> --enable-kernel="2.6.16" --without-cvs --disable-sanity-checks
> --enable-debug --without-gd --with-__thread --enable-shared --with-tls
> checking build system type... i686-pc-linux-gnu
> checking host system type... m68k-mcfv4e-linux-gnu
> checking add-on ports for preconfigure fragments... am33 arm hppa m68k
> /opt/OSELAS.Toolchain-1.1.0/m68k-mcfv4e-linux-gnu/gcc-4.2.1-glibc-2.6.1-
> kernel-2.6.20.7/src/target/glibc-2.6.1/ports/sysdeps/m68k/preconfigure:
> line 16: -E: command not found

Hmmm, I've seen that before. However, I cannot remember the reason;
would be good to have a look at the code.

Looks like you are doing some serious work on that. I can give you rw
access to the repository, so you could check the config into the trunk.
If you want to, please send me an encrypted mail with your favourite svn
password.

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9


-- 
ptxdist mailing list
[email protected]

Reply via email to