Board description
The Raspberry Pi 5 Model is a popular single board computer based on Broadcom SoCs. It is the most recent board within the Raspberry Pi family.
URL: https://www.raspberrypi.com/products/raspberry-pi-5/
Wiki: https://elinux.org/RPi_Hub
Test results
Raspberry Pi 5 is a community contributed board integration, extending the range of supported RPi family boards to the newest and most powerful interation.
The Yocto Project releases in the table below have been tested by the Mender community. Please update it if you have tested this integration on other Yocto Project releases:
Yocto Project | Build | Runtime |
---|---|---|
scarthgap (5.0) | 1 |
1. Disabled GRUB integration for ARM systems which is default in meta-mender. U-boot is still primary integration method for this board.
Build Means that the Yocto Project build using this Mender integration completes without errors and outputs images.
Runtime Means that Mender has been verified to work on the board. For U-Boot-based boards, the integration checklist has been verified.
Getting started
Prerequisites
- A supported Linux distribution and dependencies installed on your workstation/laptop as described in the Yocto Development Manual
- NOTE. Instructions depend on which Yocto version you intend to use.
- kas installed and in your
PATH
.
Configuring the build
Setup Yocto environment
Create a directory for your mender-raspberrypi5
setup to live in and clone the
meta information.
mkdir mender-raspberrypi5 && cd mender-raspberrypi5
Clone the meta-mender-community
layer:
git clone https://github.com/theyoctojester/meta-mender-community \
-b scarthgap
Setup build environment
Change into the cloned repository and create a directory to hold the build:
cd meta-mender-community
mkdir my-raspberrypi5
cd my-raspberrypi5
Use kas
to set up the build structure:
kas shell ../kas/raspberrypi5.yml
This opens a sub-shell which is initialized for the build process. You can close it using the exit
command.
Configure Mender server URL (optional)
This section is not required for a successful build but images that are generated by default are only suitable for usage with the Mender client in standalone mode, due to lack of server configuration.
You can edit the conf/local.conf
file to provide your Mender server configuration, ensuring the generated images and Mender Artifacts are connecting to the Mender server that you are using. To use Hosted Mender, add your tenant token and set the server URL like this:
MENDER_SERVER_URL = "https://hosted.mender.io"
MENDER_TENANT_TOKEN = "<copy token here>"
To get your tenant token:
- log in to https://hosted.mender.io
- click your email at the top right and then “My organization”
- press the “COPY TO CLIPBOARD”
- assign content of clipboard to MENDER_TENANT_TOKEN
Building the image
You can now proceed with building an image:
bitbake core-image-base
Replace core-image-base
with your desired image target.
Using the build output
After a successful build, the relevant images and build artifacts are:
tmp/deploy/images/raspberrypi5/core-image-base-raspberrypi5.sdimg
tmp/deploy/images/raspberrypi5/core-image-base-raspberrypi5.mender
The disk image (with .sdimg
suffix) is used to provision the device storage for devices without Mender running already. Please proceed to the official documentation on provisioning a new device for steps to do this.
On the other hand, if you already have Mender running on your device and want to deploy a rootfs update using this build, you should use the Mender Artifact files, which have .mender
suffix. You can either deploy this Artifact in managed mode with the Mender server (upload it under Releases in the server UI) or by using the Mender client standalone mode.
References
- The template files that are used by this setup can be found in mender-mender-community
- The Mender integration layer for Raspberry Pi boards can be found in meta-mender.
- The official Mender documentation explains how Mender works. This is simply a board-specific complement to the official documentation.
Known issues
Tested board versions
- Raspberry Pi 5 4GB - Josef, 2024-03-25
If this post was useful to you, please press like, or leave a thank you note to the contributor who put valuable time into this and made it available to you. It will be much appreciated!