Skip to main content

README

Renesas VLP 需要在 Ubuntu 20.04 LTS 系統的環境下建置。
如果系統不是 Ubuntu 20.04 LTS ,可以使用 Docker Containers ,進行 Renesas VLP 的建置。
如果使用 vscode 進行開發,可以使用 Dev Containers 自動管理 Docker Containers。

使用 Docker Containers 建置: docker
使用 VScode Dev Containers 建置: vscode

下載 Renesas VLP Package

Download Link: RZ/G Verified Linux Package

Extract RZ/G Verified Linux Package zip file.

dir: ~/work/rzg
unzip RTK0EF0045Z0021AZJ-v3.0.6-update3.zip

Extract RZ MPU Graphics Library zip file.

dir: ~/work/rzg
unzip RTK0EF0045Z13001ZJ-v1.2.2_EN.zip

Extract RZ MPU Video Codec Library zip file.

dir: ~/work/rzg
unzip RTK0EF0045Z15001ZJ-v1.2.2_EN.zip

Make the working directory on your Linux PC.

dir: ~/work/rzg
mkdir yocto

Move to the working directory.

dir: ~/work/rzg/yocto
cd yocto

Extract RZ/G Verified Linux Package tar.gz file.

dir: ~/work/rzg/yocto
tar zxvf ../RTK0EF0045Z0021AZJ-v3.0.6-update3/rzg_vlp_v3.0.6.tar.gz

Extract RZ/G Graphics Package tar.gz file.

dir: ~/work/rzg/yocto
tar zxvf ../RTK0EF0045Z13001ZJ-v1.2.2_EN/meta-rz-features_graphics_v1.2.2.tar.gz

Extract RZ/G Codecs Package tar.gz file.

dir: ~/work/rzg/yocto
tar zxvf ../RTK0EF0045Z15001ZJ-v1.2.2_EN/meta-rz-features_codec_v1.2.2.tar.gz

Check the working directory to confirm the package contents.

dir: ~/work/rzg/yocto
ls -1

If the above command prints followings, the package is extracted correctly.

dir: ~/work/rzg/yocto
extra
meta-gplv2
meta-openembedded
meta-qt5
meta-renesas
meta-rz-features
meta-virtualization
poky

Apply a patch file to update vlp to update3.

dir: ~/work/rzg/yocto
patch -p1 < ../RTK0EF0045Z0021AZJ-v3.0.6-update3/vlpg306-to-vlpg306update3.patch

Download the patch files.

Download 0001
Download 0002

Apply a patch file to add the GStreamer Moil Plugin.

dir: ~/work/rzg/yocto
patch -p1 < 0001-gstreamer-moil-plugin.patch

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

dir: ~/work/rzg/yocto
patch -p1 < 0002-fix_qtsmarthome_url.patch

Move to the working directory.

dir: ~/work/rzg/yocto
cd meta-renesas

Apply a patch file extras.

dir: ~/work/rzg/yocto/meta-renesas
patch -p1 < ../extra/0001-rz-common-recipes-debian-buster-glibc-update-to-v2.2.patch
dir: ~/work/rzg/yocto/meta-renesas
patch -p1 < ../extra/0001-rz-common-linux-update-linux-kernel-to-the-latest-re.patch
dir: ~/work/rzg/yocto/meta-renesas
patch -p1 < ../extra/0001-rz-common-gst-plugins-bad-Depending-bayer2raw-if-lay.patch

Move to the working directory.

dir: ~/work/rzg/yocto/meta-renesas
cd ..

Initialize a build using the oe-init-build-env script in Poky and set environment variable TEMPLATECONF to the below path.

dir: ~/work/rzg/yocto
TEMPLATECONF=${PWD}/meta-renesas/meta-rzg2l/docs/template/conf/ source poky/oe-init-build-env build

Run the following commands to add necessary layers for AI application to build/conf/bblayers.conf (configration file for layers).

dir: ~/work/rzg/yocto/build
bitbake-layers add-layer ../meta-rz-features/meta-rz-graphics
bitbake-layers add-layer ../meta-rz-features/meta-rz-codecs

Run the following command to build the weston image.

dir: ~/work/rzg/yocto/build
MACHINE=smarc-rzg2l bitbake core-image-weston

Run the following command to build cross compiler installer.

dir: ~/work/rzg/yocto/build
MACHINE=smarc-rzg2l bitbake core-image-weston -c populate_sdk

If you want to build the qt5 image, run the following command to add the meta-qt5 layer for qt5.

dir: ~/work/rzg/yocto/build
bitbake-layers add-layer ../meta-qt5

and in local.conf file, add the following line.

file: ~/work/rzg/yocto/build/conf/local.conf
QT_DEMO = "1"

Run the following command to build the qt5 image.

dir: ~/work/rzg/yocto/build
MACHINE=smarc-rzg2l bitbake core-image-qt

Run the following command to build cross compiler installer.

dir: ~/work/rzg/yocto/build
MACHINE=smarc-rzg2l bitbake core-image-qt -c populate_sdk

image file path: ~/work/rzg/yocto/build/tmp/deploy/images/smarc-rzg2l/

image namefile name
core-image-westoncore-image-weston-smarc-rzg2l.wic.gz
core-image-weston-smarc-rzg2l.wic.bmap
core-image-qtcore-image-qt-smarc-rzg2l.wic.gz
core-image-qt-smarc-rzg2l.wic.bmap

參考 Flash SD Card 步驟,將 image 燒錄到 SD Card。 Flash SD Card