Cross compile for i.MX6 Platform

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

Cross compile for i.MX6 Platform

4,853 次查看
baingc
Contributor I

Dear all,

I am developing a application by C/C++ on windows.

Sometime before, I try to cross-compile it for Raspberry Pi by Cygwin.

Now, I want to cross-compile again, but for i.MX6 Platform.

Can you show me how to do it?

ps: Sorry, I have no much knowledge about make file and the building system :smileysad:

  • Add to Phrasebook
    • No word lists for English -> Vietnamese...
    • Create a new word list...
  • Copy
标签 (1)
0 项奖励
3 回复数

4,756 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Nguyen Cao Bai,

You can find the Linux BSPs on the link below:

https://www.nxp.com/design/software/embedded-software/linux-software-and-development-tools/embedded-...

If you are using the i.MX6 the latest supported Kernel is 5.4.3. You can download the documentation on the link below (you may need to login to download)

https://www.nxp.com/webapp/Download?colCode=L5.4.3_1.0.0_LINUX_DOCS

Please follow the i.MX Yocto Project User’s Guide to install the BSP and there is an option to extract the i.MX6 toolchain (look for the instructions on the documentation, search for the populate_sdk instruction). Once the toolchain is extracted you can install it to cross compile.

I hope this helps!
Regards,

0 项奖励

4,757 次查看
baingc
Contributor I

Dear gusaarambula

Thank for answer, this time I want to cross-compile on a Ubuntu host.

Do you have any instruction?

As I know, we usually use gcc, however there are many issues.

So, it is better if give me the instruction to do.

0 项奖励

4,757 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Nguyen Cao Bai,

Please download the documentation for the BSP Release and check the i.MX Porting Guide. In section 2.1.1. “How to build and load Kernel in standalone environment” you will find the command to extract an SDK with the toolchain to cross compile for the i.MX processor.

You could also check the i.MX Linux User’s Guide in section 4.5.11, which has the same general information. (These sections are for the latest BSP Release, L5.4.3_1.0.0)

I hope this helps!

Regards,

0 项奖励