RDK Resources

[*ASP Wiki*]

Code Management Facility

Code Releases

RDK Forums

[RDK Conferences]

RDK Support


Papers & Presentations Archive

In the News!

Skip to end of metadata
Go to start of metadata

A tutorial to set up your environment and Download Source Code

The RDK-B code can be obtained from the CMF Gerrit instance using the repo commands below :

$ repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml -b rdkb-20170830
$ repo sync -j4 --no-clone-bundle
  • The -m rdkb.xml in the build sequence above is important. If this is not specified, you will get an RDK-V tree by default.

Note : The above commands illustrate how to access the specific CMF iteration (snapshot) RDK-B_20170830. Substitute the latest iteration currently available in RDK-B Releases page. If you want to get the very latest state of the code (i.e. current development), do not supply a branch, and master will be fetched:

$ repo init -u https://code.rdkcentral.com/r/manifests -m rdkb.xml
$ repo sync -j4 --no-clone-bundle

The first command will download the manifest, while the other command will fetch and checkout all the relevant git trees. Now you have a complete folder structure ready to build the RDK-B OpenEmbedded distro. The Manifest file (manifest.xml or default.xml) defines which repositories the project uses and links to appropriate revisions of each git repository. After completing "repo init", manifest files will be downloaded in ".repo/manifests/" path.

For other details on how to set up your Environment refer to Getting Started with the Code

Build Source Code

Steps to build the Source code:
In order to build the source code, we need to follow two primary steps,
1. Source the environment setup file
2. Build the required image using bitbake
The build instructions are device specific (e.g Emulator, RaspberryPi) and we need to be careful in using the proper environment setup file. We will take example of raspberry-pi and emulator here for reference.

Building the Emulator Version


RDK-B Emulator Users Guide

RDK-B Emulator Build Instructions

Building for RaspberryPi

RDK-B (RaspberryPi) User's Guide

RDK-B (RaspberryPi) Build Instructions - Morty

For further details on download and build instructions please refer to the RDK-B Release manuals provided with every release.
  • No labels


  1. I can't download the source code, get the following error:

    Get https://gerrit-googlesource.lug.ustc.edu.cn/git-repo/clone.bundle

    Get https://gerrit-googlesource.lug.ustc.edu.cn/git-repo

    warning: redirecting to https://gerrit-googlesource.proxy.ustclug.org/git-repo/

    remote: Finding sources: 100% (13/13)

    remote: Total 13 (delta 0), reused 13 (delta 0)

    Unpacking objects: 100% (13/13), done.

    From https://gerrit-googlesource.lug.ustc.edu.cn/git-repo

       da40341..a6515fb  master     -> origin/master

    Get https://code.rdkcentral.com/r/manifests

      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                     Dload  Upload   Total   Spent    Left  Speed

      0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0

    curl: (22) The requested URL returned error: 404 

    Server does not provide clone.bundle; ignoring.

    fatal: remote error: access not permitted

    fatal: remote error: access not permitted

    fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests

  2. ZheLiu,

    It seems to be an licence issue. I think you need to be an RDK licensee to access the source code