Difference between revisions of "Programming for A13 in debian"

(Programming on the A13 board)
Line 48: Line 48:
  
 
== Programming on the A13 board ==
 
== Programming on the A13 board ==
 
 
[[File:Example.png|thumb |alt=Example alt text |Example caption]]
 

Revision as of 20:53, 27 December 2012

THIS IS A WORK IN PROGRESS

Programming for A13 in debian

There are 2 main methods to create programs for your A13 board.

  • Cross compiling - Setting up a tool chain to compile on another system, which is typically faster and easier to manage.
  • Programming on board - installing a compiler to compile directly on the board


The sections below contain instructions for these 2 methods

Cross Compiling

Cross compiling is usually performed on another linux machine, it seems the most common for doing this is ubuntu.

If you have compiled the kernel and setup the SD card you will already have most of the tool chain setup on your machine

Setting up the tool chain

The following instructions are to be performed on a linux machine which is not the A13 board.

Complete the following steps to setup the tool chain.

These instructions have been tested on ubuntu only however they may work for other distributions.


Install eclipse

Install the tool chain

Debugging on embedded using opensource tools The instructions contained in this wiki were originally sourced from this page

Some issues found for some users:

- Issue : After having installed eclipse and the toolchain the path and prefix for the compiler as listed in the example could not be found.

Solution : Look for the same prefix in a different path, /usr/bin is likely to hold the files.

- Issue : Having built the program and copied it to the A13 board it will not run resulting in "permission denied"

Solution: Check the permissions for the file are set to allow execution by typing #ls -l . if you dont see a lot of x's (3) in the first column its likely your cause. To change the permissions type #chmod ugo+x FileName

- Issue : executing the file returns "command not found"

Solution: A library file can not be found this is either /lib/ld-linux.so.3 or /lib/ld-linux-armhf.so.3 . To find the specific one your file is looking for open the executable in a text editor on the first line or 2 you will find the file name its looking for ld-linux.so.3 .

Programming on the A13 board