R-Car/Boards/Stout:View

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

Refer to Stout page

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 |acc 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 Gen4 minicube automotive camera (OV10635, MAX9271) Maxim OV10635 camera 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.   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   Set new state of muxes four AVB configuration echo -n avb_state > /sys/devices/mux.11/state  

Build image
First please visit Main R-Car Yocto Page and perform all necessary preparation steps like cloning repositories and copy binaries and config files. Then:   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   Switch to proper branches/commits cd $WORK/meta-qt5 git checkout r-car-gen2 cd $WORK/meta-clang git checkout r-car-gen2   Update conf files in $WORK/build/conf/ cp meta-renesas-quick-start/docs/sample/conf/stout/* $WORK/build/conf/   Build and install image bitbake core-image-weston-ramdisk   Prepare SD card and copy next files to SD card root directory ./tmp/deploy/images/stout/core-image-weston-ramdisk-stout.cpio.gz.u-boot ./tmp/deploy/images/stout/uImage ./tmp/deploy/images/stout/uImage-r8a7790-stout-view.dtb </li>  Edit U-Boot environment configuration: setenv loadramdisk 'ext4load mmc 0:1 0x4C000000 /core-image-weston-ramdisk-stout.cpio.gz.u-boot' setenv loadkernel 'ext4load mmc 0:1 0x40007fc0 /uImage; ext4load mmc 0:1 0x40f00000 /uImage-r8a7790-stout-view.dtb' setenv setcpld 'cpld write 1 0x4966' setenv bootargs 'console=ttySC0,38400 ignore_loglevel rw root=/dev/ram rootwait ip=none vmalloc=384M' setenv bootramdisk 'bootm 0x40007fc0 0x4C000000 0x40f00000' setenv bootcmd 'run loadramdisk; run loadkernel; run setcpld; run bootramdisk' setenv bootmlow 0x41000000 setenv bootmsize 0x0B000000 saveenv </li> </ol>

Start Surroundview
After board successfully booted you will be able to run SurroundView application. See the manual for instructions R-Car Surround View manual on how to run and use SurroundView application. Example of usage with cameras: cd /home/root/sv sv-utest -v /dev/video0,/dev/video1,/dev/video2,/dev/video3