Generic SDK for multiple iMX6 SoC Support

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Generic SDK for multiple iMX6 SoC Support

ソリューションへジャンプ
1,135件の閲覧回数
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,091件の閲覧回数
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,119件の閲覧回数
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,092件の閲覧回数
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,092件の閲覧回数
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 件の賞賛
返信