Hi Harry,
Harry Gunnarsson wrote:
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
The clone.S code like that is no longer in the newer version
of uClibc that will be in future dist release. The Makefiles
have been cleaned up so that they use $(CROSS_COMPILE)-
as the tool name prefix (unless I missed some :-)
Regards
Greg
On 11/14/07, *David van Geest* <[EMAIL PROTECTED]
<mailto:[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 <http://www.rhythmreloaded.com/>
_______________________________________________
uClinux-dev mailing list
[email protected] <mailto:[email protected]>
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
<mailto:[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
--
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED]
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.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