Setup iMX7 the development tool chain? Document req

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setup iMX7 the development tool chain? Document req

1,344 Views
baskarankrishna
Contributor I

Booting Linux on in physical CPU seems okay,Attached u boot message file for the reference

Pls share me a document  ""about how to setup the development tool chain?""

Thanks

K.Baskaran

Original Attachment has been moved to: booting-message.txt.zip

Labels (1)
0 Kudos
Reply
1 Reply

956 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Baskaran,

if you want to cross compile an application you must use Metatoolchain in Yocto. In the following link you can find a complete Yocto training and Task 7 is about this.

Yocto Training - HOME 

In summary these are the steps to add metatoolchain and cross compile a simple hello world application:

$ bitbake meta-toolchain
$ sh tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-1.4.1.sh
$ source /opt/poky/1.4.1/environment-setup-armv7a-vfp-neon-poky-linux-gnueabi
$ arm-poky-linux-gnueabi-gcc -v
$ arm-poky-linux-gnueabi-gcc hello.c -o hello

On the other hand, if you want to build an application natively in the iMX7 you need to add the sdk packages to the image, the simplest way may be to add to the end of your build/conf/local.conf file:


IMAGE_INSTALL-append += "\
packagegroup-sdk-target \
"

Regards,

Carlos

0 Kudos
Reply