From eLinux.org
< R-Car
Revision as of 02:00, 18 March 2015 by Cogente (talk | contribs) (Bootloader)
Jump to: navigation, search


This is the official Wiki for Renesas R-Car M2 Porter board.

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


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)
  • Three flash memory chips
    • 4 MB SPI
    • 64 MB SPI
    • 128 MB NOR (one 128Mb bank or 2x 64MB banks)
  • 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, TBD Amps
  • Dimensions: 170x125 mm

Where to buy


List here distributors that sell Porter board

R-Car M2 SoC Documentation

TBD At the moment just short description is available http://am.renesas.com/applications/automotive/cis/cis_highend/rcar_m2/

TBD Add here link to public R-Car M2 datasheet

Official Porter board documentation

TBD: Add 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 R-Car/Boards/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 5 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:

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.

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

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

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.


R-Car M2 SoC can be booted from various sources. Porter Rev. 1.0 board can be booted from QSPI Flash and NOR Flash. Boot source is selectable by two jumpers JP2 (located close to JTAG connector) and JP8 (close to RJ45 connector):

Boot source JP2 state JP8 state
QSPI (default) 2-3 closed opened
NOR 1-2 closed closed

In a standard configuration 1 Gbit NOR flash Spansion S29GL01GP stores U-boot bootloader (for backup/rescue purposes) and 64 MB FLash S25FL512S stores MiniMonitor (QSPI Loader) and U-Boot (main storage).

Updating U-Boot

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

  1. Power off
  2. Set JP2 and JP8 jumpers to boot from NOR Flash.
    • JP2 : 1-2 closed
    • JP8 : closed
  3. Power on
  4. Set JP2 and JP8 jumpers for flashing QSPI
    • JP2 : 2-3 closed
    • JP8 : closed
  5. Load and update QSPI U-boot with the following commands:
    => tftp 0x48100000 ${YOUR_PATH}/u-boot.bin
    => sf probe
    => mm 48000000
    => sf erase 40000 +8
    => sf write 48000000 40000 8
    => sf erase 80000 +386e8
    => sf write 48100000 80000 386e8
  6. Power off
  7. Set JP2 and JP8 jumpers to boot from QSPI Flash.
    • JP2 : 2-3 closed
    • JP8 : opened
  8. Power on
  9. FAQ

    Operating systems/distributions can be used with R-Car M2 Porter board?


    Known Issues