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. |
|
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. |
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
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-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/rzv2h_ai-sdk_yocto_recipe_v*.tar.gz| Patch file link | Description |
|---|---|
|
0001-pre-system-setting-for-RZV2H-AI_SDK-v5.00.patch
0002-CRU-setting-for-RZV2H-AI_SDK-v5.00.patch |
patch file for changing bus setting |
cp <Path to the file>/0001-pre-system-setting-for-RZV2H-AI_SDK-v5.00.patch ${YOCTO_WORK}
cp <Path to the file>/0002-CRU-setting-for-RZV2H-AI_SDK-v5.00.patch ${YOCTO_WORK}
cd ${YOCTO_WORK}
patch -p1 < 0001-pre-system-setting-for-RZV2H-AI_SDK-v5.00.patch
patch -p1 < 0002-CRU-setting-for-RZV2H-AI_SDK-v5.00.patch| 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}0001-pre-system-setting-for-RZV2H-AI_SDK-v5.00.patch
0001-tesseract.patch
0002-CRU-setting-for-RZV2H-AI_SDK-v5.00.patch
0002-sd-image-size-16gb.patch
e-CAM22_CURZ*.patch
meta-econsys
meta-gplv2
meta-openembedded
meta-renesas
meta-rz-features
meta-virtualization
pokyoe-init-build-env script in Poky and set environment variable TEMPLATECONF to the below path.
cd ${YOCTO_WORK}
TEMPLATECONF=${PWD}/meta-renesas/meta-rzv2h/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-econsyspatch -p1 < ../0001-tesseract.patchpatch -p1 < ../0002-sd-image-size-16gb.patchMACHINE=rzv2h-evk-ver1 bitbake core-image-weston${YOCTO_WORK}/build/tmp/deploy/images/rzv2h-evk-ver1 directory.| File name | Description |
|---|---|
|
core-image-weston-rzv2h-evk-ver1.wic.bmap core-image-weston-rzv2h-evk-ver1.wic.gz |
WIC format SD card image |
|
Flash_Writer_SCIF_RZV2H_DEV_INTERNAL_MEMORY.mot bl2_bp_spi-rzv2h-evk-ver1.srec fip-rzv2h-evk-ver1.srec |
Boot loader used when booting from xSPI |
MACHINE=rzv2h-evk-ver1 bitbake core-image-weston -c populate_sdk${YOCTO_WORK}/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-weston-aarch64-rzv2h-evk-ver1-toolchain-*.sh.| File name | Description |
|---|---|
| poky-glibc-x86_64-core-image-weston-aarch64-rzv2h-evk-ver1-toolchain-*.sh | Cross compiler installer |
cd ${YOCTO_WORK}/build
MACHINE=rzv2h-evk-ver1 bitbake core-image-weston -c cleanallMACHINE=rzv2h-evk-ver1 bitbake core-image-westonMACHINE=rzv2h-evk-ver1 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.
| Path | File name | Description |
|---|---|---|
| ${YOCTO_WORK}/build/tmp/deploy/images/rzv2h-evk-ver1 |
core-image-weston-rzv2h-evk-ver1.wic.bmap core-image-weston-rzv2h-evk-ver1.wic.gz |
WIC format SD card image |
|
Flash_Writer_SCIF_RZV2H_DEV_INTERNAL_MEMORY.mot bl2_bp_spi-rzv2h-evk-ver1.srec fip-rzv2h-evk-ver1.srec |
Boot loader used when booting from xSPI | |
| ${YOCTO_WORK}/build/tmp/deploy/sdk | poky-glibc-x86_64-core-image-weston-aarch64-rzv2h-evk-ver1-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