How to create a custom board in Yocto ?

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

How to create a custom board in Yocto ?

Jump to solution
7,649 Views
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

Labels (3)
1 Solution
3,250 Views
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.

View solution in original post

0 Kudos
Reply
8 Replies
3,250 Views
LeonardoSandova
Specialist I

Hi Bardi,

what are the errors you are facing?

0 Kudos
Reply
3,250 Views
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 Kudos
Reply
3,251 Views
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 Kudos
Reply
3,250 Views
bardi
Contributor II

All right,

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

0 Kudos
Reply
3,250 Views
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 Kudos
Reply
3,250 Views
bardi
Contributor II

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

0 Kudos
Reply
3,250 Views
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,250 Views
bardi
Contributor II

Thanks Leonardo,

I'll try and give feedback soon.

Regards

0 Kudos
Reply