Difference between revisions of "R-Car/Boards/M3NSK"

From eLinux.org
Jump to: navigation, search
(FAQ: Change QA site to Rulz from elinux)
(Add footer template)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Template:R-Car-Gen3-Navbox}}
 
{{TOC right}}
 
{{TOC right}}
 +
[[Category:R-Car]]
 +
[[Category:R-Car Gen3]]
  
[[R-Car/Boards/Yocto-Gen3|Yocto-Gen3]]
 
 
== Introduction ==
 
== Introduction ==
  
Line 8: Line 10:
 
Typename: RTP0RC77965SKBX010SA00
 
Typename: RTP0RC77965SKBX010SA00
 
</pre>
 
</pre>
==Quick Start How To==
 
  
===Build Yocto image===
+
== Topic ==
 +
Note : There are no plans to manufacture the R-Car Starter kit Pro(M3N).<br>
 +
{{Template:R-Car-Gen3-Topic}}
  
<ol>
+
==Quick Start How To==
<li>Create a directory and switch to it <br/>
 
Warning! Yocto builds require a lot of disk space (up to 100 GB). Make sure you have got enough before starting the build.
 
<pre>
 
mkdir build
 
cd build
 
export WORK=`pwd`
 
</pre>
 
</li>
 
<li>Clone basic Yocto layers:
 
<pre>
 
cd $WORK
 
git clone git://git.yoctoproject.org/poky
 
git clone git://git.openembedded.org/meta-openembedded
 
git clone git://git.linaro.org/openembedded/meta-linaro.git
 
git clone git://github.com/renesas-rcar/meta-renesas
 
git clone git://github.com/CogentEmbedded/meta-rcar.git
 
</pre>
 
</li>
 
 
 
<li>
 
Switch to proper branches/commits
 
<ol>
 
<li>
 
For Yocto v3.9.0
 
<pre>
 
cd $WORK/poky
 
git checkout -b tmp 342fbd6a3e57021c8e28b124b3adb241936f3d9d
 
cd $WORK/meta-openembedded
 
git checkout -b tmp dacfa2b1920e285531bec55cd2f08743390aaf57
 
cd $WORK/meta-linaro
 
git checkout -b tmp 75dfb67bbb14a70cd47afda9726e2e1c76731885
 
cd $WORK/meta-renesas
 
git checkout -b tmp fd078b6ece537d986852cb827bd21e022a797b2f
 
cd $WORK/meta-rcar
 
git checkout -b v3.9.0 remotes/origin/v3.9.0
 
</pre>
 
</li>
 
<li>
 
For Yocto v3.13.0 (Note: https://elinux.org/R-Car/Boards/Yocto-Gen3#Known_issues_and_limitations (No.3))
 
<pre>
 
cd $WORK/poky
 
git checkout -b tmp 7e7ee662f5dea4d090293045f7498093322802cc
 
cd $WORK/meta-openembedded
 
git checkout -b tmp 352531015014d1957d6444d114f4451e241c4d23
 
cd $WORK/meta-linaro
 
git checkout -b tmp 75dfb67bbb14a70cd47afda9726e2e1c76731885
 
cd $WORK/meta-renesas
 
git checkout -b tmp 00f70f062aace04c051fa92d3cd7b887718fc313
 
cd $WORK/meta-rcar
 
git checkout -b v3.13.0 remotes/origin/v3.13.0
 
</pre>
 
</li>
 
<li>
 
For Yocto v3.15.0
 
<pre>
 
cd $WORK/poky
 
git checkout -b tmp 7e7ee662f5dea4d090293045f7498093322802cc
 
cd $WORK/meta-openembedded
 
git checkout -b tmp 352531015014d1957d6444d114f4451e241c4d23
 
cd $WORK/meta-linaro
 
git checkout -b tmp 75dfb67bbb14a70cd47afda9726e2e1c76731885
 
cd $WORK/meta-renesas
 
git checkout -b tmp 8af0b7d6e445b532088a068dc012757001be3a1f
 
cd $WORK/meta-rcar
 
git checkout -b v3.15.0 remotes/origin/v3.15.0
 
</pre>
 
</li>
 
<li>
 
For Yocto v3.19.0
 
<pre>
 
cd $WORK/poky
 
git checkout -b tmp 7e7ee662f5dea4d090293045f7498093322802cc
 
cd $WORK/meta-openembedded
 
git checkout -b tmp 352531015014d1957d6444d114f4451e241c4d23
 
cd $WORK/meta-linaro
 
git checkout -b tmp 75dfb67bbb14a70cd47afda9726e2e1c76731885
 
cd $WORK/meta-renesas
 
git checkout -b tmp 20fcc94a8d05eda80250f27e87aaa3cfc3275300
 
[if you use Kingfisher]
 
cd $WORK/meta-rcar
 
git checkout -b v3.19.0 remotes/origin/v3.19.0
 
</pre>
 
</li>
 
<li>
 
For Yocto v3.21.0
 
<pre>
 
cd $WORK/poky
 
git checkout -b tmp 7e7ee662f5dea4d090293045f7498093322802cc
 
cd $WORK/meta-openembedded
 
git checkout -b tmp 352531015014d1957d6444d114f4451e241c4d23
 
cd $WORK/meta-linaro
 
git checkout -b tmp 75dfb67bbb14a70cd47afda9726e2e1c76731885
 
cd $WORK/meta-renesas
 
git checkout -b tmp ad3a8cfee5b6a6fab17cf1c6e5af851eaec75bd7
 
[if you use Kingfisher]
 
cd $WORK/meta-rcar
 
git checkout -b v3.21.0 remotes/origin/v3.21.0
 
</pre>
 
</li>
 
 
 
</ol>
 
 
 
<li>
 
Please get the proprietary package for R-Car M3N from the your company's distributer.</br>
 
And copy them to $WORK/proprietary folder.
 
</li>
 
 
 
<li>
 
Populate meta-renesas with proprietary software packages.
 
<pre>
 
export PKGS_DIR=$WORK/proprietary
 
cd $WORK/meta-renesas
 
sh meta-rcar-gen3/docs/sample/copyscript/copy_proprietary_softwares.sh $PKGS_DIR
 
unset PKGS_DIR
 
</pre>
 
</li>
 
 
 
<li>
 
Setup build environment
 
<pre>
 
cd $WORK
 
source poky/oe-init-build-env
 
</pre>
 
</li>
 
 
 
<li>
 
Prepare default configuration files.
 
<ol>
 
<li>
 
For Yocto v3.9.0, v3.13.0 and v3.15.0
 
<pre>
 
cp $WORK/meta-rcar/meta-rcar-gen3-adas/docs/sample/conf/m3nulcb/poky-gcc/mmp/*.conf ./conf/
 
cd $WORK/build
 
cp conf/local-wayland.conf conf/local.conf
 
</pre>
 
</li>
 
<li>
 
For Yocto v3.19.0, v3.21.0
 
<pre>
 
cp $WORK/meta-renesas/meta-rcar-gen3/docs/sample/conf/m3nulcb/poky-gcc/mmp/*.conf ./conf/
 
cd $WORK/build
 
cp conf/local-wayland.conf conf/local.conf
 
</pre>
 
</li>
 
</ol>
 
  
<li> Add layer meta-rcar [Target Yocto version: v3.9.0, v3.13.0 and v3.15.0. Or when using Kingfisher]
+
== Build Yocto image ==
<pre>
+
Refer to [[R-Car/Boards/M3NSK/Yocto-Gen3 | Yocto]] for steps necessary for making a Yocto image.
bitbake-layers add-layer ../meta-rcar/meta-rcar-gen3-adas
 
</pre>
 
</li>
 
 
 
<li>
 
Start the build <br />
 
<pre>
 
bitbake core-image-weston
 
</pre>
 
</li>
 
</ol>
 
  
 
===Connect 5 V power supply to the board===
 
===Connect 5 V power supply to the board===
Line 332: Line 179:
 
</pre>
 
</pre>
  
== FAQ ==
+
{{Template:R-Car-Yocto-Gen3-footer}}
 
 
http://renesasrulz.com/r-car-h3-m3-cockpit/
 
 
 
== Known Issues ==
 
 
 
{{Template:R-Car-Gen3-Navbox}}
 

Latest revision as of 23:29, 29 June 2021


Introduction

This is the Wiki for the Renesas R-Car Starter Kit Pro board(M3N).

Typename: RTP0RC77965SKBX010SA00

Topic

Note : There are no plans to manufacture the R-Car Starter kit Pro(M3N).

EOL Notification of the M3SK

Production of M3SK is discontinued.
See M3SK page for detail.

The new version of R-Car Starter Kit Premier is now on sale !!

  • Equipped with R-Car H3e-2G
    (En) https://www.renesas.com/jp/en/about/press-room/renesas-launches-r-car-gen3e-20-percent-higher-cpu-speed-automotive-infotainment-cockpit-and-digital
    (Zh) https://www.renesas.com/jp/zh/about/press-room/renesas-launches-r-car-gen3e-20-percent-higher-cpu-speed-automotive-infotainment-cockpit-and-digital
    (Jp) https://www.renesas.com/jp/ja/about/press-room/renesas-launches-r-car-gen3e-20-percent-higher-cpu-speed-automotive-infotainment-cockpit-and-digital
  • CPU performance is increased 20% by supporting up to 2GHz frequency over past products.
  • You can buy from here.

SW Release Information

Board name SW name Release date Note
R-Car Starter Kit ( Premier / Pro ) Yocto v5.9.4 (stable) [New!!] 2024/03/28
Kingfisher Infotainment Board Yocto v5.9.0 (stable) 2022/02/14 To check for latest information, please refer to the meta-rcar/tree/v5.9.0.
Android 10 (stable) 2021/07/26 R-Car Starter Kit Premier(R-Car H3) + Kingfisher is supported.
R-Car Starter Kit Pro(RTP8J77961ASKB0SK0SA05A) + Kingfisher is also supported from 2021/11/25.
Android P (stable) 2020/09/29 R-Car Starter Kit Premier(R-Car H3) + Kingfisher is supported.
R-Car Starter Kit Pro(RTP8J77961ASKB0SK0SA05A) + Kingfisher is also supported from 2021/03/16.
CCPF-SK Board Yocto v5.9.0 (stable) 2022/02/08 Prebuilt binary is available in Quick startup guide page. (Updated on 2022/03/18)


Quick Start How To

Build Yocto image

Refer to Yocto for steps necessary for making a Yocto image.

Connect 5 V power supply to the board

Use 5 V power supply with a 5.5 mm barrel plug. The power supply should be able to provide 4(Min) ~ 8(Max)Amps.

Note

  • The recommended value is 8 Amps. But, user can use 4 Amps. and 6 Amps. (depends on the use case).

Booting Linux

* Kernel config: defconfig
* Kernel image: arch/arm64/boot/Image
* DTB: arch/arm64/boot/dts/renesas/r8a77965-m3nulcb.dtb
* DTB: arch/arm64/boot/dts/renesas/r8a77965-m3nulcb-kf.dtb

U-Boot boot command:

tftpboot 0x48080000 Image
tftpboot 0x48000000 r8a77965-m3nulcb(-kf).dtb 
booti 0x48080000 - 0x48000000

Flashing firmware

Writing data
Filename Program Top Address Flash Save Address Description
bootparam_sa0.srec 0xE6320000 0x000000 Loader(Boot parameter)
bl2-m3nulcb.srec 0xE6304000 0x040000 Loader
cert_header_sa6.srec 0xE6320000 0x180000 Loader(Certification)
bl31-m3nulcb.srec 0x44000000 0x1C0000 ARM Trusted Firmware
tee-m3nulcb.srec 0x44100000 0x200000 OP-Tee
u-boot-elf.srec 0x50000000 0x640000 U-Boot
  1. Power off the board
  2. Press SW8
    
  3. Set SW and JP as follows:
  4. SW1=OFF
    SW6[1]=ON, SW6[2]=ON, SW6[3]=OFF, SW6[4]=ON
    JP1 -> 1-2 short
    
  5. Power on the board
  6. Press SW8
    Minimonitor starts and provides prompts on console
    
  7. Change SW as follows:
  8. SW1=ON
    SW6[all]=ON
    
  9. Flash bootparam_sa0.srec. In console execute xls2 command (load program to hyper flash) and provide the following inputs:
  10. 3
    y
    y
    e6320000
    0
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "bootparam_sa0.srec", after upload finished press any key
    y
    
  11. Flash bl2-m3nulcb.srec. In console execute xls2 command (load program to hyper flash) and provide the following inputs:
  12. 3
    y
    y
    e6304000
    40000
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "bl2-m3nulcb.srec", after upload finished press any key
    y
    
  13. Flash cert_header_sa6.srec. In console execute xls2 command (load program to hyper flash) and provide the following inputs:
  14. 3
    y
    y
    e6320000
    180000
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "cert_header_sa6.srec", after upload finished press any key
    y
    
  15. Flash bl31-m3nulcb.srec. In console execute xls2 command (load program to hyper flash) and provide the following inputs:
  16. 3
    y
    y
    44000000
    1C0000
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "bl31-m3nulcb.srec", after upload finished press any key
    y
    
  17. Flash tee-m3nulcb.srec. In console execute xls2 command (load program to hyper flash) and provide the following inputs:
  18. 3
    y
    y
    44100000
    200000
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "tee-m3nulcb.srec", after upload finished press any key
    y
    
  19. Flash u-boot-elf.srec. In console execute xls2 command (load program to hyper flash) and provide the following inputs:
  20. 3
    y
    y
    50000000
    640000
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "u-boot-elf.srec", after upload finished press any key
    y
    
  21. Reset the board
  22. Press SW9
    

Test procedures

Audio

Ex) In the case of "r8a77965-m3nulcb.dtb"

amixer set "DVC Out" 1%
aplay sample.wav

Ex) In the case of "r8a77965-m3nulcb-kf.dtb"

amixer -c ak4613 set "DVC Out" 1%
aplay sample.wav


Q&A site

https://community.renesas.com/automotive/r-car-h3-m3-cockpit/

FAQ site