Difference between revisions of "R-Car/Boards/SILK"

From eLinux.org
Jump to: navigation, search
(R-Car E2 SoC Documentation)
 
(40 intermediate revisions by 3 users not shown)
Line 2: Line 2:
  
 
== Introduction ==
 
== Introduction ==
This is the official Wiki for embedded Renesas R-Car E2 SILK board.  
+
This is the official Wiki for Renesas R-Car E2 SILK board.  
  
 
+
Refer to [[R-Car]] page for Renesas R-Car SoC family. Information on [[R-Car/Boards/Porter|Renesas R-Car M2 Porter board]] is on a separate page.
Refer to [[R-Car]] page as a starting/initial page for Renesas R-Car family. Information on [[R-Car/Boards/Porter|Renesas R-Car M2 Porter board]] is on a separate page.
 
  
 
== Hardware ==
 
== Hardware ==
 
[[File:SilkTopWithLabels.png|794px|Top view]]<br/>
 
[[File:SilkTopWithLabels.png|794px|Top view]]<br/>
For more information go to [[R-Car E2 SILK Board:Hardware]]
+
For more information go to [[R-Car/Boards/SILK:Hardware]]
  
 
== Hardware Features ==
 
== Hardware Features ==
Line 30: Line 29:
 
* LCD connector (bottom side)
 
* LCD connector (bottom side)
 
* VGA output (DB-15F)  
 
* VGA output (DB-15F)  
* Analog Video In: ADV7180WBCP32Z Video Decoder
+
* Analog Video In: ADV7180 Video Decoder
 
** RCA jack
 
** RCA jack
 
** NTSC/PAL/SECAM autodetection
 
** NTSC/PAL/SECAM autodetection
Line 41: Line 40:
  
 
== Where to buy ==
 
== Where to buy ==
TBD
 
  
''List here distributors that sell SILK board''
+
SILK board can be ordered from following distributors:
 +
 
 +
[http://products.avnet.com/shop/en/ema/development-kits/3074457345625366715 Click to buy SILK board from Avnet] <br/>
 +
[http://www.marutsu.co.jp/pc/i/599832/ Click to buy SILK board from Marutsu] <br/>
 +
[http://www.digikey.com/product-search/en?keywords=Y-RCAR-E2-SILK-A Click to buy SILK board from Digi-Key]
  
 +
<!--
 
== R-Car E2 SoC Documentation ==
 
== R-Car E2 SoC Documentation ==
TBD ''At the moment just block diagram reference is available''
+
*[https://www.renesas.com/doc/products/rcar/R-Car%20E2%20M2-W%20Common%20chapter.pdf R-CarM2/E2 Common chapter Manual]
http://am.renesas.com/applications/automotive/cis/cis_highend/rcar_e2/index.jsp
+
*[https://www.renesas.com/doc/products/rcar/R-Car%20E2-Individual%20chapter.pdf R-Car E2 Individual chapter]
 
 
TBD ''Add here link to public R-Car E2 datasheet''
 
  
 
== Official SILK board documentation ==
 
== Official SILK board documentation ==
TBD ''Add link to the official page or attach downloadable file''
+
*[https://www.renesas.com/doc/products/rcar/R-CarE2_ADB_setup_manual_rev1.01.pdf Setup Manual]
 +
*[https://www.renesas.com/doc/products/rcar/R-CarE2_ADB_MiniMonitor_Manual(SPI_Boot)_Rev1.00_e.pdf Mini Monitor Manual]
 +
*[https://www.renesas.com/doc/products/rcar/R-CarE2_ADB_HardwareManual_rev2.02.pdf Hardware Manual]
 +
*[https://www.renesas.com/doc/products/rcar/R-Car_E2_ADB_CIRCUIT_REV2.4.pdf Circuit Manual]
 +
*[https://www.renesas.com/doc/products/rcar/R-CarE2_ADB_Partslist_Rev1.0.pdf Parts list]
 +
-->
  
 
== Quick Start How To ==
 
== 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.
 
This sections describes steps that are necessary to run a "Hello, World!" application using Yocto build. Both X11 and Wayland are supported.
  
=== Download proprietary graphics and multimedia drivers from Renesas ===
+
=== Build Yocto image ===
Graphic drivers are required for X11 and Wayland. Multimedia drivers are optional.
+
Refer to [[R-Car/Boards/Yocto | Yocto]] for steps necessary for making a Yocto image.
  
TBD ''Insert link to official R-Car E2 public GFX/Multimedia binaries download page''
+
=== Connect 5 V power supply to the board ===
 
 
Download them to a separate folder for convenience.
 
 
 
=== Install required packages ===
 
 
 
Ubunty and Debian
 
<pre>
 
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
 
    build-essential chrpath socat libsdl1.2-dev xterm
 
</pre>
 
 
 
Fedora
 
<pre>
 
sudo yum install gawk make wget tar bzip2 gzip python unzip perl patch \
 
    diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \
 
    ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue socat \
 
    SDL-devel xterm
 
</pre>
 
 
 
Refer to [http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html#packages Yocto Project Quick Start] for more information.
 
 
 
=== Build Yocto ===
 
Refer to [[R-Car/Boards/SILK:Yocto]] for steps necessary for making Yocto build.
 
 
 
=== Connect 5 V power source to R-Car E2 SILK board ===
 
 
Use 5 V power supply with a 5.5 mm barrel plug. The power supply should be able to provide '''TBD''' Amps.
 
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 over microUSB ===
+
=== Connect to serial console ===
 
Use a microUSB cable to connect the PC to R-Car E2 SILK board. CN13 ("DEBUG") must be used on SILK side. It is routed to SCIF2 in the R-Car E2 via a CP2102 interface converter chip.
 
Use a microUSB cable to connect the PC to R-Car E2 SILK board. CN13 ("DEBUG") must be used on SILK side. It is routed to SCIF2 in the R-Car E2 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 at [http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx Silicon Labs website].
+
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.  
  
Serial settings are 38400 8N1.
+
On Linux:
  
On Linux, a popular terminal emulator program called [https://code.google.com/p/picocom/ picocom] can be used (or alternatives, like minicom)
+
===== [https://code.google.com/p/picocom/ picocom] =====
 
<pre>
 
<pre>
 
sudo picocom -b 38400 DEVICE
 
sudo picocom -b 38400 DEVICE
Line 125: Line 108:
 
Use Ctrl+A, Ctrl+Q to exit picocom.
 
Use Ctrl+A, Ctrl+Q to exit picocom.
  
== Bootcode ==
+
===== [https://alioth.debian.org/projects/minicom/ minicom] =====
R-Car E2 SoC can be booted various sources. SILK board is booted from QSPI Flash device. SILK 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).
+
<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 [[R-Car/Boards/SILK: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>
 +
SILK SPI_LOADER V0.07c 2014.10.20                                                                                                         
 +
DEVICE S25FL512                                                                                                                           
 +
                                                                                                                                           
 +
                                                                                                                                           
 +
U-Boot 2013.01.01-g74b16ba-dirty (Dec 23 2014 - 15:31:50)                                                                                 
 +
                                                                                                                                           
 +
CPU: Renesas Electronics R8A7794 rev 1.0                                                                                                   
 +
Board: Silk 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 [[R-Car/Boards/Yocto#Running Yocto image|Yocto page]] for steps necessary for running Yocto.
 +
 
 +
== Bootloader ==
 +
R-Car E2 SoC can be booted from various sources. SILK board is booted from QSPI Flash device. SILK 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 ===
 
=== Updating U-Boot using MiniMonitor ===
Line 132: Line 164:
 
<ol>
 
<ol>
 
<li>
 
<li>
Set SW9 to 3 pin side. This selects 4MB SPI Flash with MiniMonitor as boot device/active QSPI flash<br/>
+
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/>
+
[[File:SILKSwitchRight.png|100px|Switch pin layout]]<br/>
 
MiniMonitor is loaded via SPI boot interface of R-Car E2.
 
MiniMonitor is loaded via SPI boot interface of R-Car E2.
 
</li>
 
</li>
 
<li>
 
<li>
Connect to serial console over microUSB. Start picocom with the following command line options:
+
Connect to serial console over microUSB.<br/>
 +
If using picocom, start it with the following command line options:
 
<pre>
 
<pre>
sudo picocom -b 38400 --send-cmd "ascii-xfr -vvs" /dev/ttyUSBnn
+
sudo picocom -b BAUDRATE --send-cmd "ascii-xfr -vvs" DEVICE
 
</pre>
 
</pre>
 +
Refer to "[[R-Car/Boards/SILK#Connect to serial console|Connect to serial console]]" section for more information.
 
</li>
 
</li>
 
<li>
 
<li>
Line 170: Line 204:
 
<li>
 
<li>
 
Switch SW9 to 1 pin side. This activates 64MB SPI Flash for U-Boot.<br/>
 
Switch SW9 to 1 pin side. This activates 64MB SPI Flash for U-Boot.<br/>
[[File:Switch.png|100px|Switch pin layout]]
+
[[File:SILKSwitch.png|100px|Switch pin layout]]
 
</li>
 
</li>
 
<li>
 
<li>
Line 194: Line 228:
 
Please send ! ('.' & CR stop load)
 
Please send ! ('.' & CR stop load)
 
</pre>
 
</pre>
 +
Send '''uboot.srec''' file. It should be available in $WORK/build/tmp/deploy/images/silk/ folder which is generated by bitbake during Yocto build. Alternatively, you can download it from this site [[File:R-Car_SILK_U-boot.srec.zip]]
 +
===== picocom =====
 
Use '''Ctrl+A''', '''Ctrl+S''', then select '''uboot.srec''' file and hit Enter. <br/>
 
Use '''Ctrl+A''', '''Ctrl+S''', then select '''uboot.srec''' file and hit Enter. <br/>
'''uboot.srec''' should be available in $WORK/build/tmp/deploy/images/silk/ folder which is generated by bitbake.
 
</li>
 
<li>
 
 
Transmission should start immediately and the progress counter should be displayed:
 
Transmission should start immediately and the progress counter should be displayed:
 
<pre class="bash">
 
<pre class="bash">
Line 205: Line 238:
  
 
15.0 Kbytes transferred at 3732 CPS...
 
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>
 
</pre>
 
</li>
 
</li>
Line 256: Line 301:
 
</li>
 
</li>
 
</ol>
 
</ol>
<!---
 
#
 
#Reset board then start mini monitor.
 
#Execute ls command (load program to spi flash).
 
#After "SW9 1pin-Side! Setting OK? (Push Y key)" is displayed, set dip switch SW9 to 1pin then input "y".
 
#After "Select area(1-2)> " is displayed, input "2" and "Enter".
 
#After "Please Input User Program Start Address : " is displayed, input "e6304000"(R-CarE2) and "Enter".
 
#After "Please send ! ('.' & CR stop load)" is displayed, In case of Tera Term, transmit u-boot.srec by "file -> file transmission(S)". In case of minicom type "ctrl+A S" then choose "ascii", then choose u-boot.srec file for transmission.
 
#If there are some data in writing area, "SPI Data Clear(H'FF) Check :H'0080000-00BFFFF Clear OK?(y/n)" is displayed. Then input "y".
 
#After "SAVE SPI-FLASH ....... complete!" is displayed, the prompt returns. It means finish.
 
--->
 
  
=== Booting over TFTP from U-Boot ===
+
=== Flashing QSPI loader using MiniMonitor ===
Linux Kernel can be booted over TFTP from U-Boot. You can specify kernel cmdline to mount rootfs image over NFS.
+
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>
 
<ol>
 
<li>
 
<li>
Setup a tftp server.<br/> TBD. ''Instructions could be different for various host environments''
+
Set SW9 to pin 3 side. This selects 4MB SPI Flash with MiniMonitor as a boot device.<br/>
 
+
[[File:SILKSwitchRight.png|100px|Switch pin layout]]<br/>
==== Fedora =====
+
MiniMonitor is loaded via SPI boot interface of R-Car E2.
 
</li>
 
</li>
 
 
<li>
 
<li>
Make sure SW9 is on pin 1 side. <br/>
+
Connect to serial console over microUSB.<br/>
[[File:Switch.png|100px|Switch pin layout]]
+
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 "[[R-Car/Boards/SILK#Connect to serial console|Connect to serial console]]" section for more information.
 
</li>
 
</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">
 +
SILK SPI_LOADER V0.05 2014.08.14
 +
DEVICE S25FL032
 +
 
 +
SILK MiniMonitor SPI_BOOT
 +
Work memory DRAM (H'40200000-)
 +
2014.08.15 Ver0.05 ** Program on DRAM (H'40000000-)  **
  
 +
>
 +
</pre>
 +
</li>
 
<li>
 
<li>
Connect to serial console over microUSB. Start picocom with the following command line options:
+
Execute the '''ls''' command:
 
<pre>
 
<pre>
sudo picocom -b 38400 /dev/ttyUSBnn
+
ls
 
</pre>
 
</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:SILKSwitch.png|100px|Switch pin layout]]
 +
</li>
 +
<li>
 +
Enter '''y''' to confirm your setting.<br/>
 
</li>
 
</li>
 
 
<li>
 
<li>
Switch the board ON or reset it. <br/>
+
MiniMonitor should ask now:
You should see the following output on the console (version numbers can be different):
 
 
<pre class="bash">
 
<pre class="bash">
>>>>>>>>>>>>>>>>>>TBD<<<<<<<<<<<<<<<<<<<<<<<<
+
Select area(1-2)>  
 
</pre>
 
</pre>
 +
Answer '''1''' and Enter.
 
</li>
 
</li>
  
 
<li>
 
<li>
Type the following commands to prepare the environment:  
+
MiniMonitor should now display:
<pre>
+
<pre class="bash">
setenv ethaddr xx:xx:xx:xx:xx:xx
+
Please send ! ('.' & CR stop load)
setenv ipaddr 192.166.1.10
+
</pre>
setenv serverip 192.166.1.1
+
Send '''SILK_SPI_LOADER_V007c.mot''' file. It can be downloaded from this site [[File:SILK_SPI_LOADER_V007c.mot.zip]]<br/>
 +
Unzip the file before downloading.
 +
===== picocom =====
 +
Use '''Ctrl+A''', '''Ctrl+S''', then select '''SILK_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/SILK/SILK_SPI_LOADER_V007c.mot
 +
ascii-xfr -vvs /data/Renesas/SILK/SILK_SPI_LOADER_V007c.mot
 +
ASCII upload of "/data/Renesas/SILK/SILK_SPI_LOADER_V007c.mot"
 +
 
 +
15.0 Kbytes transferred at 3732 CPS...
 
</pre>
 
</pre>
Replace xx:xx:xx:xx:xx:xx with the MAC address of your board. It should be on the sticker on top of the Ethernet port.<br/>
+
 
Set proper ip for the board and for the server. You can also use
+
===== minicom =====
 +
Use '''Ctrl+A''', '''S''', choose '''ascii''', then locate '''SILK_SPI_LOADER_V007c.mot''' file and hit Enter. Transmission should start immediately and the progress counter should be displayed:<br/>  
 
<pre>
 
<pre>
dhcp
+
+-[ascii upload - Press CTRL-C to quit]--------+
 +
|ASCII upload of "SILK_SPI_LOADER_V007c.mot"  |
 +
|                                              |
 +
|                                              |
 +
|23.0 Kbytes transferred at 3857 CPS          |
 +
|                                              |
 +
+----------------------------------------------+
 
</pre>
 
</pre>
command to obtain information from DHCP server.
 
 
</li>
 
</li>
 
 
<li>
 
<li>
Set Kernel cmdline to mount rootfs  over NFS
+
If there are some data in writing area, MiniMonitor will display:
<pre>
+
<pre class="bash">
setenv bootargs root=/dev/nfs rw nfsroot=192.166.1.1:/opt/eldk-4.2/ppc_4xx ip=192.168.100.6:192.168.1.1:192.168.1.1:255.255.0.0:canyonlands::off
+
SPI Data Clear(H'FF) Check :H'00000000-0003FFFF,Clear OK?(y/n)
TBD
 
 
</pre>
 
</pre>
 +
You can safely input "y" to override area 1 of 64MB SPI Flash.
 
</li>
 
</li>
 
<li>
 
<li>
Load the kernel
+
After writing is complete, MiniMonitor should display
<pre>
+
<pre class="bash">
setenv bootcmd 'tftp 0x40007fc0 uImage; tftp 0x40f00000 r8a7794-silk.dtb; bootm 0x40007fc0 - 0x40f00000'
+
SAVE SPI-FLASH....... complete!
 
</pre>
 
</pre>
<!--
 
setenv bootargs 'console=ttySC10,38400 ignore_loglevel rw root=/dev/nfs nfsroot=192.168.1.196:/nfs/silk ip=dhcp vmalloc=384M'
 
setenv bootcmd 'tftp 0x40007fc0 uImage; tftp 0x40f00000 uImage-r8a7794-silk.dtb; bootm 0x40007fc0 - 0x40f00000'
 
setenv serverip 192.168.1.196
 
saveenv
 
run bootcmd
 
-->
 
 
</li>
 
</li>
 +
<li>
 +
Reboot R-Car E2 SILK 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>
  
== Running Yocto ==
+
== FAQ ==
Refer to [[[R-Car/Boards/SILK:Yocto]] for making Yocto build
 
 
 
= FAQ =
 
 
=== Operating systems/distributions can be used on R-Car E2 SILK boards? ===
 
=== Operating systems/distributions can be used on R-Car E2 SILK boards? ===
 
It known to run
 
It known to run
Line 342: Line 415:
 
* Buildroot (experimental)
 
* Buildroot (experimental)
 
* Ubuntu (unsupported)
 
* Ubuntu (unsupported)
 +
* [https://at.projects.genivi.org/wiki/display/PROJ/Meta+ivi+BSPs+for+Specific+Hardware Genivi Yocto Baseline]
 +
* [https://at.projects.genivi.org/wiki/display/GDP/Renesas+R-Car+E2+Silk+Hardware+Set+Up+And+Software+Installation Genivi Development Platform (GDP)]

Latest revision as of 03:19, 1 April 2021

Introduction

This is the official Wiki for Renesas R-Car E2 SILK board.

Refer to R-Car page for Renesas R-Car SoC family. Information on Renesas R-Car M2 Porter board is on a separate page.

Hardware

Top view
For more information go to R-Car/Boards/SILK:Hardware

Hardware Features

  • R-Car E2 SoC
    • ARM®Cortex-A7 Dual Core
    • SH-4A core (optional)
    • 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
  • LCD connector (bottom side)
  • 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

SILK board can be ordered from following distributors:

Click to buy SILK board from Avnet
Click to buy SILK board from Marutsu
Click to buy SILK board from Digi-Key


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 R-Car E2 SILK board. CN13 ("DEBUG") must be used on SILK side. It is routed to SCIF2 in the R-Car E2 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:

SILK SPI_LOADER V0.07c 2014.10.20                                                                                                           
DEVICE S25FL512                                                                                                                             
                                                                                                                                            
                                                                                                                                            
U-Boot 2013.01.01-g74b16ba-dirty (Dec 23 2014 - 15:31:50)                                                                                   
                                                                                                                                            
CPU: Renesas Electronics R8A7794 rev 1.0                                                                                                    
Board: Silk 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

R-Car E2 SoC can be booted from various sources. SILK board is booted from QSPI Flash device. SILK 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:

  1. 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 R-Car E2.
  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):
    SILK SPI_LOADER V0.05 2014.08.14
    DEVICE S25FL032
      
    SILK MiniMonitor SPI_BOOT
    Work memory DRAM (H'40200000-) 
    2014.08.15 Ver0.05 ** Program on DRAM (H'40000000-)  ** 
    
    >
    
  4. 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.

  5. Switch SW9 to 1 pin side. This activates 64MB SPI Flash for U-Boot.
    Switch pin layout
  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 R-Car E2 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/silk/ folder which is generated by bitbake during Yocto build. Alternatively, you can download it from this site File:R-Car SILK 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/SILK/build/tmp/deploy/images/silk/u-boot.srec
    ascii-xfr -vvs /data/Renesas/SILK/build/tmp/deploy/images/silk/u-boot.srec 
    ASCII upload of "/data/Renesas/SILK/build/tmp/deploy/images/silk/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
    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
    =========================================================
    
  12. Reboot R-Car E2 SILK board by pressing SW5 "Reset" button. Leave SW9 on 1 pin side.
    You should see U-Boot prompt now.
    SILK SPI_LOADER V0.05 2014.08.14
    DEVICE S25FL512
    
    
    U-Boot 2013.01.01-g74b16ba-dirty (Dec 10 2014 - 16:16:57)
    
    CPU: Renesas Electronics R8A7794 rev 1.0
    Board: Silk 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:

  1. 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 R-Car E2.
  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):
    SILK SPI_LOADER V0.05 2014.08.14
    DEVICE S25FL032
      
    SILK MiniMonitor SPI_BOOT
    Work memory DRAM (H'40200000-) 
    2014.08.15 Ver0.05 ** Program on DRAM (H'40000000-)  ** 
    
    >
    
  4. 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.

  5. Switch SW9 to 1 pin side. This activates 64MB SPI Flash for QSPI loader.
    Switch pin layout
  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 SILK_SPI_LOADER_V007c.mot file. It can be downloaded from this site File:SILK SPI LOADER V007c.mot.zip
    Unzip the file before downloading.

    picocom

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

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

    Use Ctrl+A, S, choose ascii, then locate SILK_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 "SILK_SPI_LOADER_V007c.mot"   |
    |                                              |
    |                                              |
    |23.0 Kbytes transferred at 3857 CPS           |
    |                                              |
    +----------------------------------------------+
    
  9. 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.

  10. After writing is complete, MiniMonitor should display
    SAVE SPI-FLASH....... complete!
    
  11. Reboot R-Car E2 SILK 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

Operating systems/distributions can be used on R-Car E2 SILK boards?

It known to run