Difference between revisions of "RZ-G/Boards/SK-RZG1E"
Renesas-rz (talk | contribs) (Created page with "TBD") |
Renesas-rz (talk | contribs) |
||
Line 1: | Line 1: | ||
− | TBD | + | {{TOC right}} |
+ | |||
+ | == Introduction == | ||
+ | This is the official Wiki for the Renesas RZ/G1E Starter Kit board. | ||
+ | |||
+ | Refer to the [[RZ-G]] page for Renesas RZ-G SoC family. Information on the [[RZ-G/Boards/SK-RZG1M | Renesas RZ/G1M Starter Kit board]] is on a separate page. | ||
+ | |||
+ | == Hardware == | ||
+ | [[File:IslayTopWithLabels.png|794px|Top view]]<br/> | ||
+ | For more information go to [[RZ-G/Boards/SK-RZG1E:Hardware]] | ||
+ | |||
+ | == Hardware Features == | ||
+ | * RZ/G1E SoC | ||
+ | ** ARM®Cortex-A7 Dual Core | ||
+ | ** GPU: PowerVR SGX540 | ||
+ | ** Various hardware IP blocks for video and audio processing | ||
+ | * 1 GB DDR3 memory | ||
+ | * Two SPI flash memory chips (selected by SW9) | ||
+ | ** 4 MB | ||
+ | ** 64 MB | ||
+ | * 8GB eMMC chip MTFC8GLWDQ-3M AIT Z | ||
+ | * WiFi+Bluetooth module | ||
+ | * Audio codec: AK4643EN | ||
+ | ** Line In 3.5 mm jack | ||
+ | ** LineOut 3.5 mm jack | ||
+ | * HDMI type A output | ||
+ | ** Max. resolutions support TBD | ||
+ | * VGA output (DB-15F) | ||
+ | * Analog Video In: ADV7180 Video Decoder | ||
+ | ** RCA jack | ||
+ | ** NTSC/PAL/SECAM autodetection | ||
+ | * Two USB 2.0 ports | ||
+ | ** One USB type A connector can be switched to Host or Function mode by SW10 | ||
+ | * I2C EEPROM (Renesas R1EX24002ATAS0) | ||
+ | * Dialog Semiconductor DA9063 Power Regulator | ||
+ | * Power supply: 5V, TBD Amps | ||
+ | * Dimensions: 140x120 mm | ||
+ | |||
+ | == Where to buy == | ||
+ | |||
+ | The RZ/G1E System Evaluation board can be ordered from Digikey: | ||
+ | |||
+ | ''TBD'' | ||
+ | |||
+ | == RZ/G1M SoC Documentation == | ||
+ | TBD ''At the moment just block diagram reference is available'' | ||
+ | http://www.renesas.com/products/mpumcu/rz/rzg/rzg1e/index.jsp | ||
+ | |||
+ | TBD ''Add here link to public RZ/G1E datasheet'' | ||
+ | |||
+ | == Official RZ/G1E Starter Kit board documentation == | ||
+ | The manual is available for download from [[File:RZ/G1E Application Development Board HardwareManual.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 [[RZ-G/Boards/Yocto | Yocto]] for steps necessary for making a Yocto image. | ||
+ | |||
+ | === Connect 5 V power supply to the board === | ||
+ | Use 5 V power supply with a 5.5 mm barrel plug. The power supply should be able to provide '''TBD''' Amps. | ||
+ | |||
+ | === Connect to serial console === | ||
+ | Use a microUSB cable to connect the PC to RZ/G1E Starter Kit board. The the CN13 ("DEBUG") connector on the board. It is routed to SCIF2 in the RZ/G1E 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]. | ||
+ | |||
+ | Serial settings are 38400 8N1. Any standard terminal emulator program can be used. | ||
+ | |||
+ | On Linux: | ||
+ | |||
+ | ===== [https://code.google.com/p/picocom/ picocom] ===== | ||
+ | <pre> | ||
+ | sudo picocom -b 38400 DEVICE | ||
+ | </pre> | ||
+ | replace DEVICE with the proper tty device name, for example '''/dev/ttyUSB0'''. Running '''dmesg | tail''' can help locating proper device.<br/> | ||
+ | After the successful connection, picocom should display: | ||
+ | <pre class="bash"> | ||
+ | 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 | ||
+ | |||
+ | </pre> | ||
+ | Use Ctrl+A, Ctrl+Q to exit picocom. | ||
+ | |||
+ | ===== [https://alioth.debian.org/projects/minicom/ minicom] ===== | ||
+ | <pre> | ||
+ | sudo minicom -b 38400 -D DEVICE | ||
+ | </pre> | ||
+ | replace DEVICE with the proper tty device name, for example '''/dev/ttyUSB0'''. Running '''dmesg | tail''' can help locating proper device.<br/> | ||
+ | After the successful connection, minicom should display: | ||
+ | <pre class="bash"> | ||
+ | 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 | ||
+ | </pre> | ||
+ | Use Ctrl+A, Q to exit minicom. | ||
+ | |||
+ | === Power on the board and go to U-Boot prompt === | ||
+ | Short-press [[RZ-G/Boards/SK-RZG1E:Hardware#Switches and Buttons|SW11 "Power"]] to switch the board on. Orange LED should lit up indicating that board has 3.3V power. Then you should see the following output in the terminal: | ||
+ | <pre> | ||
+ | SKRZG1E SPI_LOADER V0.07c 2014.10.20 | ||
+ | DEVICE S25FL512 | ||
+ | |||
+ | |||
+ | U-Boot 2013.01.01-gcb82c56-dirty (Sep 18 2015 - 10:42:27) | ||
+ | |||
+ | CPU: Renesas Electronics R8A7745 rev 1.0 | ||
+ | Board: RZ/G1E Starter Kit Board | ||
+ | |||
+ | DRAM: 1 GiB | ||
+ | MMC: sh_mmcif: 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> | ||
+ | Quickly hit any key to get into U-boot command prompt. Use SW5 Reset to reboot the board when necessary. | ||
+ | |||
+ | You should see the following: | ||
+ | <pre> | ||
+ | Hit any key to stop autoboot: 0 | ||
+ | => | ||
+ | </pre> | ||
+ | |||
+ | === 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. | ||
+ | |||
+ | == Bootloader == | ||
+ | The RZ/G1E SoC can be booted from various sources. The RZ/G1E Starter Kit board is booted from QSPI Flash. The board has two SPI Flash memory chips selectable by SW9. In a standard configuration 4MB Flash S25FL032 stores original MiniMonitor firmware (for backup/rescue purposes) and 64 MB FLash S25FL512 stores MiniMonitor (QSPI Loader) and U-Boot (main storage). | ||
+ | |||
+ | === Updating U-Boot using MiniMonitor === | ||
+ | You may want to update U-Boot in case of upgrade or if the board you received does not have the U-Boot flashed. Follow these steps carefully to flash U-Boot: | ||
+ | <ol> | ||
+ | <li> | ||
+ | Set SW9 to pin 3 side. This selects 4MB SPI Flash with MiniMonitor as a boot device.<br/> | ||
+ | [[File:SwitchRight.png|100px|Switch pin layout]]<br/> | ||
+ | MiniMonitor is loaded via the SPI boot interface of RZ/G1E. | ||
+ | </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-RZG1E#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"> | ||
+ | SKRZG1E SPI_LOADER V0.05 2014.08.14 | ||
+ | DEVICE S25FL032 | ||
+ | |||
+ | SKRZG1E MiniMonitor SPI_BOOT | ||
+ | Work memory DRAM (H'40200000-) | ||
+ | 2014.08.15 Ver0.05 ** 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 Spiflash memory (U6:S25FL512S) | ||
+ | SW9 1pin-Side! Setting OK? (Push Y key) | ||
+ | </pre> | ||
+ | MiniMonitor is asking to flip SW9 to 1 pin side. | ||
+ | </li> | ||
+ | <li> | ||
+ | Switch SW9 to 1 pin side. This activates 64MB SPI Flash for U-Boot.<br/> | ||
+ | [[File:Switch.png|100px|Switch pin layout]] | ||
+ | </li> | ||
+ | <li> | ||
+ | Enter '''y''' to confirm your setting.<br/> | ||
+ | </li> | ||
+ | <li> | ||
+ | MiniMonitor should ask now: | ||
+ | <pre class="bash"> | ||
+ | Select area(1-2)> | ||
+ | </pre> | ||
+ | Answer '''2''' and Enter. | ||
+ | </li> | ||
+ | <li> | ||
+ | Mini monitor should display: | ||
+ | <pre class="bash"> | ||
+ | Please Input User Program Start Address : | ||
+ | </pre> | ||
+ | Enter '''e6304000''' for RZ/G1E and hit Enter. | ||
+ | </li> | ||
+ | <li> | ||
+ | MiniMonitor should now display: | ||
+ | <pre class="bash"> | ||
+ | Please send ! ('.' & CR stop load) | ||
+ | </pre> | ||
+ | Send the file '''uboot.srec'''. It should be available in the $WORK/build/tmp/deploy/images/skrzg1e/ folder which is generated by bitbake during the Yocto build. Alternatively, you can download it from this site [[File:SKRZG1E_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/skrzg1e/build/tmp/deploy/images/skrzg1e/u-boot.srec | ||
+ | ascii-xfr -vvs /data/Renesas/skrzg1e/build/tmp/deploy/images/skrzg1e/u-boot.srec | ||
+ | ASCII upload of "/data/Renesas/skrzg1e/build/tmp/deploy/images/skrzg1e/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> | ||
+ | +-[ascii upload - Press CTRL-C to quit]-+ | ||
+ | |ASCII upload of "uboot.srec" | | ||
+ | | | | ||
+ | | | | ||
+ | |23.0 Kbytes transferred at 3857 CPS | | ||
+ | | | | ||
+ | +---------------------------------------+ | ||
+ | </pre> | ||
+ | </li> | ||
+ | <li> | ||
+ | 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> | ||
+ | After writing is complete, MiniMonitor should display | ||
+ | <pre class="bash"> | ||
+ | 658.0 Kbytes transferred at 3850 CPS... Done. | ||
+ | |||
+ | *** exit status: 0 | ||
+ | SPI Data Clear(H'FF) Check : OK | ||
+ | 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'00036D44 | ||
+ | ========================================================= | ||
+ | </pre> | ||
+ | </li> | ||
+ | <li> | ||
+ | Reboot RZ/G1E Starter Kit board by pressing SW5 "Reset" button. Leave SW9 on 1 pin side.<br/> | ||
+ | You should see U-Boot prompt now. | ||
+ | <pre class="bash"> | ||
+ | SKRZG1E SPI_LOADER V0.05 2014.08.14 | ||
+ | DEVICE S25FL512 | ||
+ | |||
+ | U-Boot 2013.01.01-gcb82c56-dirty (Sep 18 2015 - 10:42:27) | ||
+ | |||
+ | CPU: Renesas Electronics R8A7745 rev 1.0 | ||
+ | Board: SKRZG1E Board | ||
+ | |||
+ | DRAM: 1 GiB | ||
+ | MMC: sh_mmcif: 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> | ||
+ | </ol> | ||
+ | |||
+ | === Flashing QSPI loader using MiniMonitor === | ||
+ | You may want to flash QSPI loader in case you board does not have it pre-loaded. Follow these steps carefully to flash QSPI loader: | ||
+ | <ol> | ||
+ | <li> | ||
+ | Set SW9 to pin 3 side. This selects 4MB SPI Flash with MiniMonitor as a boot device.<br/> | ||
+ | [[File:SwitchRight.png|100px|Switch pin layout]]<br/> | ||
+ | MiniMonitor is loaded via SPI boot interface of RZ-G g1e Soc. | ||
+ | </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-RZG1E#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"> | ||
+ | SKRZG1E SPI_LOADER V0.05 2014.08.14 | ||
+ | DEVICE S25FL032 | ||
+ | |||
+ | SKRZG1E MiniMonitor SPI_BOOT | ||
+ | Work memory DRAM (H'40200000-) | ||
+ | 2014.08.15 Ver0.05 ** 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 Spiflash memory (U6:S25FL512S) | ||
+ | SW9 1pin-Side! Setting OK? (Push Y key) | ||
+ | </pre> | ||
+ | MiniMonitor is asking to flip SW9 to 1 pin side. | ||
+ | </li> | ||
+ | <li> | ||
+ | Switch SW9 to 1 pin side. This activates 64MB SPI Flash for QSPI loader.<br/> | ||
+ | [[File:Switch.png|100px|Switch pin layout]] | ||
+ | </li> | ||
+ | <li> | ||
+ | Enter '''y''' to confirm your setting.<br/> | ||
+ | </li> | ||
+ | <li> | ||
+ | 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 '''SKRZG1E_SPI_LOADER_V007c.mot''' file. It can be downloaded from this site [[File:SKRZG1E_SPI_LOADER_V007c.mot.zip]]<br/> | ||
+ | Unzip the file before downloading. | ||
+ | ===== picocom ===== | ||
+ | Use '''Ctrl+A''', '''Ctrl+S''', then select '''SKRZG1E_SPI_LOADER_V007c.mot''' file and hit Enter. <br/> | ||
+ | Transmission should start immediately and the progress counter should be displayed: | ||
+ | <pre class="bash"> | ||
+ | *** file: /data/Renesas/skrzg1e/SKRZG1E_SPI_LOADER_V007c.mot | ||
+ | ascii-xfr -vvs /data/Renesas/skrzg1e/SKRZG1E_SPI_LOADER_V007c.mot | ||
+ | ASCII upload of "/data/Renesas/skrzg1e/SKRZG1E_SPI_LOADER_V007c.mot" | ||
+ | |||
+ | 15.0 Kbytes transferred at 3732 CPS... | ||
+ | </pre> | ||
+ | |||
+ | ===== minicom ===== | ||
+ | Use '''Ctrl+A''', '''S''', choose '''ascii''', then locate '''SKRZG1E_SPI_LOADER_V007c.mot''' file and hit Enter. Transmission should start immediately and the progress counter should be displayed:<br/> | ||
+ | <pre> | ||
+ | +-[ascii upload - Press CTRL-C to quit]--------+ | ||
+ | |ASCII upload of "SKRZG1E_SPI_LOADER_V007c.mot" | | ||
+ | | | | ||
+ | | | | ||
+ | |23.0 Kbytes transferred at 3857 CPS | | ||
+ | | | | ||
+ | +----------------------------------------------+ | ||
+ | </pre> | ||
+ | </li> | ||
+ | <li> | ||
+ | If there are 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 64MB SPI Flash. | ||
+ | </li> | ||
+ | <li> | ||
+ | After writing is complete, MiniMonitor should display | ||
+ | <pre class="bash"> | ||
+ | SAVE SPI-FLASH....... complete! | ||
+ | </pre> | ||
+ | </li> | ||
+ | <li> | ||
+ | Reboot the RZ/G1E Starter Kit board by pressing SW5 "Reset" button. Leave SW9 on 1 pin side.<br/> | ||
+ | </li> | ||
+ | </ol> | ||
+ | You can now flash U-Boot or proceed to loading operating system. | ||
+ | </ol> | ||
+ | |||
+ | == FAQ == | ||
+ | === Which operating systems/distributions can be used with the RZ/G1E Starter Kit board? === | ||
+ | Known to run | ||
+ | * Yocto, Android (supported) | ||
+ | * Buildroot (experimental) | ||
+ | * Ubuntu (unsupported) |
Revision as of 18:09, 29 October 2015
Introduction
This is the official Wiki for the Renesas RZ/G1E Starter Kit board.
Refer to the RZ-G page for Renesas RZ-G SoC family. Information on the Renesas RZ/G1M Starter Kit board is on a separate page.
Hardware
Top view
For more information go to RZ-G/Boards/SK-RZG1E:Hardware
Hardware Features
- RZ/G1E SoC
- ARM®Cortex-A7 Dual Core
- GPU: PowerVR SGX540
- Various hardware IP blocks for video and audio processing
- 1 GB DDR3 memory
- Two SPI flash memory chips (selected by SW9)
- 4 MB
- 64 MB
- 8GB eMMC chip MTFC8GLWDQ-3M AIT Z
- WiFi+Bluetooth module
- Audio codec: AK4643EN
- Line In 3.5 mm jack
- LineOut 3.5 mm jack
- HDMI type A output
- Max. resolutions support TBD
- VGA output (DB-15F)
- Analog Video In: ADV7180 Video Decoder
- RCA jack
- NTSC/PAL/SECAM autodetection
- Two USB 2.0 ports
- One USB type A connector can be switched to Host or Function mode by SW10
- I2C EEPROM (Renesas R1EX24002ATAS0)
- Dialog Semiconductor DA9063 Power Regulator
- Power supply: 5V, TBD Amps
- Dimensions: 140x120 mm
Where to buy
The RZ/G1E System Evaluation board can be ordered from Digikey:
TBD
RZ/G1M SoC Documentation
TBD At the moment just block diagram reference is available http://www.renesas.com/products/mpumcu/rz/rzg/rzg1e/index.jsp
TBD Add here link to public RZ/G1E datasheet
Official RZ/G1E Starter Kit board documentation
The manual is available for download from File:RZ/G1E Application Development Board HardwareManual.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 steps necessary for making a Yocto image.
Connect 5 V power supply to the board
Use 5 V power supply with a 5.5 mm barrel plug. The power supply should be able to provide TBD Amps.
Connect to serial console
Use a microUSB cable to connect the PC to RZ/G1E Starter Kit board. The the CN13 ("DEBUG") connector on the board. It is routed to SCIF2 in the RZ/G1E 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 Silicon Labs website.
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
Short-press SW11 "Power" to switch the board on. Orange LED should lit up indicating that board has 3.3V power. Then you should see the following output in the terminal:
SKRZG1E SPI_LOADER V0.07c 2014.10.20 DEVICE S25FL512 U-Boot 2013.01.01-gcb82c56-dirty (Sep 18 2015 - 10:42:27) CPU: Renesas Electronics R8A7745 rev 1.0 Board: RZ/G1E Starter Kit Board DRAM: 1 GiB MMC: sh_mmcif: 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
Quickly hit any key to get into U-boot command prompt. Use SW5 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/G1E SoC can be booted from various sources. The RZ/G1E Starter Kit board is booted from QSPI Flash. The board has two SPI Flash memory chips selectable by SW9. In a standard configuration 4MB Flash S25FL032 stores original MiniMonitor firmware (for backup/rescue purposes) and 64 MB FLash S25FL512 stores MiniMonitor (QSPI Loader) and U-Boot (main storage).
Updating U-Boot using MiniMonitor
You may want to update U-Boot in case of upgrade or if the board you received does not have the U-Boot flashed. Follow these steps carefully to flash U-Boot:
-
Set SW9 to pin 3 side. This selects 4MB SPI Flash with MiniMonitor as a boot device.
Switch pin layout
MiniMonitor is loaded via the SPI boot interface of RZ/G1E. -
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.
-
Switch the board ON or reset it.
You should see the following output on the console (version numbers can be different):SKRZG1E SPI_LOADER V0.05 2014.08.14 DEVICE S25FL032 SKRZG1E MiniMonitor SPI_BOOT Work memory DRAM (H'40200000-) 2014.08.15 Ver0.05 ** Program on DRAM (H'40000000-) ** >
-
Execute the ls command:
ls
You should be able to see the following output:
Load Program to Spiflash memory (U6:S25FL512S) SW9 1pin-Side! Setting OK? (Push Y key)
MiniMonitor is asking to flip SW9 to 1 pin side.
-
Switch SW9 to 1 pin side. This activates 64MB SPI Flash for U-Boot.
Switch pin layout -
Enter y to confirm your setting.
-
MiniMonitor should ask now:
Select area(1-2)>
Answer 2 and Enter.
-
Mini monitor should display:
Please Input User Program Start Address :
Enter e6304000 for RZ/G1E and hit Enter.
-
MiniMonitor should now display:
Please send ! ('.' & CR stop load)
Send the file uboot.srec. It should be available in the $WORK/build/tmp/deploy/images/skrzg1e/ folder which is generated by bitbake during the Yocto build. Alternatively, you can download it from this site File:SKRZG1E 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/skrzg1e/build/tmp/deploy/images/skrzg1e/u-boot.srec ascii-xfr -vvs /data/Renesas/skrzg1e/build/tmp/deploy/images/skrzg1e/u-boot.srec ASCII upload of "/data/Renesas/skrzg1e/build/tmp/deploy/images/skrzg1e/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 | | | +---------------------------------------+
-
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.
-
After writing is complete, MiniMonitor should display
658.0 Kbytes transferred at 3850 CPS... Done. *** exit status: 0 SPI Data Clear(H'FF) Check : OK 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'00036D44 =========================================================
-
Reboot RZ/G1E Starter Kit board by pressing SW5 "Reset" button. Leave SW9 on 1 pin side.
You should see U-Boot prompt now.SKRZG1E SPI_LOADER V0.05 2014.08.14 DEVICE S25FL512 U-Boot 2013.01.01-gcb82c56-dirty (Sep 18 2015 - 10:42:27) CPU: Renesas Electronics R8A7745 rev 1.0 Board: SKRZG1E Board DRAM: 1 GiB MMC: sh_mmcif: 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
Flashing QSPI loader using MiniMonitor
You may want to flash QSPI loader in case you board does not have it pre-loaded. Follow these steps carefully to flash QSPI loader:
-
Set SW9 to pin 3 side. This selects 4MB SPI Flash with MiniMonitor as a boot device.
Switch pin layout
MiniMonitor is loaded via SPI boot interface of RZ-G g1e Soc. -
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.
-
Switch the board ON or reset it.
You should see the following output on the console (version numbers can be different):SKRZG1E SPI_LOADER V0.05 2014.08.14 DEVICE S25FL032 SKRZG1E MiniMonitor SPI_BOOT Work memory DRAM (H'40200000-) 2014.08.15 Ver0.05 ** Program on DRAM (H'40000000-) ** >
-
Execute the ls command:
ls
You should be able to see the following output:
Load Program to Spiflash memory (U6:S25FL512S) SW9 1pin-Side! Setting OK? (Push Y key)
MiniMonitor is asking to flip SW9 to 1 pin side.
-
Switch SW9 to 1 pin side. This activates 64MB SPI Flash for QSPI loader.
Switch pin layout -
Enter y to confirm your setting.
-
MiniMonitor should ask now:
Select area(1-2)>
Answer 1 and Enter.
-
MiniMonitor should now display:
Please send ! ('.' & CR stop load)
Send SKRZG1E_SPI_LOADER_V007c.mot file. It can be downloaded from this site File:SKRZG1E SPI LOADER V007c.mot.zip
Unzip the file before downloading.picocom
Use Ctrl+A, Ctrl+S, then select SKRZG1E_SPI_LOADER_V007c.mot file and hit Enter.
Transmission should start immediately and the progress counter should be displayed:*** file: /data/Renesas/skrzg1e/SKRZG1E_SPI_LOADER_V007c.mot ascii-xfr -vvs /data/Renesas/skrzg1e/SKRZG1E_SPI_LOADER_V007c.mot ASCII upload of "/data/Renesas/skrzg1e/SKRZG1E_SPI_LOADER_V007c.mot" 15.0 Kbytes transferred at 3732 CPS...
minicom
Use Ctrl+A, S, choose ascii, then locate SKRZG1E_SPI_LOADER_V007c.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 "SKRZG1E_SPI_LOADER_V007c.mot" | | | | | |23.0 Kbytes transferred at 3857 CPS | | | +----------------------------------------------+
-
If there are 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 64MB SPI Flash.
-
After writing is complete, MiniMonitor should display
SAVE SPI-FLASH....... complete!
-
Reboot the RZ/G1E Starter Kit board by pressing SW5 "Reset" button. Leave SW9 on 1 pin side.
You can now flash U-Boot or proceed to loading operating system.
FAQ
Which operating systems/distributions can be used with the RZ/G1E Starter Kit board?
Known to run
- Yocto, Android (supported)
- Buildroot (experimental)
- Ubuntu (unsupported)