How to create a custom board in Yocto ?

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

How to create a custom board in Yocto ?

跳至解决方案
6,935 次查看
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 解答
2,536 次查看
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 回复数
2,536 次查看
LeonardoSandova
Specialist I

Hi Bardi,

what are the errors you are facing?

0 项奖励
回复
2,536 次查看
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 项奖励
回复
2,537 次查看
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 项奖励
回复
2,536 次查看
bardi
Contributor II

All right,

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

0 项奖励
回复
2,536 次查看
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 项奖励
回复
2,536 次查看
bardi
Contributor II

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

0 项奖励
回复
2,536 次查看
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.

2,536 次查看
bardi
Contributor II

Thanks Leonardo,

I'll try and give feedback soon.

Regards

0 项奖励
回复