Renesas
RZ/V AI

5.00

The best solution for
starting your AI applications.

Provided by Renesas Electronics Corporation




To keep you updated,
Watch our GitHub repository
Watch



This project is maintained by renesas-rz

Hosted on GitHub Pages — Theme by orderedlist

Developer's Guide



This page explains the additional information of How to Build RZ/V2H AI SDK for Linux developers.
Terminology


Contents

ID Title Device Target
D1 Change the size of the microSD card image in WIC format RZ/V2H AI SDK Source Code v5.00
D2 How to boot from xSPI RZ/V2H AI SDK Source Code v5.00

D1. For RZ/V2H: Change the size of the microSD card image in WIC format

This section explains how to change the microSD card image size by changing the build settings of the WIC file.
Note Following instruction assumes that you have completed Step 3-10 in How to build RZ/V2H AI SDK Source Code.
  1. Open ${YOCTO_WORK}/build/conf/local.conf file in a text editor.
  2. Find the following text in the file and edit the highlighted value to define the disk space of the image in Kbytes.
    ...
    # Support WIC images with default wks from WKS_DEFAULT_FILE
    # Reupdate WKS_DEFAULT_FILE if want to support another wks file.
    WKS_SUPPORT ?= "1"
    WKS_DEFAULT_FILE_rzv2h-dev = "rz-image-bootpart-mmc.wks"
    WKS_DEFAULT_FILE_rzv2h-evk-alpha = "rz-image-bootpart-esd_rzv2h.wks"
    WKS_DEFAULT_FILE_rzv2h-evk-ver1 = "rz-image-bootpart-esd_rzv2h.wks"
    # Defines additional free disk space created in the image in Kbytes.
    IMAGE_ROOTFS_EXTRA_SPACE = "8388608"
    ...
    
    The table below shows examples of setting values written in local.conf file.
    Note If you have customized Linux, the disk image size may differ from the table.
    SD card image size
    (Gbytes)
    Setting values in the "local.conf" file
    (Kbytes)
    4 1048576
    8 4194304
    16 8388608 (default)
After this procedure, please proceed to Step 3-11 in How to build RZ/V2H AI SDK Source Code to build the Linux kernel files.

D2. For RZ/V2H: How to boot from xSPI

This section explains how to boot from xSPI on RZ/V2H EVK.
Note To perform this procedure, please prepare the following equipment in addition to the 1.Necessary Equipments.
  • Windows PC
  • MicroUSB to Serial Cable for serial communication (Included in RZ/V2H EVK)

Follow the instruction below to setup the board.

  • 1. Install Terminal Emulator
    Note If you have already installed terminal emulator, skip this step and proceed to next procedure.
    1. Install following software on Windows PC to be used as serial communication console.
      • Terminal emulator
        • Operating Environment: Tera Term

  • 2. Install the serial port driver
    Note If you have already installed the serial port driver, skip this step and proceed to next procedure.
    The serial communication between Windows PC and RZ/V2H EVK requires following driver.
    https://ftdichip.com/drivers/vcp-drivers/

    1. Download the software "Virtual COM port (VCP) driver" from the windows version "setup executable" on the download page and extract it.

    2. Run the *.exe file extracted to install the serial port driver.


  • 3. Write bootloaders on the board
    1. Copy following files in ${WORK}/build/tmp/deploy/images/rzv2h-evk-ver1 to your Windows PC.
      • Flash_Writer_SCIF_RZV2H_DEV_INTERNAL_MEMORY.mot
      • bl2_bp_spi-rzv2h-evk-ver1.srec
      • fip-rzv2h-evk-ver1.srec

    2. Connect Windows PC and Board via Serial to MicroUSB Cable.

    3. Change DSW1 setting to Boot mode 3 (SCIF download). See the figure below.

      board

    4. Connect the power cable to CN13 on the Board.

    5. Turn the SW3 to ON.

    6. On Windows PC, open the terminal emulator. Here, we use Tera Term as an example.

    7. Select "File" > "New Connection" and select "Serial" port as shown below.

      board

    8. Open the configuration window from the "Setup">"Terminal" and change the setting as follows.

      Item Value
      New-line Receive: Auto
      Transmit: CR

    9. Open the configuration window from the "Setup">"Serial port" and change the setting as follows.

      Item Value
      Baud rate 115200
      Data 8bit
      Parity none
      Stop 1bit
      Flow control none
      Transmit delay 0msec/char

    10. Turn the SW2 to ON to power on the Board and following message will be displayed on the terminal.
      SCI Download mode (Normal SCI boot)
      -- Load Program to SRAM ---------------

    11. Open "File" > "Send file..." and send the Flash Writer file (*.mot) as a text.
      If following message is displayed, the file transfer succeeded.
      Flash writer for RZ/V2x Series Vx.xx xxx.xx,20xx
       Product Code : RZ/V2x
      >

    12. Enter "XLS2" on the terminal to get following messages.
      > XLS2
      ===== Qspi writing of RZ/V2x Board Command =============
      Load Program to Spiflash
      Writes to any of SPI address.
      Program size & Qspi Save Address
      ===== Please Input Program Top Address ============
        Please Input : H'

    13. Enter "8101e00". The log continues.
        Please Input : H'8101e00
      ===== Please Input Qspi Save Address ===
        Please Input : H'

    14. Enter "00000". The log continues.
        Please Input : H'00000
      please send ! ('.' & CR stop load)

    15. After the "please send!" message, open "File" > "Send file..." and send the bl2_bp_spi-rzv2h-evk-ver1.srec file as a text from the terminal software.

    16. In case a message to prompt to clear data like below, please enter "y".
      SPI Data Clear(H'FF) Check : H'00000000-0000FFFF,Clear OK?(y/n)

    17. Following log will be displayed. The end address is depending on the version of AI SDK.
      Write to SPI Flash memory.
      ======= Qspi Save Information =================
      SpiFlashMemory Stat Address : H'00000000
      SpiFlashMemory End Address  : H'00036D17
      ===========================================================

    18. Enter "XLS2" on the terminal to get following messages.
      > XLS2
      ===== Qspi writing of RZ/V2x Board Command =============
      Load Program to Spiflash
      Writes to any of SPI address.
      Program size & Qspi Save Address
      ===== Please Input Program Top Address ============
        Please Input : H'

    19. Enter "00000". The log continues.
        Please Input : H'00000
      ===== Please Input Qspi Save Address ===
        Please Input : H'

    20. Enter "60000". The log continues.
        Please Input : H'60000
      please send ! ('.' & CR stop load)

    21. After the "please send!" message, open "File" > "Send file..." and send the fip-rzv2h-evk-ver1.srec file as a text from the terminal software.

    22. In case a message to prompt to clear data like below, please enter "y".
      SPI Data Clear(H'FF) Check : H'00000000-0000FFFF,Clear OK?(y/n)

    23. Following log will be displayed. The end address is depending on the version of AI SDK.
      Write to SPI Flash memory.
      ======= Qspi Save Information =================
      SpiFlashMemory Stat Address : H'00060000
      SpiFlashMemory End Address  : H'0011C2EE
      ===========================================================

    24. Power-off the board to change DSW1 for booting the board.


  • 4. Setup U-boot setting
    Follow the procedure below to set the booting configuration of the board.

    1. Insert the microSD card to the Board.
      Note Use the microSD card slot SD1 as shown in the figure.

    2. Change DSW1 setting to Boot mode 2 (xSPI boot) as shown in the right figure.

    3. Connect the Board and Windows PC by the USB Serial to Micro USB cable.

    4. Connect the power cable to the Board.

    5. Turn the SW3 to ON.

    6. Open the terminal emulator, i.e., Tera Term, and connect with COMS port.
      Note When using Tera Term, change the configuration as explained in Write bootloaders on the board.

    7. Turn the SW2 to ON to power on the Board.

    8. On the terminal emulator, keep pressing ENTER key.

    boot
    1. U-boot console will be activated.

    2. Run the following commands to set the booting configuration.
      env default -a
      saveenv
      boot

    3. After the boot-up, the login message will be shown on the console.
      rzv2h-evk1 login:

    4. Log-in to the system using the information below.
      • user: root
      • password: none

    5. Shutdown the board to finish the U-boot setting.
      Shutdown Procedures


This is the end of How to boot from xSPI on RZ/V2H EVK.