Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Download Source Code

Use the following steps to download the RDK-B source code:
$ mkdir rdkb
$ cd rdkb
$ repo init -u -m rdkb.xml -b rdkb-20170803
$ repo sync -j4 --no-clone-bundle
  • The -m rdkb.xml in the build sequence above is important. This refers to the manifest file to be used. If this is not specified, you will get RDK-V tree by default instead of RDK-B.
  • The -b rdkb-20170803 in the build sequence above specifies the branch to use. If you omit the -b rdkb-20170803 entirely, you will get the master (HEAD) of each component.
  • At any time, the community can build latest master by dropping the -b rdkb-20170803 option in the “repo init” command.

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

$ source meta-cmf-rdkb-bsp-emulator/setup-environment (select qemux86broadband)
$ bitbake rdk-generic-broadband-image
Note. The image path will be: build-qemux86broadband/tmp/deploy/images/qemux86broadband/rdk-generic-broadband-image-qemux86broadband.vmdk

Building for RaspberryPi

$ source meta-cmf-raspberrypi/setup-environment (Select option raspberrypi-rdk-broadband.conf)
$ bitbake rdk-generic-broadband-image
Note. The kernel image and root filesystem will be created under the ./tmp/deploy/images/raspberrypi-rdk-broadband folder
For further details on download and build instructions please refer to the RDK-B Release manuals provided with every release.
  • No labels