Host Setup

Repo Configuration

In order to use Yocto build system, the repo tool must be properly installed on the machine.

To install Repo make sure you have a /bin directory in your home directory and that it is included in your pat

Repo Setup
mkdir ~/bin
      
PATH=~/bin:$PATH
      
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
      
chmod a+x ~/bin/repo

Note: Cloning the code before login once to code.rdkcentral.com, user would get the Authentication error, even though the account is in good standing and has all the required access. Please login to code.rdkcentral.com before attempting to clone.

Build Instruction

Create workspace directory,

$ mkdir <workspace dir>
     
$ cd <workspace dir>

Follow below build instructions,

Build Steps
$ repo init -u https://code.rdkcentral.com/r/reference/manifests -m rpi-tags/rpi4_64_rdkb_30Sep22.xml -b master
     
$ repo sync -j4 --no-clone-bundle 

$ cd meta-cmf-raspberrypi && git fetch https://code.rdkcentral.com/r/rdk/components/generic/rdk-oe/meta-cmf-raspberrypi refs/changes/03/74203/3 && git cherry-pick FETCH_HEAD && cd ..

$ MACHINE=raspberrypi4-64-rdk-broadband source meta-cmf-raspberrypi/setup-environment

$ bitbake rdk-generic-extender-image

Flashing Procedure

Following command can be used to flash the RPI image to sd card using linux machine . bmap tool should be available in linux

bzip2 -d <path to ImageName.wic.bz2>
sudo -E bmaptool copy --nobmap <path to ImageName.wic> <path to SD card space>
 
Example:   

$ bzip2 -d rdk-generic-broadband-image-raspberrypi4-64-rdk-broadband.wic.bz2
$ sudo -E bmaptool copy --nobmap rdk-generic-broadband-image-raspberrypi4-64-rdk-broadband.wic /dev/sdb
  • No labels

1 Comment

  1. $ repo init -u https://code.rdkcentral.com/r/reference/manifests -m rpi-tags/rpi4_64_rdkb_30Sep22.xml -b master
    Downloading Repo source from https://gerrit.googlesource.com/git-repo
    fatal: manifest 'rpi-tags/rpi4_64_rdkb_30Sep22.xml' not available
    fatal: manifest rpi-tags/rpi4_64_rdkb_30Sep22.xml not found
    fatal: Unable to sync manifest rpi-tags/rpi4_64_rdkb_30Sep22.xml