EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Toolchain for Debian Linux

Started by majess July 4, 2006
Hello ,all
I'm trying to build a toolchain for Debian linux (Etch) with kernel 2-6-15.
I've downloaded
bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4_x86-64.tar.bz2 file from
www.gnuarm.org file download section.
After that I've unpacked it to destination folder and add appropriate
PATH to PATH environment.
When I try to execute arm-elf-gcc I've got:
bash: /home/majess/Praca/ARM/gnuarm-4.0.2/bin/arm-elf-gcc: cannot
execute binary file

My question is: maybe I haven't got appropriate binaries for Debian? If
yes........what I should do ??
Have anybody tried to build toolchain for ARM7 (I've got starterkit
built by myself with LPC2131) at Debian or another Unix like OS? Could
anybody give me some hints and on what things I should pay extra attention?

Somebody on that mailing list writes that he has got a tutorial how to
use Eclipse and ARM-GCC to work together(I mean building standard C
project using external makefile). I've looked to available files
attached to LPC2000 yahoo group and I haven't found it.

I would be very grateful for one simple led blinking program build using
arm-gcc and Eclipse.I mean all files needed to build it with gcc and
Eclipse(LPC213x header file, linker script, startup assembler code, C
source code for led flashing and most important-> good makefile for
arm-gcc).

Thanks for your help
Lukasz Majewski

An Engineer's Guide to the LPC2100 Series

majess wrote:

> Hello ,all
> I'm trying to build a toolchain for Debian linux (Etch) with kernel
> 2-6-15.
> I've downloaded
> bu-2.16.1_gcc- 4.0.2-c-c+ +_nl-1.14. 0_gi-6.4_ x86-64.tar. bz2 file from
> www.gnuarm.org file download section.
> After that I've unpacked it to destination folder and add appropriate
> PATH to PATH environment.
> When I try to execute arm-elf-gcc I've got:
> bash: /home/majess/ Praca/ARM/ gnuarm-4. 0.2/bin/arm- elf-gcc: cannot
> execute binary file
>
> My question is: maybe I haven't got appropriate binaries for Debian? If
> yes........what I should do ??
> Have anybody tried to build toolchain for ARM7 (I've got starterkit
> built by myself with LPC2131) at Debian or another Unix like OS? Could
> anybody give me some hints and on what things I should pay extra
> attention?
>
I build my toolchain from source on a Mandriva-2006 system:
http://www.openhardware.net/?title=ARM%20Thumb%20tools%20for%20LPC2000&dir=ArmTools&file=ThumbToolchain.html

That is binutils-2.16.1, gcc-4.0.2, newlib-1.13 and Insight-6.4. The
toolchain is a Thumb or ARM32, depending on the -mthumb switch.

I don't bother coding in C++, IMO, C++ is not suitable for use on
embedded systems. However, you may take what I have and build from there?

Regards,

TomW

--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------


The 2024 Embedded Online Conference