R-Car/Boards/Yocto

This page contains information on building Yocto for Renesas R-Car E2 SILK and Renesas R-Car M2 Porter boards.

Yocto versions
Poky-1.6.1 is supported. Specific commit of meta-openembedded is required.

Building the BSP for Renesas R-Car SILK and Porter
 Create a directory and switch to it Warning! Yocto builds require a lot of disk space (up to 100 GB). Make sure you have got enough before starting the build. export WORK= mkdir $WORK cd $WORK  Clone basic Yocto layers: cd $WORK git clone git://git.yoctoproject.org/poky git clone git://git.openembedded.org/meta-openembedded git clone git://git.linaro.org/openembedded/meta-linaro.git   Switch to proper branches/commits cd $WORK/poky git checkout -b tmp yocto-1.6.1 cd $WORK/meta-openembedded git checkout -b tmp dca466c074c9a35bc0133e7e0d65cca0731e2acf cd $WORK/meta-linaro git checkout -b tmp 8a0601723c06fdb75e62aa0f0cf15fc9d7d90167 Another versions are not tested for compatibility. 

 Clone Renesas BSP layer and switch to the proper branch: cd $WORK git clone http://git.yoctoproject.org/cgit/cgit.cgi/meta-renesas/ cd meta-renesas git checkout -b tmp 1c029141738865c4500f47549807411f4da469a8 

 Clone Renesas LCB layer and switch to the proper branch: cd $WORK git clone https://github.com/cogentembedded/meta-renesas-lcb.git cd meta-renesas-lcb git checkout -b tmp origin/v160   Download proprietary driver modules from http://www.renesas.com/secret/r_car_download/rcar_demoboard.jsp and unzip them to $WORK/proprietary folder. You should see the following file: [builduser@builduser meta-renesas-lcb]$ ls -lh $WORK/proprietary total 4.2M -rw-r--r--. 1 builduser builduser 3.0M Jan 9 15:26 R-Car_Series_Evaluation_Software_Package_for_Linux-20150109.tar.gz -rw-r--r--. 1 builduser builduser 1.2M Jan 9 12:49 R-Car_Series_Evaluation_Software_Package_of_Linux_Drivers-20150109.tar.gz   Populate meta-renesas-lcb with graphics drivers. For SILK board run: cd $WORK/meta-renesas-lcb ./copy_gfx_software_silk.sh ../proprietary For Porter board run: cd $WORK/meta-renesas-lcb ./copy_gfx_software_porter.sh ../proprietary   Populate meta-renesas-lcb with multimedia drivers. cd $WORK/meta-renesas-lcb ./copy_mm_software_lcb.sh ../proprietary </li>

 Setup build environment cd $WORK source poky/oe-init-build-env </li>

 Prepare default configuration files. For SILK board run: cd $WORK/build cp ../meta-renesas-lcb/lcb-configs/bblayers.conf ./conf cp ../meta-renesas-lcb/lcb-configs/local-silk.conf ./conf/local.conf For Porter board run: cd $WORK/build cp ../meta-renesas-lcb/lcb-configs/bblayers.conf ./conf cp ../meta-renesas-lcb/lcb-configs/local-porter.conf ./conf/local.conf Edit local.conf to select graphic environment (X11 or wayland/weston) and enable/disable graphics and multimedia proprietary drivers support. </li>

 Start the build

For weston/wayland: bitbake core-image-weston For X11: bitbake core-image-x11 </li>

 Building image can take upto a few hours depending on your host system performance. After the build has been completed successfuly, you should see the output similar to: NOTE: Tasks Summary: Attempted 4704 tasks of which 31 didn't need to be rerun and all succeeded. and the command prompt should return. </li>

 Bitbake has generated all the necessary files in ./tmp/deploy/images directory. You can verify its content: [builduser]$ ls -lh `find ./tmp/deploy/images/silk/ -maxdepth 1 -type l -print` lrwxrwxrwx. 1 builduser builduser 50 Dec 9 02:47 ./tmp/deploy/images/silk/core-image-x11-silk.manifest -> core-image-x11-silk-20141208223655.builduserfs.manifest lrwxrwxrwx. 1 builduser builduser 49 Dec 9 02:47 ./tmp/deploy/images/silk/core-image-x11-silk.tar.bz2 -> core-image-x11-silk-20141208223655.builduserfs.tar.bz2 lrwxrwxrwx. 1 builduser builduser 84 Dec 9 02:43 ./tmp/deploy/images/silk/modules-silk.tgz -> modules--3.10+git2eba9c2b1f02bec3295b27f8415575da00d5ffce-r0-silk-20141208223655.tgz lrwxrwxrwx. 1 builduser builduser 52 Dec 9 02:46 ./tmp/deploy/images/silk/u-boot.bin -> u-boot-silk-v2013.01.01+gitAUTOINC+74b16badc2-r0.bin lrwxrwxrwx. 1 builduser builduser 52 Dec 9 02:46 ./tmp/deploy/images/silk/u-boot-silk.bin -> u-boot-silk-v2013.01.01+gitAUTOINC+74b16badc2-r0.bin lrwxrwxrwx. 1 builduser builduser 83 Dec 9 02:43 ./tmp/deploy/images/silk/uImage -> uImage--3.10+git2eba9c2b1f02bec3295b27f8415575da00d5ffce-r0-silk-20141208223655.bin lrwxrwxrwx. 1 builduser builduser 83 Dec 9 02:43 ./tmp/deploy/images/silk/uImage+dtb -> uImage+dtb--3.10+git2eba9c2b1f02bec3295b27f8415575da00d5ffce-r0-silk-20141208223655 lrwxrwxrwx. 1 builduser builduser 91 Dec 9 02:43 ./tmp/deploy/images/silk/uImage-r8a7794-silk.dtb -> uImage--3.10+git2eba9c2b1f02bec3295b27f8415575da00d5ffce-r0-r8a7794-silk-20141208223655.dtb lrwxrwxrwx. 1 builduser builduser 83 Dec 9 02:43 ./tmp/deploy/images/silk/uImage-silk.bin -> uImage--3.10+git2eba9c2b1f02bec3295b27f8415575da00d5ffce-r0-silk-20141208223655.bin lrwxrwxrwx. 1 builduser builduser 79 Dec 9 02:43 ./tmp/deploy/images/silk/zImage -> zImage--3.10+git2eba9c2b1f02bec3295b27f8415575da00d5ffce-r0-silk-20141208223655 lrwxrwxrwx. 1 builduser builduser 83 Dec 9 02:43 ./tmp/deploy/images/silk/zImage+dtb -> zImage+dtb--3.10+git2eba9c2b1f02bec3295b27f8415575da00d5ffce-r0-silk-20141208223655 modules-silk.tgz is compressed Kernel image, core-image-x11-silk.tar.bz2 is the rootfs, modules-silk.tgz are kernel modules. </li>  You can now boot R-Car E2 SILK board over TFTP and NFS </li> </ol>