Skip to main content

Renesas RZ/G2L

About​

This is an embedded system that has low power consumption. Various products can be developed based on this embedded system.

Board Setup​

To setup this Renesas RZ/G2L board, a linux image must be prepared to run on the board.

By following the guide provided below, you can learned about how to boot up, reset, connection of the USB, HDMI and Ethernet.
RZ/G2L EVK - Quick Start Guide

The packages that needed to be installed are in the following link:
Renesas VLP Packages

These packages need to be extract inside the /work directory by using the command below.

tar xzvf rzg.tar.gz

The /rzg folder is then reopen inside the container that you created in the tutorial before.

Check the user that exist inside the github by using the following code:

git config --global --list
tip

If the username and email not exist or incorrect, you can use the following code to modify it:

git config --global user.name <"your-username">
git config --global user.email <"you@example.com">

Next, make a new directory name yocto under the /rzg directory.

mkdir yocto

and move to the directory.

cd yocto

Next, download and extract the following zip files into the /rzg/yocto/ directory:

RZ/G Verified Linux Package zip file

RTK0EF0045Z0021AZJ-v3.0.6-update3.zip

RZ MPU Graphics Library zip file

RTK0EF0045Z0021AZJ-v3.0.6-update3.zip

RZ MPU Video Codec Library zip file

RTK0EF0045Z15001ZJ-v1.2.2_EN.zip

Check the working directory to confirm the working contents by using the following command:

ls -l

Make sure that all the packages are extracted successfully.

extra
meta-gplv2
meta-openembedded
meta-qt5
meta-renesas
meta-rz-features
meta-virtualization
poky

Since the VLP packages you downloaded previously is the older version, you need to patch it into the new update3 using the following command: (This is all done under the /rzg/yocto/ directory)

patch -p1 < ../RTK0EF0045Z0021AZJ-v3.0.6-update3/vlpg306-to-vlpg306update3.patch

Next, add the following patch files of the GStreamer and the Qt Toolkits into the /rzg/yocto/ directory. The download links are provided below:

Download 0001

Download 0002

Apply the following patch files inside the same directory:

patch -p1 < ../extra/0001-rz-common-recipes-debian-buster-glibc-update-to-v2.2.patch
patch -p1 < ../extra/0001-rz-common-linux-update-linux-kernel-to-the-latest-re.patch
patch -p1 < ../extra/0001-rz-common-gst-plugins-bad-Depending-bayer2raw-if-lay.patch

Apply a patch file to add the GStreamer Moil Plugin.

patch -p1 < 0001-gstreamer-moil-plugin.patch

Apply a patch file to fix the Qt Smart Home URL.

patch -p1 < 0002-fix_qtsmarthome_url.patch

When applying the patch files of the GStreamer Moil Plugin and the Qt Smart Home URL, remove the .patch and press TAB to correct the command.

Next, initialize a build using the oe-init-build-env script in Poky and set environment variable TEMPLATECONF to the below path:

TEMPLATECONF=$PWD/meta-renesas/meta-rzg2l/docs/template/conf/ source poky/oe-init-build-env build

Next, add necessary layers for AI application to build/conf/bblayers.conf (configration file for layers).

bitbake-layers add-layer ../meta-rz-features/meta-rz-graphics
bitbake-layers add-layer ../meta-rz-features/meta-rz-codecs
bitbake-layers add-layer ../meta-qt5

Next, download the downloads.tar.gz on your PC using the link below.

Download Link

Then, you can transfer your files from your PC onto the Ubuntu OS by using the following command: ( Please replace the userand ip-addresswith the PC that you running on )

scp .\downloads.tar.gz user@ip-address:/home/user/work/rzg/yocto/build

After done transferring, extract the downloads.tar.gz using the following command:

tar xzvf downloads.tar.gz

Next, run the following command to build the weston image.

MACHINE=smarc-rzg2l bitbake core-image-weston

Add these lines of code into the local.conf located inside the /rzg/build/conf/local.conf

QT_DEMO = "1"

DL_DIR = "${TOPDIR}/../downloads"
SSTATE_DIR = "${TOPDIR}/../sstate-cache"

IMAGE_INSTALL_append = " kernel-module-uvcvideo "
EXTRA_IMAGE_FEATURES_append = " ssh-server-openssh "

IMAGE_INSTALL_append = " curl graphviz "
IMAGE_INSTALL_append = " gst-instruments gst-shark"
PACKAGECONFIG_append_pn-gstreamer1.0 = " tracer-hooks "

Next, the lsblk command can be used to check the usb device connected to the port of the PC.

If the USB disk have already mounted, you need to use the command:

sudo umount 

to unmount the USB to ensure clean install of the build file into the SD card.

To mount the build file into the SD Card, you use the command:

sudo bmaptool copy core-image-weston-smarc-rzg2l.wlc.gz /dev/sda

The guide on how to manage the packages is in the following link:
Packages Managing Guide