User manual
5 Software Development
5. Software Development
5.1. Environment
5.1.1. Compile your software directly on the OnRISC
You can start programming directly on the OnRISC. The toolchain is already installed and GCC
compiler will be invoked in the same way it is done on a desktop Linux. To modify files you can
use vi or some other editor. This method is preferred, if your software has many dependencies.
5.1.2. Cross-compile your software on the PC
KS8695 based Devices For more convenience you can also use a PC with Linux running on it.
This can be either a directly installed Linux or Linux running in a virtual machine
35
for Windows
users. For the compilation of your own applications outside of the OnRISC you’ll need a cross-
compiler
36
for the ARM platform. You’ll find one on the CD. Depending on your Debian version
you’ll need the appropriate version:
1. toolchain_gcc.4.2.2_libc.2.3.6.tar.bz2 for Debian 4.0 Etch
2. arm-linux-gcc-4.3.2-gnueabi.tar.bz2 for Debian 5.0 Lenny
37
3. arm-linux-gcc-4.4.5-gnueabi.tar.bz2 for Debian 6.0 Squeeze
Please decompress one of these archives into the /opt directory of your PC. To install the toolchain
for Debian 4.0 execute:
su
mount /dev/cdrom /mnt
cd /opt
tar -xvjf /mnt/development/toolchain_gcc.4.2.2_libc.2.3.6.tar.bz2
Add /opt/arm-linux-gcc-4.2.2/bin to your PATH environment variable:
export PATH=/opt/arm-linux-gcc-4.2.2/bin:$PATH
Following utilities prepent with arm-linux- will be available after extracting the files from the
archive (refer to Table 14).
Warning: please note that your software compiled for Debian 4.0 Etch can’t be executed on Debian
5.0 Lenny without recompilation due to new ABI.
If you are developing on a 64-bit OS, please install all needed 32-bit libraries (zlib etc.), because
toolchains were compiled for 32-bit OS.
35
You can use free VM Software like VMWare Player www.vmware.com or VirtualBox www.virtualbox.org
36
See http://en.wikipedia.org/wiki/Cross-compile for explanation
37
EABI (http://en.wikipedia.org/wiki/EABI) interface is mandatory for new Debian versions. Debian 5.0 is the
last version where you can choose between old ABI and EABI. The next version will be based only on the new
interface.
May 2014 OnRISC User Manual 31