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 200GB free space is necessary. | |
| OS | Ubuntu 22.04 LTS 64bit OS must be used. |
|
RTK0EF0180F*_linux-src.zip) contains following files:| File name | Description |
|---|---|
| README.txt | README file. |
| rzv2h_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/V2H AI SDK. |
This step explains how to extract RZ/V2H AI SDK Source Code zip file.
WORK with the below command.
printenv WORK<path to the working directory>/ai_sdk_workmkdir -p ${WORK}/src_setupcd ${WORK}/src_setupunzip <Path to the file>/RTK0EF0180F*_linux-src.zip -d ${WORK}/src_setupls -1 ${WORK}/src_setupREADME.txt
oss_pkg_rzv_v*.7z
rzv2h_ai-sdk_yocto_recipe_v*.tar.gzThis step explains how to build Linux environment with RZ/V2H AI SDK Source Code
sudo apt-get update
sudo apt install build-essential chrpath cpio debianutils diffstat file \
gawk gcc git iputils-ping libacl1 liblz4-tool locales python3 python3-git \
python3-jinja2 python3-pexpect python3-pip python3-subunit socat texinfo \
unzip wget xz-utils zstd bmap-toolsgit 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/rzv2h_ai-sdk_yocto_recipe_v*.tar.gz| File name | Description |
|---|---|
| e-CAM22_CURZ*.patch | e-CAM22_CURZH camera driver (MIPI) Yocto patch file for RZ/V2H |
cp <Path to the file>/e-CAM22_CURZ*.patch ${YOCTO_WORK}
cd ${YOCTO_WORK}
patch -p1 -i e-CAM22_CURZ*.patchls -1 ${YOCTO_WORK}e-CAM22_CURZ*.patch
meta-arm
meta-econsys
meta-openembedded
meta-renesas
meta-rz-features
patch
pokyoe-init-build-env script in Poky and set environment variable TEMPLATECONF to the below path.
cd ${YOCTO_WORK}
TEMPLATECONF=$PWD/meta-renesas/meta-rz-distro/conf/templates/rz-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-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-econsyspatch -p1 < ../patch/0000-AI_SDK-settings.patchpatch -p1 < ../patch/0001-tesseract.patchpatch -p1 < ../patch/0002-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}/buildls -1 ${YOCTO_WORK}/buildconf
downloadsMACHINE=rzv2h-evk bitbake core-image-weston${YOCTO_WORK}/build/tmp/deploy/images/rzv2h-evk directory.| Boot mode | File name | Description |
|---|---|---|
| eSD |
core-image-weston-rzv2h-evk.rootfs.wic.bmap core-image-weston-rzv2h-evk.rootfs.wic.gz |
WIC format SD card image |
| xSPI |
core-image-weston-rzv2h-evk.rootfs.wic.bmap core-image-weston-rzv2h-evk.rootfs.wic.gz Flash_Writer_SCIF_RZV2H_DEV_INTERNAL_MEMORY.mot bl2_bp_spi-rzv2h-evk.srec fip-rzv2h-evk.srec |
Boot loader and WIC format SD card image |
MACHINE=rzv2h-evk bitbake core-image-weston -c populate_sdk${YOCTO_WORK}/build/tmp/deploy/sdk/rz-vlp-glibc-x86_64-core-image-weston-cortexa55-rzv2h-evk-toolchain-*.sh.| File name | Description |
|---|---|
| rz-vlp-glibc-x86_64-core-image-weston-cortexa55-rzv2h-evk-toolchain-*.sh | Cross compiler installer |
cd ${YOCTO_WORK}/build
MACHINE=rzv2h-evk bitbake core-image-weston -c cleanallMACHINE=rzv2h-evk bitbake core-image-westonMACHINE=rzv2h-evk bitbake core-image-weston -c populate_sdkYou have prepared following files, which is same as the one provided in Step 3: Obtain RZ/V2H 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/rzv2h-evk |
core-image-weston-rzv2h-evk.rootfs.wic.bmap core-image-weston-rzv2h-evk.rootfs.wic.gz |
WIC format SD card image | Step 7-1: Setup RZ/V2H EVK in RZ/V2H EVK Getting Started |
|
Flash_Writer_SCIF_RZV2H_DEV_INTERNAL_MEMORY.mot bl2_bp_spi-rzv2h-evk.srec fip-rzv2h-evk.srec |
Boot loader used when booting from xSPI | D3.How to boot from xSPI in Developer's Guide | |
| ${YOCTO_WORK}/build/tmp/deploy/sdk | rz-vlp-glibc-x86_64-core-image-weston-cortexa55-rzv2h-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