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

From eLinux.org
Jump to: navigation, search
(Created page with "{{TOC right}} == Introduction == This is the Wiki for the Renesas R-Car V3M Eagle board (RTP0RC77970SEB0010S). Refer to the R-Car page for information about Renesas' R-Ca...")
 
(Build BSP images)
 
(31 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
This is the Wiki for the Renesas R-Car V3M Eagle board (RTP0RC77970SEB0010S).
 
This is the Wiki for the Renesas R-Car V3M Eagle board (RTP0RC77970SEB0010S).
 
Refer to the [[R-Car]] page for information about Renesas' R-Car SoC family.
 
Refer to the [[R-Car]] page for information about Renesas' R-Car SoC family.
 +
 +
== Hardware ==
 +
This section contains information about Eagle Board hardware.
 +
 +
===Board Layout===
 +
[[File:Eagle markings top.png|801px]]
 +
<br> <br>
 +
[[File:Eagle markings bot.png|801px]]
 +
 +
=== Hardware Features ===
 +
TBD
  
 
== Where to buy ==
 
== Where to buy ==
Line 15: Line 26:
  
 
== Quick Start ==
 
== Quick Start ==
 +
This board is supported in both Yocto v2.23.1, v3.9.0 and later.
 +
Yocto v3.21.0 is preferred option.
 +
 
=== Build BSP images ===
 
=== Build BSP images ===
Please follow these instruction to build BSP 2.19 http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Building_the_BSP_for_Renesas_ADAS_boards:
+
Please follow these instruction to build BSP http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Building_the_BSP_for_Renesas_ADAS_boards:
  
At step 5 - skip this step <br/>
+
At step 5,6 - skip these steps <br/>
At step 8 - replace this step with following:
+
At step 8 - replace this step with following:<br/>
 +
For Yocto v2.23.1:
 
<pre>
 
<pre>
 
cp $WORK/meta-rcar/meta-rcar-gen3-adas/docs/sample/conf/eagle/linaro-gcc/bsp/*.conf ./conf/
 
cp $WORK/meta-rcar/meta-rcar-gen3-adas/docs/sample/conf/eagle/linaro-gcc/bsp/*.conf ./conf/
 +
</pre>
 +
For Yocto v3.9.0 and later:
 +
<pre>
 +
cp $WORK/meta-rcar/meta-rcar-gen3-adas/docs/sample/conf/eagle/poky-gcc/bsp/*.conf ./conf/
 
</pre>
 
</pre>
 
At step 9,10,11 - skip these steps <br/>
 
At step 9,10,11 - skip these steps <br/>
Line 28: Line 47:
 
bitbake core-image-minimal
 
bitbake core-image-minimal
 
</pre>
 
</pre>
At step 16 use following dtb image:
+
At step 16 use following dtb image: <br/>
 +
For Yocto v2.23.1:
 
<pre>
 
<pre>
 +
Image-r8a7797-es1-eagle.dtb
 
Image-r8a7797-eagle.dtb
 
Image-r8a7797-eagle.dtb
 
</pre>
 
</pre>
 
+
For Yocto v3.9.0 and later:
NOTE: you can refer to http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Build_scripts_examples section and use scripts after adding append from step 10.
+
<pre>
 +
Image-r8a77970-es1-eagle.dtb
 +
Image-r8a77970-eagle.dtb
 +
</pre>
 +
NOTE: prefix -es1- is a blob to be used with ws1.0 silicon. The blob without prefix is for ws2.0 silicon. <br/>
 +
NOTE: you can refer to http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Build_scripts_examples section and use scripts after adding append from steps 9,14
  
 
=== Build SDK ===
 
=== Build SDK ===
 
Please follow these instruction to build SDK http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Build_SDK
 
Please follow these instruction to build SDK http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Build_SDK
  
=== Flashing firmware ===
+
== Flashing firmware ==
TBD
+
The firmware files are generated during BSP build procedure and are located in the deploy directory. <br/>
 +
You can verify its content:
 +
<pre class="bash">
 +
$ ls -1 ./tmp/deploy/images/eagle/*.srec
 +
./tmp/deploy/images/eagle/bl2-eagle.srec
 +
./tmp/deploy/images/eagle/bl31-eagle.srec
 +
./tmp/deploy/images/eagle/bootparam_sa0.srec
 +
./tmp/deploy/images/eagle/cert_header_sa3.srec
 +
./tmp/deploy/images/eagle/cert_header_sa6.srec
 +
./tmp/deploy/images/eagle/cr7-eagle.srec
 +
./tmp/deploy/images/eagle/u-boot-elf-eagle.srec
 +
</pre>
 +
 
 +
{| class="wikitable"
 +
|+ Writing data (Yocto v2.23.1)
 +
|-
 +
| bootparam_sa0.srec || 0xE6320000 || 0x000000 || Loader(Boot parameter)
 +
|-
 +
| cr7-eagle.srec || 0xE6304000 || 0x040000 || CR7 Loader
 +
|-
 +
| cert_header_sa3.srec || 0xE6320000 || 0x0C0000 || Loader(Certification)
 +
|-
 +
| bl2-eagle.srec || 0xE6344000 || 0x140000 || CA53 Loader
 +
|-
 +
| cert_header_sa6.srec || 0xE6320000 || 0x180000 || Loader(Certification)
 +
|-
 +
| bl31-eagle.srec || 0x44000000 || 0x1C0000 || ARM Trusted Firmware
 +
|-
 +
| u-boot-elf-eagle.srec || 0x50000000 || 0x640000 || U-Boot
 +
|}
 +
 
 +
<ol>
 +
 
 +
<li> Power off the board
 +
</li>
 +
<pre>
 +
Use SW22
 +
</pre>
 +
<li> Set SW as follows:
 +
</li>
 +
<pre>
 +
SW7[all]=OFF
 +
SW5=ON
 +
SW3[1]=OFF, SW3[2]=ON, SW3[3]=OFF, SW3[4]=OFF, SW3[5]=OFF, SW3[6]=OFF
 +
</pre>
 +
<li> Power on the board
 +
</li>
 +
<pre>
 +
Use SW22
 +
Boot ROM start and provides input
 +
</pre>
 +
</li>
 +
 
 +
<li> Load [[File:AArch32_Gen3_V3M_Scif_MiniMon_EAGLE_V0.09.mot.zip]]. In console provide the following inputs:
 +
</li>
 +
<pre>
 +
type "ctrl+A S" and select upload method "ascii", then choose file for uploading "AArch32_Gen3_V3M_Scif_MiniMon_EAGLE_V0.09.mot", after upload finished press any key.
 +
Minimonitor starts and provides prompts on console
 +
</pre>
 +
 
 +
<li> Change SW as follows:
 +
</li>
 +
<pre>
 +
SW3[1]=OFF, SW3[2]=ON, SW3[3]=ON, SW3[4]=OFF, SW3[5]=ON, SW3[6]=ON
 +
</pre>
 +
 
 +
<li> Erase flash. In console execute xcs command and provide the following inputs:
 +
</li>
 +
<pre>
 +
3
 +
y
 +
y
 +
</pre>
 +
 
 +
<li> Flash bootparam_sa0.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
 +
</li>
 +
<pre>
 +
3
 +
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
 +
</pre>
 +
 
 +
<li> Flash cr7-eagle.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
 +
</li>
 +
<pre>
 +
3
 +
y
 +
e6304000
 +
40000
 +
type "ctrl+A S" and select upload method "ascii", then choose file for uploading "cr7-eagle.srec", after upload finished press any key
 +
y
 +
</pre>
 +
 
 +
<li> Flash cert_header_sa3.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
 +
</li>
 +
<pre>
 +
3
 +
y
 +
e6320000
 +
c0000
 +
type "ctrl+A S" and select upload method "ascii", then choose file for uploading "cert_header_sa3.srec", after upload finished press any key
 +
y
 +
</pre>
 +
 
 +
<li> Flash bl2-eagle.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
 +
</li>
 +
<pre>
 +
3
 +
y
 +
e6344000
 +
140000
 +
type "ctrl+A S" and select upload method "ascii", then choose file for uploading "bl2-eagle.srec", after upload finished press any key
 +
y
 +
</pre>
 +
 
 +
<li> Flash cert_header_sa6.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
 +
</li>
 +
<pre>
 +
3
 +
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
 +
</pre>
 +
 
 +
<li> Flash bl31-eagle.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
 +
</li>
 +
<pre>
 +
3
 +
y
 +
44000000
 +
1C0000
 +
type "ctrl+A S" and select upload method "ascii", then choose file for uploading "bl31-eagle.srec", after upload finished press any key
 +
y
 +
</pre>
 +
 
 +
<li> Flash u-boot-elf-eagle.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
 +
</li>
 +
<pre>
 +
3
 +
y
 +
50000000
 +
640000
 +
type "ctrl+A S" and select upload method "ascii", then choose file for uploading "u-boot-elf-eagle.srec", after upload finished press any key
 +
y
 +
</pre>
 +
 
 +
<li> Reset the board
 +
</li>
 +
<pre>
 +
Press SW36
 +
</pre>
 +
 
 +
 
 +
</ol>
  
=== U-Boot Environment ===
+
== U-Boot Environment ==
  
 
Please follow these instruction to  boot from network http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Loading_kernel_via_TFTP_and_rootfs_via_NFS <br/>
 
Please follow these instruction to  boot from network http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Loading_kernel_via_TFTP_and_rootfs_via_NFS <br/>
For Eagle board you must use the following dtb file:
+
For Eagle board you must use the following dtb file: <br/>
 +
For Yocto v2.23.1:
 
<pre>
 
<pre>
 +
Image-r8a7797-es1-eagle.dtb
 +
Image-r8a7797-es1-eagle-function.dtb
 
Image-r8a7797-eagle.dtb
 
Image-r8a7797-eagle.dtb
 +
Image-r8a7797-eagle-function.dtb
 +
</pre>
 +
For Yocto v3.9.0:
 +
<pre>
 +
Image-r8a77970-es1-eagle.dtb
 +
Image-r8a77970-es1-eagle-function.dtb
 +
Image-r8a77970-eagle.dtb
 +
Image-r8a77970-eagle-function.dtb
 
</pre>
 
</pre>
  
=== ADAS test applications ===
+
== ADAS test applications ==
 
TBD
 
TBD
 +
 +
== Legacy BSP ==

Latest revision as of 15:54, 23 October 2020

Introduction

This is the Wiki for the Renesas R-Car V3M Eagle board (RTP0RC77970SEB0010S). Refer to the R-Car page for information about Renesas' R-Car SoC family.

Hardware

This section contains information about Eagle Board hardware.

Board Layout

Eagle markings top.png

Eagle markings bot.png

Hardware Features

TBD

Where to buy

TBD

Eagle Board Documentation

TBD

System with LVDS cameras

TBD

Quick Start

This board is supported in both Yocto v2.23.1, v3.9.0 and later. Yocto v3.21.0 is preferred option.

Build BSP images

Please follow these instruction to build BSP http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Building_the_BSP_for_Renesas_ADAS_boards:

At step 5,6 - skip these steps
At step 8 - replace this step with following:
For Yocto v2.23.1:

cp $WORK/meta-rcar/meta-rcar-gen3-adas/docs/sample/conf/eagle/linaro-gcc/bsp/*.conf ./conf/

For Yocto v3.9.0 and later:

cp $WORK/meta-rcar/meta-rcar-gen3-adas/docs/sample/conf/eagle/poky-gcc/bsp/*.conf ./conf/

At step 9,10,11 - skip these steps
At step 13 - replace this step with following:

bitbake core-image-minimal

At step 16 use following dtb image:
For Yocto v2.23.1:

Image-r8a7797-es1-eagle.dtb
Image-r8a7797-eagle.dtb

For Yocto v3.9.0 and later:

Image-r8a77970-es1-eagle.dtb
Image-r8a77970-eagle.dtb

NOTE: prefix -es1- is a blob to be used with ws1.0 silicon. The blob without prefix is for ws2.0 silicon.
NOTE: you can refer to http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Build_scripts_examples section and use scripts after adding append from steps 9,14

Build SDK

Please follow these instruction to build SDK http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Build_SDK

Flashing firmware

The firmware files are generated during BSP build procedure and are located in the deploy directory.
You can verify its content:

$ ls -1 ./tmp/deploy/images/eagle/*.srec
./tmp/deploy/images/eagle/bl2-eagle.srec
./tmp/deploy/images/eagle/bl31-eagle.srec
./tmp/deploy/images/eagle/bootparam_sa0.srec
./tmp/deploy/images/eagle/cert_header_sa3.srec
./tmp/deploy/images/eagle/cert_header_sa6.srec
./tmp/deploy/images/eagle/cr7-eagle.srec
./tmp/deploy/images/eagle/u-boot-elf-eagle.srec
Writing data (Yocto v2.23.1)
bootparam_sa0.srec 0xE6320000 0x000000 Loader(Boot parameter)
cr7-eagle.srec 0xE6304000 0x040000 CR7 Loader
cert_header_sa3.srec 0xE6320000 0x0C0000 Loader(Certification)
bl2-eagle.srec 0xE6344000 0x140000 CA53 Loader
cert_header_sa6.srec 0xE6320000 0x180000 Loader(Certification)
bl31-eagle.srec 0x44000000 0x1C0000 ARM Trusted Firmware
u-boot-elf-eagle.srec 0x50000000 0x640000 U-Boot
  1. Power off the board
  2. Use SW22
    
  3. Set SW as follows:
  4. SW7[all]=OFF
    SW5=ON
    SW3[1]=OFF, SW3[2]=ON, SW3[3]=OFF, SW3[4]=OFF, SW3[5]=OFF, SW3[6]=OFF
    
  5. Power on the board
  6. Use SW22
    Boot ROM start and provides input
    
  7. Load File:AArch32 Gen3 V3M Scif MiniMon EAGLE V0.09.mot.zip. In console provide the following inputs:
  8. type "ctrl+A S" and select upload method "ascii", then choose file for uploading "AArch32_Gen3_V3M_Scif_MiniMon_EAGLE_V0.09.mot", after upload finished press any key.
    Minimonitor starts and provides prompts on console
    
  9. Change SW as follows:
  10. SW3[1]=OFF, SW3[2]=ON, SW3[3]=ON, SW3[4]=OFF, SW3[5]=ON, SW3[6]=ON
    
  11. Erase flash. In console execute xcs command and provide the following inputs:
  12. 3
    y
    y
    
  13. Flash bootparam_sa0.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
  14. 3
    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
    
  15. Flash cr7-eagle.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
  16. 3
    y
    e6304000
    40000
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "cr7-eagle.srec", after upload finished press any key
    y
    
  17. Flash cert_header_sa3.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
  18. 3
    y
    e6320000
    c0000
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "cert_header_sa3.srec", after upload finished press any key
    y
    
  19. Flash bl2-eagle.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
  20. 3
    y
    e6344000
    140000
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "bl2-eagle.srec", after upload finished press any key
    y
    
  21. Flash cert_header_sa6.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
  22. 3
    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
    
  23. Flash bl31-eagle.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
  24. 3
    y
    44000000
    1C0000
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "bl31-eagle.srec", after upload finished press any key
    y
    
  25. Flash u-boot-elf-eagle.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
  26. 3
    y
    50000000
    640000
    type "ctrl+A S" and select upload method "ascii", then choose file for uploading "u-boot-elf-eagle.srec", after upload finished press any key
    y
    
  27. Reset the board
  28. Press SW36
    


U-Boot Environment

Please follow these instruction to boot from network http://elinux.org/R-Car/Boards/Yocto-Gen3-ADAS#Loading_kernel_via_TFTP_and_rootfs_via_NFS
For Eagle board you must use the following dtb file:
For Yocto v2.23.1:

Image-r8a7797-es1-eagle.dtb
Image-r8a7797-es1-eagle-function.dtb
Image-r8a7797-eagle.dtb
Image-r8a7797-eagle-function.dtb

For Yocto v3.9.0:

Image-r8a77970-es1-eagle.dtb
Image-r8a77970-es1-eagle-function.dtb
Image-r8a77970-eagle.dtb
Image-r8a77970-eagle-function.dtb

ADAS test applications

TBD

Legacy BSP