R-Car/Boards/Spider

From eLinux.org
< R-Car
Revision as of 00:10, 23 December 2022 by Keni-n (talk | contribs)
Jump to: navigation, search

Introduction

This page is for the Renesas Spider board equipped with R-Car S4

Hardware

Type Name

RTP8A779F0ASKB0SP2SA080

Picture

The "Spider board" consists of a CPU board and a Breakout board. The CPU board is stuck on top of the Breakout board.

Breakout Board and CPU Board

View

CPU Board only

View

Hardware Features

Item Description
SoC R-Car S4

Cortex A55 1.2GHz x8
Cortex R52(lockstep) 1.0GHz x1
RH850 G4MH(lockstep) 400MHz x2
Max 27,000DMIPS, Max 5,300DMIPS(Real time performance)
8MB SRAM
Hardware Security Module
ISO-26262 compliant, ASILB and ASIL D support.
A block diagram of the SoC can be found below.

NOR flash memory Serial NOR flash memory device for QSPI0

HyperFlash memory device for QSPI0 and QSPI1

SDRAM LPDDR4X device for DBSC4
Storage interfaces eMMC memory for MMC

UFS Flash memory

Network interfaces Sixteen CANFD connectors for CANFD0 to CANFD15

Eight LIN connectors for LIN0 to LIN7
OcuLink connector for PCIE0 and PCIE1 (4 lanes)
100Base-TX Ethernet AVB connector for Eth0.
Gigabit Three 5GBASE-T Ethernet (GbE) connector for EtherTSN0 to EtherTSN2.

Peripheral interfaces Debug serial connector for SCIF0/HSCIF0
Debugger interfaces Two 20-pin JTAG connectors for JTAG1 and JTAG2
Peripheral connectors EX-SPI connector for QSPI0

Two breakout board connectors (EXIO connectors A and B)
Ethernet sub-board connector
Mode switching board connector

Power supply 12.0V DC input
Operating temperature +25 degrees C at ambient temperature

R-Car S4 block diagram from renesas.com

View

Connector description

CPU Board

CN Name Description
CN2 JTAG2
CN3 EX-SPI(QSPI0)
CN4 MicroSD Slot back side
CN11 JTAG1
CN11 EXIO Connector(A) back side
CN12 EXIO Connector(B) back side
CN14 EVT
CN16 OcuLink(PCIe0,PCIe1)
CN20 USB microB(SCIF0)
CN21 USB microB(HSCIF0)
CN22 SW Board
CN23 CPLD JTAG
CN24 CAN 4pin
CN27 FAN
CN30 Buck 3
CN31 Buck1
CN32 CAN 8pin back side

Breakout Board

CN Name Description
CN11 EXIO_A
CN12 EXIO_B
CN13 CAN 0/1
CN15 CAN 3/4/5
CN18 CAN 6/7/8
CN21 CAN 2/9/10/11
CN24 CAN 12/13/14/15
CN28 LIN0
CN29 LIN1
CN30 LIN2
CN31 LIN3
CN32 LIN4
CN33 LIN5
CN34 LIN6
CN35 LIN7
CN36 EtherAVB
CN37 MSIOF0
CN38 CAN/LIN Board
CN39 GPIO CN_A
CN40 GPIO CN_A
CN41 I2C
CN42 HSCIF0
CN43 SCIF0
CN44 TSN_CN
CN45 Legacy 12V-in
CN46 DC IN 12V
CN48 POWER CONTROL
CN50 Debug Serial for G4MH
CN51 FAN


R-Car S4 SoC Documentation

  • Soc

https://www.renesas.com/us/en/products/automotive-products/automotive-system-chips-socs/r-car-s4-automotive-system-chip-soc-car-servercommunication-gateway#document

  • Board documentation

https://www.renesas.com/us/en/products/automotive-products/automotive-system-chips-socs/rtp8a779f0askb0sp2s-r-car-s4-reference-boardspider#document

Quick Start How To

This sections describes steps that are necessary to boot Linux. And you will be able to run AWS IoT Greengrass and AWS IoT Fleetwise

Connect 12V Power supply to the board

Use 12 V power supply. There are sequences for turning on and off the power supply to the Spider board set. For the Spider board set, be sure to obey the notes below.

Note

  • When power is turned on
    • Be sure to confirm that the Power Switch (SW11) is off before plugging the AC adapter into the power source. It is prohibited to plug the AC adapter into a power source while the Power Switch (SW11) is on.
  • When power is shut off
    • Be sure to turn off the Power Switch (SW11) before unplugging the AC adapter from the power source. It is prohibited to unplug the AC adapter from the power source while the Power Switch (SW11) is on.

Connect to serial console

Use a microUSB cable to connect the PC to R-Car S4 Evaluation board(Spider) board. CN21 must be used on Spider side. It is routed to HSCIF0 in the R-Car S4 via a FT232 interface converter chip.

On Linux, FT232 driver is included with kernel versions >=2.6.12. Windows driver and sources can be found on FTDI Chip website.

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

On Linux:

picocom

sudo picocom -b 1843200 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  : 1843200 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.

Power on the board and go to U-Boot prompt

SW11 to switch the board on. Then you should see the following output in the terminal:

N:ICUMX Loader Rev.0.13.0
N:Built : 11:21:36, Aug 25 2022
N:PRR is R-Car S4 Ver1.1
N:Boot device is QSPI Flash(40MHz)
N:LCM state is CM
N:Normal boot(ICUMX)
N:======== content cert info ========
destination address:0xfde30000
physical destination address:0xeb230000
source address:0x08240000
size:0x00001000
N:======== content of SA9 ========
address:0xeb231000 size:0x00009800
N:======== G4MH(1st) image load info ========
load address    = 0x10000000
image size      = 0x00100000
source address  = 0x08900000
N:======== ICUMH image load info ========
load address    = 0x10500000
image size      = 0x00100000
source address  = 0x08380000
N:======== G4MH(2nd) image load info ========
load address    = 0x10100000
image size      = 0x00100000
source address  = 0x08a00000
N:BL2: DDR3200(rev.0.30rc7)N:BL2: [COLD_BOOT]
N:..0
N:QoS setting(rev.0.02)
N:DRAM refresh interval 1.91 usec
N:Periodic Write DQ Training
N:======== RTOS image load info ========
load address    = 0xe2100000
image size      = 0x00400000
source address  = 0x08500000
N:======== Cx IPL image load info ========
load address    = 0xe6300000
image size      = 0x00030000
source address  = 0x08480000
N:======== Secure FW image load info ========
load address    = 0xeb240000
image size      = 0x000bc000
source address  = 0x08280000
N:CA55 Loader Program Rev.0.12.0
N:Built : 11:32:51, Aug 23 2022
N:PRR is R-Car S4 Ver.1.1
N:======== CA Program #1 image load info ========
N:load address  = 0x46400000
image size      = 0x00022000
source address  = (p:1)0x00e00000
N:======== CA Program #2 image load info ========
N:load address  = 0x44100000
image size      = 0x00100000
source address  = (p:1)0x00e80000
N:======== CA Program #3 image load info ========
N:load address  = 0x50000000
image size      = 0x00200000
source address  = (p:1)0x00f80000
N:Load finish.(CA55 Loader)
N:Load finish.

Dummy FW Program
Dummy FW Program boot end


U-Boot 2020.10 (Aug 29 2022 - 10:39:10 +0000)

CPU: Renesas Electronics R8A779F0 rev 1.1
Model: Renesas Spider CPU and Breakout boards based on r8a779f0
DRAM:  3.4 GiB
RAM Configuration:
Bank #0: 0x048000000 - 0x09fffffff, 1.4 GiB
Bank #1: 0x480000000 - 0x4ffffffff, 2 GiB

MMC:   mmc@ee140000: 0
Loading Environment from SPIFlash... SF: Detected s25fs512s with page size 256 Bytes, erase size 256 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

In:    serial@e6540000
Out:   serial@e6540000
Err:   serial@e6540000
Net:
Dummy RTOS Program
Dummy RTOS Program boot end

Error: ethernet@e68c0000 address not set.
No ethernet found.

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                                                                                                            
=>

Booting Linux

  • Kernel config: defconfig
  • Kernel image: arch/arm64/boot/Image
  • DTB: arch/arm64/boot/dts/renesas/r8a779f0-spider.dtb

U-Boot boot command:

tftpboot 0x48080000 Image
tftpboot 0x48000000 r8a779f0-spider.dtb
booti 48080000 - 0x48000000

After Boot Unix

Enjoy!!

AWS IoT Green Grass

Please refer to this page.

AWS IoT Fleetwise

Please refer to this page.