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_workmkdir -p ${WORK}/src_setupcd ${WORK}/src_setupunzip <Path to the file>/RTK0EF0160F*_linux-src.zip -d ${WORK}/src_setupls -1 ${WORK}/src_setupREADME.txt
oss_pkg_rzv_v*.7z
rzv2l_ai-sdk_yocto_recipe_v*.tar.gzThis 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-devgit 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.gzls -1 ${YOCTO_WORK}extra
meta-gplv2
meta-openembedded
meta-qt5
meta-renesas
meta-rz-features
meta-virtualization
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-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-drpaicp ${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
downloadspatch -p1 -i ../patch/0002-no-network-tesseract.patch| Patch file link | Description |
|---|---|
| 0001-update-drpai-for-RZV2L-AI_SDK-v5.00.patch | Patch file for updating the DRP-AI Driver to the latest version |
cp <Path to the file>/0001-update-drpai-for-RZV2L-AI_SDK-v5.00.patch ${YOCTO_WORK}
cd ${YOCTO_WORK}
patch -p1 < 0001-update-drpai-for-RZV2L-AI_SDK-v5.00.patch
cd ${YOCTO_WORK}/buildMACHINE=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 QSPI Bootloader |
| core-image-weston-smarc-rzv2l.tar.bz2 | Root filesystem |
MACHINE=smarc-rzv2l bitbake core-image-weston -c populate_sdkbuild/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 cleanallMACHINE=smarc-rzv2l bitbake core-image-westonMACHINE=smarc-rzv2l bitbake core-image-weston -c populate_sdksudo 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=1280x720cd /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.
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/smarc-rzv2l | Image-smarc-rzv2l.bin | Linux kernel | Step 7-1: Setup RZ/V2L EVK in RZ/V2L EVK Getting Started |
| Image-r9a07g054l2-smarc.dtb | Device tree file | ||
| core-image-weston-smarc-rzv2l.tar.bz2 | Root filesystem | ||
| 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 QSPI Bootloader | D2.How to boot from QSPI in Developer's Guide | |
| ${YOCTO_WORK}/build/tmp/deploy/sdk | poky-glibc-x86_64-core-image-weston-aarch64-smarc-rzv2l-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