Introduction

The following are instructions for building an RDKv4 hybrid image for the DTVKit White Label Box using the Mediatek MT5221 chipset The release is based on RDK-V 2022Q1. Access is needed to the Mediatek git repositories to download the Mediatek specific recipes and software.

Note: git-lfs needs to be installed before the Mediatek repos are cloned. See: https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage

Setup

The build is based on RDK Yocto 3.1 (dunfell) so Ubuntu 18.04 LTS is recommended as the build environment. Follow the instructions provided by Mediatek for cloning their code and recipes into a separate directory (referred to as <mtk_dir> below), but the following steps should work:

  1. cd <mtk_dir>
  2. repo init -u https://git01.mediatek.com/dtv/mediatek/manifest -b stbrdkm-rel-rdk-i_poc_rdk_c2s
  3. repo sync -c -j `nproc` --no-clone-bundle
  4. repo forall -c 'if [ -e .gitattributes ];then git lfs pull;fi'

When the above has completed, create a directory where the RDK recipes will be cloned and RDK will be built (referred to as <rdk_dir> below).

  1. cd <rdk_dir>
  2. repo init -u https://code.rdkcentral.com/r/manifests -m rdkv-nosrc.xml -b rdkv-2022q1-dunfell
  3. repo sync --no-clone-bundle
  4. Copy the meta layer directories from <mtk_dir> into <rdk_dir>
  5. git clone git@github.com:DTVKit/meta-dtvkit-mtk.git
  6. cd meta-dtvkit-mtk
  7. git checkout mtk_20220715
  8. cd ..
Building
Flashing

When the build has completed successfully, a set of scripts and binary files for installing from USB can be found in a directory called “Target” in “<rdk_dir>/build-dtvkit-whitelabel-dtv/tmp/deploy/images/dtvkit-whitelabel-dtv/MTKIMG/usb_update”. The whole “Target” directory needs to be copied to a FAT, FAT32 or vfat formatted USB memory stick that has at least 1GB of free space. Copy the “Target” directory to this device such that “Target” is in the top-level directory. The device must also be writeable when the image is installed.

Now proceed with the following steps: