Hello!
I am using Eclipse on Ubuntu 13.04 x64 and would like to setup a project for cross-compilation for ARM, but I'm quite clueless as how to do it, being a comple te n00b with these 'embedded' things, I find myself staring in disbelief at the screen, unable to get a simple "Hello World" program to compile through and through.
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!";
return 0;
}
I've downloaded Sourcery CodeBench and the GNUARM plugin for Eclipse to use that toolchain, but failed to build a correct elf image, because the linker complains about not finding a __start symbol. If I try to execute the file (Test.elf) on the board, the terminal complains that the file itself cannot be found (!!!) even though I have rwx permissions on it and have chown-ed it. I have also downloaded Linaro and GNUARM toolchains. Building with those outputs a slew of warnings and/or errors that I have not (and SHOULD NOT EVER) seen before. (like: invalid floating point option -mfpu=vfpv3, or: bad value -march=armv7-a -- not supposed to happen)
My question is, can you guide me in the right direction of setting up a toolchain (environment variables and makefiles is fine, if not with Eclipse), because scouring the Internet has left me wanting for something that is more specific to imx.
Kind Regards,
Peter