Ariaboard Renesas V2M Software Guide

From Ariaboard Wiki
Jump to navigation Jump to search


Build Flash Burner

tar -xf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-elf.tar.xz

git clone -b rz_v2m rzv2m_flash_writer
cd rzv2m_flash_writer

export CROSS_COMPILE=../gcc-linaro-7.3.1-2018.05-x86_64_aarch64-elf/bin/aarch64-elf-
make -f makefile.linaro

Copy file B2_intSW.bin in AArch64_output to the root directory of a formatted TF card.

Build System Image

Need to build on Ubuntu 18.04 for AMD64. And install necessary packages below:

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

Get RZ/V2M Linux Package Version 1.2.0 ( from Renesas official site, then get RZ/V2M ISP Support Package Version.1.20 ( from Renesas official site, and extract BSP files:


mkdir yocto
cd yocto
tar -xf ../r01an5971ej0120-rzv2m-linux/bsp/rzv2m_bsp_eva_v120.tar.gz
tar -xf ../r01an5978ej0120-rzv2m_isp/rzv2m_isp_support-pkg_v120.tar.gz

Or get BSP from our repository:

git clone yocto
cd yocto

Then copy configuration files and compile:

source poky/oe-init-build-env
cp ../meta-rzv2m/docs/sample/conf/rzv2m/linaro-gcc/*.conf ./conf/
patch -p2 < ../rzv2m-drpai-conf.patch
patch -p2 < ../rzv2m-isp-conf.patch

bitbake core-image-bsp

Images should be created in tmp/deploy/images/rzv2m.

Use Flash Burner

Insert TF card with file B2_intSW.bin on root directory. Set board to debug mode and power on, then wait the LED turns on (not blinking). Power off the board.

Connect micro USB port to PC, using a serial terminal tool with RAW file sending support (like gtkterm). Set serial mode to 115200 8N1.Set board to normal boot mode, power on the board, a prompt should be printed on terminal just like:

Flash writer for RZ/V2M V1.20 January 14, 2022
Filename eMMC Save Partition eMMC save sectors File size(byte in hex)*1 Description
loader_1st_128kb.bin boot partition1 0 20000 1st loader binary
loader_2nd_param.bin boot partition1 100 8 Boot parameter for 2nd loader
loader_2nd.bin boot partition1 101 30BD8 2nd loader binary
u-boot_param.bin boot partition1 901 8 Boot parameter for u-boot
u-boot.bin boot partition1 902 7ED91 U-Boot binary
  • 1: File size may change by the version of BSP. Please replace the number of file size with the real one you have got.

Use EM_WB command to write files into eMMC. e.g:

EM_W Start --------------
Please select,eMMC Partition Area.
 0:User Partition Area   : 30535680 KBytes
  eMMC Sector Cnt : H'0 - H'03A3DFFF
 1:Boot Partition 1      : 16384 KBytes
  eMMC Sector Cnt : H'0 - H'00007FFF
 2:Boot Partition 2      : 16384 KBytes
  eMMC Sector Cnt : H'0 - H'00007FFF
  Select area(0-2)>1                                         <<<< Enter "1" here
-- Boot Partition 1 Program -----------------------------
Please Input Start Address in sector :0                   <<<< Enter "0" here
Work RAM(H'B6000000-H'B600FFFFF) Clear....
Please Input File size(byte): 200000                   <<<< Enter "20000" here
please send binary file!                <<<< Send RAW binary file with your terminal tool here
SAVE -FLASH.......
EM_WB Complete!

Upload all files in the table with the given parameters. After uploaded all files, power off and then power on the board. U-Boot prompt should be printed in terminal.

Prepare TF Card

Make 2 partitions on TF card, partition 1 should be at least 128MiB, and partition 2 should be at least 1GiB. Format partition 1 with FAT32, format partition 2 with ext4.

Copy Image and r9a09g011gbg-evaluation-board.dtb in yocto image output directory to the partition 1 of TF card. Extract core-image-bsp-rzv2m-20220810032955.rootfs.tar.gz to partition 2 of TF card. Copy core1_firmware.bin in r01an5978ej0120-rzv2m_isp/IMX415_trial to the partition 1 of TF card.

Setup U-Boot

Insert prepared TF card to board. Use command below in U-Boot terminal:

env default -a
setenv bootargs_sd 'setenv bootargs root=/dev/mmcblk0p2 rootwait rootfstype=ext4 rw'
setenv core1_vector 0x02000000
setenv core1addr 0x02000000
setenv core1_firmware core1_firmware.bin
setenv bootsd 'run bootargs_sd;fatload mmc 0:1 ${core1addr} ${core1_firmware};fatload mmc 0:1 ${loadaddr} ${kernel};fatload mmc 0:1 ${fdt_addr} ${fdt_file};wakeup_a53core1 ${core1_vector};booti ${loadaddr} - ${fdt_addr}'

Run Demo

Set the IP address of your PC to, and set the IP address of the board to, connect each other with ethernet cable directly. Use commands below:

cd ~/app_hrnet_cam_vcd/exe
./sample_app_hrnet_cam_vcd -H264 8000000

Run VLC on PC, open network stream with address rtsp:// Video output should be able to see in VLC.