How to cross compile I.MX6 Application

1. First compile the yocto toolchain using below command

bitbake meta-toolchain


bitbake -c do_populate_sdk your-image-name(e.g. core-image-minimal)


bitbake meta-toolchain-qt5

2. After successful compilation you will get “arm-poky-linux——” in deploy dir.

sh arm-poky-linux——

it will extract the toolchain and creates the sysroodir for toolchain binaries and


run the env file in command line ” . environment-setup-cortexa7hf-neon-linux-gnueabi “

3. check toolchain is exported or not using command line “echo $CC”


4. helloworld.c

5. $CC helloworld.c -o hello


Now you Cross compilation is done.


NOTE: “file hello” ill give the information of binary.