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

From eLinux.org
Jump to: navigation, search
(Hardware Features)
(udate manual link)
 
(47 intermediate revisions by 3 users not shown)
Line 2: Line 2:
  
 
== Introduction ==
 
== Introduction ==
This is the official Wiki for Renesas R-Car M2 Porter board.  
+
This is the official Wiki for Renesas R-Car M2 Porter board Rev C.
 +
Please refer to [[Special:Permalink/392346 | R-Car/Boards/Porter]] and [[Special:Permalink/385256|R-Car/Boards/Porter:Hardware]] for Renesas R-Car M2 Porter board Rev B. Details can be found in the [[File:R-CarM2-KOELSCH_PORTER-B_PORTER_C_Comparison.pdf ]]
  
 
Refer to [[R-Car]] page for Renesas R-Car SoC family. Information on [[R-Car/Boards/SILK|Renesas R-Car E2 SILK board]] is on a separate page.
 
Refer to [[R-Car]] page for Renesas R-Car SoC family. Information on [[R-Car/Boards/SILK|Renesas R-Car E2 SILK board]] is on a separate page.
  
 
== Hardware ==
 
== Hardware ==
[[File:PorterTopWithLabels.png|794px|Top view]]<br/>
+
[[File:PorterTopWithLabels_revC.png|794px|Top view]]<br/>
 
For more information go to [[R-Car/Boards/Porter:Hardware]]
 
For more information go to [[R-Car/Boards/Porter:Hardware]]
  
Line 18: Line 19:
 
*** 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 37: Line 37:
 
* PCI Express x1 slot
 
* PCI Express x1 slot
 
* CAN transceiver
 
* CAN transceiver
* Power supply: 12V, TBD Amps
+
* Power supply: 12V, 9 Amps
 
* Dimensions: 170x125 mm
 
* Dimensions: 170x125 mm
  
 
== Where to buy ==
 
== Where to buy ==
TBD
+
Porter board can be ordered from following distributors:
  
''List here distributors that sell Porter board''
+
[http://products.avnet.com/shop/en/ema/3074457345625442782 Click to buy Porter board from Avnet]<br/>
 +
[http://www.marutsu.co.jp/pc/i/599180/ Click to buy Porter board from Marutsu]<br/>
 +
[http://www.digikey.com/product-search/en?keywords=Y-RCAR-M2-Porter-A Click to buy Porter board from Digi-Key]
  
 
== R-Car M2 SoC Documentation ==
 
== R-Car M2 SoC Documentation ==
TBD ''At the moment just short description 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_m2/
+
*[https://www.renesas.com/doc/products/rcar/R-Car%20M2-W-Individual%20chapter.pdf R-Car M2W Individual chapter]
 
 
TBD ''Add here link to public R-Car M2 datasheet''
 
  
 
== Official Porter board documentation ==
 
== Official Porter board documentation ==
''TBD: Add official Porter board documentation''
+
*[https://www.renesas.com/doc/products/rcar/R-CarM2W_ADB_SetupManual_Rev2.0.pdf Setup Manual]
 +
*[https://www.renesas.com/doc/products/rcar/R-CarM2W_ADB_MiniMonitor_Manual(SPI_Boot)_Rev1.01_e.pdf Mini Monitor Manual]
 +
*[https://www.renesas.com/ja-jp/doc/products/rcar/R-CarM2W_ADB_HardwareManual_rev2.04.pdf Hardware Manual]
 +
*[https://www.renesas.com/doc/products/rcar/R-Car_M2W_ADB_CIRCUIT_REV3.3.pdf Circuit Manual]
 +
*[https://www.renesas.com/doc/products/rcar/R-CarM2W_ADB_Partslist_Rev1.1.pdf Parts list]
  
 
== Quick Start How To ==
 
== Quick Start How To ==
Line 58: Line 62:
  
 
=== Build Yocto image ===
 
=== Build Yocto image ===
Refer to [[R-Car/Boards/Yocto]] for steps necessary for making a Yocto image.
+
Refer to [[R-Car/Boards/Yocto | Yocto]] for steps necessary for making a Yocto image.
  
 
=== Connect 12 V power supply to the board ===
 
=== 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 '''TBD''' Amps.
+
Use 12 V power supply with a 5.5 mm barrel plug. The power supply should be able to provide 9 Amps.
  
 
=== Connect to serial console ===
 
=== Connect to serial console ===
Use a microUSB cable to connect the PC to R-Car M2 Porter board. CN18 must be used on Porter side. It is routed to SCIF0 in the R-Car M2 via a CP2102 interface converter chip.
+
Use a miniUSB cable to connect the PC to R-Car M2 Porter board. CN18 must be used on Porter side. It is routed to SCIF0 in the R-Car M2 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, 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].
Line 120: Line 124:
  
 
=== Power on the board and go to U-Boot prompt ===
 
=== Power on the board and go to U-Boot prompt ===
''TBD''
+
Switch [[R-Car/Boards/Porter: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>
 +
PORTER SPI_LOADER(DDR3L) V0.19 2015.02.12
 +
DEVICE S25FL512
 +
 
 +
 
 +
U-Boot 2013.01.01-gc4d5d6e (Nov 13 2014 - 17:21:53)
 +
 
 +
CPU: Renesas Electronics R8A7791 rev 2.0
 +
Board: Porter 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
 +
</pre>
 +
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:
 +
<pre>
 +
Hit any key to stop autoboot:  0                                                                                                           
 +
=>
 +
</pre>
  
 
=== 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 ===
Line 126: Line 156:
  
 
== Bootloader ==
 
== Bootloader ==
''TBD: provide instructions for updating the bootloader when second, backup, SPI flash is available.''
+
R-Car M2 SoC can be booted from various sources. Porter board can be booted from QSPI Flash device. Porter 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"
 +
|-
 +
! 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. Follow these steps carefully to flash U-Boot:
 +
<ol>
 +
<li>
 +
Selects 4MB SPI Flash with MiniMonitor as a boot device. Use JP2 for this.<br/>
 +
MiniMonitor is loaded via SPI boot interface of R-Car M2.
 +
</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 "[[R-Car/Boards/Porter#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">
 +
PORTER(M2W) SPI_LOADER(DDR3L) V0.20 2015.07.14
 +
DEVICE S25FL032
 +
 
 +
PORTER 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>
 +
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 R-Car M2 and hit Enter.
 +
</li>
 +
<li>
 +
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/porter/ folder which is generated by bitbake during Yocto build.
 +
===== 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/Porter/build/tmp/deploy/images/porter/u-boot.srec
 +
ascii-xfr -vvs /data/Renesas/Porter/build/tmp/deploy/images/porter/u-boot.srec
 +
ASCII upload of "/data/Renesas/Porter/build/tmp/deploy/images/porter/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">
 +
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>
 +
Reboot R-Car M2 Porter board by pressing SW9 "Reset" button.<br/>
 +
You should see U-Boot prompt now.
 +
<pre class="bash">
 +
PORTER(M2W) SPI_LOADER(DDR3L) V0.20 2015.07.14
 +
DEVICE S25FL512
 +
 
 +
 
 +
U-Boot 2013.01.01-g74b16ba-dirty (Jun 05 2015 - 10:03:26)
 +
 
 +
CPU: Renesas Electronics R8A7791 rev 3.0
 +
Board: Porter 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>
 +
</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 jumper on pins 2 and 3 of JP2. This selects 4MB SPI Flash with MiniMonitor as a boot device.<br/>
 +
MiniMonitor is loaded via SPI boot interface of R-Car M2.
 +
</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 "[[R-Car/Boards/Porter#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">
 +
PORTER(M2W) SPI_LOADER(DDR3L) V0.20 2015.07.14                                                                             
 +
DEVICE S25FL032                                                                                                           
 +
                                                                                                                           
 +
PORTER 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>
 +
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 '''PORTER_SPL_LOADER_V020.mot''' file. It can be downloaded from this site [[File:PORTER_SPL_LOADER_V020.mot.zip]]<br/>
 +
Unzip the file before downloading.
 +
===== picocom =====
 +
Use '''Ctrl+A''', '''Ctrl+S''', then select '''PORTER_SPL_LOADER_V020.mot''' file and hit Enter. <br/>
 +
Transmission should start immediately and the progress counter should be displayed:
 +
<pre class="bash">
 +
*** file: /data/Renesas/PORTER/PORTER_SPL_LOADER_V020.mot
 +
ascii-xfr -vvs /data/Renesas/PORTER/PORTER_SPL_LOADER_V020.mot
 +
ASCII upload of "/data/Renesas/PORTER/PORTER_SPL_LOADER_V020.mot"
 +
 
 +
15.0 Kbytes transferred at 3732 CPS...
 +
</pre>
 +
 
 +
===== minicom =====
 +
Use '''Ctrl+A''', '''S''', choose '''ascii''', then locate '''PORTER_SPL_LOADER_V020.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 "PORTER_SPL_LOADER_V020.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 R-Car M2 Porter board by pressing SW9 "Reset" button.<br/>
 +
</li>
 +
</ol>
 +
You can now flash U-Boot or proceed to loading operating system.
 +
</ol>
 +
 
 +
= Expansion Boards =
 +
 
 +
== Ethernet PHY Expansion Boards ==
 +
 
 +
Multiple variants of Ethernet PHY boards could be used with Porter. For example: Tessera GigE and Broad-R PHY boards, Cogent Embedded GigE PHY board
 +
(TBD - create separate page for Ethernet expansion boards).
 +
 
 +
== Porter Expansion Boards for Infotainment Development ==
 +
 
 +
Find details on Porter Infotainment Expansion Board (PEXT01) are provided on the separate page: [[R-Car/Boards/Porter:PEXT01]]
 +
 
 +
== Camera Expansion Board ==
  
 
= FAQ =
 
= FAQ =
=== Operating systems/distributions can be used with R-Car M2 Porter board? ===
+
=== How do I change/update MAC address for Ethernet interface? ===
''TBD''
+
In U-boot command line type:
 +
<pre>
 +
=> env delete -f ethaddr                 
 +
=> setenv ethaddr 2e:09:0a:00:xx:xx
 +
=> saveenv
 +
</pre>
 +
 
 +
You should see the output
 +
<pre>
 +
Saving Environment to SPI Flash...
 +
SF: Detected S25FL512S with page size 256 KiB, total 64 MiB
 +
Erasing SPI flash...Writing to SPI flash...done
 +
</pre>
 +
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 [[R-Car/Boards/Porter:BD101LCC1|Boundary Devices BD101LCC1]] display.
 +
 
 +
=== Which operating systems/distributions can be used with R-Car M2 Porter board? ===
 +
1) AGL
 +
 
 +
Automotive Grade Linux (AGL) is a Linux Foundation Workgroup dedicated to creating open source software solutions for automotive applications. Porter board can be use to run an AGL distribution.
 +
 
 +
Currently (jan. 2016), this project is a work in progress but a [http://iot.bzh/download/public/2016/sdk/AGL-Kickstart-on-Renesas-Porter-board.pdf Kickstart guide to start AGL on Renesas Porter board] is already available.
 +
 
 +
2) Genivi
 +
 
 +
GENIVI is a nonprofit industry alliance committed to driving the broad adoption of specified, open source, In-Vehicle Infotainment (IVI) software.
 +
 
 +
You can find more information about building the Genivi Yocto Baseline for various Genivi versions in the Alliance pages for meta-ivi [https://at.projects.genivi.org/wiki/display/PROJ/Meta+ivi+BSPs+for+Specific+Hardware here].
 +
Information on building the Genivi Development Platform (GDP) for R-Car M2 Porter can be found [https://at.projects.genivi.org/wiki/display/GDP/Renesas+R-Car+M2+Porter+Hardware+Setup+and+Software+Installation here]
  
 
== Known Issues ==
 
== Known Issues ==
 
''TBD''
 
''TBD''

Latest revision as of 22:37, 4 August 2016

Introduction

This is the official Wiki for Renesas R-Car M2 Porter board Rev C. Please refer to R-Car/Boards/Porter and R-Car/Boards/Porter:Hardware for Renesas R-Car M2 Porter board Rev B. Details can be found in the File:R-CarM2-KOELSCH PORTER-B PORTER C Comparison.pdf

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

Hardware

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

Hardware Features

  • R-Car M2 SoC
    • ARM®Cortex-A15 Dual Core 1.5­GHz
    • Multimedia Engine SH­4A 780 MHz
    • 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, 9 Amps
  • Dimensions: 170x125 mm

Where to buy

Porter board can be ordered from following distributors:

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

R-Car M2 SoC Documentation

Official Porter board documentation

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 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 9 Amps.

Connect to serial console

Use a miniUSB cable to connect the PC to R-Car M2 Porter board. CN18 must be used on Porter side. It is routed to SCIF0 in the R-Car M2 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

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

PORTER SPI_LOADER(DDR3L) V0.19 2015.02.12
 DEVICE S25FL512


U-Boot 2013.01.01-gc4d5d6e (Nov 13 2014 - 17:21:53)

CPU: Renesas Electronics R8A7791 rev 2.0
Board: Porter 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

R-Car M2 SoC can be booted from various sources. Porter board can be booted from QSPI Flash device. Porter 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. Follow these steps carefully to flash U-Boot:

  1. Selects 4MB SPI Flash with MiniMonitor as a boot device. Use JP2 for this.
    MiniMonitor is loaded via SPI boot interface of R-Car M2.
  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):
    PORTER(M2W) SPI_LOADER(DDR3L) V0.20 2015.07.14
     DEVICE S25FL032
      
    PORTER 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 R-Car M2 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/porter/ folder which is generated by bitbake during Yocto build.

    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/Porter/build/tmp/deploy/images/porter/u-boot.srec
    ascii-xfr -vvs /data/Renesas/Porter/build/tmp/deploy/images/porter/u-boot.srec 
    ASCII upload of "/data/Renesas/Porter/build/tmp/deploy/images/porter/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 R-Car M2 Porter board by pressing SW9 "Reset" button.
    You should see U-Boot prompt now.
    PORTER(M2W) SPI_LOADER(DDR3L) V0.20 2015.07.14
     DEVICE S25FL512
    
    
    U-Boot 2013.01.01-g74b16ba-dirty (Jun 05 2015 - 10:03:26)
    
    CPU: Renesas Electronics R8A7791 rev 3.0
    Board: Porter 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
    

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 jumper on pins 2 and 3 of JP2. This selects 4MB SPI Flash with MiniMonitor as a boot device.
    MiniMonitor is loaded via SPI boot interface of R-Car M2.
  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):
    PORTER(M2W) SPI_LOADER(DDR3L) V0.20 2015.07.14                                                                               
     DEVICE S25FL032                                                                                                             
                                                                                                                                 
    PORTER 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 1 and Enter.

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

    Send PORTER_SPL_LOADER_V020.mot file. It can be downloaded from this site File:PORTER SPL LOADER V020.mot.zip
    Unzip the file before downloading.

    picocom

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

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

    Use Ctrl+A, S, choose ascii, then locate PORTER_SPL_LOADER_V020.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 "PORTER_SPL_LOADER_V020.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 M2 Porter board by pressing SW9 "Reset" button.

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

Expansion Boards

Ethernet PHY Expansion Boards

Multiple variants of Ethernet PHY boards could be used with Porter. For example: Tessera GigE and Broad-R PHY boards, Cogent Embedded GigE PHY board (TBD - create separate page for Ethernet expansion boards).

Porter Expansion Boards for Infotainment Development

Find details on Porter Infotainment Expansion Board (PEXT01) are provided on the separate page: R-Car/Boards/Porter:PEXT01

Camera Expansion Board

FAQ

How do I change/update MAC address for 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 R-Car M2 Porter board?

1) AGL

Automotive Grade Linux (AGL) is a Linux Foundation Workgroup dedicated to creating open source software solutions for automotive applications. Porter board can be use to run an AGL distribution.

Currently (jan. 2016), this project is a work in progress but a Kickstart guide to start AGL on Renesas Porter board is already available.

2) Genivi

GENIVI is a nonprofit industry alliance committed to driving the broad adoption of specified, open source, In-Vehicle Infotainment (IVI) software.

You can find more information about building the Genivi Yocto Baseline for various Genivi versions in the Alliance pages for meta-ivi here. Information on building the Genivi Development Platform (GDP) for R-Car M2 Porter can be found here

Known Issues

TBD