Difference between revisions of "R-Car/Boards/CCPF-SK/GettingStarted/Linux"
< R-Car | Boards/CCPF-SK | GettingStarted
(Update Troubleshooting chapter) |
|||
(19 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Template:R-Car-Gen3-Navbox}} | {{Template:R-Car-Gen3-Navbox}} | ||
{{TOC right}} | {{TOC right}} | ||
− | + | ||
[[Category:R-Car]] | [[Category:R-Car]] | ||
[[Category:R-Car Gen3]] | [[Category:R-Car Gen3]] | ||
− | |||
== Introduction == | == Introduction == | ||
Line 15: | Line 14: | ||
# [[R-Car/Boards/CCPF-SK | CCPF-SK]] | # [[R-Car/Boards/CCPF-SK | CCPF-SK]] | ||
# [[R-Car/Boards/H3SK | R-Car Starter Kit Premier(H3)]] or [[R-Car/Boards/M3SK | R-Car Starter Kit Pro(M3)]] | # [[R-Car/Boards/H3SK | R-Car Starter Kit Premier(H3)]] or [[R-Car/Boards/M3SK | R-Car Starter Kit Pro(M3)]] | ||
+ | #: See also [[{{PAGENAME}}#Confirmed_Starter_Kit]]. | ||
# Micro SD card(at least 16GB) | # Micro SD card(at least 16GB) | ||
# Tools for assembly | # Tools for assembly | ||
#* phillips screwdriver, wrench, nut driver | #* phillips screwdriver, wrench, nut driver | ||
# Host PC(Ubuntu 20.04 x64 is recommended as OS) | # Host PC(Ubuntu 20.04 x64 is recommended as OS) | ||
− | + | #* {{Note}}: For Windows user, please refer to the [[R-Car/Boards/CCPF-SK/GettingStarted/Windows]] | |
− | #* {{Note}}: For Windows user, please refer to the [[R-Car/Boards/CCPF-SK/ | ||
− | |||
# Write down the MAC Address | # Write down the MAC Address | ||
#: The original (board default) MAC address can be found on the label on top of RJ45 connector. | #: The original (board default) MAC address can be found on the label on top of RJ45 connector. | ||
# 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/1596716 Download for H3] [https://www.renesas.com/node/1596726 Download for M3] | |
− | #*: Binary: [https:// | + | #*: GFX/MMP: [https://www.renesas.com/node/1596721 Download for H3] [https://www.renesas.com/node/1596731 Download for M3] |
− | #*: GFX/MMP: [https:// | + | #*: {{Note}} '''Source code is not needed for this guide'''. But, if source code is required, please refer to following: |
− | #* {{Note}} | + | #*:: Source: [https://www.renesas.com/node/1596636 Download for H3] [https://www.renesas.com/node/1596631 Download for M3] |
− | #*: Source: [https:// | ||
− | |||
#* Extract downloaded files | #* Extract downloaded files | ||
#*: ex.) R-Car Starter Kit Premier(H3) | #*: ex.) R-Car Starter Kit Premier(H3) | ||
− | #*:: Unzip Yocto-v5. | + | #*:: Unzip Yocto-v5.9.0-ccpfsk-h3ulcb-binary.zip -d <working directory> |
− | #*:: Unzip Yocto-v5. | + | #*:: Unzip Yocto-v5.9.0-ccpfsk-h3ulcb-gfx_mmp.zip -d <working directory> |
#*: Expected Directory Structure is following: | #*: Expected Directory Structure is following: | ||
#*:: <syntaxhighlight lang=text> | #*:: <syntaxhighlight lang=text> | ||
Line 42: | Line 38: | ||
`-- gfx_mmp | `-- gfx_mmp | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | === Confirmed Starter Kit === | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | !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 | ||
+ | |} | ||
+ | {{Note}} NT='Not Tested' | ||
+ | See also: | ||
+ | * [[R-Car/Boards/H3SK#Hardware]] | ||
+ | * [[R-Car/Boards/M3SK#Hardware]] | ||
== HW Setup == | == HW Setup == | ||
Line 64: | Line 84: | ||
cd <working directory> | cd <working directory> | ||
sudo umount /dev/sdx* | sudo umount /dev/sdx* | ||
− | sudo bmaptool copy ./binary/rootfs/core-image-weston-h3ulcb.wic.xz /dev/sdx | + | sudo bmaptool copy ./binary/rootfs/core-image-weston-release-h3ulcb.wic.xz /dev/sdx |
− | # note: If you use m3 starter kit, please use core-image-weston-m3ulcb.wic.xz | + | # note: If you use m3 starter kit, please use core-image-weston-release-m3ulcb.wic.xz |
</syntaxhighlight> | </syntaxhighlight> | ||
# Copy GFX/MMP package to 2nd partition of SD card | # Copy GFX/MMP package to 2nd partition of SD card | ||
#: <syntaxhighlight lang=bash> | #: <syntaxhighlight lang=bash> | ||
− | sudo mount /dev/sdx2 / | + | sudo mount /dev/sdx2 /mnt |
− | sudo cp ./gfx_mmp/gfx_mmp.tar.bz2 -t / | + | sudo cp ./gfx_mmp/gfx_mmp.tar.bz2 -t /mnt |
sudo umount /mnt | sudo umount /mnt | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 76: | Line 96: | ||
=== Flashing IPL(Firmware) === | === Flashing IPL(Firmware) === | ||
− | # Install required application | + | # Install required application and setup serial device. |
− | #: <syntaxhighlight lang=bash>sudo apt install | + | #: <syntaxhighlight lang=bash> |
+ | sudo apt install python3 python3-pip | ||
+ | pip3 install pyserial | ||
+ | sudo gpasswd -a $USER dialout | ||
+ | </syntaxhighlight> | ||
# Power off the Boards | # Power off the Boards | ||
# Connect Host PC and the Board with Micro-USB cable. | # Connect Host PC and the Board with Micro-USB cable. | ||
− | # | + | ## /dev/ttyUSBx is checked by using "dmesg" command |
− | # | + | ##: <syntaxhighlight lang=bash> |
− | + | dmesg | grep /dev/ttyUSB | |
− | ##: <syntaxhighlight lang= | ||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
# Run the script to flash IPL(firmware) | # Run the script to flash IPL(firmware) | ||
## Execute following command | ## Execute following command | ||
##: <syntaxhighlight lang=bash> | ##: <syntaxhighlight lang=bash> | ||
cd binary/ipl | cd binary/ipl | ||
− | ./renesas-bsp-rom- | + | ./renesas-bsp-rom-writer_64bit/starterkit/linux/yocto_writer |
</syntaxhighlight> | </syntaxhighlight> | ||
## Follow the instruction shown in console. | ## Follow the instruction shown in console. | ||
## Wait for script is finished. | ## Wait for script is finished. | ||
− | |||
=== Booting Yocto === | === Booting Yocto === | ||
Line 120: | Line 126: | ||
# Execute following command for set up U-boot: | # Execute following command for set up U-boot: | ||
#: <syntaxhighlight lang=bash> | #: <syntaxhighlight lang=bash> | ||
− | setenv ethaddr xx: | + | setenv ethaddr xx:xx:xx:xx:xx:xx |
setenv bootargs 'rw root=/dev/mmcblk1p1 rootwait' | setenv bootargs 'rw root=/dev/mmcblk1p1 rootwait' | ||
setenv dtb 'r8a77951-ulcb-ccpf-sk.dtb' | setenv dtb 'r8a77951-ulcb-ccpf-sk.dtb' | ||
Line 141: | Line 147: | ||
#:: After the second boot, automatic reboot is not occurred. | #:: After the second boot, automatic reboot is not occurred. | ||
::: {| class="wikitable" | ::: {| class="wikitable" | ||
− | |||
|- | |- | ||
− | ! | + | ! Board name !! SoC version !! Type Name || DTB file |
|- | |- | ||
− | | | + | | 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 | ||
|- | |- | ||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Latest revision as of 03:16, 25 August 2022
|
Introduction
This page contains how to set up CCPF-SK for the first time.
Required items
- CCPF-SK
- R-Car Starter Kit Premier(H3) or R-Car Starter Kit Pro(M3)
- Micro SD card(at least 16GB)
- Tools for assembly
- phillips screwdriver, wrench, nut driver
- Host PC(Ubuntu 20.04 x64 is recommended as OS)
- 18px <translate> Note:</translate>: For Windows user, please refer to the R-Car/Boards/CCPF-SK/GettingStarted/Windows
- Write down the MAC Address
- The original (board default) MAC address can be found on the label on top of RJ45 connector.
- Prebuilt Yocto BSP binary
- Download Yocto BSP binary and GFX/MMP package from following page:
- Binary: Download for H3 Download for M3
- GFX/MMP: Download for H3 Download for M3
- 18px <translate> Note:</translate> Source code is not needed for this guide. But, if source code is required, please refer to following:
- Source: Download for H3 Download for M3
- Extract downloaded files
- ex.) R-Car Starter Kit Premier(H3)
- Unzip Yocto-v5.9.0-ccpfsk-h3ulcb-binary.zip -d <working directory>
- Unzip Yocto-v5.9.0-ccpfsk-h3ulcb-gfx_mmp.zip -d <working directory>
- Expected Directory Structure is following:
<working directory> |-- binary `-- gfx_mmp
- ex.) R-Car Starter Kit Premier(H3)
- Download Yocto BSP binary and GFX/MMP package from following page:
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
- Insert SD card to Host PC
- Install bmaptool
sudo apt install bmap-tools
- Check SD card device file path(ex. /dev/sdb, /dev/mmcblk0 and so on)
sudo fdisk -l
- Flash image to SD card using bmaptool
cd <working directory> sudo umount /dev/sdx* sudo bmaptool copy ./binary/rootfs/core-image-weston-release-h3ulcb.wic.xz /dev/sdx # note: If you use m3 starter kit, please use core-image-weston-release-m3ulcb.wic.xz
- Copy GFX/MMP package to 2nd partition of SD card
sudo mount /dev/sdx2 /mnt sudo cp ./gfx_mmp/gfx_mmp.tar.bz2 -t /mnt sudo umount /mnt
Flashing IPL(Firmware)
- Install required application and setup serial device.
sudo apt install python3 python3-pip pip3 install pyserial sudo gpasswd -a $USER dialout
- Power off the Boards
- Connect Host PC and the Board with Micro-USB cable.
- /dev/ttyUSBx is checked by using "dmesg" command
dmesg | grep /dev/ttyUSB
- /dev/ttyUSBx is checked by using "dmesg" command
- Run the script to flash IPL(firmware)
- Execute following command
cd binary/ipl ./renesas-bsp-rom-writer_64bit/starterkit/linux/yocto_writer
- Follow the instruction shown in console.
- Wait for script is finished.
- Execute following command
Booting Yocto
- power off the board
- Insert Micro SD card to the board
- launch minicom
minicom -D /dev/ttyUSBx
- Power on the board and interrupt autoboot on U-boot by pressing any key.
- 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:
- Execute "reset" command on U-boot to reset the board
- 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.
- Note:
Board name SoC version Type Name DTB file H3SK 2.0
2.0
2.0/3.0RTP0RC77951SKBX010SA00
RTP0RC77951SKBX010SA01
RTP0RC77951SKBX010SA03r8a77951-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
- 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 :
- 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.