Skip to content

Avnet/meta-rzboard

Repository files navigation

meta-rzboard

This is a meta-layer for Avnet RzBoard.

  • Yocto dunfell 3.1.31 support: Avnet RzBoard

How to Build

Build environment

It is recommended to setup the development environment on a 64-bit Ubuntu 20.04 LTS machine. The following packages are required:

$ sudo apt update
$ sudo apt install -y gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping libsdl1.2-dev xterm p7zip-full libyaml-dev \
rsync curl locales bash-completion

Set Git configuration:

$ git config --global user.name "Your Name"
$ git config --global user.email "you@example.com"

Fetch the source code

  • Download Renesas software packages

Due to licensing restrictions on the Renesas website, users are required to download the software packages from the Official RZ/V2L Website in person.

The following packages should be download:

Package Name Version Download File
RZ/V Verified Linux Package V3.0.6 RTK0EF0045Z0024AZJ-v3.0.6.zip
RZ MPU Graphics Library Evaluation Version V1.2.2 RTK0EF0045Z13001ZJ-v1.2.2_EN.zip
RZ MPU Codec Library Evaluation Version V1.2.2 RTK0EF0045Z15001ZJ-v1.2.2_EN.zip
RZ/V2L DRP-AI Support Package V7.50 r11an0549ej0750-rzv2l-drpai-sp.zip
RZ/V2L Multi-OS Package V2.1.0 r01an7254ej0210-rzv2l-multi-os-pkg.zip

Note:
1 The Renesas website provides two version packages, "Evaluation Version" and "Unrestricted Version", for each of the RZ MPU Graphics Library and the RZ MPU Codec Library.
2 The "Evaluation Version" can be downloaded immediately, but has a 2 hour timeout after every board boot.
3 The "Unrestricted Versions" is not available for download until the request for permission on the Renesas website is complete.

For more information please refer to RZ/V2L Wiki and RZ/V2 Linux BSP.

After getting all the packages, copy them to the home directory ( ~/ ) and prepare for the next step.

  • Extract Renesas software packages

Download a script to extract the file

$ cd ~/
$ wget https://raw.githubusercontent.com/Avnet/meta-rzboard/rzboard_dunfell_5.10.201/tools/create_yocto_rz_src.sh
$ chmod a+x create_yocto_rz_src.sh
$ ls ~/
create_yocto_rz_src.sh                       RTK0EF0045Z0024AZJ-v3.0.6.zip
r01an7254ej0200-rzv-multi-os-pkg.zip         RTK0EF0045Z13001ZJ-v1.2.2_EN.zip
r11an0549ej0750-rzv2l-drpai-sp.zip           RTK0EF0045Z15001ZJ-v1.2.2_EN.zip

Run the script to generate yocto_rzboard/ directory which contains all the necessary sources. This script will verify, extract, and patch essential files.

$ ./create_yocto_rz_src.sh
$ ls yocto_rzboard/
extra  meta-gplv2         meta-qt5      meta-rz-features     poky
meta-openembedded  meta-renesas  meta-virtualization         RZV2L_VLP306_switch_to_nodejs_18.17.1.patch

Build a image

  • Build
$ cd ~/yocto_rzboard/
$ source poky/oe-init-build-env build/
$ bitbake avnet-core-image
  • Build SDK
$ cd ~/yocto_rzboard/
$ source poky/oe-init-build-env build/
$ bitbake avnet-core-image -c populate_sdk

After the build is successfully completed, the output files will be located in build/tmp/deploy/images/rzboard/ directory.

For more information about Edge Impulse, including installing Edge Impulse Linux CLI, please refer to the link.