# MX-HELLOWORLD =# Requirements =============== 1. cross compiler -> MX-CCOMPILER =# Setup compiler ================= export PATH="/usr/local/armv7a/arm/bin:$PATH" export CROSS_COMPILE=arm-angstrom-linux-gnueabi =# Create the sources ===================== cd mkdir -pv workdir/imx53/app cd workdir/imx53/app cat << EOF_M > hello_world.c #include #include int main(int argc,char *argv[]) { printf("Hello world!!!\n"); return 0; } EOF_M arm-angstrom-linux-gnueabi-gcc -std=gnu89 -Wall hello_world.c -o hello_world =# Copy to target (nfs) ======================= cd cd workdir/imx53/app cp hello_world /tftpboot/rootfs-bb-mx53/root/ =# Execute on target (nfs) ========================== root@vmx53 ~$ /root/hello_world