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
- QEMU emulators (only tested with qemuarm64)
- NXP i.MX 93 EVK (imx93-11x11-lpddr4x-evk)
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)
Install kas (https://kas.readthedocs.io/en/latest/userguide.html):
sudo pip install kasThis layer contains two Kas YAML configuration files for QEMU and i.MX 93 EVK.
- Build for QEMU ARM64
kas build meta-my-bsp/kas/qemuarm64.yml- Build for i.MX 93 EVK
kas build meta-my-bsp/kas/imx93-11x11-evk.yml 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".
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-bspFron 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-wireguardTo 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 syncThen, 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-bspMake sure we have the folowing directories at the same level:
extra-layers/meta-my-bsp
sources/pokyWe 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