Host linux target ARM
From OpenTom
In order to compile C programs to ARM executables through a linux pc, follow the steps described here. Alternatively, you may consider building your own toolchain.
Start bash and verify that a C source program can be correctly compiled to a linux executable.
Go to http://www.tomtom.com/page.php?Page=gpl
Download http://www.tomtom.com/gpl/toolchain_redhat_gcc-3.3.4_glibc-2.3.2-20060131a.tar.gz
unpack the file to /usr/local/cross
Perform then the following links:
$ cd /usr/local/cross/gcc-3.3.4_glibc-2.3.2/arm-linux/sys-root/usr/include/asm $ ln -s arch-s3c2410 arch $ cd /usr/local/cross/gcc-3.3.4_glibc-2.3.2/arm-linux/sys-root/usr/include/asm $ ln -s proc-armv proc
This is because the TTGO processor is a SAMSUNG ELECTRONICS S3C2410 (Arm920T), 32-bit architecture (so armv, while armo is for the old 26-bit ones).
Check also http://linux-7110.sourceforge.net/howtos/netbook_new/porting2arm_aleph.pdf
export the PATH:
export PATH=/usr/local/cross/gcc-3.3.4_glibc-2.3.2/arm-linux/bin:$PATH:/usr/local/cross/gcc-3.3.4_glibc-2.3.2/bin
The cross compiler is now ready.

