# MX-HELLOWORLS =# Requirements =============== 1. cross compiler -> MX-CCOMPILER =# Setup compiler ================= export PATH="/usr/local/armv7a/arm/bin:$PATH" export CLFS_TARGET=arm-angstrom-linux-gnueabi =# Create the sources ===================== cd mkdir -pv workdir/imx51/app cd workdir/imx51/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/imx51/app cp hello_world /tftpboot/rootfs-bb-mx51/root/ =# Execute on target (nfs) ========================== root@vmx51 ~$ /root/hello_world