Compiling a Linux program for the ARM architecture - working on the host OS

I have a Freescale ARM Coretex-A8 development board (i.MX53) running Linux Ubuntu. It loads very well and I can access the system using the mouse / keyboard / terminal.

To get started, I would like to make the application running on the board inside the host operating system, the same as when I started the application on your PC.

My problem is to compile my test program using toolchains such as YAGARTO based on gcc i, as a result there are problems with bacause binding, I did not detect the script to run.

I find a lot of information about creating bare metal configurations (including for compiling the kernel and creating boot scripts and links), but nothing useful for creating an application on the host OS.

My development environment runs on Windows 7. I also have the ability to run on Linux X86, but I doubt it will help me build ARM applications.

+5
source share
1 answer

For developing ARM-Linux applications, the Linux Host (x86) machine with the ARM toolkit installed in it is preferred. On an Ubuntu Desktop computer, you can use the following command to set the ARM tool binding:

apt-get install gcc-arm-linux-gnueabi

After installing the toolchain, you can use the following command to cross-compile:

gcc-arm-linux-gnueabi-gcc -o hello hello.c

, C Standard C . Host Linux (x86) Target Linux (ARM).

Windows ARM-Linux Toolchain. .

Wiki - , Linux ARM, .

+6

All Articles