Setup iMX7 the development tool chain? Document req

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Setup iMX7 the development tool chain? Document req

1,345 次查看
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

标签 (1)
0 项奖励
回复
1 回复

957 次查看
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 项奖励
回复