Difference between revisions of "R-Car/Boards/V3MSK"
(→V3M Starter Kit Board Documentation) |
(→Build BSP images) |
||
(25 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
== Introduction == | == Introduction == | ||
− | This is the Wiki for the Renesas R-Car V3M Starter Kit board ( | + | This is the Wiki for the Renesas R-Car V3M Starter Kit board (RTP0RC77970SEB0010S). <br> |
− | 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. <br> | ||
+ | Refer to the official page for [https://www.renesas.com/en-eu/solutions/automotive/adas/solution-kits/rcar-v3m-starter-kit.html R-Car V3M Starter Kit]. <br> | ||
== Hardware == | == Hardware == | ||
Line 16: | Line 18: | ||
== Where to buy == | == Where to buy == | ||
− | + | Contact [mailto:renesas-autonomy@renesas.com Renesas representatives] | |
== V3M Starter Kit Board Documentation == | == V3M Starter Kit Board Documentation == | ||
− | [https://www.renesas.com/en- | + | [https://www.renesas.com/en-eu/doc/products/rcar/R12UT0003ED0200.pdf Official Renesas documentation] |
== 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 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,6 - skip these steps <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/v3msk/linaro-gcc/bsp/*.conf ./conf/ | cp $WORK/meta-rcar/meta-rcar-gen3-adas/docs/sample/conf/v3msk/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/v3msk/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 35: | Line 45: | ||
bitbake core-image-minimal | bitbake core-image-minimal | ||
</pre> | </pre> | ||
− | At step 16 use images for V3M Starter Kit | + | At step 16 use images depending on board: |
+ | <ol> | ||
+ | ===== For Yocto v2.23.1: ===== | ||
+ | for V3M Starter Kit board: <br/> | ||
<pre> | <pre> | ||
+ | Image-r8a7797-es1-v3msk.dtb | ||
Image-r8a7797-v3msk.dtb | Image-r8a7797-v3msk.dtb | ||
+ | </pre> | ||
+ | for V3M Starter Kit expansion board VideoBox Mini: | ||
+ | <pre> | ||
+ | Image-r8a7797-es1-v3msk-vbm.dtb | ||
+ | Image-r8a7797-es1-v3msk-vbm-v2.dtb | ||
+ | Image-r8a7797-v3msk-vbm.dtb | ||
+ | Image-r8a7797-v3msk-vbm-v2.dtb | ||
+ | </pre> | ||
+ | for ULCB expansion board Kingfisher: | ||
+ | <pre> | ||
+ | Image-r8a7797-es1-v3msk-kf.dtb | ||
Image-r8a7797-v3msk-kf.dtb | Image-r8a7797-v3msk-kf.dtb | ||
Image-r8a7797-v3msk-kf-v0.dtb | Image-r8a7797-v3msk-kf-v0.dtb | ||
− | |||
</pre> | </pre> | ||
+ | ===== For Yocto v3.9.0 and later: ===== | ||
+ | for V3M Starter Kit board: <br/> | ||
+ | <pre> | ||
+ | Image-r8a77970-es1-v3msk.dtb | ||
+ | Image-r8a77970-v3msk.dtb | ||
+ | </pre> | ||
+ | for V3M Starter Kit expansion board VideoBox Mini: | ||
+ | <pre> | ||
+ | Image-r8a77970-es1-v3msk-vbm.dtb | ||
+ | Image-r8a77970-es1-v3msk-vbm-v2.dtb | ||
+ | Image-r8a77970-v3msk-vbm.dtb | ||
+ | Image-r8a77970-v3msk-vbm-v2.dtb | ||
+ | </pre> | ||
+ | for ULCB expansion board Kingfisher: | ||
+ | <pre> | ||
+ | Image-r8a77970-es1-v3msk-kf.dtb | ||
+ | Image-r8a77970-v3msk-kf.dtb | ||
+ | Image-r8a77970-v3msk-kf-v0.dtb | ||
+ | </pre> | ||
+ | </ol> | ||
− | 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 | + | 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 === | ||
Line 49: | Line 94: | ||
== Flashing firmware == | == Flashing firmware == | ||
+ | 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/v3msk/*.srec | ||
+ | ./tmp/deploy/images/v3msk/bl2-v3msk.srec | ||
+ | ./tmp/deploy/images/v3msk/bl31-v3msk.srec | ||
+ | ./tmp/deploy/images/v3msk/bootparam_sa0.srec | ||
+ | ./tmp/deploy/images/v3msk/cr7-v3msk.srec | ||
+ | ./tmp/deploy/images/v3msk/cert_header_sa3.srec | ||
+ | ./tmp/deploy/images/v3msk/cert_header_sa6.srec | ||
+ | ./tmp/deploy/images/v3msk/u-boot-elf-v3msk.srec | ||
+ | </pre> | ||
+ | |||
{| class="wikitable" | {| class="wikitable" | ||
|+ Writing data (Yocto v2.23.1) | |+ Writing data (Yocto v2.23.1) | ||
Line 56: | Line 114: | ||
| bootparam_sa0.srec || 0xE6320000 || 0x000000 || Loader(Boot parameter) | | bootparam_sa0.srec || 0xE6320000 || 0x000000 || Loader(Boot parameter) | ||
|- | |- | ||
− | | | + | | cr7-v3msk.srec || 0xE6304000 || 0x040000 || CR7 Loader |
+ | |- | ||
+ | | cert_header_sa3.srec || 0xE6320000 || 0x0C0000 || Loader(Certification) | ||
+ | |- | ||
+ | | bl2-v3msk.srec || 0xE6344000 || 0x140000 || CA53 Loader | ||
|- | |- | ||
| cert_header_sa6.srec || 0xE6320000 || 0x180000 || Loader(Certification) | | cert_header_sa6.srec || 0xE6320000 || 0x180000 || Loader(Certification) | ||
Line 75: | Line 137: | ||
</li> | </li> | ||
<pre> | <pre> | ||
− | SW4[1]=OFF, SW4[2]=OFF, SW4[3]=OFF, SW4[4]=OFF, SW4[5]=OFF, SW4[6]= | + | SW4[1]=OFF, SW4[2]=OFF, SW4[3]=OFF, SW4[4]=OFF, SW4[5]=OFF, SW4[6]=OFF, SW4[7]=OFF, SW4[8]=OFF |
</pre> | </pre> | ||
<li> Power on the board | <li> Power on the board | ||
Line 85: | Line 147: | ||
</li> | </li> | ||
− | <li> Load | + | <li> Load [[File:AArch32_Gen3_V3M_Scif_MiniMon_EAGLE_V0.09.mot.zip]]. In console provide the following inputs: |
</li> | </li> | ||
<pre> | <pre> | ||
− | type "ctrl+A S" and select upload method "ascii", then choose file for uploading " | + | 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 | Minimonitor starts and provides prompts on console | ||
</pre> | </pre> | ||
Line 95: | Line 157: | ||
</li> | </li> | ||
<pre> | <pre> | ||
− | SW4[1]=ON, SW4[2]=ON, SW4[3]=OFF, SW4[4]=ON, SW4[5]=OFF, SW4[6]= | + | SW4[1]=ON, SW4[2]=ON, SW4[3]=OFF, SW4[4]=ON, SW4[5]=OFF, SW4[6]=OFF, SW4[7]=OFF, SW4[8]=OFF |
</pre> | </pre> | ||
Line 117: | Line 179: | ||
</pre> | </pre> | ||
− | <li> Flash | + | <li> Flash cr7-v3msk.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs: |
</li> | </li> | ||
<pre> | <pre> | ||
Line 124: | Line 186: | ||
e6304000 | e6304000 | ||
40000 | 40000 | ||
+ | type "ctrl+A S" and select upload method "ascii", then choose file for uploading "cr7-v3msk.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-v3msk.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-v3msk.srec", after upload finished press any key | type "ctrl+A S" and select upload method "ascii", then choose file for uploading "bl2-v3msk.srec", after upload finished press any key | ||
y | y | ||
Line 173: | Line 257: | ||
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 V3MSK board you must use one of the following dtb files: | + | For V3MSK board you must use one of the following dtb files: <br/> |
+ | For Yocto v2.23.1: | ||
<pre> | <pre> | ||
+ | Image-es1-r8a7797-v3msk.dtb | ||
+ | Image-es1-r8a7797-v3msk-kf.dtb | ||
+ | Image-es1-r8a7797-v3msk-vbm.dtb | ||
+ | Image-es1-r8a7797-v3msk-vbm-v2.dtb | ||
Image-r8a7797-v3msk.dtb | Image-r8a7797-v3msk.dtb | ||
Image-r8a7797-v3msk-kf.dtb | Image-r8a7797-v3msk-kf.dtb | ||
Image-r8a7797-v3msk-kf-v0.dtb | Image-r8a7797-v3msk-kf-v0.dtb | ||
Image-r8a7797-v3msk-vbm.dtb | Image-r8a7797-v3msk-vbm.dtb | ||
+ | Image-r8a7797-v3msk-vbm-v2.dtb | ||
+ | </pre> | ||
+ | For Yocto v3.9.0: | ||
+ | <pre> | ||
+ | Image-es1-r8a77970-v3msk.dtb | ||
+ | Image-es1-r8a77970-v3msk-kf.dtb | ||
+ | Image-es1-r8a77970-v3msk-vbm.dtb | ||
+ | Image-es1-r8a77970-v3msk-vbm-v2.dtb | ||
+ | Image-r8a77970-v3msk.dtb | ||
+ | Image-r8a77970-v3msk-kf.dtb | ||
+ | Image-r8a77970-v3msk-kf-v0.dtb | ||
+ | Image-r8a77970-v3msk-vbm.dtb | ||
+ | Image-r8a77970-v3msk-vbm-v2.dtb | ||
</pre> | </pre> | ||
Line 239: | Line 341: | ||
<br> | <br> | ||
4.1 Find automotive Power and Communication cable and it's port on the V3M SK Expansion Board. | 4.1 Find automotive Power and Communication cable and it's port on the V3M SK Expansion Board. | ||
+ | {{Warning| To avoid board damage, automotive cable need to be connected to 12V power supply only. Do not connect power cable to the V3M SK board power port.}} | ||
<br> | <br> | ||
[[File:V3MSK_Exp_St_6.png||thumb|none|700px|Step 5.]] | [[File:V3MSK_Exp_St_6.png||thumb|none|700px|Step 5.]] |
Revision as of 15:56, 23 October 2020
Introduction
This is the Wiki for the Renesas R-Car V3M Starter Kit board (RTP0RC77970SEB0010S).
Refer to the R-Car page for information about Renesas' R-Car SoC family.
Refer to the official page for R-Car V3M Starter Kit.
Hardware
This section contains information about R-Car V3M Starter Kit board hardware.
Board Layout
Where to buy
Contact Renesas representatives
V3M Starter Kit Board Documentation
Official Renesas documentation
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/v3msk/linaro-gcc/bsp/*.conf ./conf/
For Yocto v3.9.0 and later:
cp $WORK/meta-rcar/meta-rcar-gen3-adas/docs/sample/conf/v3msk/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 images depending on board:
For Yocto v2.23.1:
for V3M Starter Kit board:
Image-r8a7797-es1-v3msk.dtb Image-r8a7797-v3msk.dtb
for V3M Starter Kit expansion board VideoBox Mini:
Image-r8a7797-es1-v3msk-vbm.dtb Image-r8a7797-es1-v3msk-vbm-v2.dtb Image-r8a7797-v3msk-vbm.dtb Image-r8a7797-v3msk-vbm-v2.dtb
for ULCB expansion board Kingfisher:
Image-r8a7797-es1-v3msk-kf.dtb Image-r8a7797-v3msk-kf.dtb Image-r8a7797-v3msk-kf-v0.dtb
For Yocto v3.9.0 and later:
for V3M Starter Kit board:
Image-r8a77970-es1-v3msk.dtb Image-r8a77970-v3msk.dtb
for V3M Starter Kit expansion board VideoBox Mini:
Image-r8a77970-es1-v3msk-vbm.dtb Image-r8a77970-es1-v3msk-vbm-v2.dtb Image-r8a77970-v3msk-vbm.dtb Image-r8a77970-v3msk-vbm-v2.dtb
for ULCB expansion board Kingfisher:
Image-r8a77970-es1-v3msk-kf.dtb Image-r8a77970-v3msk-kf.dtb Image-r8a77970-v3msk-kf-v0.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/v3msk/*.srec ./tmp/deploy/images/v3msk/bl2-v3msk.srec ./tmp/deploy/images/v3msk/bl31-v3msk.srec ./tmp/deploy/images/v3msk/bootparam_sa0.srec ./tmp/deploy/images/v3msk/cr7-v3msk.srec ./tmp/deploy/images/v3msk/cert_header_sa3.srec ./tmp/deploy/images/v3msk/cert_header_sa6.srec ./tmp/deploy/images/v3msk/u-boot-elf-v3msk.srec
Filename | Program Top Address | Flash Save Address | Description |
---|---|---|---|
bootparam_sa0.srec | 0xE6320000 | 0x000000 | Loader(Boot parameter) |
cr7-v3msk.srec | 0xE6304000 | 0x040000 | CR7 Loader |
cert_header_sa3.srec | 0xE6320000 | 0x0C0000 | Loader(Certification) |
bl2-v3msk.srec | 0xE6344000 | 0x140000 | CA53 Loader |
cert_header_sa6.srec | 0xE6320000 | 0x180000 | Loader(Certification) |
bl31-v3msk.srec | 0x44000000 | 0x1C0000 | ARM Trusted Firmware |
u-boot-elf-v3msk.srec | 0x50000000 | 0x640000 | U-Boot |
- Power off the board
- Set SW as follows:
- Power on the board
- Load File:AArch32 Gen3 V3M Scif MiniMon EAGLE V0.09.mot.zip. In console provide the following inputs:
- Change SW as follows:
- Erase flash. In console execute xcs command and provide the following inputs:
- Flash bootparam_sa0.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
- Flash cr7-v3msk.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
- Flash cert_header_sa3.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
- Flash bl2-v3msk.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
- Flash cert_header_sa6.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
- Flash bl31-v3msk.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
- Flash u-boot-elf-v3msk.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
- Reset the board
Use wall power switch
SW4[1]=OFF, SW4[2]=OFF, SW4[3]=OFF, SW4[4]=OFF, SW4[5]=OFF, SW4[6]=OFF, SW4[7]=OFF, SW4[8]=OFF
Use wall power switch Boot ROM start and provides input
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
SW4[1]=ON, SW4[2]=ON, SW4[3]=OFF, SW4[4]=ON, SW4[5]=OFF, SW4[6]=OFF, SW4[7]=OFF, SW4[8]=OFF
3 y y
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
3 y e6304000 40000 type "ctrl+A S" and select upload method "ascii", then choose file for uploading "cr7-v3msk.srec", after upload finished press any key y
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
3 y e6344000 140000 type "ctrl+A S" and select upload method "ascii", then choose file for uploading "bl2-v3msk.srec", after upload finished press any key y
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
3 y 44000000 1C0000 type "ctrl+A S" and select upload method "ascii", then choose file for uploading "bl31-v3msk.srec", after upload finished press any key y
3 y 50000000 640000 type "ctrl+A S" and select upload method "ascii", then choose file for uploading "u-boot-elf-v3msk.srec", after upload finished press any key y
Press SW3
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 V3MSK board you must use one of the following dtb files:
For Yocto v2.23.1:
Image-es1-r8a7797-v3msk.dtb Image-es1-r8a7797-v3msk-kf.dtb Image-es1-r8a7797-v3msk-vbm.dtb Image-es1-r8a7797-v3msk-vbm-v2.dtb Image-r8a7797-v3msk.dtb Image-r8a7797-v3msk-kf.dtb Image-r8a7797-v3msk-kf-v0.dtb Image-r8a7797-v3msk-vbm.dtb Image-r8a7797-v3msk-vbm-v2.dtb
For Yocto v3.9.0:
Image-es1-r8a77970-v3msk.dtb Image-es1-r8a77970-v3msk-kf.dtb Image-es1-r8a77970-v3msk-vbm.dtb Image-es1-r8a77970-v3msk-vbm-v2.dtb Image-r8a77970-v3msk.dtb Image-r8a77970-v3msk-kf.dtb Image-r8a77970-v3msk-kf-v0.dtb Image-r8a77970-v3msk-vbm.dtb Image-r8a77970-v3msk-vbm-v2.dtb
ADAS test applications
TBD
Installing V3M Starter Kit Expansion Board
Use the following procedure to install Expansion Board to the V3MSK Board.
1. Dismount the back plastic plate from the R-Car V3M Starter Kit board.
1.1 Put the V3M Starter Kit board on the front panel to access to the hex standoffs.
1.2 Unscrew all hex standoffs and put away plastic back plate.
2. Aligning V3M Board Starter Kit to V3M SK Expansion Board.
2.1 Find COM Express connectors on both V3M Starter Kit and Expansion boards.
2.2 Align and carefully push them to each other until COM Express connectors are fully inserted.
To prevent the damage during connecting boards, apply the pressure mainly on the points marked with arrows on Step 3. picture.
2.3 Make sure that boards are aligning each other closely, without a gap.
3. Check jumper position according to the Step 4. picture (marked with red).
Jumper SW1 controlls cameras power supply.
1-2 | 3-4 | Vcameras |
OFF | OFF | 5V |
ON | OFF | 9V |
ON | ON | 11V |
4. Connecting Power and Communication cable.
4.1 Find automotive Power and Communication cable and it's port on the V3M SK Expansion Board.
Warning: | To avoid board damage, automotive cable need to be connected to 12V power supply only. Do not connect power cable to the V3M SK board power port. |
4.2 Plug the Cable in the port. Make sure that the latch in the same position as shows Step 6. picture. and cable is placed to fit the port.
4.3 Start the cable insertion by pushing the latch's edge.
4.4 Finish the connection. Step 8. shows final latch position.
5. Now you can plug cameras to the Fakra ports.