Generic SDK for multiple iMX6 SoC Support

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

Generic SDK for multiple iMX6 SoC Support

跳至解决方案
1,154 次查看
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.

标签 (5)
0 项奖励
回复
1 解答
1,110 次查看
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 项奖励
回复
3 回复数
1,138 次查看
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 项奖励
回复
1,111 次查看
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 项奖励
回复
1,111 次查看
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 项奖励
回复