Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-13 Thread Wookey
+++ Wookey [2009-10-10 12:33 +0100]: > +++ Jon Smirl [2009-10-08 17:33 -0400]: > > Can someone help me out and point me to a working cross toolchain for > > arm7tdmi with uclibc or equivalent on Linux? I've got a working glib > > setup but it keeps linking in 900KB of run-time code. I had two repl

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-11 Thread Jon Smirl
I finally got a libc working with everything build from source on 64b. I used openembedded to make gcc. Then added in newlib. You need the libelf from Ubuntu 9.10 in order to compile. I still have a couple of minor issues with exceptions from div0. Now, the downside. Contiki linked in 40KB of run

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-10 Thread Michel Catudal
Le 10/10/2009 19:18, Jon Smirl a écrit : > I'm able to compile the code and link it using the arm compilers from > open-embedded. I made stubs for the problem libc functions. > > I'm still looking for a working, small libc. newlib won't build on 64b > ubuntu 9.04 -- it doesn't like the libelf versi

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-10 Thread Jon Smirl
I'm able to compile the code and link it using the arm compilers from open-embedded. I made stubs for the problem libc functions. I'm still looking for a working, small libc. newlib won't build on 64b ubuntu 9.04 -- it doesn't like the libelf version in ubuntu. Next step is trying a more current l

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-10 Thread Jon Smirl
On Fri, Oct 9, 2009 at 1:05 AM, Øyvind Harboe wrote: > Have a look at > > http://opensource.zylin.com/gccbinary.html 32b binaries from this one need libmpfr.so to run. I have a 64b version, I'd need to figure how to build the 32b one. Are there 64b binaries available? -- Jon Smirl jonsm...@gm

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-10 Thread Wookey
+++ Jon Smirl [2009-10-08 17:33 -0400]: > Can someone help me out and point me to a working cross toolchain for > arm7tdmi with uclibc or equivalent on Linux? I've got a working glib > setup but it keeps linking in 900KB of run-time code. > > I've spent all day searching and playing with buildroot

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-09 Thread Jon Smirl
Segfault is caused by startup.S Uncomment this line below and the linker seg faults. //_fiq: .word fiq /* * armboot - Startup Code for ARM720 CPU-core * * Copyright (c) 2001 Marius Gröger * Copyright (c) 2002 Alex Züpke * * See file CREDITS for list of people who con

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-09 Thread Jon Smirl
On Fri, Oct 9, 2009 at 2:43 AM, David Brownell wrote: > On Thursday 08 October 2009, Jon Smirl wrote: >> >> Right; and does the CodeSourcery uCLinux version help at all? >> > >> > I'm still building it. They only had 32b pre-built binaries and I'm >> > running 64b. >> >> I gave up fixing build pr

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-09 Thread Brian Hutchinson
I'm currently using ELDK ARM on a Debian host (have to install alien pkg to deal with RPMs) and CodeSourcery g++ lite. I like EMDebian and OpenEmbedded too but the install of ELDK is as simple as: Mount iso as loopback run ./install -d /opt/eldk arm export arch=ARM export $CROSS_COMPILE=arm-linux

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-09 Thread Luca Ottaviano
Jon Smirl ha scritto: > Can someone help me out and point me to a working cross toolchain for > arm7tdmi with uclibc or equivalent on Linux? I've got a working glib > setup but it keeps linking in 900KB of run-time code. Are you talking about libc or glib? If you say glib, I understand the GNOME f

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-09 Thread Nico Coesel
you executables with a reasonable size. Nico Coesel -Oorspronkelijk bericht- Van: openocd-development-boun...@lists.berlios.de namens Jon Smirl Verzonden: do 10/8/09 23:33 Aan: openocd-development@lists.berlios.de Onderwerp: [Openocd-development] Cross compiler for ARM7 bare metal Can

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread David Brownell
On Thursday 08 October 2009, Jon Smirl wrote: > >> Right; and does the CodeSourcery uCLinux version help at all? > > > > I'm still building it. They only had 32b pre-built binaries and I'm running > > 64b. > > I gave up fixing build problems on Ubuntu. Now I'm seeing if I can get > the 32b binari

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread Jon Smirl
On Fri, Oct 9, 2009 at 1:01 AM, Jon Smirl wrote: > On Fri, Oct 9, 2009 at 12:56 AM, David Brownell wrote: >> On Thursday 08 October 2009, Jon Smirl wrote: >>> libc is the problem. >> >> Right; and does the CodeSourcery uCLinux version help at all? > > I'm still building it. They only had 32b pre-

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread Øyvind Harboe
Have a look at http://opensource.zylin.com/gccbinary.html -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de http

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread Jon Smirl
On Fri, Oct 9, 2009 at 12:56 AM, David Brownell wrote: > On Thursday 08 October 2009, Jon Smirl wrote: >> libc is the problem. > > Right; and does the CodeSourcery uCLinux version help at all? I'm still building it. They only had 32b pre-built binaries and I'm running 64b. > > If you're doing th

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread Jon Smirl
On Thu, Oct 8, 2009 at 7:02 PM, David Brownell wrote: > On Thursday 08 October 2009, Michel Catudal wrote: >> An arm-linux-gcc is only for Linux based system, not bare metal stuff. > > Depends what you mean by "bare metal". > > I use "arm-none-linux-gnueabi-gcc" all the time to compile > Linux ker

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread David Brownell
On Thursday 08 October 2009, Jon Smirl wrote: > libc is the problem. Right; and does the CodeSourcery uCLinux version help at all? If you're doing that kind of not-quite-bare metal work, I'd expect you would need a semicustom libc. - Dave ___ Openoc

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread Jon Smirl
On Thu, Oct 8, 2009 at 7:13 PM, Duane Ellis wrote: > Jon Smirl wrote: >> >> Can someone help me out and point me to a working cross toolchain for >> arm7tdmi with uclibc or equivalent on Linux? I've got a working glib >> setup but it keeps linking in 900KB of run-time code. >> >> I've spent all da

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread David Brownell
On Thursday 08 October 2009, Michel Catudal wrote: > > It uses an older version of GCC, to be honest with you, there are > > *little* if any benefit you will get if you _really_ want a new version. > > > >     > You're kidding are you? > There are many benefits to the newer compilers, including sup

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread Michel Catudal
Le 08/10/2009 19:13, Duane Ellis a écrit : > > > Take a look at > > http://lostarm.sf.net > > That is very old stuff It is easier to download mine or create your own with my source files. I use the latest 4.4.1 code. > It builds a *COMPLETE* gnu gcc tool chain for ARM7TDMI - bare meta

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread Michel Catudal
Le 08/10/2009 19:02, David Brownell a écrit : > On Thursday 08 October 2009, Michel Catudal wrote: > >> An arm-linux-gcc is only for Linux based system, not bare metal stuff. >> > Depends what you mean by "bare metal". > > I use "arm-none-linux-gnueabi-gcc" all the time to compile > Linux

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread Duane Ellis
Jon Smirl wrote: > Can someone help me out and point me to a working cross toolchain for > arm7tdmi with uclibc or equivalent on Linux? I've got a working glib > setup but it keeps linking in 900KB of run-time code. > > I've spent all day searching and playing with buildroot and I can't > achieve a

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread David Brownell
On Thursday 08 October 2009, Michel Catudal wrote: > An arm-linux-gcc is only for Linux based system, not bare metal stuff. Depends what you mean by "bare metal". I use "arm-none-linux-gnueabi-gcc" all the time to compile Linux kernels; and sometimes for U-Boot, or stuff running on Cortex-M3. By

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread Michel Catudal
Le 08/10/2009 18:13, David Brownell a écrit : > On Thursday 08 October 2009, Jon Smirl wrote: > >> Can someone help me out and point me to a working cross toolchain for >> arm7tdmi with uclibc or equivalent on Linux? I've got a working glib >> setup but it keeps linking in 900KB of run-time cod

Re: [Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread David Brownell
On Thursday 08 October 2009, Jon Smirl wrote: > Can someone help me out and point me to a working cross toolchain for > arm7tdmi with uclibc or equivalent on Linux? I've got a working glib > setup but it keeps linking in 900KB of run-time code. > > I've spent all day searching and playing with bui

[Openocd-development] Cross compiler for ARM7 bare metal

2009-10-08 Thread Jon Smirl
Can someone help me out and point me to a working cross toolchain for arm7tdmi with uclibc or equivalent on Linux? I've got a working glib setup but it keeps linking in 900KB of run-time code. I've spent all day searching and playing with buildroot and I can't achieve a working environment. -- J