Skip to content

Demo OpenEmbedded layer to manage BSP changes

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
COPYING.MIT
Notifications You must be signed in to change notification settings

Doulos/meta-my-bsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This README file contains information on the contents of the meta-my-bsp layer.

The layer demonstrates how to modify a kernel using append recipes to:

  • configure additional in-tree modules (e.g CONFIG_WIREGUARD)
  • add the skeleton hello-mod recipe

Compatible Machines

  • QEMU emulators (only tested with qemuarm64)
  • NXP i.MX 93 EVK (imx93-11x11-lpddr4x-evk)

Dependencies

URI: https://github.com/yoctoproject/poky.git branch: mickledore

URI: https://github.com/Doulos/meta-my-bsp.git branch: mickledore

URI: https://github.com/Doulos/meta-my-bsp.git branch: mickledore

When building for the i.MX 93 EVK, see: https://www.nxp.com/docs/en/user-guide/REALTIMEEDGEUG_Rev2.4.pdf (Realtime Edge User Guide) https://www.nxp.com.cn/docs/en/user-guide/RTEDGEYOCTOUG_Rev2.4.pdf (Realtime Edge Yocto User Guide)

Quick start using Kas

Install kas (https://kas.readthedocs.io/en/latest/userguide.html):

sudo pip install kas

This layer contains two Kas YAML configuration files for QEMU and i.MX 93 EVK.

  1. Build for QEMU ARM64
kas build meta-my-bsp/kas/qemuarm64.yml
  1. Build for i.MX 93 EVK
kas build meta-my-bsp/kas/imx93-11x11-evk.yml 

Using the Yocto built-in configuartion management feature

You need to checkout the mickledore branch. The README.md has additional information. The configuation settings used during the Webinar have been saved to the meta-my-bsp mickledore branch.

For the QEMU emulator, the configurations were saved using: "bitbake-layers save-build-conf /meta-my-bsp build-qemuarm64-with-wireguard".

For the NXP i.MX 93 EVK, the configurations were saved using: "bitbake-layers save-build-conf /meta-my-bsp build-real-time-edge-with-wireguard".

Building QEMU core-image-minimal

Clone the poky build system

git clone git://git.yoctoproject.org/poky

cd poky

git checkout origin/mickledore -t

cd ../

Copy or clone this meta-my-bsp layer into a directory called layers:

mkdir layers

cd layers

git clone https://github.com/Doulos/meta-my-bsp

cd meta-my-bsp

git chechout origin/mickledore -t

cd ..

We are ready to build. Make sure you have these directories at the same level:

poky
layers/meta-my-bsp

Fron one directory above poky, try this:

TEMPLATECONF=$(pwd)/layers/meta-my-bsp/conf/templates/build-qemuarm64-with-wireguard . poky/oe-init-build-env build-try-build-qemuarm64-with-wireguard

Building NXP Realtime Edge image

To make use of this, we need to clone all the depend layers first:

mkdir yocto-real-time-edge

cd yocto-real-time-edge

repo init -u https://github.com/nxp-real-time-edge-sw/yocto-real-time-edge.git -b real-time-edge-mickledore -m real-time-edge-2.6.0.xml

repo sync

Then, in the same yocto-real-time-edge directory, create the extra-layers sub-directory. The mete-my-bsp layer must be copied (or cloned) into extra-layers:

mkdir extra-layers

cd extra-layers

git clone https://github.com/Doulos/meta-my-bsp

Make sure we have the folowing directories at the same level:

extra-layers/meta-my-bsp
sources/poky

We are ready to build custom yocto-real-time-edge image:

cd ../

TEMPLATECONF=$(pwd)/extra-layers/meta-my-bsp/conf/templates/build-real-time-edge-with-wireguard soure sources/poky/oe-init-build-env build-test-real-time-edge-with-wireguard

bitbake nxp-image-real-time-edge

About

Demo OpenEmbedded layer to manage BSP changes

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
COPYING.MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published