Difference between revisions of "RZ-G/Boards/SK-RZG1M"

From eLinux.org
Jump to: navigation, search
m
(Fix a broken link)
 
(13 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
This is the official Wiki for the Renesas RZ/G1M Starter Kit board.  
 
This is the official Wiki for the Renesas RZ/G1M Starter Kit board.  
  
Refer to [[RZ-G]] page for Renesas RZ-G SoC family. Information on the [[RZ-G/Boards/SK-RZG1E|Renesas RZ/G1E Starter Kit board]] is on a separate page.
+
Refer to the [[RZ-G]] page for Renesas RZ-G SoC family. Information on the [[RZ-G/Boards/SK-RZG1E|Renesas RZ/G1E Starter Kit board]] is on a separate page.
  
 
== Hardware ==
 
== Hardware ==
[[File:G1M_TopWithLabels.png|794px|Top view]]<br/>
+
[[File:G1M_TopWithLabels.png|600px|Top view]]<br/>
 
For more information go to [[RZ-G/Boards/SK-RZG1M:Hardware]]
 
For more information go to [[RZ-G/Boards/SK-RZG1M:Hardware]]
  
Line 17: Line 17:
 
*** Renesas graphics processor (2D)  
 
*** Renesas graphics processor (2D)  
 
* 2 GB DDR3 memory (dual channel)
 
* 2 GB DDR3 memory (dual channel)
* Three flash memory chips
+
* Two flash memory chips
 
** 4 MB SPI
 
** 4 MB SPI
 
** 64 MB SPI
 
** 64 MB SPI
** 128 MB NOR (one 128Mb bank or 2x 64MB banks)
 
 
* Debug Ethernet (100 Mbps)
 
* Debug Ethernet (100 Mbps)
 
* Storage connection
 
* Storage connection
Line 36: Line 35:
 
* PCI Express x1 slot
 
* PCI Express x1 slot
 
* CAN transceiver
 
* CAN transceiver
* Power supply: 12V, TBD Amps
+
* Power supply: 12V, 5A
 
* Dimensions: 170x125 mm
 
* Dimensions: 170x125 mm
  
Line 42: Line 41:
 
The RZ/G1M System Evaluation board can be ordered from Digikey:
 
The RZ/G1M System Evaluation board can be ordered from Digikey:
  
[http://www.digikey.com/product-search/en?keywords=renesas%20rz-g%20G1M Click to buy the RZ/G1M Starter Kit board]
+
[http://www.digikey.com/product-search/en?keywords=renesas%20rz%20G1M Click to buy the RZ/G1M Starter Kit board]
  
 
== RZ/G1M SoC Documentation ==
 
== RZ/G1M SoC Documentation ==
TBD ''At the moment just short description is available''
+
Official documentation is available at https://www.renesas.com/en-us/products/microcontrollers-microprocessors/rz/rzg/rzg1m.html#documents
http://www.renesas.com/products/mpumcu/rz/rzg/rzg1m/index.jsp
 
 
 
TBD ''Add here link to the public RZ/G1M datasheet''
 
  
 
== Official RZ/G1M Starter Kit board documentation ==
 
== Official RZ/G1M Starter Kit board documentation ==
Hardware Manual: [[File:]] <br/>
+
The manual is available for download from [[File:RZG1M_Starter_Kit_BoardHardwareManual.pdf]]
Setup Manual: [[File:]]
 
  
 
== Quick Start How To ==
 
== Quick Start How To ==
Line 58: Line 53:
  
 
=== Build Yocto image ===
 
=== Build Yocto image ===
Refer to [[RZ-G/Boards/Yocto | Yocto]] for steps necessary for making a Yocto image.
+
Refer to [[RZ-G/Boards/Yocto | Yocto]] for the steps necessary for building a Yocto image.
  
 
=== Connect 12 V power supply to the board ===
 
=== Connect 12 V power supply to the board ===
Line 64: Line 59:
  
 
=== Connect to serial console ===
 
=== Connect to serial console ===
Use a miniUSB cable to connect the PC to the RZ/G1M Starter Kit board. Use to the CN18 connector on the board. It is routed to SCIF0 in the RZ/G1M via a CP2102 interface converter chip.
+
Use a microUSB cable to connect the PC to the RZ/G1M Starter Kit board. Use to the CN18 connector on the board. It is routed to SCIF0 in the RZ/G1M via a CP2102 interface converter chip.
  
On Linux, CP2102 driver is included with kernel versions >=2.6.12. Windows driver and sources can be found on [http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx Silicon Labs website].
+
On Linux, the CP2102 driver is included with kernel versions >=2.6.12. Windows driver and sources can be found on the [http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx Silicon Labs website]. NOTE: There have been reports of system freezes caused by the latest version of the driver v6.7.2. The previous version v6.7 has been verified to work correctly.  
  
 
Serial settings are 38400 8N1. Any standard terminal emulator program can be used.  
 
Serial settings are 38400 8N1. Any standard terminal emulator program can be used.  
Line 120: Line 115:
  
 
=== Power on the board and go to U-Boot prompt ===
 
=== Power on the board and go to U-Boot prompt ===
Switch [[RZ-G/Boards/Highlan:Hardware#Switches and Buttons|SW26 "Power"]] to switch the board on. Blue LEDs should lit up. Then you should see the following output in the terminal:
+
Switch [[RZ-G/Boards/SK-RZG1M:Hardware#Switches and Buttons|SW26 "Power"]] to switch the board on. Blue LEDs should lit up. Then you should see the following output in the terminal:
 
<pre>
 
<pre>
SKRZG1M SPI_LOADER(DDR3L) V0.19 2015.02.12
+
SKRZG1M SPI_LOADER(DDR3L-1600) V0.21 2015.11.10
 
  DEVICE S25FL512
 
  DEVICE S25FL512
  
  
U-Boot 2013.01.01-gcb82c56-dirty (Sep 20 2015 - 21:30:23)
+
U-Boot 2013.01.01-gcb82c56-dirty (Dec 14 2015 - 15:04:20)
  
CPU: Renesas Electronics R8A7743 rev 2.0
+
CPU: Renesas Electronics R8A7743 rev 3.0
Board: RZ/G1M Starter Kit Board
+
Board: Skrzg1m Board
  
 
DRAM:  1 GiB
 
DRAM:  1 GiB
Line 149: Line 144:
  
 
=== Configure U-Boot to boot over TFTP + NFS or from a micro SD card ===
 
=== Configure U-Boot to boot over TFTP + NFS or from a micro SD card ===
Refer to [[RZ-G/Boards/Yocto#Running Yocto image|Yocto page]] for steps necessary for running Yocto.
+
Refer to [[RZ-G/Boards/Yocto#Running the Yocto image|Yocto page]] for steps necessary for running Yocto.
  
 
== Bootloader ==
 
== Bootloader ==
The RZ/G1M SoC can be booted from various sources. The RZ/G1M Starter Kit board can be booted from QSPI Flash or NOR Flash. Boot source is selectable by two jumpers JP2 (located close to JTAG connector) and JP8 (close to RJ45 connector):
+
The RZ/G1M SoC can be booted from various sources. The RZ/G1M Starter Kit board can be booted from QSPI Flash. The board has two SPI Flash memory chips selectable by JP2. In a standard configuration 4MB Flash S25FL032 stores original MiniMonitor firmware (for backup/rescue purposes) and 64 MB FLash S25FL512 stores U-Boot
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Boot source !! JP2 state !! JP8 state
+
! Boot source !! JP2 state
 
|-
 
|-
| QSPI (default) || 2-3 closed || opened
+
| QSPI (64MB) || 1-2 closed
 
|-
 
|-
| NOR || 1-2 closed || closed
+
| QSPI (4MB) || 2-3 closed
 
|}
 
|}
In a standard configuration 1 Gbit NOR flash Spansion S29GL01GP stores U-boot bootloader (for backup/rescue purposes) and 64 MB FLash S25FL512S stores MiniMonitor (QSPI Loader) and U-Boot (main storage).
 
  
 
=== Updating U-Boot ===
 
=== Updating U-Boot ===
Line 167: Line 161:
 
<ol>
 
<ol>
 
<li>
 
<li>
Power off
+
Put the jumper on pins 2 and 3 of JP2. This selects the 4MB SPI Flash with MiniMonitor as a boot device.<br/>
 +
MiniMonitor is loaded via the SPI boot interface of RZ/G1M.
 +
</li>
 +
<li>
 +
Connect to serial console over microUSB.<br/>
 +
If using picocom, start it with the following command line options:
 +
<pre>
 +
sudo picocom -b BAUDRATE --send-cmd "ascii-xfr -vvs" DEVICE
 +
</pre>
 +
Refer to "[[RZ-G/Boards/SK-RZG1M#Connect_to_serial_console|Connect to serial console]]" section for more information.
 +
</li>
 +
<li>
 +
Switch the board ON or reset it. <br/>
 +
You should see the following output on the console (version numbers can be different):
 +
<pre class="bash">
 +
SKRZG1M SPI_LOADER(DDR3L-1600) V0.21 2015.11.10
 +
DEVICE S25FL032
 +
 
 +
SKRZG1M MiniMonitor SPI_BOOT
 +
Work memory DRAM (H'40200000-)
 +
2015.06.04 Ver0.09c ** Program on DRAM (H'40000000-)  **
 +
 
 +
>
 +
</pre>
 +
</li>
 +
<li>
 +
Execute the '''ls''' command:
 +
<pre>
 +
ls
 +
</pre>
 +
You should be able to see the following output:
 +
<pre class="bash">
 +
Load Program to 64MB Spiflash memory (U16:S25FL512S)
 +
JP2(SPI_SEL) 1pin-Side! Setting OK? (Push Y key)
 +
</pre>
 +
MiniMonitor is asking to connect pins 1 and 2 of JP2.
 +
</li>
 +
<li>
 +
Connect pins 1 and 2 of JP2. This activates 64MB SPI Flash for U-Boot.<br/>
 
</li>
 
</li>
 
<li>
 
<li>
Set JP2 and JP8 jumpers to boot from NOR Flash.
+
Enter '''y''' to confirm your setting.<br/>
* JP2 : 1-2 closed
 
* JP8 : closed
 
 
</li>
 
</li>
 
<li>
 
<li>
Power on
+
MiniMonitor should ask now:
 +
<pre class="bash">
 +
Select area(1-2)>
 +
</pre>
 +
Answer '''2''' and Enter.
 
</li>
 
</li>
 
<li>
 
<li>
Set JP2 and JP8 jumpers for flashing QSPI
+
Mini monitor should display:
* JP2 : 2-3 closed
+
<pre class="bash">
* JP8 : closed
+
Please Input User Program Start Address :
 +
</pre>
 +
Enter '''e6304000''' for RZ/G1M and hit Enter.
 
</li>
 
</li>
 
<li>
 
<li>
Load and update QSPI U-boot with the following commands:
+
MiniMonitor should now display:
 +
<pre class="bash">
 +
Please send ! ('.' & CR stop load)
 +
</pre>
 +
Send '''uboot.srec''' file. It should be available in $WORK/build/tmp/deploy/images/skrzg1m/ folder which is generated by bitbake during Yocto build. Alternatively, you can download it from this site [[File:G1M_U-boot.srec.zip]]
 +
===== picocom =====
 +
Use '''Ctrl+A''', '''Ctrl+S''', then select '''uboot.srec''' file and hit Enter. <br/>
 +
Transmission should start immediately and the progress counter should be displayed:
 +
<pre class="bash">
 +
*** file: /data/Renesas/skrzg1m/build/tmp/deploy/images/skrzg1m/u-boot.srec
 +
ascii-xfr -vvs /data/Renesas/skrzg1m/build/tmp/deploy/images/skrzg1m/u-boot.srec
 +
ASCII upload of "/data/Renesas/skrzg1m/build/tmp/deploy/images/skrzg1m/u-boot.srec"
 +
 
 +
15.0 Kbytes transferred at 3732 CPS...
 +
</pre>
 +
 
 +
===== minicom =====
 +
Use '''Ctrl+A''', '''S''', choose '''ascii''', then locate '''uboot.srec''' file and hit Enter. Transmission should start immediately and the progress counter should be displayed:<br/>
 
<pre>
 
<pre>
=> tftp 0x48100000 ${YOUR_PATH}/u-boot.bin
+
+-[ascii upload - Press CTRL-C to quit]-+
sh_eth Waiting for PHY auto negotiation to complete...... done
+
|ASCII upload of "uboot.srec"          |
sh_eth: 100Base/Full
+
|                                      |
Using sh_eth device
+
|                                      |
TFTP from server 192.168.10.30; our IP address is 192.168.10.23
+
|23.0 Kbytes transferred at 3857 CPS    |
Filename 'rzg/rootfs/u-boot.bin'.
+
|                                      |
Load address: 0x48100000
+
+---------------------------------------+
Loading: ################
 
        1.8 MiB/s
 
done
 
Bytes transferred = 231144 (386e8 hex)
 
=> sf probe
 
SF: Detected S25FL512S with page size 256 KiB, total 64 MiB
 
=> mm 48000000
 
48000000: 779f51ff ? e6304000
 
48000004: 5fffffd7 ? 386e8
 
48000008: 5fdf39df ? .
 
=> sf erase 40000 +8
 
=> sf write 48000000 40000 8
 
=> sf erase 80000 +386e8
 
=> sf write 48100000 80000 386e8
 
 
</pre>
 
</pre>
 
</li>
 
</li>
 
<li>
 
<li>
Power off
+
If there are some data in writing area, MiniMonitor will display:
 +
<pre class="bash">
 +
SPI Data Clear(H'FF) Check :H'0080000-00BFFFF Clear OK?(y/n)
 +
</pre>
 +
You can safely input "y" to override area 2 of 64MB SPI Flash.
 
</li>
 
</li>
 
<li>
 
<li>
Set JP2 and JP8 jumpers to boot from QSPI Flash.
+
After writing is complete, MiniMonitor should display
* JP2 : 2-3 closed
+
<pre class="bash">
* JP8 : opened
+
SPI Data Clear(H'FF) Check :H'00080000-000BFFFF Erasing..Erase Completed
 +
SAVE SPI-FLASH....... complete!
 +
-- Save (Program Start Address & Size ) -----
 +
SPI Data Clear(H'FF):H'040000-07FFFF Erasing..Erase Completed
 +
SAVE SPI-FLASH....... complete!
 +
 
 +
==========  SPI Flash Sector1 Save Information  =========
 +
Program Start Address : H'E6304000
 +
Program Size          :  H'000385B8
 +
=========================================================
 +
</pre>
 
</li>
 
</li>
 
<li>
 
<li>
Power on
+
Reboot the RZ/G1M Starter Kit board by pressing SW9 "Reset" button.<br/>
 +
You should see U-Boot prompt now.
 +
<pre class="bash">
 +
SKRZG1M SPI_LOADER(DDR3L-1600) V0.21 2015.11.10
 +
DEVICE S25FL512
 +
 
 +
 
 +
U-Boot 2013.01.01-g74b16ba-dirty (Dec 14 2015 - 15:04:20)
 +
 
 +
CPU: Renesas Electronics R8A7743 rev 3.0
 +
Board: Skrzg1m Board
 +
 
 +
DRAM:  1 GiB
 +
MMC:  sh-sdhi: 0, sh-sdhi: 1
 +
SF: Detected S25FL512S with page size 256 KiB, total 64 MiB
 +
In:    serial
 +
Out:  serial
 +
Err:  serial
 +
Net:  sh_eth
 +
Hit any key to stop autoboot: 3
 +
</pre>
 
</li>
 
</li>
 
</ol>
 
</ol>
  
 
=== Updating QSPI Loader ===
 
=== Updating QSPI Loader ===
You may want to update QSPI Loader in case of upgrade or if the board you received does not have the QSPI Loader flashed into QSPI Flash. Follow these steps carefully:<br/>
+
You may want to update the QSPI Loader in case of upgrade or if the board you received does not have the loader flashed into QSPI Flash. Follow these steps carefully:<br/>
Latest QSPI Loader: [[File:SKRZG1M_SPI_LOADER_V019_DDR3L.bin.zip]]
 
 
<ol>
 
<ol>
 
<li>
 
<li>
Power off
+
Put the jumper on pins 2 and 3 of JP2. This selects the 4MB SPI Flash with MiniMonitor as a boot device.<br/>
 +
MiniMonitor is loaded via the SPI boot interface of RZ/G1M.
 +
</li>
 +
<li>
 +
Connect to serial console over microUSB.<br/>
 +
If using picocom, start it with the following command line options:
 +
<pre>
 +
sudo picocom -b BAUDRATE --send-cmd "ascii-xfr -vvs" DEVICE
 +
</pre>
 +
Refer to "[[RZ-G/Boards/SK-RZG1M#Connect_to_serial_console|Connect to serial console]]" section for more information.
 +
</li>
 +
<li>
 +
Switch the board ON or reset it. <br/>
 +
You should see the following output on the console (version numbers can be different):
 +
<pre class="bash">
 +
SKRZG1M SPI_LOADER(DDR3L-1600) V0.21 2015.11.10                                                                             
 +
DEVICE S25FL032                                                                                                           
 +
                                                                                                                           
 +
SKRZG1M MiniMonitor SPI_BOOT                                                                                                 
 +
Work memory DRAM (H'40200000-)                                                                                             
 +
2015.11.10 Ver0.09c ** Program on DRAM (H'40000000-)  **                                                                   
 +
                                                                                                                           
 +
>
 +
</pre>
 
</li>
 
</li>
 
<li>
 
<li>
Set JP2 and JP8 jumpers to boot from NOR Flash.
+
Execute the '''ls''' command:
* JP2 : 1-2 closed
+
<pre>
* JP8 : closed
+
ls
 +
</pre>
 +
You should be able to see the following output:
 +
<pre class="bash">
 +
Load Program to 64MB Spiflash memory (U16:S25FL512S)
 +
JP2(SPI_SEL) 1pin-Side! Setting OK? (Push Y key)
 +
</pre>
 +
MiniMonitor is asking to connect pins 1 and 2 of JP2.
 
</li>
 
</li>
 
<li>
 
<li>
Power on
+
Connect pins 1 and 2 of JP2. This activates the 64MB SPI Flash for U-Boot.<br/>
 
</li>
 
</li>
 
<li>
 
<li>
Set JP2 and JP8 jumpers for flashing QSPI
+
Enter '''y''' to confirm your setting.<br/>
* JP2 : 2-3 closed
 
* JP8 : closed
 
 
</li>
 
</li>
 
<li>
 
<li>
Load and update QSPI Loader with the following commands:
+
MiniMonitor should ask now:
 +
<pre class="bash">
 +
Select area(1-2)>
 +
</pre>
 +
Answer '''1''' and Enter.
 +
</li>
 +
 
 +
<li>
 +
MiniMonitor should now display:
 +
<pre class="bash">
 +
Please send ! ('.' & CR stop load)
 +
</pre>
 +
Send '''SKRZG1M_SPL_LOADER_V021_DDR3L.mot''' file. It can be downloaded from this site [[File:SKRZG1M_SPL_LOADER_V021_DDR3L.mot.zip]]<br/>
 +
 
 +
===== picocom =====
 +
Use '''Ctrl+A''', '''Ctrl+S''', then select the file '''SKRZG1M_SPL_LOADER_V021_DDR3L.mot''' and hit Enter. <br/>
 +
Transmission should start immediately and the progress counter should be displayed:
 +
<pre class="bash">
 +
*** file: /data/Renesas/skrzg1m/SKRZG1M_SPL_LOADER_V021_DDR3L.mot
 +
ascii-xfr -vvs /data/Renesas/skrzg1m/SKRZG1M_SPL_LOADER_V021_DDR3L.mot
 +
ASCII upload of "/data/Renesas/skrzg1m/SKRZG1M_SPL_LOADER_V021_DDR3L.mot"
 +
 
 +
15.0 Kbytes transferred at 3732 CPS...
 +
</pre>
 +
 
 +
===== minicom =====
 +
Use '''Ctrl+A''', '''S''', choose '''ascii''', then locate '''SKRZG1M_SPL_LOADER_V021_DDR3L.mot''' file and hit Enter. Transmission should start immediately and the progress counter should be displayed:<br/>
 
<pre>
 
<pre>
=> tftp 0x48000000 ${YOUR_PATH}/SKRZG1M_SPI_LOADER_V019_DDR3L.bin
+
+-[ascii upload - Press CTRL-C to quit]--------+
sh_eth Waiting for PHY auto negotiation to complete.. done
+
|ASCII upload of "SKRZG1M_SPL_LOADER_V021_DDR3L.mot"  |
sh_eth: 100Base/Full
+
|                                              |
Using sh_eth device
+
|                                              |
TFTP from server 192.168.10.30; our IP address is 192.168.10.10
+
|23.0 Kbytes transferred at 3857 CPS          |
Filename '${YOUR_PATH}/SKRZG1M_SPI_LOADER_V019_DDR3L.bin'.
+
|                                              |
Load address: 0x48000000
+
+----------------------------------------------+
Loading: #
 
        1.8 MiB/s
 
done
 
Bytes transferred = 13388 (344c hex)
 
=>
 
=> sf probe
 
SF: Detected S25FL512S with page size 256 KiB, total 64 MiB
 
=> sf erase 0 +34ff
 
=> sf write 0x48000000 0 344c
 
 
</pre>
 
</pre>
 
</li>
 
</li>
 
<li>
 
<li>
Power off
+
If there is some data in writing area, MiniMonitor will display:
 +
<pre class="bash">
 +
SPI Data Clear(H'FF) Check :H'00000000-0003FFFF,Clear OK?(y/n)
 +
</pre>
 +
You can safely input "y" to override area 1 of the 64MB SPI Flash.
 
</li>
 
</li>
 
<li>
 
<li>
Set JP2 and JP8 jumpers to boot from QSPI Flash.
+
After writing is complete, MiniMonitor should display
* JP2 : 2-3 closed
+
<pre class="bash">
* JP8 : opened
+
SAVE SPI-FLASH....... complete!
 +
</pre>
 
</li>
 
</li>
 
<li>
 
<li>
Power on
+
Reboot the RZ/G1M Starter Kit board by pressing the SW9 "Reset" button.<br/>
 
</li>
 
</li>
 
</ol>
 
</ol>
 
+
You can now flash U-Boot or proceed to loading an operating system.
 +
</ol>
 
= FAQ =
 
= FAQ =
 
=== How do I change/update the MAC address of the Ethernet interface? ===
 
=== How do I change/update the MAC address of the Ethernet interface? ===
Line 296: Line 419:
  
 
=== Which operating systems/distributions can be used with the RZ/G1M Starter Kit board? ===
 
=== Which operating systems/distributions can be used with the RZ/G1M Starter Kit board? ===
''TBD''
+
* Yocto 1.6.1 Linux (kernel 3.10 LTSI)
 +
* Yocto 2.0 Linux (kernel 4.4)
 +
* Android KitKat 4.4
 +
* Android Marshmallow
  
 
== Known Issues ==
 
== Known Issues ==
 
''TBD''
 
''TBD''

Latest revision as of 20:53, 25 April 2017

Introduction

This is the official Wiki for the Renesas RZ/G1M Starter Kit board.

Refer to the RZ-G page for Renesas RZ-G SoC family. Information on the Renesas RZ/G1E Starter Kit board is on a separate page.

Hardware

Top view
For more information go to RZ-G/Boards/SK-RZG1M:Hardware

Hardware Features

  • RZ/G1M SoC
    • ARM®Cortex-A15 Dual Core 1.5­GHz
    • GPU
      • PowerVR SGX544MP2 (3D)
      • Renesas graphics processor (2D)
  • 2 GB DDR3 memory (dual channel)
  • Two flash memory chips
    • 4 MB SPI
    • 64 MB SPI
  • Debug Ethernet (100 Mbps)
  • Storage connection
    • one SATA rev. 3.1 port
    • one SD card slot
    • one microSD card slot
  • Analog Video In: ADV7180 Video Decoder
    • RCA jack
    • NTSC/PAL/SECAM autodetection
  • Audio codec: AK4643EN
    • Line In 3.5 mm jack
    • LineOut 3.5 mm jack
  • Two USB 2.0 ports
    • microUSB port supports host, device and OTG modes
  • PCI Express x1 slot
  • CAN transceiver
  • Power supply: 12V, 5A
  • Dimensions: 170x125 mm

Where to buy

The RZ/G1M System Evaluation board can be ordered from Digikey:

Click to buy the RZ/G1M Starter Kit board

RZ/G1M SoC Documentation

Official documentation is available at https://www.renesas.com/en-us/products/microcontrollers-microprocessors/rz/rzg/rzg1m.html#documents

Official RZ/G1M Starter Kit board documentation

The manual is available for download from File:RZG1M Starter Kit BoardHardwareManual.pdf

Quick Start How To

This sections describes steps that are necessary to run a "Hello, World!" application using Yocto build. Both X11 and Wayland are supported.

Build Yocto image

Refer to Yocto for the steps necessary for building a Yocto image.

Connect 12 V power supply to the board

Use 12 V power supply with a 5.5 mm barrel plug. The power supply should be able to provide 5 Amps.

Connect to serial console

Use a microUSB cable to connect the PC to the RZ/G1M Starter Kit board. Use to the CN18 connector on the board. It is routed to SCIF0 in the RZ/G1M via a CP2102 interface converter chip.

On Linux, the CP2102 driver is included with kernel versions >=2.6.12. Windows driver and sources can be found on the Silicon Labs website. NOTE: There have been reports of system freezes caused by the latest version of the driver v6.7.2. The previous version v6.7 has been verified to work correctly.

Serial settings are 38400 8N1. Any standard terminal emulator program can be used.

On Linux:

picocom
sudo picocom -b 38400 DEVICE

replace DEVICE with the proper tty device name, for example /dev/ttyUSB0. Running dmesg | tail can help locating proper device.
After the successful connection, picocom should display:

picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 38400
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready

Use Ctrl+A, Ctrl+Q to exit picocom.

minicom
sudo minicom -b 38400 -D DEVICE

replace DEVICE with the proper tty device name, for example /dev/ttyUSB0. Running dmesg | tail can help locating proper device.
After the successful connection, minicom should display:

Welcome to minicom 2.6.2

OPTIONS: I18n 
Compiled on Aug  7 2013, 13:32:48.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys

Use Ctrl+A, Q to exit minicom.

Power on the board and go to U-Boot prompt

Switch SW26 "Power" to switch the board on. Blue LEDs should lit up. Then you should see the following output in the terminal:

SKRZG1M SPI_LOADER(DDR3L-1600) V0.21 2015.11.10
 DEVICE S25FL512


U-Boot 2013.01.01-gcb82c56-dirty (Dec 14 2015 - 15:04:20)

CPU: Renesas Electronics R8A7743 rev 3.0
Board: Skrzg1m Board

DRAM:  1 GiB
MMC:   sh-sdhi: 0, sh-sdhi: 1, sh-sdhi: 2
SF: Detected S25FL512S with page size 256 KiB, total 64 MiB
In:    serial
Out:   serial
Err:   serial
Net:   sh_eth
Hit any key to stop autoboot:  0

Quickly hit any key to get into U-boot command prompt. Use SW9 Reset to reboot the board when necessary.

You should see the following:

Hit any key to stop autoboot:  0                                                                                                            
=> 

Configure U-Boot to boot over TFTP + NFS or from a micro SD card

Refer to Yocto page for steps necessary for running Yocto.

Bootloader

The RZ/G1M SoC can be booted from various sources. The RZ/G1M Starter Kit board can be booted from QSPI Flash. The board has two SPI Flash memory chips selectable by JP2. In a standard configuration 4MB Flash S25FL032 stores original MiniMonitor firmware (for backup/rescue purposes) and 64 MB FLash S25FL512 stores U-Boot

Boot source JP2 state
QSPI (64MB) 1-2 closed
QSPI (4MB) 2-3 closed

Updating U-Boot

You may want to update U-Boot in case of upgrade or if the board you received does not have the U-Boot flashed into QSPI Flash. Follow these steps carefully to flash U-Boot:

  1. Put the jumper on pins 2 and 3 of JP2. This selects the 4MB SPI Flash with MiniMonitor as a boot device.
    MiniMonitor is loaded via the SPI boot interface of RZ/G1M.
  2. Connect to serial console over microUSB.
    If using picocom, start it with the following command line options:
    sudo picocom -b BAUDRATE --send-cmd "ascii-xfr -vvs" DEVICE
    

    Refer to "Connect to serial console" section for more information.

  3. Switch the board ON or reset it.
    You should see the following output on the console (version numbers can be different):
    SKRZG1M SPI_LOADER(DDR3L-1600) V0.21 2015.11.10
     DEVICE S25FL032
      
    SKRZG1M MiniMonitor SPI_BOOT 
     Work memory DRAM (H'40200000-) 
     2015.06.04 Ver0.09c ** Program on DRAM (H'40000000-)  ** 
    
    >
    
  4. Execute the ls command:
    ls
    

    You should be able to see the following output:

    Load Program to 64MB Spiflash memory (U16:S25FL512S)
    JP2(SPI_SEL) 1pin-Side! Setting OK? (Push Y key)
    

    MiniMonitor is asking to connect pins 1 and 2 of JP2.

  5. Connect pins 1 and 2 of JP2. This activates 64MB SPI Flash for U-Boot.
  6. Enter y to confirm your setting.
  7. MiniMonitor should ask now:
    Select area(1-2)> 
    

    Answer 2 and Enter.

  8. Mini monitor should display:
    Please Input User Program Start Address :
    

    Enter e6304000 for RZ/G1M and hit Enter.

  9. MiniMonitor should now display:
    Please send ! ('.' & CR stop load)
    

    Send uboot.srec file. It should be available in $WORK/build/tmp/deploy/images/skrzg1m/ folder which is generated by bitbake during Yocto build. Alternatively, you can download it from this site File:G1M U-boot.srec.zip

    picocom

    Use Ctrl+A, Ctrl+S, then select uboot.srec file and hit Enter.
    Transmission should start immediately and the progress counter should be displayed:

    *** file: /data/Renesas/skrzg1m/build/tmp/deploy/images/skrzg1m/u-boot.srec
    ascii-xfr -vvs /data/Renesas/skrzg1m/build/tmp/deploy/images/skrzg1m/u-boot.srec 
    ASCII upload of "/data/Renesas/skrzg1m/build/tmp/deploy/images/skrzg1m/u-boot.srec"
    
    15.0 Kbytes transferred at 3732 CPS...
    
    minicom

    Use Ctrl+A, S, choose ascii, then locate uboot.srec file and hit Enter. Transmission should start immediately and the progress counter should be displayed:

    +-[ascii upload - Press CTRL-C to quit]-+
    |ASCII upload of "uboot.srec"           |
    |                                       |
    |                                       |
    |23.0 Kbytes transferred at 3857 CPS    |
    |                                       |
    +---------------------------------------+
    
  10. If there are some data in writing area, MiniMonitor will display:
    SPI Data Clear(H'FF) Check :H'0080000-00BFFFF Clear OK?(y/n)
    

    You can safely input "y" to override area 2 of 64MB SPI Flash.

  11. After writing is complete, MiniMonitor should display
    SPI Data Clear(H'FF) Check :H'00080000-000BFFFF Erasing..Erase Completed 
    SAVE SPI-FLASH....... complete!
    -- Save (Program Start Address & Size ) -----
    SPI Data Clear(H'FF):H'040000-07FFFF Erasing..Erase Completed 
    SAVE SPI-FLASH....... complete!
    
    ==========  SPI Flash Sector1 Save Information  =========
     Program Start Address :  H'E6304000
     Program Size          :  H'000385B8
    =========================================================
    
  12. Reboot the RZ/G1M Starter Kit board by pressing SW9 "Reset" button.
    You should see U-Boot prompt now.
    SKRZG1M SPI_LOADER(DDR3L-1600) V0.21 2015.11.10
     DEVICE S25FL512
    
    
    U-Boot 2013.01.01-g74b16ba-dirty (Dec 14 2015 - 15:04:20)
    
    CPU: Renesas Electronics R8A7743 rev 3.0
    Board: Skrzg1m Board
    
    DRAM:  1 GiB
    MMC:   sh-sdhi: 0, sh-sdhi: 1
    SF: Detected S25FL512S with page size 256 KiB, total 64 MiB
    In:    serial
    Out:   serial
    Err:   serial
    Net:   sh_eth
    Hit any key to stop autoboot: 3
    

Updating QSPI Loader

You may want to update the QSPI Loader in case of upgrade or if the board you received does not have the loader flashed into QSPI Flash. Follow these steps carefully:

  1. Put the jumper on pins 2 and 3 of JP2. This selects the 4MB SPI Flash with MiniMonitor as a boot device.
    MiniMonitor is loaded via the SPI boot interface of RZ/G1M.
  2. Connect to serial console over microUSB.
    If using picocom, start it with the following command line options:
    sudo picocom -b BAUDRATE --send-cmd "ascii-xfr -vvs" DEVICE
    

    Refer to "Connect to serial console" section for more information.

  3. Switch the board ON or reset it.
    You should see the following output on the console (version numbers can be different):
    SKRZG1M SPI_LOADER(DDR3L-1600) V0.21 2015.11.10                                                                               
     DEVICE S25FL032                                                                                                             
                                                                                                                                 
    SKRZG1M MiniMonitor SPI_BOOT                                                                                                  
     Work memory DRAM (H'40200000-)                                                                                              
     2015.11.10 Ver0.09c ** Program on DRAM (H'40000000-)  **                                                                    
                                                                                                                                 
    >
    
  4. Execute the ls command:
    ls
    

    You should be able to see the following output:

    Load Program to 64MB Spiflash memory (U16:S25FL512S)
    JP2(SPI_SEL) 1pin-Side! Setting OK? (Push Y key)
    

    MiniMonitor is asking to connect pins 1 and 2 of JP2.

  5. Connect pins 1 and 2 of JP2. This activates the 64MB SPI Flash for U-Boot.
  6. Enter y to confirm your setting.
  7. MiniMonitor should ask now:
    Select area(1-2)> 
    

    Answer 1 and Enter.

  8. MiniMonitor should now display:
    Please send ! ('.' & CR stop load)
    

    Send SKRZG1M_SPL_LOADER_V021_DDR3L.mot file. It can be downloaded from this site File:SKRZG1M SPL LOADER V021 DDR3L.mot.zip

    picocom

    Use Ctrl+A, Ctrl+S, then select the file SKRZG1M_SPL_LOADER_V021_DDR3L.mot and hit Enter.
    Transmission should start immediately and the progress counter should be displayed:

    *** file: /data/Renesas/skrzg1m/SKRZG1M_SPL_LOADER_V021_DDR3L.mot
    ascii-xfr -vvs /data/Renesas/skrzg1m/SKRZG1M_SPL_LOADER_V021_DDR3L.mot
    ASCII upload of "/data/Renesas/skrzg1m/SKRZG1M_SPL_LOADER_V021_DDR3L.mot"
    
    15.0 Kbytes transferred at 3732 CPS...
    
    minicom

    Use Ctrl+A, S, choose ascii, then locate SKRZG1M_SPL_LOADER_V021_DDR3L.mot file and hit Enter. Transmission should start immediately and the progress counter should be displayed:

    +-[ascii upload - Press CTRL-C to quit]--------+
    |ASCII upload of "SKRZG1M_SPL_LOADER_V021_DDR3L.mot"  |
    |                                              |
    |                                              |
    |23.0 Kbytes transferred at 3857 CPS           |
    |                                              |
    +----------------------------------------------+
    
  9. If there is some data in writing area, MiniMonitor will display:
    SPI Data Clear(H'FF) Check :H'00000000-0003FFFF,Clear OK?(y/n)
    

    You can safely input "y" to override area 1 of the 64MB SPI Flash.

  10. After writing is complete, MiniMonitor should display
    SAVE SPI-FLASH....... complete!
    
  11. Reboot the RZ/G1M Starter Kit board by pressing the SW9 "Reset" button.

You can now flash U-Boot or proceed to loading an operating system.

FAQ

How do I change/update the MAC address of the Ethernet interface?

In U-boot command line type:

=> env delete -f ethaddr                  
=> setenv ethaddr 2e:09:0a:00:xx:xx
=> saveenv

You should see the output

Saving Environment to SPI Flash...
SF: Detected S25FL512S with page size 256 KiB, total 64 MiB
Erasing SPI flash...Writing to SPI flash...done

The original (default) MAC address can be found on the label on top of RJ45 connector.

How do I connect an external LVDS display with touchscreen?

See an example for Boundary Devices BD101LCC1 display.

Which operating systems/distributions can be used with the RZ/G1M Starter Kit board?

  • Yocto 1.6.1 Linux (kernel 3.10 LTSI)
  • Yocto 2.0 Linux (kernel 4.4)
  • Android KitKat 4.4
  • Android Marshmallow

Known Issues

TBD