Renesas RZ/V2M Startup Manual

Renesas RZ/V2M Startup Manual

Linux package
Hide thumbs Also See for RZ/V2M:

Advertisement

Quick Links

RZ/V2M Linux Package
Start-Up Guide
RZ/V2M
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.
website (http://www.renesas.com).
www.renesas.com
Rev.1.30 Oct 2022

Advertisement

Table of Contents
loading

Summary of Contents for Renesas RZ/V2M

  • 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 provides users with an understanding of the information to develop software for the RZ/VM2 microprocessor. It is intended for users to develop software incorporating the RZ/V2M microprocessor. To use this document, you need basic knowledge of software development and Linux systems.
  • Page 5 2. List of Abbreviations and Acronyms Abbreviation Full form Board support package Character user interface Clock serial interface Direct memory access EHCI Enhanced Host Controller Interface eMMC Embedded multimedia card Graphical user interface GPIO General peripheral input output Inter-integrated circuit OHCI Open Host Controller Interface PCIe...
  • Page 6: Table Of Contents

    Table of Contents Introduction ........................1 RZ/V2M Linux BSP Package files......................1 Environmental Requirement ........................1 Building Instructions ...................... 3 Preparations ......................... 6 SD Card Setting ............................6 3.1.1 SD Card Setting for using the flash writer ..................... 6 3.1.2 SD Card Setting for booting Linux ......................
  • Page 7: Introduction

    How to create a software development kit (SDK) This RZ/V2M Yocto recipe is a basic package to operate built-in Linux and software on the RZ/V2M Evaluation Board Kit. Please contact your Renesas representatives if you have any questions about this package.
  • Page 8 USB serial to micro–USB Serial communication (UART) between the RZ/V2M Evaluation Board Kit and Cable Windows PC. The type of USB serial connector on the RZ/V2M Evaluation Board Kit is Micro USB type B. micro–SD Card Use to boot the system, store applications for the RZ/V2M.
  • Page 9: Building Instructions

    2. <RZ/V2M_LinuxPKG_version> is the RZ/V2M Linux package version number in the file name. Decompress the latest version of the RZ/V2M 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 RZ/V2M DRP-AI Support Package and RZ/V2M ISP Support Package, apply all necessary recipes required for the build environments for these packages before executing bitbake commands. Refer to each package’s document to know how to apply the patches and build.
  • Page 11 Notes: 1. <image-name> is the name used in Step 5. 2. Store these loader binaries in the appropriate partition on the SD card when writing loader binaries. *Notice for the RZ/V2M Linux PKG previous version users: For the Linux kernel Image file, use Image-rzv2m.bin from this version.
  • Page 12: Preparations

    Kit. Note that the booting is from an SD card in the following procedure. For booting from the eMMC, refer to 7.2 eMMC Boot. SD Card Setting Here explains how to prepare the micro-SD card for booting the Linux or using the flash writer on the RZ/V2M Evaluation Board. 3.1.1...
  • Page 13 RZ/V2M 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.
  • Page 14: Sd Card Setting For Booting Linux

    RZ/V2M Linux Package Start-Up Guide 3. Preparation 3.1.2 SD Card Setting for booting Linux 3.1.2.1 Files for SD card booting The files for booting from the SD card are as follows. To boot from the SD card, create partitions with the specified file system format, and store files in each partition on the SD card.
  • Page 15 RZ/V2M Linux Package Start-Up Guide 3. Preparation First sector (2048- 30199807, default 2048): <Press Enter> Last sector, +sectors or +size{K,M,G,T,P} (2048- 30199807, default 30199807): +128M Created a new partition 1 of type ‘Linux’ and of size 128 MiB. Command (m for help):...
  • Page 16 3.1.2.3 Set U-Boot Environment Variables Connect the RZ/V2M 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: Board Setting

    Confirm the switch setting shown in the red frame shown below. SW1 (Base) SW2 (Main) Normal mode Debug Mode Figure 3-1. Switch location and setting Table 3-3. SW2(Main) on RZ/V2M Board setting Mode Switch 1 Switch 2 Switch 3 Switch 4...
  • Page 18: Terminal Software Setting

    RZ/V2M Linux Package Start-Up Guide 3. Preparation 3.2.2 Terminal software setting Connect a serial to micro-USB cable to Windows PC shown below. Socket (Main CN5) Figure 3-2. Serial to micro-USB cable connection Two serial ports are detected on the PC after injecting the cable.
  • Page 19: Insert A Micro-Sd

    (Main CN6) Figure 3-5. micro-SD card slot Note: The booting data should be written to the SD card beforehand to run the SD card booting on the RZ/V2M Evaluation Board Kit. R01US0527EJ0130 Rev.1.30 Page 13 of 31...
  • Page 20: Leds

    RZ/V2M Linux Package Start-Up Guide 3. Preparation 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). LED3 (Main) LED1 (Base) LED2 (Base) Figure 3-6. LEDs R01US0527EJ0130 Rev.1.30 Page 14 of 31 Oct.14.2022...
  • Page 21: Boot Loader, U-Boot (Loader Binaries)

    Flash Writer Flash writer is the software for writing loader binaries to the eMMC on the RZ/V2M Evaluation Board Kit via a PC. Here uses the micro-SDHC card the flash writer stored in 3.1.1. For building the flash writer from the source codes, refer to 7.1.2.
  • Page 22: Write Loader Binaries To Emmc

    Step 1. Equipment settings Run the following commands and install essential host packages on your build machine. Connect your Windows PC and RZ/V2M Evaluation Board Kit with a USB serial to micro-USB cable as shown in Figure 4-1. Start the terminal software on your PC. Figure 4-2 shows the setting of the terminal software.
  • Page 23 Step 2. Write the flash writer to eMMC Start RZ/V2M with the forced write mode and write the flash writer binary to the eMMC as the following steps. Note that refer to "RZ/V2M User’s Manual: Hardware” about the forced write mode for details.
  • Page 24 RZ/V2M Linux Package Start-Up Guide 4. Boot Loader, U-Boot >EM_E EM_E Start -------------- --------------------------------------------------------- Please select,eMMC Partition Area. 0:User Partition Area : 15388672 KBytes eMMC Sector Cnt : H'0 - H'01D59FFF 1:Boot Partition 1 : 4096 KBytes eMMC Sector Cnt : H'0 - H'00001FFF...
  • Page 25 RZ/V2M Linux Package Start-Up Guide 4. Boot Loader, U-Boot 2:Boot Partition 2 : 4096 KBytes 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..
  • Page 26 RZ/V2M Linux Package Start-Up Guide 4. Boot Loader, U-Boot Work RAM(H'B6000000-H'B60FFFFF) Clear..Please Input File size(byte) : please send binary file! <Send “u-boot_param.bin”> SAVE -FLASH..EM_WB Complete! >EM_WB EM_WB Start -------------- --------------------------------------------------------- Please select,eMMC Partition Area. 0:User Partition Area : 15388672 KBytes...
  • Page 27 2. Select the file to send. Note that check "Binary" in the option. Check this box. Figure 4-5. Send files by Tera Term Power off the RZ/V2M Evaluation Board Kit. Note: When getting an error message listed in the following table, retry the writing process. R01US0527EJ0130 Rev.1.30 Page 21 of 31 Oct.14.2022...
  • Page 28 Check that SW2(Main) is set to the normal mode [1:OFF, 2:OFF, 3:OFF, 4:OFF]. Confirm that the startup operation mode is "normal mode". Power on the RZ/V2M Evaluation Board Kit. Confirm that the boot loader and U-boot boots successfully. When starting the countdown, press Enter to move to the U-Boot command mode.
  • Page 29: Run-On The Board

    RZ/V2M Linux Package Start-Up Guide 5. Run-on the Board 5. Run-on the Board This chapter explains how to set up the RZ/V2M Evaluation Board Kit and run the system. Here uses the micro-SD card prepared in 3.1.2. Power on the board Notice: Before connecting the AC adapter (CN503) to an electrical outlet, make sure that the SW1 (Base) for the power supply is turned off.
  • Page 30: Shutdown The Board

    RZ/V2M 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.
  • Page 31: Building Sdk

    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/V2M DRP-AI Support Package and RZ/V2M ISP Support Package, deploy them before building the SDK. Refer to each package’s document for the detail to apply each application to the SDK.
  • Page 32: Appendix

    *Omitted $WORK/build/tmp/work/rzv2m-poky-linux/u- boot/<version>/git 7.1.2 Flash writer The flash writer for RZ/V2M 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 33 RZ/V2M 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_v2m https://github.com/renesas-rz/rzg2_flash_writer.git rzv2m_flash_writer <flash writer stored path>...
  • Page 34: Emmc Boot

    RZ/V2M Evaluation Board Kit Evaluation kit for RZ/V2M. RZ/V2M Board (Main) Target board. The main functional components for RZ/V2M are mounted on this board. Note that the boot loader and U-Boot images are pre-written to the eMMC (THGBMJG7C1LBAIL). RZ/V2M Base Board Connected to CN12 and CN 13 on the RZ/V2M Board.
  • Page 35 RZ/V2M Linux Package Start-Up Guide 7. Appendix root@rzv2m:~# 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. Device does not contain a recognized partition table.
  • Page 36 RZ/V2M Linux Package Start-Up Guide 7. Appendix root@rzv2m:~# fdisk -l /dev/mmcblk1 Disk /dev/mmcblk1: 14.69 GiB, 15758000128 bytes, 30777344 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes...
  • Page 37 RZ/V2M Linux Package Start-Up Guide 7. Appendix root@rzv2m:~# mkdir /mnt/rootfs root@rzv2m:~# mount -t ext4 /dev/mmcblk1p2 /mnt/rootfs/ 438.161754] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. root@rzv2m:~# dd if=eMMC_Image/core-image-bsp-rzv2m.tar.gz of=/mnt/rootfs/core-image- bsp-rzv2m.tar.gz Write the rootfs the 2nd partition of eMMC as follows.
  • Page 38 Updated the log of Flash writer for Version 1.1.0. 36-39 8.2 eMMC Boot Added the description of how to boot from eMMC. Changed the name of target board from “RZ/V2M Evaluation Kit” to “RZ/V2M 1.20 Jan.28.2022 Evaluation Board Kit”. 2, 36 Table 1-1.
  • Page 39 Correct some descriptions in the build procedure. Here des 5,8, Table 2-2. Build image files for RZ/V2M, Table 3-2. SD card boot files and partitions, 10 28, Step 2. Store system files to the SD Card, 7.2.2 eMMC booting procedure, Step 6.
  • Page 40 RZ/V2M Linux Package Start-Up Guide Publication Date: Rev.1.30 Oct.14.2022 Published by: Renesas Electronics Corporation...
  • Page 41 RZ/V2M Linux Package Start-Up Guide R01US0528EJ0130...

Table of Contents