Difference between revisions of "R-Car/Boards/Stout:View"

From eLinux.org
Jump to: navigation, search
m (Buld image)
Line 2: Line 2:
  
 
== Introduction ==
 
== Introduction ==
This is the official Wiki for [http://www.renesas.eu/applications/automotive/adas/solution_kits/adas_surround_view_kit/index.jsp Renesas R-Car H2 ADAS Surround View Kit]. <br>
+
This is the official Wiki for [https://www.renesas.com/en-eu/solutions/automotive/adas/solution-kits/adas-surround-view-kit.html Renesas R-Car H2 ADAS Surround View Kit]. <br>
  
  

Revision as of 23:45, 17 November 2016

Introduction

This is the official Wiki for Renesas R-Car H2 ADAS Surround View Kit.


Refer to Stout page

Hardware

Top view
Bottom view

Hardware Features

  • Extension board is connected via 440-pin connector.
  • Extension board takes power from mother board
  • Four camera connectors routed thru max9272
  • Ethernet (1000 Mbps) KZ9031RNXCA phy
  • CAN interface connector

Where to buy

ADAS Surround View Kit could be ordered from RS Components, Renesas product id: Y-R-CAR-ADAS-VIEW-NOW, RS Components product id: 915-5976

NOTE: You would need to order ADAS Starter Kit (Stout board) separately

ADAS Surround View Kit Documentation

Documentation is available at Renesas page. Start with User's Manual document

Tested peripherals

This extension board has been tested with I2C and avb cameras

System with LVDS cameras

Cameras:
IMI IMI Gen4 minicube automotive camera (OV10635, MAX9271)
maxim Maxim OV10635 camera
Fakra Wires

Pin-mux configuration

As mentioned in R-Car/Boards/Stout:CPLD VIN and AVB Ethernet pins are routed thru configurable cpld. Thus before starting surround view application you should configure either VINs 0-3 either Ethernet AVB
Warning! Using 4 VINs blocks sd card.
You should not use the SD card for the rootfs. You can use nfs or a USB stick instead.

  1. Set new state of muxes four VINs configuration
    echo -n vin0_bt656_state > /sys/devices/mux.9/state
    echo -n vin1_bt656_state > /sys/devices/mux.10/state
    echo -n vin2_bt656_state > /sys/devices/mux.11/state
    echo -n vin3_bt656_state > /sys/devices/mux.12/state
    
  2. Set new state of muxes four AVB configuration
    echo -n  avb_state > /sys/devices/mux.11/state
    

Quick Start

Build image

First please visit Main R-Car Yocto Page and peform all necessary preparation steps like cloning repositories and copy binaries and config files. Then:

  1. Clone demo layer and meta-qt5
    git clone https://github.com/CogentEmbedded/meta-renesas-quick-start.git
    git clone https://github.com/CogentEmbedded/meta-qt5.git
    git clone https://github.com/CogentEmbedded/meta-clang.git
    
  2. Switch to proper branches/commits
    cd $WORK/meta-qt5
    git checkout r-car-gen2
    cd $WORK/meta-clang
    git checkout r-car-gen2
    
  3. Add necessary layers to $WORK/build/conf/bblayers.conf
      ${TOPDIR}/../meta-openembedded/meta-ruby \
      ${TOPDIR}/../meta-openembedded/meta-networking \
      ${TOPDIR}/../meta-qt5 \
      ${TOPDIR}/../meta-clang \
      ${TOPDIR}/../meta-renesas-quick-start \
    
  4. Add necessary features to $WORK/build/conf/local.conf
    DISTRO_FEATURES_append = " surroundview "
    
  5. Download the binary archive from http://renesasrulz.com/adas/p/adas-surround-view-kit.aspx and unpack the content to $WORK/meta-renesas-quick-start/adas/recipes-adas/sv/sv You should see the following files:
    [builduser@builduser meta-renesas-lcb]$ ls -lh $WORK/meta-renesas-quick-start/adas/recipes-adas/sv/sv
    total 8.1M
    total 33M
    -rw-rw-r--. 1 builduser builduser 33M Mar 17 18:06 sv_prebuilt_v0.0.30.tar.bz2
    
  6. Build and install image as it's described in [1]
    bitbake core-image-weston
    

After all this steps you can start working with boards and apps.

Start Surroundview

Please refer to the Manual for details about running and calibrating Surround View.

There are two image sources for SurroundView available:

  1. LVDS cameras on ADAS Surround View Kit In order to use LVDS cameras: please set pinmuxes in VIN configuration (see above). You can then start surround view by running:
    run_surroundview_lvds
    
  2. *.mkv files provided by *sv-videos* recipe. No pinmux configuration is necessary. You can then start surround view by running:
    run_surroundview_mkv