R-Car/Boards/CCPF-SK/GettingStarted/Linux

Introduction
This page contains how to set up CCPF-SK for the first time.
 * R-Car/Boards/CCPF-SK

Required items

 * 1)  CCPF-SK
 * 2)  R-Car Starter Kit Premier(H3) or  R-Car Starter Kit Pro(M3)
 * 3) Micro SD card(at least 16GB)
 * 4) Tools for assembly
 * 5) * phillips screwdriver, wrench, nut driver
 * 6) Host PC(Ubuntu 20.04 x64 is recommended as OS)


 * 1) Write down the MAC Address
 * The original (board default) MAC address can be found on the label on top of RJ45 connector.
 * 1) Prebuilt Yocto BSP binary
 * 2) * Download Yocto BSP binary and GFX/MMP package from following page: (Link is under preparing)


 * 1) * Extract downloaded files
 * ex.) R-Car Starter Kit Premier(H3)
 * Unzip Yocto-v5.1.0-ccpfsk-h3-binary.zip -d
 * Unzip Yocto-v5.1.0-ccpfsk-h3-gfx_mmp.zip -d
 * Expected Directory Structure is following:

Assemble the CCPF-SK
Video and documentation:
 * English page
 * Japanese page

Prepare SD card

 * 1) Insert SD card to Host PC
 * 2) Install bmaptool
 * 3) Check SD card device file path(ex. /dev/sdb, /dev/mmcblk0 and so on)
 * 4) Flash image to SD card using bmaptool
 * 5) Copy GFX/MMP package to 2nd partition of SD card
 * 1) Flash image to SD card using bmaptool
 * 2) Copy GFX/MMP package to 2nd partition of SD card
 * 1) Copy GFX/MMP package to 2nd partition of SD card

Flashing IPL(Firmware)

 * 1) Install required application
 * 2) Power off the Boards
 * 3) Connect Host PC and the Board with Micro-USB cable.
 * 4) Set up minicom to use serial port
 * Ex.) sudo minicom --setup
 * 1) Select "Serial port setup" and configure such as following.
 * 2) After finishing configure, press enter to exit "Serial port setup".
 * 3) Select "Save setup as dfl" to save settings.
 * 4) Then, select "Exit from Minicom"
 * 5) Interrupt autoboot on U-boot
 * 6) minicom -D /dev/ttyUSBx
 * If following error is shown in console, please execute command "sudo gpasswd -a $USER dialout"
 * /dev/ttyUSBx is checked by using "dmesg" command
 * 1) Power on the board and interrupt autoboot on U-boot by pressing any key.
 * If interrupting autoboot is succeeded, "=>" is shown in minicom.
 * 1) Quit minicom
 * Press 'Ctrl-A' then press 'X'.
 * 1) Run the script to flash IPL(firmware)
 * 2) Execute following command
 * 3) Follow the instruction shown in console.
 * 4) Wait for script is finished.
 * If script is finished, minicom quits automatically.
 * 1) Follow the instruction shown in console.
 * 2) Wait for script is finished.
 * If script is finished, minicom quits automatically.
 * If script is finished, minicom quits automatically.

Booting Yocto

 * 1) power off the board
 * 2) Insert Micro SD card to the board
 * 3) launch minicom
 * 4) Power on the board and interrupt autoboot on U-boot by pressing any key.
 * 5) Execute following command for set up U-boot:
 * 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:
 * https://elinux.org/R-Car/Boards/H3SK#Hardware
 * https://elinux.org/R-Car/Boards/M3SK#Hardware
 * 1) Execute "reset" command on U-boot to reset the board
 * 2) 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.
 * {| class="wikitable"
 * After the second boot, automatic reboot is not occurred.
 * {| class="wikitable"

! R-Car Starter Kit !! dtb file
 * + Combination of the board and dtb file
 * Premier(H3) v2.0/v3.0 || r8a77951-ulcb-ccpf-sk.dtb
 * Pro(M3) v1.0 || r8a77960-ulcb-ccpf-sk.dtb
 * Pro(M3) v3.0 || r8a77961-ulcb-ccpf-sk.dtb
 * }
 * Pro(M3) v3.0 || r8a77961-ulcb-ccpf-sk.dtb
 * }
 * }
 * }

Next Step
Building and Customizing Yocto BSP
 * R-Car/Boards/CCPF-SK/Yocto-Gen3

Q&A site

 * https://renesasrulz.com/r-car-h3-m3-cockpit/

FAQ site

 * https://en-support.renesas.com/knowledgeBase/category/31363 (English page)
 * https://ja-support.renesas.com/knowledgeBase/category/31403 (Japanese page)

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 :
 * https://elinux.org/R-Car/Boards/H3SK#Flashing_firmware
 * https://elinux.org/R-Car/Boards/M3SK#Flashing_firmware


 * If U-Boot doesn't boot in spite that SW1/SW6 is correct, please flash the IPL(firmware) again.
 * See also:
 * https://elinux.org/R-Car/Boards/H3SK#Flashing_firmware_by_using_CPLD_and_Flash_Writer
 * https://elinux.org/R-Car/Boards/M3SK#Flashing_firmware_by_using_CPLD_and_Flash_Writer


 * If U-Boot doesn't boot after following above instruction, the board may be broken.
 * So please try other board.