The RZ/V2H EVK is the ideal board kit for RZ/V2H evaluation.
MIPI camera module is not included in EVK.
As an input device, AI Applications support USB camera with VGA (640x480) resolution.
To use MIPI camera, please refer to e-CAM22_CURZH camera provided by e-con Systems.
e-CAM22_CURZH camera supports FHD (1920x1080) resolution.
Following items are included in the RZ/V2H EVK.
Equipment
Details
RZ/V2H Evaluation Board
Evaluation board itself.
Step 7: Deploy AI Application
This section explains how to deploy the AI Application to the RZ/V2H EVK.
To boot the board, bootloader and other Linux necessary files are required.
Following bootloader is available on RZ/V2H AI SDK.
eSD Bootloader: The board boots up using the bootloader written on microSD card.
Other necessary files, i.e. Linux kernel and root filesystem, are stored on microSD card.
You can use Linux PC to format the microSD card and expand the kernel and the root filesystem using SD card reader.
1. Setup RZ/V2H EVK
microSD card needs to contain bootloaders, the Linux kernel and root filesystem to boot-up the board.
RZ/V2H AI SDK supports the WIC format for SD card image.
You can use Linux PC to write the SD card image into microSD card with SD card reader.
Note
This step is required only when starting the AI SDK or when using the new version of AI SDK.
If you have already setup the microSD card with the latest bootloader, Linux kernel, Linux device tree file and root filesystem, skip this step and proceed to the next procedure (2. Deploy Application to the Board).
Note
The size of WIC format SD card image is 16GB.
If you would like to expand the SD card image size, please build the RZ/V2H AI SDK Source Code according to Appendix 2 in How to Build RZ/V2H AI SDK.
Install Necessary Software
As explained in Necessary Software of Getting Started Step 2, make sure that bmap-tools is installed on Linux PC.
If you have not installed the bmap-tools, install it using following command on Host PC (Not in the docker container).
Write the Linux files to SD card
Run the below command to decompress ${WORK}/board_setup/eSD.zip.
Following files are necessary.
They are in the ${WORK}/board_setup/eSD directory.
File
Description
core-image-weston-rzv2h-evk-ver1.wic.bmap
SD card image
core-image-weston-rzv2h-evk-ver1.wic.gz
Follow the instruction below to prepare the microSD card.
Before inserting the microSD card to your Linux PC, open the terinal on Linux PC and run the following command to check the devices without microSD card.
Following is the example output.
Insert the microSD card to your Linux PC and run the following command again.
Check the output and confirm the name appeared. This would be your microSD card device name.
Following is the example output.
In this case, followings are your microSD card configuration.
/dev/sdb: The device name for the entire microSD card.
/dev/sdb1: The paritition name in microSD card. There may be multiple sdb* depending on the microSD card.
Warning
Be careful not to use the name of other device since it may destruct your computer filesystem.
To use bmaptools, microSD card partitions must be unmounted.
Run the following command to check the automatically mounted microSD card partitions.
Check the output and find the mount point, which is "/media/user/9016-4EF8" in the following example.
Warning
Here, we use "/dev/sdb" as microSD card device name.
Unmount the automatically mounted partitions.
Note
If there are more than one partitions on microSD card, unmount all partitions.
Run the following command to write SD card image.
Warning
Change /dev/sdb to your microSD card device name.
Eject microSD card and insert it again to mount the partitions.
Run the following command to check two partitions are created on microSD card.
If the command shows following log, two partitions are created on microSD card successfully.
Warning
Here, we use "/dev/sdb" as microSD card device name.
Run the following commands to setup the partition 2, which is the root filesystem of the board.
Warning
Change /dev/sdb to your microSD card device name.
Note
If you would like to eject the microSD card, please run following command and remove the microSD card from Linux PC.
Warning
Change /dev/sdb to your microSD card device name.
Run the following command to mount the partition 2, which contains the root filesystem.
Warning
Change /dev/sdb to your microSD card device name.
Create the application directory on root filesystem.
Note
Directory name tvm can be determined by user.
Copy the necessary files in execution environment.
Check the README.md document provided in application directory and follow the instruction in the chapter called "Application: Deploy Stage" (or similar) to deploy the application.
Example:
In R01_object_detection application, follow the instruction in here to find files to be copied.
Use the following command to copy the files to root filesystem.
Run the following command to sync the data with memory.
Run the following command to unmount the partition 2.
Eject the microSD card by running the following command and remove the microSD card from Linux PC.
Warning
Change /dev/sdb to your microSD card device name.
3. Boot RZ/V2H EVK
This section explains how to boot the RZ/V2H EVK.
Follow the instruction below to boot the board.
Insert the microSD card to the Board.
Note
Use the microSD card slot SD1 on the Board as shown in the figure.
Change DSW1 and DSW2 setting as shown in the figure.
Connect the USB mouse and USB keyboard and USB camera via USB hub.
Note
There are USB 2.0 port and USB 3.0 port on RZ/V2H EVK.
Please connect your USB camera to appropriate port according to its requirement.
Here, USB camera is connected to USB 2.0 via USB hub.
Connect the HDMI monitor to the Board.
Connect the power cable to the Board.
Turn the SW3 to ON.
Turn the SW2 to ON to power on the Board
After the boot-up, following screen will be displayed on HDMI monitor.
Click the icon at the top-left corner to open the terminal.
Follow the instructions explained in the document (README.md) of applications on GitHub.
Example:
For R01_object_detection application, follow the instruction here to run the application.
If you have successfully run the application, you will see following window on HDMI screen.