
VisionFive with Mender and Yocto
This series of articles describes how to set up Yocto to get a Yocto Linux for VisionFive v1 development board with the integration of a Mender client.
VisionFive
The VisionFive RISC-V SBC is one of the first lower-cost RISC-V computers to run a full version of Linux. For more details, see at Starfive.
Yocto
The Yocto project is not an embedded Linux distribution, it creates a custom one. For more details, see at Yocto project.
Mender
Mender provides mechanisms to update the software on an embedded device over the air (OTA). For more details, see at Mender.
The series includes the following articles:
- VisionFive - Mender - Yocto - Part 1: Basic setup of the Yocto environment to bitbake a running Yocto Linux on the VisionFive v1 board
- VisionFive - Mender - Yocto - Part 2: Basic setup to include Mender
- VisionFive - Mender - Yocto - Part 3: u-boot configuration for Mender
- VisionFive - Mender - Yocto - Part 4: Create an artifact for mender
Download the complete zipped meta-layer with all settings from meta-interelectronix-visionfive.
VisionFive Yocto setup
We are using the Yocto Kirkstone branch for development. We assume that you already have a working development environment installed.
Clone meta-starfive-bsp
First, go to your poky directory - in my case poky-kirkstone - and clone the meta-starfive-bsp repository.
cd poky-kirkstone
git clone -b kirkstone https://github.com/limingle/meta-starfive-bsp.git
I also clone meta-riscv, but it's not necessarily needed.
Download meta-interelectronix-visionfive
Download meta-interelectronix-visionfive.zip - see the link further up - and unzip it in poky-kirkstone directory.
Create build directory
Step out of poky-kirkstone and source the environment
cd ..
source poky-kirkstone/oe-init-build-env VisionFive-build
Now copy bblayers.conf.sample and local.conf.sample from meta-interelectronix-visionfive directory into the conf directory and rename it to bblayers.conf and local.conf:
cp ../poky-kirkstone/meta-interelectronix-visionfive/conf/bblayers.conf.sample conf/bblayers.conf
cp ../poky-kirkstone/meta-interelectronix-visionfive/conf/local.conf.sample conf/local.conf
In the bblayers.conf file, you have to adjust the path to your poky-kirkstone directory. Also delete the line '/workdir/poky-kirkstone/meta-interelectronix \' - it's only needed for our psplash customization.
bitbake Yocto Linux
Now you can bitbake your first Linux image.
bitbake vision-five-image
This takes a long while, and after finishing, you can flash the Linux image to an SD card and boot the VisionFive board from the SD card.
See how to get a basic setup for Mender in VisionFive - Mender - Yocto - Part 2.
Copyright License
Copyright © 2022 Interelectronix e.K.
This Project source code is licensed under the GPL-3.0 license.

Part 2 of a series of articles, how to set up a Yocto environment to create a Yocto Linux with the integration of a Mender client.

Part 3 of a series of articles, how to set up a Yocto environment to create a Yocto Linux with the integration of a Mender client.

Part 4 of a series of articles, how to set up a Yocto environment to create a Yocto Linux with the integration of a Mender client.