R-Car/Boards/V3MSK

From eLinux.org
< R-Car
Revision as of 06:32, 24 January 2018 by Cogente (talk | contribs) (Flashing firmware)
Jump to: navigation, search

Introduction

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

Hardware

This section contains information about R-Car V3M Starter Kit board hardware.

Board Layout

V3m SK TOP Lables.png

V3m SK BOT Lables.png

Where to buy

TBD

V3M Starter Kit Board Documentation

Official Renesas documentation

Quick Start

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:

cp $WORK/meta-rcar/meta-rcar-gen3-adas/docs/sample/conf/v3msk/linaro-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 for V3M Starter Kit board or ULCB Kingfisher board:

Image-r8a7797-v3msk.dtb
Image-r8a7797-v3msk-kf.dtb
Image-r8a7797-v3msk-kf-v0.dtb
Image-r8a7797-v3msk-vbm.dtb

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 8,13

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 located in deploy directory.

Writing data (Yocto v2.23.1)
Filename Program Top Address Flash Save Address Description
bootparam_sa0.srec 0xE6320000 0x000000 Loader(Boot parameter)
bl2-v3msk.srec 0xE6304000 0x040000 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
  1. Power off the board
  2. Use wall power switch
    
  3. Set SW as follows:
  4. SW4[1]=OFF, SW4[2]=OFF, SW4[3]=OFF, SW4[4]=OFF, SW4[5]=OFF, SW4[6]=ON, SW4[7]=OFF, SW4[8]=OFF
    
  5. Power on the board
  6. Use wall power switch
    Boot ROM start and provides input
    
  7. Load Minimonitor AArch64_Gen3_V3M_Scif_MiniMon_EAGLE_V0.09.mot (obtain this loader from Renesas). In console provide the following inputs:
  8. type "ctrl+A S" and select upload method "ascii", then choose file for uploading "AArch64_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. SW4[1]=ON, SW4[2]=ON, SW4[3]=OFF, SW4[4]=ON, SW4[5]=OFF, SW4[6]=ON, SW4[7]=OFF, SW4[8]=OFF
    
  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 bl2-v3msk.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 "bl2-v3msk.srec", after upload finished press any key
    y
    
  17. Flash cert_header_sa6.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
  18. 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
    
  19. Flash bl31-v3msk.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
  20. 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
    
  21. Flash u-boot-elf-v3msk.srec. In console execute xls2 command (load program to qspi flash) and provide the following inputs:
  22. 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
    
  23. Reset the board
  24. 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:

Image-r8a7797-v3msk.dtb
Image-r8a7797-v3msk-kf.dtb
Image-r8a7797-v3msk-kf-v0.dtb
Image-r8a7797-v3msk-vbm.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.

Step 1.



1.2 Unscrew all hex standoffs and put away plastic back plate.

Step 2.



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.

Step 3.



2.3 Make sure that boards are aligning each other closely, without a gap.

No gap between the connected boards.



3. Check jumper position according to the Step 4. picture (marked with red).

Step 4.


Jumper SW1 controlls cameras power supply.

SW1 Jumper Settings
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.

Step 5.



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.

Step 6.



4.3 Start the cable insertion by pushing the latch's edge.

Step 7.



4.4 Finish the connection. Step 8. shows final latch position.

Step 8.



5. Now you can plug cameras to the Fakra ports.

Camera connected to the V3M SK Expansion Board


Automotive Power and Communication cable with USB adapter