Webinars

Special Interest Groups

RDK-B Working Groups
RDK-V Working Groups
UI-UX Research and Development
DAC

Conferences

[Americas Summit]
[Euro Summit]
[Technology Summit]

Preferred Resources

Versions Compared

Key

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

...

Warning

The SDK is under active development and is subject to significant changes as development continues.

Key Info

An SDK to allow developers to easily build their applications and package them as OCI images suitable for use with DAC

Overview

To develop DAC applications, an SDK has been developed that allows developers to write Bitbake recipes that compile their code and produce an OCI image. This OCI image can then be uploaded to an OCI registry where it can be converted and downloaded to a STB ready to be run by Dobby.

...

draw.io Diagram
bordertrue
diagramNameSDK Workflow
simpleViewerfalse
width400
linksauto
tbstyletop
lboxtrue
diagramWidth631
revision3

Usage

The following instructions will describe how to use the SDK to create an OCI image for the wayland-egl-test app which is provided with the SDK as an example

...

The wayland-egl-test application has now been packaged as an OCI image. To run this app on a STB/CPE, it must be converted to an OCI bundle using BundleGen (BundleGen Documentation).

There are two ways to work with the OCI image in BundleGen:

...

Code Block
(.venv) [vagrant@bundlegen BundleGen]$ ./test/build_and_test_on_rpi.sh 192.168.1.129 dac-image-wayland-egl-test.tar
--> Extracting OCI image...
./
./index.json
./oci-layout
./blobs/
./blobs/sha256/
./blobs/sha256/53e4a3facc0fdefda2e34577a51eb69b8cf2009bb84f016bac14f7f671c74370
./blobs/sha256/f0a511fbac9f2e79b9a8e4a939bc21d750eebf6b2362ff516398bfc87f77ef15
./blobs/sha256/6b0f14801d3a1c0b58a79e93ebf789c1d663db5e376b743c9373b1fe191bee91
--> Generating runtime bundle...
2020-11-16 10:59:11.540 | SUCCESS  | bundlegen.core.image_downloader:download_image:122 - Downloaded image from oci:./oci-dac-image-wayland-egl-test:latest successfully to /tmp/bundlegen/20201116-105911_61d973c186904a83b43f7a57d675729c
2020-11-16 10:59:12.260 | SUCCESS  | bundlegen.cli.main:generate:132 - Successfully generated bundle at /home/vagrant/BundleGen/rpi-dac-image-wayland-egl-test.tar.gz
--> Copying bundle to box on lighttpd server location
Warning: Permanently added '192.168.1.129' (RSA) to the list of known hosts.
rpi-dac-image-wayland-egl-test.tar.gz                                                                                                                                   100% 1833KB   2.0MB/s   00:00
--> Killing app
{"jsonrpc":"2.0","id":1,"result":{"message":"failed to kill client","success":false}}
--> Remove app
{"jsonrpc":"2.0","id":1,"result":{"task":123,"success":true}}
--> Waiting until app removed...
--> App is removed!
--> Start (re-)installation of app
{"jsonrpc":"2.0","id":1,"result":{"task":"1","success":true}}
--> Waiting until app installed...
--> App is installed!
--> Starting app!
{"jsonrpc":"2.0","id":1,"result":{"success":true}}
(.venv) [vagrant@bundlegen BundleGen]$


Design

Yocto meta-dac-sdk layer introduce new types of OCI Images:

...