The best solution for
starting your AI applications.
Provided by Renesas Electronics Corporation
This project is maintained by renesas-rz
Hosted on GitHub Pages — Theme by orderedlist
Equipment | Details | |
---|---|---|
Linux PC | Approximately 110GB free space is necessary. | |
OS | Ubuntu 20.04 LTS 64bit OS must be used. |
RTK0EF0160F*_linux-src.zip
) contains following files:File name | Description |
---|---|
README.txt | README file. |
rzv2l_ai-sdk_yocto_recipe_v*.tar.gz | Yocto recipe. Yocto recipes are text files that contains necessary information to build Yocto Linux. |
oss_pkg_rzv_v*.7z | OSS package. OSS package is a set of Open Source Software source code used when building the Yocto Linux. AI SDK Source Code provides this file to reproduce the same Linux environment provided in RZ/V2L AI SDK. |
This step explains how to extract RZ/V2L AI SDK Source Code zip file.
WORK
with the below command.
printenv WORK
<path to the working directory>/ai_sdk_work
mkdir -p ${WORK}/src_setup
cd ${WORK}/src_setup
unzip <Path to the file>/RTK0EF0160F*_linux-src.zip -d ${WORK}/src_setup
ls -1 ${WORK}/src_setup
README.txt
oss_pkg_rzv_v2.10.7z
rzv2l_ai-sdk_yocto_recipe_v2.10.tar.gz
This step explains how to build Linux environment with RZ/V2L AI SDK Source Code
sudo apt-get update
sudo apt-get install 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 \
libssl-dev
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
export YOCTO_WORK=${WORK}/src_setup/yocto
mkdir -p ${YOCTO_WORK}
cd ${YOCTO_WORK}
tar zxvf ${WORK}/src_setup/rzv2l_ai-sdk_yocto_recipe_v*.tar.gz
ls -1 ${YOCTO_WORK}
extra
meta-gplv2
meta-openembedded
meta-qt5
meta-renesas
meta-rz-features
meta-virtualization
patch
poky
cd ${YOCTO_WORK}/meta-renesas
patch -R -p1 -i ./patch/0001-VLP-v3.0.4-based-smart-rzv2l-eSD-Boot-support.patch
oe-init-build-env
script in Poky and set environment variable TEMPLATECONF
to the below path.
cd ${YOCTO_WORK}
TEMPLATECONF=$PWD/meta-renesas/meta-rzv2l/docs/template/conf/ source poky/oe-init-build-env build
${YOCTO_WORK}/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-rz-features/meta-rz-drpai
cp ${WORK}/src_setup/oss_pkg_rzv_*.7z ${YOCTO_WORK}
7z x ${YOCTO_WORK}/oss_pkg_rzv_*.7z -o${YOCTO_WORK}/build
ls -1 ${YOCTO_WORK}/build
conf
downloads
patch -p1 -i ../patch/0002-no-network-tesseract.patch
MACHINE=smarc-rzv2l bitbake core-image-weston
${YOCTO_WORK}/build/tmp/deploy/images/smarc-rzv2l
directory.File name | Description |
---|---|
Image-smarc-rzv2l.bin | Linux kernel |
Image-r9a07g054l2-smarc.dtb | Device tree file |
bl2_bp_esd-smarc-rzv2l_pmic.bin bl2-smarc-rzv2l_pmic.bin fip-smarc-rzv2l_pmic.bin |
*1 Bootloader generated when using eSD Bootloader |
bl2_bp-smarc-rzv2l_pmic.srec fip-smarc-rzv2l_pmic.srec Flash_Writer_SCIF_RZV2L_SMARC_PMIC_DDR4_2GB_1PCS.mot |
*1 Bootloader generated when using eMMC Bootloader |
core-image-weston-smarc-rzv2l.tar.bz2 | Root filesystem |
MACHINE=smarc-rzv2l bitbake core-image-weston -c populate_sdk
build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-weston-aarch64-smarc-rzv2l-toolchain-*.sh
.File name | Description |
---|---|
poky-glibc-x86_64-core-image-weston-aarch64-smarc-rzv2l-toolchain-*.sh | Cross compiler installer |
cd ${YOCTO_WORK}/build
MACHINE=smarc-rzv2l bitbake core-image-weston -c cleanall
MACHINE=smarc-rzv2l bitbake core-image-weston
MACHINE=smarc-rzv2l bitbake core-image-weston -c populate_sdk
sudo mkdir /nfs/tmp -p
sudo tar xfj ./tmp/deploy/images/smarc-rzv2l/core-image-weston-smarc-rzv2l.tar.bz2 -C /nfs/tmp
/nfs/tmp/etc/xdg/weston/weston.ini
file with a text editor.
[core]
idle-time=0
require-input=false
repaint-window=17
[output]
name=HDMI-A-1
mode=1280x720
[core]
idle-time=0
require-input=false
repaint-window=17
[output]
name=HDMI-A-1
mode=1280x720
cd /nfs/tmp
sudo tar cvfj ${WORK}/src_setup/core-image-weston-smarc-rzv2l.tar.bz2 *
You have prepared following files, which is same as the one provided in Step 3: Obtain RZ/V2L AI SDK in Getting Started, and you can run AI Applications according to Getting Started.
Path | File name | Description |
---|---|---|
${YOCTO_WORK}/build/tmp/deploy/images/smarc-rzv2l | Image-smarc-rzv2l.bin | Linux kernel |
Image-r9a07g054l2-smarc.dtb | Device tree file | |
bl2_bp_esd-smarc-rzv2l_pmic.bin bl2-smarc-rzv2l_pmic.bin fip-smarc-rzv2l_pmic.bin |
*1 Bootloader generated when using eSD Bootloader | |
bl2_bp-smarc-rzv2l_pmic.srec fip-smarc-rzv2l_pmic.srec Flash_Writer_SCIF_RZV2L_SMARC_PMIC_DDR4_2GB_1PCS.mot |
*1 Bootloader generated when using eMMC Bootloader | |
${WORK}/src_setup | core-image-weston-smarc-rzv2l.tar.bz2 | Root filesystem |
${YOCTO_WORK}/build/tmp/deploy/sdk | poky-glibc-x86_64-core-image-weston-aarch64-smarc-rzv2l-toolchain-*.sh | Cross compiler installer |
If you have any questions about AI SDK Source Code,
please add new issues to AI SDK GitHub issues.
Go to GitHub issues
This section explains how to prepare Graphics and Video Codec Library for unrestricted version, intead of evaluation version.
${WORK}/src_setup
" on your Linux PC.
cd ${WORK}/src_setup
ls -1
README.txt
RTK0EF0045Z14001ZJ-v*_rzv_*.zip
RTK0EF0045Z16001ZJ-v*_rzv_*.zip
oss_pkg_rzv_v2.10.7z
rzv2l_ai-sdk_yocto_recipe_v2.10.tar.gz
yocto
rm -rf ${YOCTO_WORK}/meta-rz-features/meta-rz-graphics
rm -rf ${YOCTO_WORK}/meta-rz-features/meta-rz-codecs
unzip RTK0EF0045Z14001ZJ*.zip
tar zxvf RTK0EF0045Z14001ZJ*/meta-rz-features_graphics_*.tar.gz -C ${YOCTO_WORK}
unzip RTK0EF0045Z16001ZJ*.zip
tar zxvf RTK0EF0045Z16001ZJ*/meta-rz-features_codec_*.tar.gz -C ${YOCTO_WORK}
After this procedure, please proceed to Step 3-6 in How to build AI SDK Source Code to start building Linux kernel files.