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 120GB free space is necessary. | |
OS | Ubuntu 20.04 LTS 64bit OS must be used. |
RTK0EF0189F*_linux-src.zip
) contains following files:File name | Description |
---|---|
README.txt | README file. |
rzv2n_ai-sdk_yocto_recipe_*.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/V2N AI SDK. |
This step explains how to extract RZ/V2N 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>/RTK0EF0189F*_linux-src.zip -d ${WORK}/src_setup
ls -1 ${WORK}/src_setup
README.txt
oss_pkg_rzv_v*.7z
rzv2n_ai-sdk_yocto_recipe_*.tar.gz
This step explains how to build Linux environment with RZ/V2N 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/rzv2n_ai-sdk_yocto_recipe_*.tar.gz
File name | Description |
---|---|
e-CAM22_CURZ*.patch | e-CAM22_CURZH camera driver (MIPI) Yocto patch file for RZ/V2N |
cp <Path to the file>/e-CAM22_CURZ*.patch ${YOCTO_WORK}
cd ${YOCTO_WORK}
patch -p1 -i e-CAM22_CURZ*.patch
ls -1 ${YOCTO_WORK}
0001-tesseract.patch
0002-sd-image-size-16gb.patch
0003-openmp.patch
e-CAM22_CURZ*.patch
meta-econsys
meta-gplv2
meta-openembedded
meta-renesas
meta-rz-features
meta-virtualization
poky
oe-init-build-env
script in Poky and set environment variable TEMPLATECONF
to the below path.
cd ${YOCTO_WORK}
TEMPLATECONF=${PWD}/meta-renesas/meta-rzv2n/docs/template/conf/ source poky/oe-init-build-env
${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-drpai
bitbake-layers add-layer ../meta-rz-features/meta-rz-opencva
bitbake-layers add-layer ../meta-rz-features/meta-rz-codecs
bitbake-layers add-layer ../meta-econsys
patch -p1 < ../0001-tesseract.patch
patch -p1 < ../0002-sd-image-size-16gb.patch
patch -p1 < ../0003-openmp.patch
${YOCTO_WORK}/build
directory.
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
${YOCTO_WORK}/build/conf/local.conf
file in a text editor.
local.conf
file.
...
CORE_IMAGE_EXTRA_INSTALL += "libgomp libgomp-dev libgomp-staticdev"
BB_NO_NETWORK = "1"
MACHINE=rzv2n-evk bitbake core-image-weston
${YOCTO_WORK}/build/tmp/deploy/images/rzv2n-evk
directory.Boot mode | File name | Description |
---|---|---|
eSD |
core-image-weston-rzv2n-evk.wic.bmap core-image-weston-rzv2n-evk.wic.gz |
WIC format SD card image |
xSPI |
core-image-weston-rzv2n-evk.wic.bmap core-image-weston-rzv2n-evk.wic.gz Flash_Writer_SCIF_RZV2N_DEV_LPDDR4X.mot bl2_bp_spi-rzv2n-evk.srec fip-rzv2n-evk.srec |
Boot loader and WIC format SD card image |
eMMC |
core-image-weston-rzv2n-evk.wic.bmap core-image-weston-rzv2n-evk.wic.gz Flash_Writer_SCIF_RZV2N_DEV_LPDDR4X.mot bl2_bp_mmc-rzv2n-evk.srec bl2_bp_spi-rzv2n-evk.srec fip-rzv2n-evk.srec core-image-weston-rzv2n-evk.tar.bz2 |
Boot loader, Root filesystem and WIC format SD card image |
MACHINE=rzv2n-evk bitbake core-image-weston -c populate_sdk
${YOCTO_WORK}/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-weston-aarch64-rzv2n-evk-toolchain-*.sh
.File name | Description |
---|---|
poky-glibc-x86_64-core-image-weston-aarch64-rzv2n-evk-toolchain-*.sh | Cross compiler installer |
cd ${YOCTO_WORK}/build
MACHINE=rzv2n-evk bitbake core-image-weston -c cleanall
MACHINE=rzv2n-evk bitbake core-image-weston
MACHINE=rzv2n-evk bitbake core-image-weston -c populate_sdk
You have prepared following files, which is same as the one provided in Step 3: Obtain RZ/V2N AI SDK in Getting Started, and you can run AI Applications according to Getting Started.
For more information on how to use each files, see the link in the How to use column.
Path | File name | Description | How to use |
---|---|---|---|
${YOCTO_WORK}/build/tmp/deploy/images/rzv2n-evk |
core-image-weston-rzv2n-evk.wic.bmap core-image-weston-rzv2n-evk.wic.gz |
WIC format SD card image | Step 7-1: Setup RZ/V2N EVK in RZ/V2N EVK Getting Started |
Flash_Writer_SCIF_RZV2N_DEV_LPDDR4X.mot bl2_bp_spi-rzv2n-evk.srec fip-rzv2n-evk.srec |
Boot loader used when booting from xSPI | D3.How to boot from xSPI in Developer's Guide | |
Flash_Writer_SCIF_RZV2N_DEV_LPDDR4X.mot bl2_bp_mmc-rzv2n-evk.srec bl2_bp_spi-rzv2n-evk.srec fip-rzv2n-evk.srec core-image-weston-rzv2n-evk.tar.bz2 |
Boot loader and Root filesystem used when booting from eMMC | D4.How to boot from eMMC in Developer's Guide | |
${YOCTO_WORK}/build/tmp/deploy/sdk | poky-glibc-x86_64-core-image-weston-aarch64-rzv2n-evk-toolchain-*.sh | Cross compiler installer |
After replacing the file in ${WORK}/ai_sdk_setup directory with this file, follow the steps below to setup RZ/V AI SDK.Step 5: Setup RZ/V AI SDK in Getting Started |
If you have any questions about AI SDK Source Code,
please add new issues to AI SDK GitHub issues.
Go to GitHub issues