RZ-V/RZ-V2MA SMARC: Difference between revisions

From Renesas.info
(→‎Getting Started: Added Prepare SDCard)
Line 93: Line 93:
  bitbake core-image-bsp -c populate_sdk
  bitbake core-image-bsp -c populate_sdk
|}
|}
'''4. Prepare an SD Card - TBD'''
'''4. Prepare an SD Card'''
 
* The evaluation boards can be booted from SD Cards. The SD card must be formatted and loaded using a Linux PC. A helpful script has been created '''(usb_sd_partition)''' that you can run on your Linux PC.
 
* Insert your micro SD card into a '''USB-SD-Card reader''' and then plug into a Linux PC.
 
* Use the commands below to download the formatting script and run. Please select your card and choose the default settings.
 
<pre>
$ wget https://raw.githubusercontent.com/renesas-rz/rzg2_bsp_scripts/master/usb_sd_partition/usb_sd_partition.sh
$ chmod +x usb_sd_partition.sh
$ ./usb_sd_partition.sh
</pre>
 
* Use the commands below to copy the files you build with the BSP to the SD card. '''Start in the base of your Yocto BSP'''.
<pre>
# Change to the Yocto output directory that contains the files
$ cd build/tmp/deploy/images/smarc-rzv2l
 
# Copy the Linux kernel and Device Tree to partition 1
$ sudo cp -v Image /media/$USER/RZ_FAT
$ sudo cp -v r9a07g054l2-smarc.dtb /media/$USER/RZ_FAT
 
# Copy and expand the Root File System to partition 2
$ sudo tar -xvf core-image-weston-smarc-rzv2l.tar.gz  -C /media/$USER/RZ_ext
    (or if NOT using graphics)
$ sudo tar -xvf core-image-minimal-smarc-rzv2l.tar.gz  -C /media/$USER/RZ_ext
 
# Make sure all files are finished writing before removing the USB card reader from the PC
$ sync
</pre>
* Safely remove your USB card reader by right clicking on the drive icon (either RZ_FAT or RZ_ext) in Ubuntu and selecting "Eject"


'''5. Power the Board and Connect to the Serial Port - TBD'''
'''5. Power the Board and Connect to the Serial Port - TBD'''

Revision as of 21:13, 30 September 2022

RZ/V2MA

RZ-V

General Information

  • Official RZ/V2MA Device Website
    • Product Page
    • Please review the Documentation & Downloads section
  • Evaluation Board Documentation
  • Software Downloads
    • Check "Software & Tool Pages" section on on this page
    • Linux BSP Software
      • RZ/V2MA Linux Package [5.10-CIP] v1.0.0
      • RZ MPU Video Codec Library for RZ/V2MA
    • DRP-AI Linux Driver
      • RZ/V2MA DRP-AI Support Package Version 7.20
    • DRP Image Processing Package
      • RZ/V2MA OpenCV Accelerator Support Package Version 1.00

Getting Started

1. Software BSP Components

There is total of 4 packages to build the RZ\V2MA BSP. Up to 5 packages are used to build the BSP. Please download from the Official RZ/V2MA Website. Please look in the "Software Downloads" section.

Copy all ZIP file to a Linux PC.

The evaluation versions contain a time limitation that stops the software after a few hours.

  • RZ/V2MA Linux Package : r01an6514ej<version>-rzv2ma-linux.zip.
  • RZ MPU Video Codec Library for RZ/V2MA : RTK0EF0131F02000SJ-<version>_EN.zip
  • RZ/V2MA DRP-AI Support Package: r11an0592ej<version>-rzv2ma-drpai-sp.zip.zip
  • RZ/V2MA OpenCV Accelerator Support Package ( Image Processing):r11an0650ej<version>-rzv2ma-opencv-accelerator-sp.zip.

2. Build Environment

  • To build the BSP, you will need a Linux PC running Ubuntu 20.04. Only this Host OS version was tested.
  • You can use a Linux PC (recommended) or a Virtual Machine. If using a Virtual Machine, 200GB of hard drive space is recommended.


3. Build the BSP

  • ⚠️ The complete build environment created by 'Linux BSP package' + 'DRP-AI Support package' + 'DRP OpenCV package' must be combined into the same directory.
  • Use the directory name "rzv_vlp_v3.0.0"
  • Detailed instructions
    • for setup and building are located in the RZ\V2MA Linux Startup Guide documents included in each ZIP package for "Linux BSP", the "RZ/V2MA DRP-AI Support Package" zip file, and "RZ/V2MA OpenCV Accelerator Support Package".
    • Build
      • ⚠️ You must first follow the Linux Startup Guide(r01us0578ej<version>-rzv2ma-linux-startup-guide.pdf) instructions Section 2.0, but stop 🛑 before the 'bitbake' command.
      • Then, follow DRP-AI Support 'Release Note' (r11an0592ej<version>-rzv2ma-drpai-sp.pdf) Sections 3.1 and 3.2, but stop 🛑 before the 'bitbake' command.
      • Finally Follow the OpenCV Accelerator Support Package 'Release Note' ( r11an0650ej<version>-rzv2ma-opencv-accelerator-sp.pdf) Section 2.0.
    • A summary of the instructions located in the Release Notes are below. Simply Copy/Paste the commands.
Simple build instructions for BSP v1.00    
These instructions are a summary of what is explained in the package Release Notes.
export WORK_DIR=$PWD/rzv2ma export SRC_DIR=../ mkdir $WORK_DIR
mkdir $WORK_DIR
cd $WORK_DIR
### Extract the BSP Linux package (r01an6514ej<version>-rzv2ma-linux.zip)
unzip $SRC_DIR/r01an6514ej0100-rzv2ma-linux.zip
tar -xf ./r01an6514ej0100-rzv2ma-linux/bsp/rzv2ma_bsp_eva_v100.tar.gz
rm -rfd r01an6514ej0100-rzv2ma-linux
### Copy/Move the 'RZV2MA Codec Library v0.95' Zip file (RTK0EF0131F02000SJ-<version>.zip) under the BSP directory.
unzip $SRC_DIR/RTK0EF0131F02000SJ-v0.95.zip
tar zxvf meta-rz-features.tar.gz

### Copy/Move the DRP Support archive file ( r11an0592ej0720-rzv2ma-drpai-sp.zip ) 
### Extract the 'DRP-AI Driver Support' package file (meta-rz-features.tar.gz) under the rzv2ma_drpai-driver directory.
unzip $SRC_DIR/r11an0592ej0720-rzv2ma-drpai-sp.zip -d drp
tar -xvf drp/rzv2ma_drpai-driver/meta-rz-features.tar.gz
rm -rfd drp
### Copy/Move the OpenCV Accelerator archive file
### Extract the 'OpenCV Accelerator' pacage file (meta-rz-features.tar.gz)
unzip $SRC_DIR/r11an0650ej0100-rzv2ma-opencv-accelerator-sp.zip
tar -xvf ./r11an0650ej0100-rzv2ma-opencv-accelerator-sp/meta-rz-features.tar.gz
rm -rfd r11an0650ej0100-rzv2ma-opencv-accelerator-sp
### Setup the Yocto Enviroment variables
cd $WORK_DIR
source ./poky/oe-init-build-env
### Copy the Renesas Yocto Layer files to build directory 
cd $WORK_DIR/build
cp ../meta-renesas/docs/template/conf/rzv2ma/*.conf ./conf/
cd $WORK
bitbake core-image-bsp
bitbake core-image-bsp -c populate_sdk

4. Prepare an SD Card

  • The evaluation boards can be booted from SD Cards. The SD card must be formatted and loaded using a Linux PC. A helpful script has been created (usb_sd_partition) that you can run on your Linux PC.
  • Insert your micro SD card into a USB-SD-Card reader and then plug into a Linux PC.
  • Use the commands below to download the formatting script and run. Please select your card and choose the default settings.
$ wget https://raw.githubusercontent.com/renesas-rz/rzg2_bsp_scripts/master/usb_sd_partition/usb_sd_partition.sh
$ chmod +x usb_sd_partition.sh
$ ./usb_sd_partition.sh
  • Use the commands below to copy the files you build with the BSP to the SD card. Start in the base of your Yocto BSP.
# Change to the Yocto output directory that contains the files
$ cd build/tmp/deploy/images/smarc-rzv2l

# Copy the Linux kernel and Device Tree to partition 1
$ sudo cp -v Image /media/$USER/RZ_FAT
$ sudo cp -v r9a07g054l2-smarc.dtb /media/$USER/RZ_FAT

# Copy and expand the Root File System to partition 2
$ sudo tar -xvf core-image-weston-smarc-rzv2l.tar.gz   -C /media/$USER/RZ_ext
    (or if NOT using graphics)
$ sudo tar -xvf core-image-minimal-smarc-rzv2l.tar.gz   -C /media/$USER/RZ_ext

# Make sure all files are finished writing before removing the USB card reader from the PC
$ sync
  • Safely remove your USB card reader by right clicking on the drive icon (either RZ_FAT or RZ_ext) in Ubuntu and selecting "Eject"

5. Power the Board and Connect to the Serial Port - TBD

6. Boot the Board - TBD

RZ\V2MA AI Translator

Official RZ\V2MA AI Translator Website here

For additional technical support for the AI Translator refer to this DRP-AI Translator wiki page here.

Note: This Translator is for the RZV2MA only refer to AI Translator page.