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.