[home] :: Building an ARM Development Environment
0 products in your
Building an ARM Development Environment
Now a pretty, lovely, shining ARM9 development board is just under your eyes, she is nothing but a rose in bud, a diamond in the rough, a virgin in the bed, waiting, for your —— development.
Wait a minute, development is not just so easy. Before developing, the development environment must be build, that is to say, some tools have to be installed for your development. As a beginner, it must be a little daunting for you to set up all the tools you need for ARM development. But don't worry, this only happens before you read this paper, after doing this, you'll be liberated.
This paper is supposed to contain all the information you need to get going, provide instructions for building ARM development environment
1. Installing assembler and linker
Before anything else, the very first thing you should do is to install an assembler and linker, simply, to install the Binutils. The latest release known to work on ARM systems is 2.9.1.0.19a, the very latest version is currently 2.9.1.0.21 and this may also be OK. Both of the versions should work for the following target systems:
Once you have had the source code in place, follow the instructions provided to compile it. To build a native compiler on a Linux/ARM system you should configure with something like
To build a cross-compiler from some other machine to Linux/ARM , use
Then you can “make” and “make install” without problems, however, “make check” at this moment is propably to meet with failures.
2. Installing Compiler
We here recommend the compiler EGCS1.1.1, download it here
If you are working on a Linux/ARM system, you need to have the kernel headers available before building the compiler, use the commands below: (Assuming that your kernel source is in /usr/src/linux)
This paper is supposed to contain all the information you need to get going, provide instructions for building ARM development environment
1. Installing assembler and linker
Before anything else, the very first thing you should do is to install an assembler and linker, simply, to install the Binutils. The latest release known to work on ARM systems is 2.9.1.0.19a, the very latest version is currently 2.9.1.0.21 and this may also be OK. Both of the versions should work for the following target systems:
arm-linux - Linux/ARM with ELF binaries
arm-linuxaout - Linux/ARM with a.out binaries
arm-aout - ARM/standalone using a.out binaries
arm-coff - ARM/standalone using COFF binaries
arm-elf - ARM/standalone using ELF binaries
arm-linuxaout - Linux/ARM with a.out binaries
arm-aout - ARM/standalone using a.out binaries
arm-coff - ARM/standalone using COFF binaries
arm-elf - ARM/standalone using ELF binaries
Once you have had the source code in place, follow the instructions provided to compile it. To build a native compiler on a Linux/ARM system you should configure with something like
$ .../configure arm-linux --prefix=/usr
To build a cross-compiler from some other machine to Linux/ARM , use
$ .../configure --target=arm-linux --prefix=/usr
Then you can “make” and “make install” without problems, however, “make check” at this moment is propably to meet with failures.
2. Installing Compiler
We here recommend the compiler EGCS1.1.1, download it here
If you are working on a Linux/ARM system, you need to have the kernel headers available before building the compiler, use the commands below: (Assuming that your kernel source is in /usr/src/linux)
# cd PREFIX/arm-linux # eg /usr/arm-linux
# mkdir include
# cd include
# ln -s /usr/src/linux/include/asm-arm asm
# ln -s /usr/src/linux/include/linux linux
# mkdir include
# cd include
# ln -s /usr/src/linux/include/asm-arm asm
# ln -s /usr/src/linux/include/linux linux