Difference between revisions of "RZ-G/Boards/Yocto 2.0"
(Add description about microSD boot) |
Renesas-rz (talk | contribs) m |
||
Line 1: | Line 1: | ||
{{TOC right}} | {{TOC right}} | ||
− | This page contains information on building | + | This page contains information on building a Yocto 2.0 based Linux BSP for the [[RZ-G/Boards/SK-RZG1E | Renesas RZ/G1E]] and [[RZ-G/Boards/SK-RZG1M | Renesas RZ/G1M]] Starter Kit boards. |
− | <br/><br/>[http://elinux.org/RZ-G/Boards/Yocto Click here for instructions on building Yocto 1.6.1]. | + | <br/><br/>[http://elinux.org/RZ-G/Boards/Yocto Click here for instructions on building a Yocto 1.6.1 BSP]. |
− | == Supported Linux distributions == | + | == Supported Linux Host distributions == |
− | [http://git.yoctoproject.org/cgit/cgit.cgi/poky/?h=jethro Yocto 2.0 (Jethro)] is compatible with various Linux distributions - Ubuntu 14 and 15, Debian 7 and 8, Fedora 21 and 21 and others. For a complete list of the supported distributions see the [http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#detailed-supported-distros Supported Linux Distributions] section of the Yocto 2.0 Reference Manual. Please use one of the distributions on that list, e.g. Ubuntu 14.04 LTS. | + | [http://git.yoctoproject.org/cgit/cgit.cgi/poky/?h=jethro Yocto 2.0 (Jethro)] is compatible with various Linux Host distributions - Ubuntu 14 and 15, Debian 7 and 8, Fedora 21 and 21 and others. For a complete list of the supported distributions see the [http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#detailed-supported-distros Supported Linux Distributions] section of the Yocto 2.0 Reference Manual. Please use one of the distributions on that list, e.g. Ubuntu 14.04 LTS. |
== Preliminary steps == | == Preliminary steps == | ||
<ol> | <ol> | ||
− | <li> | + | <li> Install the required host packages:<br/> |
− | |||
− | |||
− | |||
− | |||
− | |||
'''Ubuntu and Debian''' | '''Ubuntu and Debian''' | ||
<pre> | <pre> | ||
Line 28: | Line 23: | ||
Refer to [http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#required-packages-for-the-host-development-system Yocto Project Quick Start] for more information. | Refer to [http://www.yoctoproject.org/docs/2.0/ref-manual/ref-manual.html#required-packages-for-the-host-development-system Yocto Project Quick Start] for more information. | ||
</li> | </li> | ||
+ | |||
+ | <li>Download the proprietary Multimedia and Graphics evaluation libraries for RZ/G from Renesas: | ||
+ | <br/>https://www.renesas.com/en-us/software/D6000548.html | ||
+ | <br/>Download the related kernel drivers as well: | ||
+ | <br/>https://www.renesas.com/en-us/software/D6000544.html <br/> | ||
+ | <br/> | ||
+ | </li> | ||
+ | |||
+ | <li>Download the helper scripts that will set up the build environment: | ||
+ | <br/>[[File:setup-bsp-build-yocto2.0.sh]] | ||
+ | <br/>[[File:setup-demos-build-yocto2.0.sh]] | ||
+ | </li> | ||
+ | |||
</ol> | </ol> | ||
== Building the BSP for the Renesas RZ/G1 Starter Kit Boards == | == Building the BSP for the Renesas RZ/G1 Starter Kit Boards == | ||
<ol> | <ol> | ||
− | <li>Create a directory and switch to it <br/> | + | <li>Create a directory and switch to it:<br/> |
Warning! Yocto builds require a lot of disk space (up to 100 GB). Make sure you have got enough before starting the build. | Warning! Yocto builds require a lot of disk space (up to 100 GB). Make sure you have got enough before starting the build. | ||
<pre> | <pre> |
Revision as of 14:07, 28 June 2017
This page contains information on building a Yocto 2.0 based Linux BSP for the Renesas RZ/G1E and Renesas RZ/G1M Starter Kit boards.
Click here for instructions on building a Yocto 1.6.1 BSP.
Supported Linux Host distributions
Yocto 2.0 (Jethro) is compatible with various Linux Host distributions - Ubuntu 14 and 15, Debian 7 and 8, Fedora 21 and 21 and others. For a complete list of the supported distributions see the Supported Linux Distributions section of the Yocto 2.0 Reference Manual. Please use one of the distributions on that list, e.g. Ubuntu 14.04 LTS.
Preliminary steps
- Install the required host packages:
Ubuntu and Debiansudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat
Fedora
sudo dnf install gawk make wget tar bzip2 gzip python unzip perl patch \ diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \ ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue socat \ findutils which
Refer to Yocto Project Quick Start for more information.
- Download the proprietary Multimedia and Graphics evaluation libraries for RZ/G from Renesas:
https://www.renesas.com/en-us/software/D6000548.html
Download the related kernel drivers as well:
https://www.renesas.com/en-us/software/D6000544.html
- Download the helper scripts that will set up the build environment:
File:Setup-bsp-build-yocto2.0.sh
File:Setup-demos-build-yocto2.0.sh
Building the BSP for the Renesas RZ/G1 Starter Kit Boards
- 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=<path-to-your-build-directory> mkdir $WORK cd $WORK
- Clone the 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 3b223f75eec1738fbc913858e8e11c8305e3edcb cd $WORK/meta-openembedded git checkout -b tmp dc5634968b270dde250690609f0015f881db81f2 cd $WORK/meta-linaro git checkout -b tmp 12993e6bc8658ee37d303d8d59007f8dd9ab2b30
Other versions are not tested for compatibility.
-
Clone the Renesas BSP layer:
cd $WORK git clone https://github.com/renesas-rz/meta-renesas
-
Switch to the yocto_2.0 branch:
cd $WORK/meta-renesas git checkout yocto_2.0
-
Download the proprietary libraries from
https://www.renesas.com/en-us/software/D6000548.html
and related kernel drivers from https://www.renesas.com/en-us/software/D6000544.html -
Create an install folder for the proprietary libraries:
cd $WORK mkdir proprietary
Copy the downloaded proprietary libraries into this new folder, e.g.:
cp ~/Downloads/RZG_Series_Evaluation_Software_Package* $WORK/proprietary
-
Unzip the proprietary libraries, e.g.:
cd $WORK/proprietary unzip RZG_Series_Evaluation_Software_Package_for_Linux-20161011.tar.gz.zip unzip RZG_Series_Evaluation_Software_Package_of_Linux_Drivers-20161011.tar.gz.zip
You should see the following files:
$ ls -l $WORK/proprietary total 4.3M -rw-rw-r-- 1 builduser builduser 3.1M Dec 06 10:25 RZG_Series_Evaluation_Software_Package_for_Linux-20101011.tar.gz -rw-rw-r-- 1 builduser builduser 1.2M Dec 06 10:25 RZG_Series_Evaluation_Software_Package_of_Linux_Drivers-20161011.tar.gz
-
Populate the meta-renesas layer with graphics and multimedia drivers:
cd $WORK/meta-renesas/meta-rzg1 ./copy_gfx_software_<board>.sh ../../proprietary ./copy_mm_software_lcb.sh ../../proprietary
-
Setup build environment:
cd $WORK source poky/oe-init-build-env
-
Prepare default configuration files:
cd $WORK/build cp ../meta-renesas/meta-rzg1/templates/<board>/bblayers.conf ./conf
cp ../meta-renesas/meta-rzg1/templates/<board>/local.conf ./conf/local.conf
Edit local.conf to enable/disable graphics and multimedia proprietary drivers support.
-
Start the build
bitbake core-image-weston
Building the image can take up to a few hours depending on your host system performance.
After the build has been completed successfully, 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.
-
Bitbake has generated all the necessary files in ./tmp/deploy/images directory.
uImage is the kernel image, uImage-r8a7745-skrzg1e.dtb is the device tree file, uImage+dtb is the combined kernel and device tree image, core-image-weston-skrzg1e.tar.bz2 is the rootfs, modules-skrzg1e.tgz are the kernel modules. - You can now boot the RZ/G1E or RZ/G1M Starter Kit boards over TFTP and NFS. You can also boot from microSD but note that the microSD slot is recognized as mmcblk1.