How to create a custom board in Yocto ?

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

How to create a custom board in Yocto ?

ソリューションへジャンプ
7,672件の閲覧回数
bardi
Contributor II

Hi all,

I've tried to create a new layer, recipes, BSP... for an imx6 custom board using Yocto, but I stuck in several errors!!!

Could you please provide a step by step tutorial for this.

Thanks in advance

Bardi

ラベル(3)
1 解決策
3,273件の閲覧回数
LeonardoSandova
Specialist I

I got this pretty simple tutorial

https://github.com/lsandoval/presentations/blob/master/i.MX/yocto/layer.md

After this step, I suggest creating a repo with git, so you got control of your changes.

sources/meta-<my-layer> $  git init

sources/meta-<my-layer> $  git add .

sources/meta-<my-layer> $  git commit '1st commit'

Create a github or bitbucket account and follow the instructions there to PUSH your new code.

元の投稿で解決策を見る

0 件の賞賛
返信
8 返答(返信)
3,273件の閲覧回数
LeonardoSandova
Specialist I

Hi Bardi,

what are the errors you are facing?

0 件の賞賛
返信
3,273件の閲覧回数
bardi
Contributor II

I used Sabre-SD BSP and I tried based on Yocto online documents. Most of the errors were related to improper BSP & layer naming and missing packages to create images. Unfortunately, I removed all when I disappointed and I do not have any snap-shot !  

Could you please tell me step by step how to walk through this process ?

0 件の賞賛
返信
3,274件の閲覧回数
LeonardoSandova
Specialist I

I got this pretty simple tutorial

https://github.com/lsandoval/presentations/blob/master/i.MX/yocto/layer.md

After this step, I suggest creating a repo with git, so you got control of your changes.

sources/meta-<my-layer> $  git init

sources/meta-<my-layer> $  git add .

sources/meta-<my-layer> $  git commit '1st commit'

Create a github or bitbucket account and follow the instructions there to PUSH your new code.

0 件の賞賛
返信
3,273件の閲覧回数
bardi
Contributor II

All right,

Now, how safely add Sabre-SD kernel BSP files and associated recipes,... (a copy of originals) ?

0 件の賞賛
返信
3,273件の閲覧回数
LeonardoSandova
Specialist I

One way is to create patches which bitbake applies when baking. This approach works for a small set of patches. A better approach is to have a git repo on the cloud, and indicate bitbake to use it (repo url and commit ID). This way, you do all your stuff on this repo, and once you have something robust, then bake it inside yocto.

Leo

0 件の賞賛
返信
3,273件の閲覧回数
bardi
Contributor II

Could you please write a line by line example (continuing your previous example) ?

0 件の賞賛
返信
3,273件の閲覧回数
LeonardoSandova
Specialist I

Look at this layer

https://github.com/Freescale/meta-fsl-arm-extra

This is a BSP layer based on meta-fsl-arm.

For kernel, this could be a nice example

meta-fsl-arm-extra/recipes-kernel/linux/linux-wandboard_3.0.35.bb at master · Freescale/meta-fsl-arm...

I am not sure if this is what you need.

3,273件の閲覧回数
bardi
Contributor II

Thanks Leonardo,

I'll try and give feedback soon.

Regards

0 件の賞賛
返信