Regarding the second question.

I believe David & Greg replied on this in a similar email thread 3 weeks
ago. I intended to give my 2 cents since I had some experience on this, but
I reply on this instead.
I currently do compile both kernel and user-level applications using
CodeSourcery's latest for ColdFire, i.e. 4.2-47. It seems to work fine,
however there are a couple of things that you have to do to the 20070131
distro and the toolchain itself.

1) For you vendor, edit vendor/<whatever>/<board>/config.arch and change to
this
  CROSS_COMPILE=m68k-uclinux-
2) For your vendor, edit vendor/<whatever>/<board>/Makefile and change all
explicit references to m68k-elf-<objcopy, gcc etc> to m68k-uclinux-<objcopy,
gcc etc>
3)  Edit uClibc/libc/sysdeps/linux/m68k/clone.S, and remove the line that
says
   .set clone,__clone
  See the following patch

*** 80,85 ****
   .weak clone
   clone = __clone
  #else
-  .set clone,__clone
  #endif

--- 80,84 ----

4) Uncompress the latest CS toolchain and do
    $ cd freescale-coldfire-4.2/lib/gcc/m68k-uclinux/4.2.1/include
    $ ln -s ../include-fixed/limits.h limits.h
5) Obviously, append the freescale-coldfire-4.2/bin to your PATH variable

That's it! Now it compiles fine. Let me know how it goes.

Greg & David. You might want to consider the clone.S change above. And
possibly the makefile changes

Regards,
Harry


On 11/14/07, David van Geest <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm a bit new at embedded programming, so bear with me a bit.  I'm running
> uClilnux on the Freescale M5275EVB, and I have a couple of questions:
>
> 1.  What are the options for including custom user software on the board?
> Is it necessary to re-compile the kernel with your app included every time
> you make a change to your program(s)?
>
> 2.  Has anyone used SourceryG++ (Personal Edition) to compile the uCLinux
> kernel and/or their own applications?  Any tips on how that can be
> accomplished?
>
> That's all for now.  Thanks for your help.
>
> -David
> www.rhythmreloaded.com
>
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to