Generic SDK for multiple iMX6 SoC Support

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

Generic SDK for multiple iMX6 SoC Support

Jump to solution
324 Views
cowenl3h
Contributor II

I have two boards, one imx6sx based and one imx6ull based. I want to be able to compile apps with a yocto SDK so they will run on either platform.

My thought to create the SDK is define a 'generic' machine that is minimally tuned for arm7a and do the usual 'bitbake -c populate_sdk' from there. But all the machine examples I'm finding are for specific boards, so they all tune to more specific levels like 'cortexa7' or 'cortexa9', so I'm having uses getting such a machine setup.

Is a generic machine the right way to go, or is there a more proper yocto way of doing this?

Thanks.

Labels (5)
0 Kudos
Reply
1 Solution
280 Views
cowenl3h
Contributor II

Ok, so I found a solution that I was looking for.

I created a new machine 'imx6-generic-board.conf' with just a couple lines:

require conf/machine/include/imx-base.inc
require conf/machine/include/arm/arch-armv7a.inc
 
I built my yocto SDK using that machine, and programs I compile seem to run on both imx6ull and imx6sx platforms now.
To me, this seems reasonable since when I look at the ARM documentation, all the Cortex-A processors fall under the armv7-a architecture:  ARM Cortex-A Series Programmer's Guide for ARMv7-A
 

View solution in original post

0 Kudos
Reply
3 Replies
308 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Download the oficial BSP, this going to work, Make sure that the BSP support both devices:

https://www.nxp.com/design/design-center/software/embedded-software/i-mx-software/embedded-linux-for...

 

Regards

 

0 Kudos
Reply
281 Views
cowenl3h
Contributor II

Ok, so I found a solution that I was looking for.

I created a new machine 'imx6-generic-board.conf' with just a couple lines:

require conf/machine/include/imx-base.inc
require conf/machine/include/arm/arch-armv7a.inc
 
I built my yocto SDK using that machine, and programs I compile seem to run on both imx6ull and imx6sx platforms now.
To me, this seems reasonable since when I look at the ARM documentation, all the Cortex-A processors fall under the armv7-a architecture:  ARM Cortex-A Series Programmer's Guide for ARMv7-A
 
0 Kudos
Reply
281 Views
cowenl3h
Contributor II

Hi,

I tried the NXP BSP site link, but the BSP's there are either for a imx6ul/ull/ullz OR imx6* (basically, Cortex-A7 or Cortex-A9 groups), but not both.

Example: If I build a C program with the BSP for the imx6ull and try running it on my imx6sx board, I get 'Illegal Instruction' error.

 

0 Kudos
Reply