Cherry JAGUAR SBC-RK3588-AMR User Manual page 23

Single board computer for autonmous mobile robots featuring the rockchip rk3588 cutting-edge processor
Hide thumbs Also See for JAGUAR SBC-RK3588-AMR:
Table of Contents

Advertisement

bitbake-layers add-layer ../meta-arm/meta-arm-toolchain
bitbake-layers add-layer ../meta-arm/meta-arm
bitbake-layers add-layer ../meta-rockchip
bitbake-layers add-layer ../meta-openembedded/meta-oe
bitbake-layers add-layer ../meta-openembedded/meta-python
bitbake-layers add-layer ../meta-theobroma-systems-bsp
6.2.3 Building a minimal image
To build a bootable artifact, BitBake will be called with the specified machine and target image:
MACHINE="jaguar"
bitbake core-image-minimal
Note: Technically speaking, the MACHINE variable could be set in build/conf/local.conf file once and for all.
If possible, Theobroma Systems recommends passing the variable explicitly in the command directly as this
makes it more visible to the user and also allows to easily build for multiple machines without modifying a file
in-between.
The build process can take several hours depending on the capabilities of the build machine and the user's
Internet connection.
Note: If the Bitbake process needs to be stopped for any reason, a SIGINT (Ctrl + c) signal can be sent once.
Bitbake will gracefully close down upon reception of this signal. This graceful shutdown can take a lot of time
depending on the tasks that are currently being executed. It is highly recommended to not send this signal
more than once, failing to do so may hinder next Bitbake commands.
The artifacts can be found after some time in build/tmp/deploy/images/jaguar/ directory. A flashable image
is one whose extension is .wic, e.g. core-image-minimal-jaguar-20221021134027.rootfs.wic.
Make the resulting image available for later steps:
export SDCARD_IMG=$PWD/build/tmp/deploy/images/jaguar/core-image-minimal-jaguar.wic
6.2.4 Building with kas
kas is a setup tool for Bitbake-based projects, such as the Yocto Project, which aims to replace the commands
listed above for a simpler, more automated, setup and creation of images.
Theobroma Systems provides a kas configuration file kas-theobroma.yml in the BSP meta layer for conve-
nience.
kas can be installed on the build machine with the following command:
sudo apt-get install -y --no-install-recommends kas
Note: It is also available as a Python package and installable with:
python3 -m venv venv
source
venv/bin/activate
python3 -m pip install kas==4.0
The Section 6.2.1 Initial setup and Section 6.2.2 Initializing build environment can then be replaced by the fol-
lowing two commands:
v1.0.1
Page 20

Advertisement

Table of Contents
loading

Table of Contents