User Tools

Site Tools


civilinfrastructureplatform:ciptesting:cipreferencehardware:hihope-rzg2m

This is an old revision of the document!


HopeRun HiHope RZ/G2M

The HiHope RZ/G2M (hihope-rzg2m) is manufactured by Jiangsu HopeRun Software Co., Ltd. and uses the Renesas RZ/G2M SoC. More information about the platform can be found on the HiHope RZ/G2M product page.

The HiHope RZ/G2M platform consists of three parts:
1) Renesas RZ/G2M (r8a774a1) SoC
2) HopeRun HiHope RZ/G2M platform
3) HopeRun expansion board for HiHope RZ/G2 platforms (optional)

From HopeRun:

The HiHope RZ/G2M microprocessor (MPU) features a 64-bit multi-core architecture with advanced graphics capabilities and a high-bandwidth memory interface to support systems with enhanced human-machine interfaces.

More information about the Renesas RZ/G2M SoC can be found on the Renesas website.

Building for the hihope-rzg2m Platform

Instructions on building the CIP SLTS Linux Kernel, the Renesas Yocto BSP and the Renesas SDK for the hihope-rzg2m platform can be found here.

Using the hihope-rzg2m Platform

This section provides information on using this reference platform.

The instructions assume that you are using the optional expansion board. If you are not, please use change the device tree you use accordingly:

Device Tree Blob Platform Makeup
r8a774a1-hihope-rzg2m.dtb r8a774a1
hihope-rzg2m
r8a774a1-hihope-rzg2m-ex.dtb r8a774a1
hihope-rzg2m
hihope-rzg2-ex

Switch Settings

On the hihope-rzg2m there are three sets of switches - SW1001, SW1002 and SW1003 (BOOT CONFIG SW).

Default switch positions for SPI Flash boot are as follows:

SW BitsSW1001 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
8 ON ON ON

Connect to the board

Power Supply

Use the 12V power supply ?which has a 1.65 mm center pin positive jack and connect it to J2401 (POWER JACK). hihope-rzg2m is 96boads CE specification compatible and you can find suitable power supply or plug converter 96boards Power Accessories.

Serial Console

Use a microUSB cable to connect the host PC to the hihope-rzg2m, using CN2201 (DEBUG PORT). It is routed to SCIF2 on the RZ/G2M via UART to USB convertor CP2102.

Virtual COM port (VCP) Windows drivers are available from the Silicon Labs website. Unless using a very old Linux distribution, CP210x should be supported.

Serial settings:
- Baud rate: 115200
- Data: 8 bit
- Parity: None
- Stop: 1 bit
- Flow control: None

Any standard terminal emulator program can be used.

Notes

J8 (SATA connector) on the expansion board is not supported on hihope-rzg2m because of RZ/G2M specification. This is reserved for other SoC.

Booting the Kernel

To boot the board, flip SW2402 (next to DC Jack) to the 'ON' position (1-pin side, outside of the board). The following bootloader output should be seen on the debug serial console:

[    0.000155] NOTICE:  BL2: RZ G2M Initial Program Loader(CA57)
[    0.004418] NOTICE:  BL2: Initial Program Loader(Rev.1.0.23)
[    0.010034] NOTICE:  BL2: PRR is RZG G2M Ver.1.1 / Ver.1.2
[    0.015486] NOTICE:  BL2: Board is HiHope RZ/G2M Rev.1.0
[    0.020749] NOTICE:  BL2: Boot device is QSPI Flash(40MHz)
[    0.026189] NOTICE:  BL2: LCM state is CM
[    0.030171] NOTICE:  BL2: DDR3200(rev.0.34)
[    0.041714] NOTICE:  BL2: [COLD_BOOT]
[    0.047880] NOTICE:  BL2: DRAM Split is 2ch
[    0.050575] NOTICE:  BL2: QoS is default setting(rev.0.17)
[    0.056018] NOTICE:  BL2: DRAM refresh interval 1.95 usec
[    0.061437] NOTICE:  BL2: v1.5(release):7f126e2-dirty
[    0.066386] NOTICE:  BL2: Built : 12:15:40, Jul  3 2019
[    0.071574] NOTICE:  BL2: Normal boot
[    0.075219] NOTICE:  BL2: dst=0xe631fd00 src=0x8180000 len=512(0x200)
[    0.081702] NOTICE:  BL2: dst=0x43f00000 src=0x8180400 len=6144(0x1800)
[    0.089430] NOTICE:  BL2: dst=0x44000000 src=0x81c0000 len=65536(0x10000)
[    0.108349] NOTICE:  BL2: dst=0x50000000 src=0x8300000 len=1048576(0x100000)
[    0.328609] NOTICE:  BL2: Booting BL31


U-Boot 2018.09 (Jul 03 2019 - 12:16:46 +0000)

CPU: Renesas Electronics R8A774A1 rev 1.1/rev 1.2
Model: Hoperun Technology HiHope RZ/G2M platform (hihope-rzg2m)
DRAM:  3.9 GiB
Bank #0: 0x048000000 - 0x0bfffffff, 1.9 GiB
Bank #1: 0x600000000 - 0x67fffffff, 2 GiB

MMC:   sd@ee100000: 0, sd@ee160000: 1
Loading Environment from MMC... OK
In:    serial@e6e88000
Out:   serial@e6e88000
Err:   serial@e6e88000
Net:
Error: ethernet@e6800000 address not set.
eth-1: ethernet@e6800000
Hit any key to stop autoboot:  3

Hit any key before the autoboot countdown expires to access the u-boot command line interface:

Hit any key to stop autoboot:  0
=>

When starting U-Boot for the first time, environment value error message will be shown. Set the default environemnt value.

*** Warning - bad CRC, using default environment
=> env default -a
## Resetting to default environment
=> saveenv
Saving Environment to MMC... 
Writing to MMC(1)... OK
=>

You can now configure u-boot to boot into the Linux Kernel using the network, eMMC or SD card interfaces.

Common Settings

Some settings are the same, regardless of the boot medium used. In the u-boot serial console, enter the following commands:

setenv loadaddr 0x48080000
setenv fdt_addr 0x48000000

TFTP/NFS

This section assumes that there are working TFTP and NFS servers on the host PC.

setenv ethaddr xx:xx:xx:xx:xx:xx
setenv ipaddr x.x.x.x
setenv serverip x.x.x.x

setenv bootcmd 'tftpboot ${loadaddr} /host/tftp/directory/boot/Image; tftpboot ${fdt_addr} /host/tftp/directory/boot/Image-r8a774a1-hihope-rzg2m-ex.dtb; booti ${loadaddr} - ${fdt_addr}'
setenv bootargs 'rw root=/dev/nfs nfsroot=${serverip}:/host/tftp/directory ip=${ipaddr}'

eMMC/SD Card

eMMC

To be added

Micro SD slot (CN1601)
setenv bootcmd 'mmc dev 0; ext4load mmc 0:1 ${loadaddr} /boot/Image; ext4load mmc 0:1 ${fdt_addr} /boot/Image-r8a774a1-hihope-rzg2m-ex.dtb; booti ${loadaddr} - ${fdt_addr}'
setenv bootargs 'root=/dev/mmcblk1p2 rootwait'
civilinfrastructureplatform/ciptesting/cipreferencehardware/hihope-rzg2m.1566872548.txt.gz · Last modified: 2019/08/27 02:22 by kanechikay