Difference between revisions of "Programming for A13 in debian"
(initial cut) |
(→Setting up the tool chain) |
||
Line 18: | Line 18: | ||
=== Setting up the tool chain === | === Setting up the tool chain === | ||
− | [http://www.agilart.com/blog/debugging-on-embedded-using-opensource-tools-part-1 Debugging on embedded using opensource tools] The instructions contained | + | [http://www.agilart.com/blog/debugging-on-embedded-using-opensource-tools-part-1 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 == | == Programming on the A13 board == |
Revision as of 08:43, 27 December 2012
THIS IS A WORK IN PROGRESS
Contents
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
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 .