13
CONFIDENTIAL
DOC-USR-0045-05
____________________________________________________________________________________
Z3 Technology, LLC
♦
100 N. 8th St. STE 250
♦
Lincoln, NE 68508-1369 USA
♦
+1.402.323.0702
6.0
CODE OVERVIEW
Once you have untarred the code, you will see the following top-level directories:
build-tools
Config files and scripts for building the codebase
dvr-rdk
A modified version of the TI RDK code
factory
Factory testing scripts (the user can disregard these)
filesys
The base filesystem for release
kernels
Kernel code for release
sysapps
Various supporting applications
toolchain
The ARM toolchain for building the codebase
u-boot
u-boot code for release
z3apps
Z3 demo application code and scripts
The Z3 demo code that comes with the Z3-DM8169-4K-RPS is run from the run.sh script in dvr-
rdk/dvr_rdk/bin/ti816x. This code calls the z3_dvr_rdk_demo_mcfw_api.out binary, which initializes and
runs the encoder. This binary is built from the dvr-rdk directory. The code for the binary resides in
z3apps/rdk/rdk_demo. The z3apps/rdk directory is described in more detail in the next section.
6.1
The z3apps/rdk directory
There are 3 main subdirectories: rdk_demo, z3_mcfw_api, and z3
6.1.1
rdk_demo
This directory contains the code for the various modes that Z3’s boards are able to run in. The
encoder setup is done in demo_vcap_vdis.c. The decoder setup is done in demo_vdec_vdis.c. The
passthrough setup is done in demo_vcap_vdis.c.
The file demo_rtptx.c is responsible for setting the output mode of the encoder. Output to file,
RTP, and MPEG2-TS are handled here.
The file demo_mcsenc.c contains the implementation of the command line interface. This can be
run using the following command:
#
source /opt/mcsenc/mcsenc.sh
6.1.2
z3_mcfw_api
This directory contains a modified version of the TI mcfw API (found in dvr-
rdk/dvr_rdk/mcfw/src_linux/mcfw_api) that is tailored to work with Z3’s hardware and use-cases.
The link setup code for Z3’s demos can be found in the usecases directory. The use-case code is
called from ti_vsys.c in the same directory.