R-Car/Boards/Yocto

This page contains information on building Yocto for Renesas R-Car E2 SILK board.

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

Building the BSP for Renesas R-Car E2 SILK
 Create a directory and switch to it Warning! Yocto builds require a lot of disk space. Make sure you have got enough. 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 untested. 

 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 and copy proprietary parts.  Graphic drivers (required)  Download LCB proprietary drivers. Put both tarballs under ‘$WORK/proprietary’ folder. mkdir $WORK/proprietary cd <download_path> cp R-Car_Series_Evaluation_Software_Package_for_Linux-20141210.tar.gz $WORK/proprietary/ cp R-Car_Series_Evaluation_Software_Package_of_Linux_Drivers-20141210.tar.gz $WORK/proprietary/ </li>  Run 'copy_gfx_software_[silk|porter].sh' script to populate meta-renesas-lcb layer with the graphics drivers cd $WORK/meta-renesas-lcb ./copy_gfx_software_silk.sh ../proprietary </li> </ol> </li>  Multimedia drivers (optional) <ol>  The 'proprietary' folder should already contain LCB proprietary drivers: </li> R-Car_Series_Evaluation_Software_Package_for_Linux-20141210.tar.gz R-Car_Series_Evaluation_Software_Package_of_Linux_Drivers-20141210.tar.gz </li>  Run copy_mm_software_lcb.sh script to populate meta-renesas-lcb layer with the tarballs cd $WORK/meta-renesas-lcb ./copy_mm_software_lcb.sh ../proprietary </li> </ol> </li> </ul> </li>

 Setup build environment and start the build cd $WORK source poky/oe-init-build-env cp ../meta-renesas-lcb/lcb-configs/bblayers.conf ./conf cp ../meta-renesas-lcb/lcb-configs/local-[silk|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>