I have an ARM7 board from Spark Fun Electronics called the Logomatic (I have the previous version) that I wanted to recompile the firmware for. These are the steps I used to get GNUARM compiled on my Fedora 9 Linux system.
Get Bits From:

Unpackage gnuarm-4.0.2
bunzip2 -c ~/Download/ARM/bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4_x86-64.tar.bz2  | tar xf -
	
PATH=/src/cmd/gnuarm-4.0.2/bin:$PATH
Unpack Additonal headers
mkdir gnuarm-3.4-headers	(in gnuarm-4.0.2)
cd gnuarm-3.4-headers
unzip ~/Download/gnuarm-3.4-headers.zip
mv include/arch ../arm-elf/include
Build newlib-lpc
mkdir newlib-lpc-5a	(in gnuarm-4.0.2)
cd newlib-lpc-5a
unzip $H/archive/ARM/newlib-lpc_rel_5a
/src/cmd/gnuarm-4.0.2/bin/arm-elf-gcc -c *.s
/src/cmd/gnuarm-4.0.2/bin/arm-elf-gcc -c *.c
ar q libnewlib-lpc.a $(

The files in the libnewlib-lpc.a are:
_close_r.o _fstat_r.o _ioctl_r.o _lseek_r.o _open_r.o _read_r.o _sbrk_r.o sys_dev.o sys_mam.o sys_pll.o sys_time.o sys_vic.o sys_vpb.o uart0_poll.o uart0_int.o uart1_poll.o uart1_int.o _write_r.o interrupt_sup.o uart0_ishell.o uart1_ishell.o

Unpack Demos
mkdir lpc213x_lpc214x_examples; cd lpc213x_lpc214x_examples
unzip lpc213x_lpc214x_examples_20061205.zip

If you found this page because you have a logomatic, here is the UART_POLLED demo main.c modified to blink the Logomatic LEDs.


Glen Overby
Started: 12/2008
Last updated: $Id: gnuarm-on-linux.html,v 1.1 2008/12/26 04:03:11 glen Exp glen $