HiHope RZ_G2M Board User Guide

HiHope RZ_G2M Board User Guide

ISSUE: 00B01
DATE: 4th July, 2019

Copyright © Hoperun Technologies Co., Ltd. 2019

Copyright © Hoperun Technologies Co., Ltd. 2019. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by
any means without prior written consent of Hoperun Technologies Co., Ltd.
Trademarks and Permissions

Hoperun icons are trademarks of Hoperun Technologies Co., Ltd. All othertrademarks and trade names mentioned in this document are the property of
their respective holders.
NoticeThe purchased products, services and features are stipulated by the contract
made between hoperun and the customer. All or part of the products, services
and features described in this document may not be within the purchase scopeor the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS"
without warranties, guarantees or representations of any kind, either express
or implied.
The information in this document is subject to change without notice. Everyeffort has been made in the preparation of this document to ensure accuracy ofthe contents, but all statements, information, and recommendations in thisdocument do not constitute a warranty of any kind, express or implied.

Jiangsu HopeRun Software Co., Ltd
Address： Building B, HopeRun•Innovation & Intelligence Center,
Website:E-mail：No.168 Software Avenue, Yuhuatai District, Nanjing, China
http: //www.hoperun.com

webadmin@hoperun.com

Copyright © Hoperun Technologies Co., Ltd. 2019

About This Document

PurposeThis document describes the basic functions, hardware features, User‘sinterface and hardware configurations of the HiHope RZ_G2M Board. This
document also provides the software debugging methods.

Related Version
The following table lists the product version related to this document.
Product Name

Version

HiHope RZ_G2M Board

V001

Change History
Changes between document issues are cumulative. The latest document issue
contains all the changes made in earlier issues.

Issue 00B01 (2019-07-04)
This issue is the first draft release.

Copyright © Hoperun Technologies Co., Ltd. 2019

Contents
1.

Overview ........................................................................................................... 2
1.1 Introduction .................................................................................................. 2
1.2 Features ...................................................................................................... 2

2.

Hardware........................................................................................................... 3
2.1 Structure and Interface .................................................................................. 3
2.2 Interface or Function Description .................................................................... 7
2.2.1 Power Switch.................................................................................... 7

3.

2.2.2
2.2.5

JTAG Reset Switch ........................................................................... 7
Low Speed Expansion Connector ....................................................... 8

2.2.6
2.2.7

High Speed Expansion Connector ...................................................... 9
Display Interfaces ........................................................................... 10

2.2.8
2.2.9

USB Ports ...................................................................................... 10
System and User LEDs ................................................................... 10

2.3.0
2.3.1

JTAG Header.................................................................................. 12
UART Debug .................................................................................. 12

2.3.2
2.3.3

PCIe and SATA Connectors ............................................................. 12
RZ_G2M Overall installation diagram ................................................ 122.3.4 External Dimensions and Hole Locations .......................................... 13
Operation Guide ............................................................................................... 14
3.1
3.2

Precautions.............................................................................................. 14
Configuring the Board ............................................................................... 15

3.3

Getting Start ............................................................................................. 16
3.3.1 Prerequisites .................................................................................. 16
3.3.2

Protocol Setting for Debug Serial Interface ........................................ 16

Copyright © Hoperun Technologies Co., Ltd. 20191

1. Overview

1.1 Introduction
The HiHope RZ_G2M Board User Guide is an evaluation board developed
based on the Renesas media processing chip RZ_G2M. This board is used todemonstrate powerful multimedia functions as well as various peripheral
interfaces of RZ_G2M. The reference hardware design based on RZ_G2M isalso provided to help customers shorten the product development cycle.
The HiHope RZ_G2M Board hardware and interface configuration are
designed based on the 96Boards Consumer Edition Specification.
The HiHope RZ_G2M Board can be connected to a PC by using Micro USB
cables and network port cables, forming a basic development system.

1.2 Features
The HiHope RZ_G2M Board has the following features: RZ_G2M SoC: Two 1.5-GHz Arm® Cortex®-A57 MP Core™ cores, Four
1.3-GHz Arm® Cortex®-A53 MP Core™ cores
 DDR: LPDDR4, 4GB
 EMMC: eMMC5.0 base, 32GB
 Flash: SPI Flash, 64MB WiFi/BT: IEEE 802.11a/b/g/n, 2.4G/5G, 2X2 MIMO antenna; Bluetooth 4.1,
CSA2
 One USB 3.0 port
 One USB 2.0 Host Type A port
 One Micro USB port for debug One Micro USB port for USB OTG
 One Micro SD card port
 Two PCIe x1 interfaces One HDMI interface
 One SATA interface
Copyright © Hoperun Technologies Co., Ltd. 20192 One LVDS LCM interface
 One RJ45 port for 100M/1000MHz Ethernet interface
 Two CAN Bus interfaces One Low Speed Expansion Connector, 40 pin (20x2), low profile female
2mm receptacle
 One High Speed Expansion Connector, 60 pin 0.8mm high speed Board to
Board low profile receptacle connector
 One DC Jack,12V/2A
 One External Fan

2. Hardware

2.1 Structure and Interface
The HiHope RZ_G2 Board is composed of a motherboard and a sub board,connected by a pair of B2B connectors.

Figure 2.1 Interface Structure of Mother Board (Top View)

Copyright © Hoperun Technologies Co., Ltd. 20193

Figure 2.2 Interface Structure of Mother Board (Bottom View)

Figure 2.3 Interface Structure of Sub Board (Top View)

Figure 2.4 Interface Structure of Sub Board (Bottom View)

Copyright © Hoperun Technologies Co., Ltd. 20194

Table 2.1 Structure Interface Signal List
No.

Description

1

Board power interface, supporting 12V/2A or higher performance--J2401

2

DC12V Power Switch--SW2402

3

JTAG Reset Switch--SW305

4JTAG Connector--CN0301

5

External Reset Button-SW2403
ON: Reset
OFF: Reset release

6

User Button1--SW2203, which is connected to GPIO6_13
ON: Input L, LED2203 light off
OFF: Input H, LED2203 light on

7

User Button2--SW2201, which is connected to GPIO6_12
ON: Input L, LED2202 light off.
OFF: Input H,LED2202 light on.

8

User Button3--SW2202, which is connected to GPIO6_11
ON: Input L, LED2201 light off.
OFF: Input H, LED2201 light on.

9

USB for download or debug, Micro USB Connector--CN2201

10

Micro SD Card, support SD3.0--CN1601

11

HDMI output--CN1901

12USB2.0, support OTG, Micro USB Connector--CN1401

13

USB2.0 host, USB Type A Connector--CN1014USB3.0 Port, which is downward compatible with USB 2.0--CN1501

15

Low Speed Expansion Connector:
2 UART, 1 SPI(4 line), 2 I2C, 1 I2S/PCM--CN1801

16

Dip-Switch 1--SW1001

Copyright © Hoperun Technologies Co., Ltd. 20195

17

Dip-Switch 2--SW1003

18

Dip-Switch 3--SW1002

19

Dip-Switch 4--SW0201
Default settings,reserved for future use

20

High Speed Expansion Connector:
1 SDIO, 1 MIPI DSI, 1 MIPI CSI, 2 I2C--CN1701

21

Power Supply Connector for CPU Fan--CN2401

22

Motherboard to Sub Board Connector(B2B), Male Head--CN2403

23

USB2.0 Overcurrent Protection IC and OTG IC Selector Switch--SW1401

24

Gigabit Ethernet Port(Include Network Transformer)--CN2101

25

CAN BUS1 Interface--J2403

26

CAN BUS0 Interface--J0201

27

PCIe x1 Channal0 Interface--CN2403

28

SATA Interface--J8

29

PCIe x1 Channal1 Interface--CN5

30

SATA/PCIe Switch--SW43

31

LVDS LCD Interface--CN2404

32

LCD Backlight Interface--CN19

33

Sub Board to Motherboard Connector(B2B),Female Socket--J2402

Copyright © Hoperun Technologies Co., Ltd. 20196

2.2 Interface or Function Description
2.2.1

Power Switch (SW2402)
Figure 2.5 Power Switch

ON: Power on the board
OFF: Power off the board

2.2.2

JTAG Reset Switch (SW305)
Figure 2.6 JTAG Reset Switch

Up: Reset release
Down: Reset
2.2.3

SATA/PCIe Switch (SW43)

Copyright © Hoperun Technologies Co., Ltd. 20197

Figure 2.7 SATA/PCIe Switch

ON(L): Select SATA (J8)
OFF(H): Select PCIe (CN5)2.2.4

DC in JackDC Power is provided via the DC jack at J2401. An 8V up to 18V power supply
at a minimum of 2A rating can be used to provide sufficient board power for on
system requirements as well as external devices.
NOTE: Power should not be supplied simultaneously from multiple sources.
2.2.5

Low Speed Expansion Connector

The Low Speed Expansion brings out 1.8V level SoC signals such as UART0and UART1, I2C0 and I2C1, GPIO signals as well as SPI, PCM, Reset, 1.8V
and 5V power supply. The complete list of signals is shown in Table 2-2 below:
Table 2.2 The Low Speed Expansion Interface Signal List
SignalPin

Pin

Signal

GND

1

2

GND

UART0_CTS

34

PWR_BTN_N

UART0_TxD

5

6

RST_BTN_N

UART0_RxD

7

8

SPI0_SCLKUART0_RTS

9

10

SPI0_DINUART1_TxD

11

12

SPI0_CS

UART1_RxD

13

14

SPI0_DOUT

Copyright © Hoperun Technologies Co., Ltd. 20198

2.2.6

I2C0_SCL

1516

PCM_FS

I2C0_SDA

17

18

PCM_CLK

I2C1_SCL

19

20

PCM_DO

I2C1_SDA

21

22

PCM_DI

GPIO-A

23

24

GPIO-B

GPIO-C

25

26

GPIO-D

GPIO-E

27

28

GPIO-F

GPIO-G

29

30

GPIO-H

GPIO-I

31

32

GPIO-J

GPIO-K

33

34

GPIO-L

+1V8

35

36

SYS_DCIN1

+5V

37

38

SYS_DCIN2

GND

39

40

GND

High Speed Expansion Connector

The High Speed Expansion Connector is a board to board low profile 60 pin
receptacle connector, brings out 1.8V level, Include 1 SDIO, 1 MIPI DSI, 1
MIPI CSI, 2 I2C. The complete list of signals is shown in Table 2-3 below:
Table 2.3

The Low Speed Expansion Interface Signal List

SignalPin

Pin

SignalSD_DAT0

1

2

CSI0_CLK+

SD_DAT1

3

4

CSI0_CLK-

SD_DAT2

5

6

GND

SD_DAT3

7

8

CSI0_D0+

SD_SCLK

910

CSI0_D0-

SD_CMD

11

12

GND

GND

13

14

CSI0_D1+

CLK0/CSI0_MCLK

15

16

CSI0_D1-

CLK1/CSI1_MCLK

17

18

GND

GND

19

20

CSI0_D2+

DSI_CLK+

21

22

CSI0_D2-

DSI_CLK-

23

24

GND

GND

25

26

CSI0_D3+

DSI_D0+27

28

CSI0_D3-

Copyright © Hoperun Technologies Co., Ltd. 20199

2.2.7

DSI_D0-

29

30

GND

GND

31

32

I2C2_SCLDSI_D1+33

34

I2C2_SDADSI_D1-35

36

I2C5_SCL

GND

37

38

I2C5_SDADSI_D2+

39

40

GND

DSI_D2-

41

42

CSI1_D0+

GND

43

44

CSI1_D0-

DSI_D3+

45

46

GND

DSI_D3-

47

48

CSI1_D1+

GND

49

50

CSI1_D1-

USB_D+

51

52

GND

USB_D-

53

54

CSI1_CLK+

GND

55

56

CSI1_CLK-RESERVED

57

58

GND

RESERVED

59

60

1.8V Pull Up（100K
Resistor）

Display Interfaces

A HDMI Type-A port mounted at CN1901.
A LVDS connector is provided on the sub-board at CN2404.
2.2.8

USB Ports

There are a total of 3 USB ports on the board.
A Type-A USB 3.0 port mounted at CN1501. It supports Host\Function mode.
A Type-A USB 2.0 port mounted at CN10. It supports Host mode.
A Micro USB port mounted at CN1401. It is an USB OTG port, and connectedwith a charge pump so that it can charge slave device more quickly. The
charge pump is enabled\disabled by Charge Pump Switch (SW1401).
Another Micro USB port mounted at CN2201 is Debug Serial interface.
2.2.9

System and User LEDs

There are 8 LEDs on the board.

Copyright © Hoperun Technologies Co., Ltd. 201910

Figure 2.8 System and User LEDs

Table 2.4 System and User LEDs List
No.

Description

1

LED2402, be controlled by SoC Pin AJ4(D0)
High: LED on
Low: LED off

2

LED2403, be controlled by SoC Pin AK3(GPIO GP7_01)
High: LED on
Low: LED off

3

LED2404, be controlled by SoC Pin AJ5(GPIO GP7_00)
High: LED on
Low: LED off

4

LED2401, the system reset LED
Reset insert: LED on
Reset release: LED off

5

LED1901, the HDMI detection indicator LED
Insert: LED on
Pull out: LED off

6

LED2203, be controlled by User button3(SW2203)
Push: LED off
Off: LED on

Copyright © Hoperun Technologies Co., Ltd. 201911

7

LED2202, be controlled by User button1(SW2201)
Push: LED off
Off: LED on

8

LED2201, be controlled by User button2(SW2202)
Push: LED off
Off: LED on

2.3.0

JTAG Header

The board includes the option for soldering a 10 pin header that brings out the
SoC signals for JTAG debug. A FTSH-105-01-F-DK header can be populated
at CN0301.
2.3.1

UART Debug

There is a Micro USB port mounted at CN2201 for debugging. This is normallyused by the first stage bootloader developers, and is connected to the UART0
interface of the SoC.
2.3.2

PCIe and SATA Connectors

There are 2 PCIe x1 connectors and 1 SATA connector on the sub board.
At the same time, only one of PCIe connector (CN5) and SATA connector (J8)can work. Which one can work is decided by the Switch (SW43).
2.3.3

RZ_G2M Overall installation diagram

Figure 2.9 RZ_G2M Overall Installation Diagram(Top View)

Copyright © Hoperun Technologies Co., Ltd. 201912

Figure 2.10

2.3.4

RZ_G2M Overall Installation Diagram(Bottom View)

External Dimensions and Hole Locations
Figure 2.11

External Dimensions and Hole Locations(Mother Board)
100mm

6XΦ3

85mm

77mm

31.5mm46mm

Copyright © Hoperun Technologies Co., Ltd. 201913

Figure 2.12

External Dimensions and Hole Locations(Sub Board)
54mm

85mm

4XΦ3

77mm

31.5mm

3. Operation Guide

3.1 Precautions
The board applies to the laboratory or engineering development environment.
Take the following precautions before performing operations: Never perform the hot-swap operation on the board.
 Before unpacking the board package or installing the board, take antistatic
measures to protect the board hardware from being damaged by theelectrostatic discharge (ESD).
 Hold the edges of the board and do not touch the exposed metal on theboard. Otherwise, the component parts on the board may be damaged by
the static electricity.
 Place the board on a dry plane and keep them away from heat sources,
electromagnetic interference sources, radiant sources, andelectromagnetic susceptibility equipment (such as the medical equipment).
 Ensure that you can identify the components such as the power supplies,
connectors, and indicators and know their positions.

Copyright © Hoperun Technologies Co., Ltd. 201914

3.2 Configuring the Board
The configuration of the Download Mode Enable Bit involves the settings of 3
DIP switches, these Dials to the right is on, left is off. Don't leave the dial DIP
in the middle position.
Figure 3.1 Download Mode Configuration DIP Switches

Table 3.1 Describe the Serial Download Mode States of the DIP Switches

No

SW1001

SW1002

SW1003

1

Off

On

Off

2

On

On

On

3

On

On

On

4

On

On

On

5

On

Off

On

6

On

Off

On

7

On

Off

On

8

On

Off

On

Table 3.2 Describe SPl Flash Download Mode States of the DIP Switches
No

SW1001

SW1002

SW1003

1

Off

On

Off

2

On

On

On

3

On

On

On

4

On

On

On

5

On

On

On

6

On

Off

On

7

On

On

On

Copyright © Hoperun Technologies Co., Ltd. 2019

15

8

On

On

On

3.3 Getting Start
3.3.1

Prerequisites

Before you power up your RZ_G2M board for the first time, you will need thefollowing: RZ_G2M board
 A power supply output DC 12V/2A
 A HDMI LCD Monitor that supports a resolution of 1080P/60Hz or 4K/30Hz
 HDMI cable used to connect the board with the monitor A computer keyboard with USB port
 A computer mouse with USB port
3.3.2
3.3.2.1

Protocol Setting for Debug Serial Interface
Install USB to UART Bridge Driver

Before using debug UART, follow these steps.
1) Install USB to UART bridge driver to your PC.
https://www.silabs.com/products/development-tools/software/usb-to-uart-b
ridge-vcp-drivers
2) Install the terminal soft “Tera Term” to your PC.
https://ttssh2.osdn.jp/index.html.en
3) Plug debug cable into computer and board. Open the “Tera term” on PC.

Choose the COM Port

Copyright © Hoperun Technologies Co., Ltd. 2019164) Setup the “Tera term”.

Choose “Serial port…”

Setup Serial Port
3.3.2.2 Software Installation
Download IPL and u-boot to the board, follow these steps:
1)

Set red DIP switches to “off” to enter serial download mode.

NOTE：Don't leave the dial DIP in the middle position.

Copyright © Hoperun Technologies Co., Ltd. 2019

17

2)

Plug in debug cable and power supply.

3)

Power on and check the output information.

4) Send Monitor Program to CPU RAM.

Copyright © Hoperun Technologies Co., Ltd. 201918

Select “Send file…”

Open “AArch64_HiHope_Scif_MiniMon_V0.20_0204.mot”

Send Monitor Program to CPU RAM

Copyright © Hoperun Technologies Co., Ltd. 201919

Download MiniMon successfully and output startup information
5) Write “bootparam_sa0.srec” to QSPI Flash via SCIF.

Input cmd “xls2” and address

Copyright © Hoperun Technologies Co., Ltd. 201920

Open “bootparam_sa0.srec”

After download “bootparam_sa0.srec”, input “y”

Download “bootparam_sa0.srec” successfully6) Write “bl2-hihope.srec” to QSPI Flash via SCIF.

Copyright © Hoperun Technologies Co., Ltd. 201921

Input cmd “xls2” and address

Open “bl2-hihope.srec”

After download “bl2-hihope.srec” , input “y”

Copyright © Hoperun Technologies Co., Ltd. 201922

Download “bl2-hihope.srec” successfully7) Write “cert_header_sa6.srec” to QSPI Flash via SCIF.

Input cmd “xls2” and address

Open “cert_header_sa6.srec”

Copyright © Hoperun Technologies Co., Ltd. 201923

After download “cert_header_sa6.srec” , input “y”

Download “cert_header_sa6.srec” successfully8) Write “bl31-hihope.srec” to QSPI Flash via SCIF.

Input cmd “xls2” and address

Copyright © Hoperun Technologies Co., Ltd. 201924

Open “bl31-hihope.srec”

After download “bl31-hihope.srec” , input “y”

Download “bl31-hihope.srec” successfully9) Write “u-boot-elf-hihope.srec” to QSPI Flash via SCIF.

Copyright © Hoperun Technologies Co., Ltd. 201925

Input cmd “xls2” and address

Open “u-boot-elf-hihope.srec”

After download “u-boot-elf-hihope.srec” , input “y”

Copyright © Hoperun Technologies Co., Ltd. 201926

Download “u-boot-elf-hihope.srec” successfully
After completing steps 1 to 9, IPL and u-boot were successfully downloaded.
Turn off board and set switches to SPI Boot mode.

Set red switches to “off” to enter SPI Boot mode
Turn on board and u-boot can run normally on board:

Make Micro SD Card startup images, follow these steps:
1) Use fdisk create two partitions.
Copyright © Hoperun Technologies Co., Ltd. 201927

2) Copy Image and dtb file to /dev/sd*1.

Build image file path: build/tmp/deploy/images/hihope-rzg2m/
Note: Image and dtb file name should be the same as settings in environment
variables.

3) Copy file system to /dev/sd*2.
But this step was not tested successfully. At present, the available file system
is made by “Win32 diskimager-1.0.0-install.exe” tool.
Download image to the board, follow these steps:4) Turn off board and insert Micro SD Card (include kernel image、dtb and filesystem) into Micro SD card slot.

Copyright © Hoperun Technologies Co., Ltd. 201928

5) Turn on board and u-boot can boot Linux from TF card.

6) Waiting for Linux boot to complete.

User name: root, password is empty

Copyright © Hoperun Technologies Co., Ltd. 201929