Cross compile for i.MX6 Platform

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

Cross compile for i.MX6 Platform

4,737 Views
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
Labels (1)
0 Kudos
3 Replies

4,640 Views
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 Kudos

4,641 Views
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 Kudos

4,641 Views
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 Kudos