Page 1
All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corp. without notice. Please review the latest information published by Renesas Electronics Corp. through various means, including the Renesas Electronics Corp.
Page 2
Renesas Electronics disclaims any and all liability for any damages or losses incurred by you or any third parties arising from the use of any Renesas Electronics product that is inconsistent with any Renesas Electronics data sheet, user’s manual or other Renesas Electronics document.
Page 3
Unit Products The following usage notes are applicable to all Microprocessing unit and Microcontroller unit products from Renesas. For detailed usage notes on the products covered by this document, refer to the relevant sections of the document as well as any technical updates that have been issued for the products.
Page 4
This document is designed to provide the user with an understanding of the software development environment for RZ/V2MA Group processors. It is intended for users developing software incorporating the processors. Basic knowledge of software development and Linux systems is necessary to use this document.
Page 5
Conventions Command line runs on Linux host PC will be shown as below: $ echo "This is command line run on x86-64 Linux PC" Command line run on target board will be shown as below: # echo "This is command line run on ARM board" File content will be shown as below: <$WORK/a script>...
How to create a software development kit (SDK) This RZ/V2MA Yocto recipe is a basic package to operate built-in Linux and software on the RZ/V2MA Evaluation Board Kit. Contact your Renesas representatives if you have any questions about this package.
Page 8
Install “CP210x Windows Drivers” at the above website. USB serial to micro–USB Cable Serial communication (UART) between the RZ/V2MA Evaluation Board Kit and Windows PC. The type of USB serial connector on the RZ/V2MA Evaluation Board Kit is Micro USB type B. micro–SD Card Use to boot the system, and store applications for the RZ/V2MA.
2. <RZ/V2MA_LinuxPKG_version> is the RZ/V2MA Linux package version number in the file name. Decompress the latest version of the RZ/V2MA Linux package. Refer to the release note for the appropriate file. Step 2. Setup a build environment Run the commands below.
Page 10
Note: For a user of the DRP-AI Support Package, apply all necessary recipes required for the build environments for these packages before executing bitbake commands. Refer to the DRP-AI Support Package for information on how to apply the patches and build. Table 2-1. Supported images of RZ/V2MA core-image-target Detail core-image-bsp Basic BSP support.
Page 11
NOTE: Tasks Summary: Attempted 4071 tasks of which 8 didn't need to be rerun and all succeeded. All necessary files listed in Table 2-2 will be generated by the bitbake command and will be in the build/tmp/deploy/images/rzv2ma directory. Table 2-2. Image files for RZ/V2MA Files File name File stored path...
RZ/V2MA Linux Package Start-Up Guide 3. Preparation 3. Preparations This chapter describes the preparation required before running the software on the RZ/V2MA Evaluation Board Kit. In the following procedure, the booting is from an SD card. For eMMC booting, refer to 7.2 eMMC Boot.
Page 13
RZ/V2MA Linux Package Start-Up Guide 3. Preparation First sector (2048-30425087, default 2048): <Press Enter> Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-30425087, default 30425087): <Press Enter> Created a new partition 1 of type 'Linux' and of size 14.5 GiB. Command (m for help): The partition table has been altered.
RZ/V2MA Linux Package Start-Up Guide 3. Preparation 3.1.2 SD card setting for booting Linux 3.1.3 Files for SD card booting The required files for the SD card booting are as follows. Create partitions with the specified file system format, and store files in each area.
Page 15
RZ/V2MA Linux Package Start-Up Guide 3. Preparation Created a new partition 1 of type ‘Linux’ and of size 128 MiB. Command (m for help): Partition type primary (1 primary, 0 extended, 3 free) extended (container for logical partitions) Select (default p): <Press Enter>...
3.1.5 Set U-Boot environment variables Connect between the RZ/V2MA Evaluation Board Kit and Windows PC with a USB serial to micro–USB cable. And start the terminal software (Tera Term) on Windows PC. Refer to 3.2.2 Terminal software setting and set up the terminal software.
Page 17
RZ/V2MA Linux Package Start-Up Guide 3. Preparation => env default -a => saveenv => run bootsd R01US0578EJ0110 Rev.1.10 Page 11 of 32 Jan.13.2023...
Switch 1 Switch 2 Switch 3 Switch 4 Normal Forced write mode from the SD card* Note: For the switch setting of debug mode, refer to the board manual for RZ/V2MA Evaluation Board Kit. R01US0578EJ0110 Rev.1.10 Page 12 of 32 Jan.13.2023...
RZ/V2MA Linux Package Start-Up Guide 3. Preparation 3.2.2 Terminal software setting Connect a USB serial to micro-USB cable to Windows PC shown below. USB serial connector (Type Micro B) for the console (CN307) Figure 3-2. Serial to micro-USB cable connection A serial port is detected on the PC after injecting the cable and choose “USB Serial Port”.
Page 20
RZ/V2MA Linux Package Start-Up Guide 3. Preparation The terminal software should set the serial connection setting as follows. (Menu > Setup > Serial port) For proper logging, set the Transmit delay to 0. Figure 3-4. Terminal software setting (Menu > Setup > Terminal) Figure 3-5.
(CN1) Figure 3-6. micro-SD card connector Note: The booting data should be written to the SD card beforehand to run the SD card booting on the RZ/V2MA EVK. 3.2.4 LEDs In this package, LEDs shown in the following figure are used to know the status of Linux (power on or shutdown).
1MB and fixed by the partition. Flash Writer Flash writer is the software for writing loader binaries to the eMMC on the RZ/V2MA Evaluation Board Kit via a PC. For building the flash writer from the source codes, refer to 7.1.2.
Step 1. Equipment settings Run the following commands and install essential host packages on your build machine. (1) Connect your Windows PC and RZ/V2MA Evaluation Board Kit with a USB serial to micro-USB cable as shown in Figure 4-1. (2) Start the terminal software on your PC. Figure 4-2 shows the setting of the terminal software.
Page 24
4. Boot Loader, U-Boot Step 2. Write the flash writer to eMMC Start RZ/V2MA with the forced write mode from the SD card and write the Flash writer binary to the eMMC in the following steps. Note that refer to "RZ/V2MA User’s Manual: Hardware” about the forced write mode for details.
Page 25
Start RZ/V2MA in normal mode and run Flash writer. (1) Set DSW301 to the normal mode [1:OFF, 2:OFF, 3:OFF, 4:OFF]. (2) Power on the RZ/V2MA Evaluation Board Kit. The following log will appear if the RZ/V2MA starts in normal mode and run Flash writer successfully.
Page 26
RZ/V2MA Linux Package Start-Up Guide 4. Boot Loader, U-Boot eMMC Sector Cnt : H'0 - H'00001FFF --------------------------------------------------------- Select area(0-2)>1 -- Boot Partition 1 Program ----------------------------- *Input in hexadecimal Please Input Start Address in sector : Work RAM(H'B6000000-H'B60FFFFF) Clear..*Input in hexadecimal...
Page 27
RZ/V2MA Linux Package Start-Up Guide 4. Boot Loader, U-Boot Please Input File size(byte) : *Input in hexadecimal <Enter the file size of “loader_2nd.bin”> please send binary file! <Send “loader_2nd.bin”> SAVE -FLASH..EM_WB Complete! >EM_WB EM_WB Start -------------- --------------------------------------------------------- Please select,eMMC Partition Area.
Page 28
2. Select the file to send. Note that check "Binary" in the option. Check this box. Figure 4-6. Send files by Tera Term (3) Power off the RZ/V2MA Evaluation Board Kit. Note: When getting an error message listed in the following table, retry the writing process. R01US0578EJ0110 Rev.1.10 Page 22 of 32 Jan.13.2023...
Page 29
(1) Set DSW301 to the normal mode [1:OFF, 2:OFF, 3:OFF, 4:OFF]. Confirm that the startup operation mode is "normal mode". (2) Power on the RZ/V2MA Evaluation Board Kit. (3) Confirm that the boot loader and U-Boot boots successfully. (4) When starting the countdown, press Enter to move to the U-Boot command mode.
5. Run on the Board 5. Run on the Board This chapter explains how to set up the RZ/V2MA Evaluation Board Kit and run the system. Power on the board Notice: Before connecting the AC adapter (J301) to an electrical outlet, make sure that the SW303 on the RZ/V2MA Base Board for the power supply is turned off.
RZ/V2MA Linux Package Start-Up Guide 5. Run on the Board Shutdown the Board Note: The shutdown command is different when running from the Linux kernel or U-Boot command mode. On the Linux kernel, run the “shutdown” as follows. To power down the system, follow the step below.
PC. The results of the commands below are ‘installer’ that you will use to install the SDK on the same PC or a completely different PC. Note: If you use RZ/V2MA DRP-AI Support Package, deploy them before building the SDK. Refer to each package’s document for the detail to apply each application to the SDK.
*Omitted $WORK/build/tmp/work/rzv2ma-poky-linux/u- boot/<version>/git/board/renesas/rzv2ma-dev 7.1.2 Flash writer The flash writer for RZ/V2MA is published at GitHub of Renesas RZ Software "https://github.com/renesas-rz". The information for this repository is as follows. Table 7-2. Git repository and branch information (Flash writer) Item Repository Branch...
Page 34
RZ/V2MA Linux Package Start-Up Guide 7. Appendix $ cd $WORK $ wget https://releases.linaro.org/components/toolchain/binaries/7.3-2018.05/aarch64- elf/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-elf.tar.xz $ tar xvf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-elf.tar.xz Step 2. Extract flash writer files Extract the flash writer files with the following commands. $ cd $WORK $ git clone -b rz_v2ma https://github.com/renesas-rz/rzg2_flash_writer.git rzv2ma_flash_writer <flash writer stored path>...
Install “CP210x Windows Drivers” at the above website. USB serial to micro–USB Cable Serial communication (UART) between the RZ/V2MA Evaluation Board Kit and Windows PC. The type of USB serial connector on the RZ/V2MA Evaluation Board Kit is Micro USB type B. micro–SDHC Card Use to boot the system and store applications for the RZ/V2MA.
Page 36
RZ/V2MA Linux Package Start-Up Guide 7. Appendix root@rzv2ma:~# fdisk /dev/mmcblk1 Welcome to fdisk (util-linux 2.35.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): Created a new DOS disklabel with disk identifier 0xce03fc10.
Page 37
RZ/V2MA Linux Package Start-Up Guide 7. Appendix Step 4. Confirm eMMC partitions Confirm eMMC partition information by the following commands. Check each size partition is the value set by the above step. root@rzv2ma:~# fdisk -l /dev/mmcblk1 Disk /dev/mmcblk1: 14.69 GiB, 15758000128 bytes, 30777344 sectors...
Page 38
RZ/V2MA Linux Package Start-Up Guide 7. Appendix Write the kernel image, and device tree to the 1st partition of eMMC as follows. root@rzv2ma:~# dd if=eMMC_Image/Image-rzv2ma.bin of=/mnt/image/Image-rzv2ma.bin 36785+0 records in 36785+0 records out 18833920 bytes (19 MB) copied, 0.876929 s, 21.5 MB/s root@rzv2ma:~# dd if=eMMC_Image/r9a09g055ma3gbg-evaluation-board.dtb...
Page 39
1.10 Jan.13.2022 2. Building Instructions Deleted the notice for the RZ/V2MA Linux PKG V0.9.0 users. 3.1.1 SD card setting for using the flash writer Added the explanation on how to format an SD card for the flash writer. Table 3-2. SD card boot files and partitions Deleted the notice for the RZ/V2MA Linux PKG V0.9.0 users.
Page 40
RZ/V2MA Linux Package Start-Up Guide Publication Date: Rev.1.10 Jan.13.2023 Published by: Renesas Electronics Corporation...
Page 41
RZ/V2MA Linux Package Start-Up Guide R01US0578EJ0110...
Need help?
Do you have a question about the RZ/V2MA and is the answer not in the manual?
Questions and answers