Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Children Display

Table of Contents

Host Setup

Refer the link for host setup details :Host Setup

Build Setup

Initialization

Code Block
languagebash
$ repo init -u https://code.rdkcentral.com/r/manifests -m rdkc-nosrc.xml -b dunfell
								( or )
$ repo init -u https://code.rdkcentral.com/r/manifests -m rdkc-extsrc.xml -b dunfell

Download/Sync

Code Block
languagebash
$ repo sync -j `nproc` --no-clone-bundle --no-tags

Repo Bug Fixes

Code Block
languagebash
titleLibcamera fixes
$ cd meta-cmf-raspberrypi
$ git fetch https://code.rdkcentral.com/r/components/generic/rdk-oe/meta-cmf-raspberrypi refs/changes/29/51529/2 && git cherry-pick FETCH_HEAD

Note: The above bug fixes changes are temporary given as instructions. This is not required once the change is get merged into the appropriate repo

Environment Setup


Deck of Cards
idframe


Card
defaulttrue
labelRPI0
titleRPI0 Environment Setup


Code Block
languagebash
titleEnvironment Setup
MACHINE=raspberrypi0-rdk-camera source meta-cmf-raspberrypi/setup-environment



Card
defaulttrue
labelRPI3 B+
titleEnvironment Setup


Code Block
languagebash
titleEnvironment Setup
MACHINE=raspberrypi3-rdk-camera source meta-cmf-raspberrypi/setup-environment



Building

Code Block
languagebash
$ bitbake rdk-generic-camera-image


While building, If you get any compile time error. we should follow "Repo Bug Fixes" and start the build.

Repo Bug Fixes

Code Block
languagebash
titleLibcamera fixes
$ cd tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/mediastreamer/git-r0/git
$ git fetch https://code.rdkcentral.com/r/rdkc/devices/raspberrypi/mediastreamer refs/changes/83/52183/2 && git cherry-pick FETCH_HEAD

$ cd build-raspberrypi3-rdk-camera/tmp/work/cortexa7t2hf-neon-vfpv4-rdk-linux-gnueabi/cvr/git-r0/git
$ git fetch https://code.rdkcentral.com/r/rdkc/components/opensource/cvr refs/changes/12/51612/2 && git cherry-pick FETCH_HEAD


Note: The above bug fixes changes are temporary given as instructions. This is not required once the change is get merged into the appropriate repo


Flash Procedure

Code Block
languagebash
$ bzcat "Image Name" | sudo dd of="Device Name" bs=4M iflag=fullblock oflag=direct conv=fsync
 
Example:
bzcat rdk-generic-camera-image_default_20201127105606.rootfs.wic.bz2 | sudo dd of=/dev/sdc bs=4M iflag=fullblock oflag=direct conv=fsync