Introduction:

                    RPI for developers feature supports the developer to build the RDK or open source components in the R-PI board itself. The dev image of R-PI is bundled with the meta-toolchains, dev tools for the build process of any component .Thus any component can be built and run in the R-PI board since the R-PI provides the support of both compile time and run time environment.


Downloading and Building Source for RDKB:

         repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-raspberrypi.xml -b morty

         repo sync -j4 --no-clone-bundle

         source meta-cmf-raspberrypi/setup-environment

         Select the configuration for dev-image i,e raspberrypi-rdk-broadband-dev.conf

         bitbake rdk-generic-broadband-dev-image -f

   Flash the image into sd-card and boot the image.

Expand the Size of sd-card

           Size of sd-card needs to be expanded to hold source and binaries of various components,

Use gparted to do so,

        $ sudo gparted

        1.Select the mounted location of sd-card

                           


         2.Chosse the space and click on resize icon

                          

      

          3.Increase the needed by dragging cursor

                          


Build Instructions:

                The script “build_component_script.sh” in the path /lib/rdk will be used to build the Components.

     Usage of the script

     sh dev-script.sh <username> <component>

     =====================================================

    ********* List of ccsp-components are ***************

    1.CcspCommonLibrary

    2.TestAndDiagnostic

    3.webui

    4.ccsp-p-and-m

    5.ccsp-psm

    6.hal

    =====================================================

   =====================================================

   usage:sh bulid_dev_devscript.sh UserName CCSP_Component_Name

   =====================================================

                   username - code.rdkcentral.com credential username

                   component - Name of the component listed in the script

Use Case: Building a CCSP Component:

               sh build_component_script.sh <username> ccsp-psm

    An Workspace would be created in the path “build-raspberrypi-rdk-broadband/source”

    Final binaries and libraries would be generated in the path “build-raspberrypi rdk-broadband/source/ccsp-psm/image/usr”



  • No labels