Difference between revisions of "R-Car/Boards/CCPF-SK/GettingStarted/Windows"

From eLinux.org
Jump to: navigation, search
(Add Category)
m (Flashing IPL(Firmware): Fix typo)
 
(8 intermediate revisions by 2 users not shown)
Line 24: Line 24:
 
# Prebuilt Yocto BSP binary
 
# Prebuilt Yocto BSP binary
 
#* Download Yocto BSP binary and GFX/MMP package from following page:
 
#* Download Yocto BSP binary and GFX/MMP package from following page:
#*: Binary: [https://www.renesas.com/node/1537916 Download for H3], [https://www.renesas.com/node/1537926 Download for M3]
+
#*: Binary: [https://www.renesas.com/node/1596716 Download for H3] [https://www.renesas.com/node/1596726 Download for M3]
#*: GFX/MMP: [https://www.renesas.com/node/1537911 Download for H3], [https://www.renesas.com/node/1537921 Download for M3]
+
#*: GFX/MMP: [https://www.renesas.com/node/1596721 Download for H3] [https://www.renesas.com/node/1596731 Download for M3]
 
#*: {{Note}} '''Source code is not needed for this guide'''. But, if source code is required, please refer to following:
 
#*: {{Note}} '''Source code is not needed for this guide'''. But, if source code is required, please refer to following:
#*:: Source: [https://www.renesas.com/node/1537936 Download for H3], [https://www.renesas.com/node/1537941 Download for M3]
+
#*:: Source: [https://www.renesas.com/node/1596636 Download for H3] [https://www.renesas.com/node/1596631 Download for M3]
 
#* Extract downloaded files
 
#* Extract downloaded files
 
#*: Expected Directory Structure is following:
 
#*: Expected Directory Structure is following:
Line 38: Line 38:
 
=== Confirmed Starter Kit ===
 
=== Confirmed Starter Kit ===
 
{| class="wikitable"
 
{| class="wikitable"
|+ Confirmed Board
 
 
|-
 
|-
 
!Board !! SoC !! Confirmed
 
!Board !! SoC !! Confirmed
 +
|-
 +
| R-Car Starter Kit Premier || H3e-2G v3.0 || OK
 
|-
 
|-
 
| R-Car Starter Kit Premier || H3 v3.0 (1rank DDR) || OK
 
| R-Car Starter Kit Premier || H3 v3.0 (1rank DDR) || OK
 
|-
 
|-
| R-Car Starter Kit Premier || H3 v3.0 (2rank DDR) || OK
+
| R-Car Starter Kit Premier || H3 v3.0 (2rank DDR) || NT
 
|-
 
|-
 
| R-Car Starter Kit Premier || H3 v2.0 with 8GB DDR || NT
 
| R-Car Starter Kit Premier || H3 v2.0 with 8GB DDR || NT
Line 77: Line 78:
 
# Flash .wic file to SD card using Win32 Disk Imager.
 
# Flash .wic file to SD card using Win32 Disk Imager.
 
# Open drive which name is 'data' using windows explorer.
 
# Open drive which name is 'data' using windows explorer.
# Copy gfx_mp.tar.bz2 to 'data' drive.
+
# Copy gfx_mmp.tar.bz2 to 'data' drive.
  
 
=== Flashing IPL(Firmware) ===
 
=== Flashing IPL(Firmware) ===
Line 96: Line 97:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
#: Power on the board and interrupt autoboot on U-boot by pressing any key.
 
#: Power on the board and interrupt autoboot on U-boot by pressing any key.
#:: If interrupting autoboot is succeeded, "=>" is shown in minicom.
+
#:: If interrupting autoboot is succeeded, "=>" is shown in Teraterm.
 
# Open "Macro" which is located in "Control" menu.
 
# Open "Macro" which is located in "Control" menu.
#: select "binary\ipl\renesas-bsp-rom-writer\starterkit\windows\rom_writer.ttl"
+
#: select "binary\ipl\renesas-bsp-rom-writer_64bit\starterkit\windows\yocto_writer.ttl"
 
# Follow the instruction shown in console.
 
# Follow the instruction shown in console.
#: Select Full Auto, then click "OK"
+
#: Click "OK"
#: Select SoC which is equipped on your board, then click "OK".
+
#: Select Yocto version(v5.9.0), then click "Yes"
#: Select Yocto version(v5.1.0), then click "OK"
+
#: Select SoC which is equipped on your board, then click "Yes".
#: Select binary/ipl folder, then click OK.
+
#: Select Mode, then click "Yes".
#: Click Yes.
+
#: Select binary/ipl folder, then click "OK".
 +
#: Click "Yes", "Yes".
 +
#: Wait a little, select write mode, then click "Yes".
 
#: Please wait that writing U-boot is done.
 
#: Please wait that writing U-boot is done.
  
Line 113: Line 116:
 
# Power on the board and interrupt autoboot on U-boot by pressing any key.
 
# Power on the board and interrupt autoboot on U-boot by pressing any key.
 
# Execute following command for set up U-boot:
 
# Execute following command for set up U-boot:
#: <syntaxhighlight>
+
#: <syntaxhighlight lang=text>
 
setenv ethaddr xx:xx:xx:xx:xx:xx
 
setenv ethaddr xx:xx:xx:xx:xx:xx
 
setenv bootargs 'rw root=/dev/mmcblk1p1 rootwait'
 
setenv bootargs 'rw root=/dev/mmcblk1p1 rootwait'
Line 135: Line 138:
 
#:: After the second boot, automatic reboot is not occurred.
 
#:: After the second boot, automatic reboot is not occurred.
 
::: {| class="wikitable"
 
::: {| class="wikitable"
|+ Combination of the board and dtb file
 
 
|-
 
|-
! R-Car Starter Kit !! dtb file
+
! Board name !! SoC version !! Type Name || DTB file
 
|-
 
|-
| Premier(H3) v2.0/v3.0 || r8a77951-ulcb-ccpf-sk.dtb
+
| H3SK || 2.0<br>2.0<br>2.0/3.0 ||  RTP0RC77951SKBX010SA00<br>RTP0RC77951SKBX010SA01<br>RTP0RC77951SKBX010SA03 || r8a77951-ulcb-ccpf-sk.dtb
 +
|-
 +
| H3e-2G SK || 3.0 ||  RTP8J779M1ASKB0SK0SA003 || r8a779<span style="color:#ff0000;">m</span>1-ulcb-ccpf-sk.dtb
 +
|-
 +
| M3SK || 1.0 || RTP0RC7796SKBX0010SA09 || r8a77960-ulcb-ccpf-sk.dtb
 +
|-
 +
| M3SK || 3.0 || RTP8J77961ASKB0SK0SA05A || r8a77961-ulcb-ccpf-sk.dtb
 
|-  
 
|-  
| Pro(M3) v1.0 ||  r8a77960-ulcb-ccpf-sk.dtb
 
|-
 
| Pro(M3) v3.0 ||  r8a77961-ulcb-ccpf-sk.dtb
 
|-
 
 
|}
 
|}
  

Latest revision as of 20:14, 19 September 2022


Introduction

This page contains how to set up CCPF-SK for the first time.

Required items

  1. CCPF-SK
  2. R-Car Starter Kit Premier(H3) or R-Car Starter Kit Pro(M3)
    See also R-Car/Boards/CCPF-SK/GettingStarted/Windows#Confirmed_Starter_Kit.
  3. Micro SD card(at least 16GB)
  4. Tools for assembly
    • phillips screwdriver, wrench, nut driver
  5. Host PC(Windows 10 x64 is recommended as OS)
  6. Write down the MAC Address
    The original (board default) MAC address can be found on the label on top of RJ45 connector.
  7. Prebuilt Yocto BSP binary

Confirmed Starter Kit

Board SoC Confirmed
R-Car Starter Kit Premier H3e-2G v3.0 OK
R-Car Starter Kit Premier H3 v3.0 (1rank DDR) OK
R-Car Starter Kit Premier H3 v3.0 (2rank DDR) NT
R-Car Starter Kit Premier H3 v2.0 with 8GB DDR NT
R-Car Starter Kit Premier H3 v2.0 with 4GB DDR NT
R-Car Starter Kit Pro M3 v3.0 OK
R-Car Starter Kit Pro M3 v1.0 NT
18px <translate> Note:</translate> NT='Not Tested'

See also:

HW Setup

Assemble the CCPF-SK

Video and documentation:

SW Setup

Prepare SD card

  1. Insert SD card to Host PC
  2. Install Win32 Disk Imager and 7-Zip
  3. Extract core-image-weston-release-h3ulcb.wic.xz using 7-Zip
    note: If you use R-Car Starter Kit Pro(M3), please use core-image-weston-release-m3ulcb.wic.xz
  4. Flash .wic file to SD card using Win32 Disk Imager.
  5. Open drive which name is 'data' using windows explorer.
  6. Copy gfx_mmp.tar.bz2 to 'data' drive.

Flashing IPL(Firmware)

  1. Install Teraterm
  2. Power off the Boards
  3. Connect Host PC and the Board with Micro-USB cable.
  4. Open Teraterm.
    Configure serial port
    Open "Serial port" which is located in "Setup" menu, and configure such as following:
    Port: COMx can be checked using Windows Device Manager.
    Baud rate: 115200
    Data: 8bit
    Parity: none
    Stop: 1bit
    Flow control: none
    
    Power on the board and interrupt autoboot on U-boot by pressing any key.
    If interrupting autoboot is succeeded, "=>" is shown in Teraterm.
  5. Open "Macro" which is located in "Control" menu.
    select "binary\ipl\renesas-bsp-rom-writer_64bit\starterkit\windows\yocto_writer.ttl"
  6. Follow the instruction shown in console.
    Click "OK"
    Select Yocto version(v5.9.0), then click "Yes"
    Select SoC which is equipped on your board, then click "Yes".
    Select Mode, then click "Yes".
    Select binary/ipl folder, then click "OK".
    Click "Yes", "Yes".
    Wait a little, select write mode, then click "Yes".
    Please wait that writing U-boot is done.

Booting Yocto

  1. power off the board
  2. Insert Micro SD card to the board
  3. Power on the board and interrupt autoboot on U-boot by pressing any key.
  4. Execute following command for set up U-boot:
    setenv ethaddr xx:xx:xx:xx:xx:xx
    setenv bootargs 'rw root=/dev/mmcblk1p1 rootwait'
    setenv dtb 'r8a77951-ulcb-ccpf-sk.dtb'
    setenv load_kernel_sd 'ext2load mmc 0:1 0x48080000 /boot/Image'
    setenv load_dtb_sd 'ext2load mmc 0:1 0x48000000 /boot/${dtb}'
    setenv bootcmd 'run load_kernel_sd; run load_dtb_sd; booti 0x48080000 - 0x48000000'
    saveenv
    
    Note:
    Input your board's mac address instead of "xx:xx:xx:xx:xx:xx ".
    dtb is changed by Starter Kit version. Please refer to following table.
    Please refer to the following page to check your Starter kit version:
  5. Execute "reset" command on U-boot to reset the board
  6. Yocto will be booted automatically
    Note:
    The board reboots automatically for the first booting Yocto.
    This is caused by installing GFX/MMP package.
    After the second boot, automatic reboot is not occurred.
Board name SoC version Type Name DTB file
H3SK 2.0
2.0
2.0/3.0
RTP0RC77951SKBX010SA00
RTP0RC77951SKBX010SA01
RTP0RC77951SKBX010SA03
r8a77951-ulcb-ccpf-sk.dtb
H3e-2G SK 3.0 RTP8J779M1ASKB0SK0SA003 r8a779m1-ulcb-ccpf-sk.dtb
M3SK 1.0 RTP0RC7796SKBX0010SA09 r8a77960-ulcb-ccpf-sk.dtb
M3SK 3.0 RTP8J77961ASKB0SK0SA05A r8a77961-ulcb-ccpf-sk.dtb

Next Step

Building and Customizing Yocto BSP

Troubleshooting

Q&A site

FAQ site

U-boot doesn't boot.

  • Please check the Dip switch(SW1=ON, SW6=All ON) on R-Car Starter Kit(Not CCPF-SK board).
See also :
  • If U-Boot doesn't boot in spite that SW1/SW6 is correct, please flash the IPL(firmware) again.
See also:
  • If U-Boot doesn't boot after following above instruction, the board may be broken.
So please try other board.