Z3 Technology Z3-DM8168-RPS User manual

User Instructions
Multi-Channel H.264 HD Multimedia System
High Definition Video Processor Module
DM8168 Rapid Prototyping System
Model Name: Z3-DM8168-RPS
DOC-USR-0008-01
Manual Version 2.0.7
Software Version 1.04.05
January 29, 2013
Before attempting to connect or operate this product, please read these
instructions carefully and save the manual for future use.

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
2
Revision History
Version
Date
Change Note
Author
0.1
2/2/11
Original DM8168 System
CH
0.2
2/9/11
Minor updates on page 4 and 5
AC
0.3
2/10/11
Fixed title. Major content update and re-arranging, formatting fixes and other
general improvements. Added some “to-do” tags for CH.
BM
0.4
2/17/11
Formatting fixes, revisions, added tables
CH
0.5
2/20/11
Paragraph & TOC indentation, Figure references
CH
0.6
5/17/11
Updated Encode Demo Instructions
CH
0.7
7/7/11
Updated the Encode Demo
NC
1.0
7/26/11
Updated Section 5
CH
1.1
8/9/11
Updated Section 5
AC
1.2
9/30/11
Updated Image and Section 5
CH
1.3
10/20/11
Updated for EZSDK 5.02 release
JTW
1.4
10/20/11
Updated Pictures
NS
1.5
10/24/11
Updated Section 5 & 10
CH
1.6
10/28/11
Updated Section 5
NS
1.7
10/28/11
Updated Pictures
NS
1.8
12/8/11
Updated Section 1
CH
1.9
1/19/12
Updated Sections 1 & 8. Added Section 11
CH
2.0.1
7/16/12
Address Update
NS
2.0.2
9/6/12
Correction revision number and typo in Section 5
NC
2.0.3
9/17/12
Updated Section 5, added Section 6 - Decode Demo
PS
2.0.4
09/17/12
Updated Footer
NS
2.0.5
12/27/12
Updated Section 7 Build Procedure
NB
2.0.6
1/2/13
Minor updates to all sections
PS
2.0.7
1/29/13
Format, Table of Contents
MC

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
3
TABLE OF CONTENTS
1. General Description.....................................................................................................................................4
2. Features........................................................................................................................................................6
2.1 Supported Input Resolutions.......................................................................................................................6
3. Applications................................................................................................................................................. 7
4. Thermal Considerations...............................................................................................................................8
5. Serial Interface Control ...............................................................................................................................9
5.1 Serial Connection to PC..........................................................................................................................9
5.2 Encode Menu..........................................................................................................................................9
5.3 System Menu Control (Encoder)..........................................................................................................10
5.4 Decode Menu........................................................................................................................................12
5.5 System Menu Control (Decoder)..........................................................................................................12
6. Web Interface Control ............................................................................................................................... 14
6.1 Web Server............................................................................................................................................14
6.2 Encode Menu........................................................................................................................................14
6.3 System Menu Control (Encode) ........................................................................................................... 15
6.4 Decode Menu........................................................................................................................................15
6.5 System Menu Control (Decode)........................................................................................................... 15
7. Encode Demo ............................................................................................................................................ 16
8. Decode Demo............................................................................................................................................ 19
9. Installing the Released Materials...............................................................................................................20
9.1 Building the Code.....................................................................................................................................20
10. Configuring the Target for Your Own Development Environment........................................................... 21
10.1 U-boot Startup Scripts.............................................................................................................................22
10.2 U-boot Update Scripts.............................................................................................................................22
11. Building the Code...................................................................................................................................... 23
12. UBIFS........................................................................................................................................................25
13. Dependencies............................................................................................................................................. 27
14. Troubleshooting.........................................................................................................................................28

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
4
1. General Description
The Z3-DM8168-RPS development system consists of both hardware and software. The hardware provided
includes one Z3-DM8168-MOD system on module card and an example carrier or application board, the Z3-
DM8168-APP, which provides advanced video input capabilities with dual channel HDMI or component input
at up to 1080p each. The bundled software includes all necessary components for the user to develop their own
advanced multimedia, graphics and/or DSP applications.
Measuring 88mm x 108mm, the Z3-DM8168-MOD is a compact OEM module, supporting H.264 codec at up
to two channels of 1080p at 60 fps (frames per second) encode and stream, decode from stream or store in
applications such as real time transcoding, broadcast video encoding and decoding, digital signage and video
kiosks, medical and industrial video, video conference terminal and MCU and high definition embedded video
sub-systems. The Z3-DM8168-MOD features a unique expansion interface comprised of five high density
connectors providing access to the greatest majority of interface signals available from the DM8168 processor.
Figure 1 below shows the Z3-DM8168-MOD system on module.
A/V Out
YPbPr Out
Boot Mode
Selection
Console
Power switch
and LED
JTAG
HDMI Out
GigE
SATA
SATA
USB (x2)
Power
108mm
88mm
Figure 1

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
5
An example application board, Z3-DM8168-APP-02,is available from Z3 Technology and is included with
the Z3-DM8168-RPS system.This application board uses the I/O expansion capability of the Z3-DM8168-
MOD to implement additional functions not present in the base module. The Z3-DM8168-APP-02 application
board has two HDMI inputs, two YPbPr component inputs, two analog stereo audio inputs, an SD card jack, 2
bi-color LEDs for status and a JTAG header to access the module’s on-board MSP430 processor. Figure 2
below shows the Z3-DM8168-APP-02 application board.
A Linux-based media SDK license, additional design services and support are available from Z3 Technology.
Please contact Z3 at http://www.z3technology.com or e-mail at sales@z3technology.com.
186mm
88mm
Figure 2

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
6
2. Features
High Density connectors to interface to all signals
Supports output of video and audio at up to 1080p60 resolution
1024MB DDR3 (MOD-2X) or 512MB DDR3 (MOD-0X)
256MB NAND Flash
Composite video and audio output
H.264 BP & MP, MPEG-4 SP and MJPEG video encoding up to 1080p, 60 fps
H.264 BP & MP, MPEG-4 SP and MJPEG video decoding up to 1080p, 60 fps
RJ45 jack from on-module PHY, supporting 1GB Ethernet
Dual SATA interface supporting 3Gbps drives
Dual USB 2.0 type A (host) jacks
RS232 serial console port
JTAG debug port
2.1 Supported Input Resolutions
HDMI: 1080p60, 1080i60, 720p60, 480p, and 480i
Component: 1080i60, 720p60, and 480p
Composite: D1 NTSC

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
7
3. Applications
The Z3-DM8168-MOD is designed to facilitate the implementation of video and audio functions on media-
embedded applications such as broadcast video encoding and decoding, real time transcoding at 1080p60,
video security and industrial DVR, medical and industrial video and video conferencing terminal and MCU.
Its versatile design allows the system designer to focus on the end application, with confidence that the Z3-
DM8168-MOD will handle all audio and video media operations required with little or no additional
engineering effort.
Whether the end application requires encode or decode media from storage or streaming, the readily available,
production-ready Z3-DM8168-MOD will simplify the overall system design, reducing time to market and
costs.

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
8
4. Thermal Considerations
The main processor on the Z3-DM8168-MOD generates a large amount of heat, and is cooled by a fan heat
sink type cooler. The heat sink may reach temperatures in excess of 75°C during work. Please make sure that
the airflow for the heat sink is free and unimpeded at all times. Hot air must have a place to escape to allow for
room air to be used to cool the chip. Failure to cool the processor may result in permanent damage to the
processor.
The maximum continuous power consumption by the whole DM8168-MOD system during normal operation
should be less than 18W, with up to 12W dissipated by the main processor. Please plan the cooling strategy
appropriately.

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
9
5. Serial Interface Control
5.1 Serial Connection to PC
1.) Plug-in a supplied serial cable from the Z3-DM8168-RPS to your PC
2.) Set up Teraterm on the PC for 115k, 8, N, 1, N, 1ms/char, 50ms/line
3.) Connect to the proper COM port
4.) Connect the supplied 12V power to the Z3-DM8168-RPS
5.) Power-on the Z3-DM8168-RPS
6.) Output should come immediately to the Teraterm console
5.2 Encode Menu

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
10
5.3 System Menu Control (Encoder)
Device Setup
+
Set Device Name
NETRA-RPS, Custom
=
Set Password
0
Operating Mode
Encoder, Decoder
Input Setup
1
Video Source
HDMI1, HDMI2, Component1, Component2, Composite1, Composite2
2
Audio Source
Automatic, Analog
3
Audio Codec
AAC-LC ADTS, G.711, None
4
Audio Bitrate
96 kbits, 128 kbits, or 192 kbits
5
Video Resolution
Follow Input, 1080p, 1080i, 720p, 16:9 PAL, D1 NTSC, D1 PAL, 4-CIF, VGA, 640x360, 2-CIF, 2-SIF, CIF, SIF,
QVGA, WQVGA, Custom *Refer to Section 2.1 for supported input resolutions*
6
Custom Resolution
Custom
7
Video De-Interlace
Enable De-interlace, Disable De-interlace
8
Rate Control
CBR, VBR
9
Video Bitrate
Custom
A
Video Profile
High, Main, Baseline
B
Video Frame Rate
Custom
C
Gop Size
10, 12, 15, 25, 30, 50, 60, 100, 120, 200, or 240 Frames
D
Video Burst Size
150, 200, 300, 400, 500, 1000, 1200, 1400, 1600, 1800, or 2000ms
E
B-Frame GOP
Structure
Open [IBB], Close [BBI]
F
B-Frame Interval
Custom (default: 3)
G
Audio Delay
Custom (default: blank)
H
Video Delay
Custom (default: blank)

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
11
Output Setup
I
Output Interface
Ethernet
J
Video Passthru
HDMI, SDI
K
Output Format
RTP, MPEG-2 TS
L
Destination IPAddress
Custom, Unicast: 192.168.X.XX (Use IP address of your PC) or Multicast: 225.1.2.3
M
Destination Port
8888, Custom
N
ASI Bitrate
12000k, Custom
Local IP Setup
O
Local IPAddress
Custom, 192.168.81.68 (Default IP of the system)
P
Local Netmask
Custom, 255.255.0.0 (Default Subnet Mask)
Q
Default Gateway
Custom, 192.168.0.1 (Default IP Gateway)
Start/Stop Encoder
T
Stop
S
Start
!
Set Diagnostics Level
1 = None, 2 = analysis, 3 = dataflow, 4 = debug2, 5 = debug 3, 6 = debug 4, 7 = debug5, 8 = enc, 9 = print
User Settings
U
Load User Settings
W
Save User Settings
Y
Load Factory Default Settings
R
Refresh Menu
X
Exit

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
12
5.4 Decode Menu
5.5 System Menu Control (Decoder)
Device Setup
+
Set Device Name
NETRA-RPS, Custom
=
Set Password
0
Operating Mode
Encoder, Decoder
Input Setup
1
Input Interface
Ethernet
2
Input Format
RTP, MPEG-2 TS
3
RTP:IP Port or UDP IP:Port
Custom
4
STC-PCR Offset (ms)
Custom
5
Output Interface
HDMI, SDI, Component
6
Display Resolution
1080p-60, 1080p-50, 1080i-60,1080i-50, 720p-60, 720p-
50, 480p, 576p

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
13
Video and Audio Codec Setup
7
Video Codec
H.264
8
Audio Codec
AAC, None
Local IP Setup
9
Local IPAddress
Custom, 192.168.81.68 (Default IP of the system)
A
Local Netmask
Custom, 255.255.0.0 (Default Subnet Mask)
B
Default Gateway
Custom, 192.168.0.1 (Default IP Gateway)
Start/Stop Decoder
T
Stop
S
Start
!
Set Diagnostics Level
1 = None, 2 = analysis, 3 = dataflow, 4 = debug2, 5 = debug 3, 6 = debug 4, 7 = debug5, 8 = enc, 9 = print
User Settings
U
Load User Settings
W
Save User Settings
Y
Load Factory Default Settings
R
Refresh Menu
X
Exit

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
14
6. Web Interface Control
6.1 Web Server
1.) Power on the Z3-DM8168-RPS
2.) Connect the Ethernet cable from the Z3-DM8168-RPS unit directly to the PC
3.) Disable all wireless connections
4.) For a client PC to access the Z3-DM8168-RPS factory default settings, set the IP address of the PC to
192.168.81.XX (The default IP address of the Z3-DM8168-RPS is 192.168.81.68)
5.) Open Firefox or Internet Explorer 8 (or above) as your web browser
6.) Type the IPaddress of the Z3-DM8168-RPS into the web browser (eg: http://192.168.81.68) and the
Z3-DM8168-RPS web configuration menu will appear.
6.2 Encode Menu

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
15
6.3 System Menu Control (Encode)
** Please see section 5.3 which contain the information for each of the parameters **
6.4 Decode Menu
6.5 System Menu Control (Decode)
**Please see section 5.5 which contain the information for each of the parameters**

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
16
7. Encode Demo
The encode demo can support inputs from HDMI1, HDMI2, Component1, Component2, Composite1, or
Composite2. The connections are labeled below.
The Z3-DM8168-APP can support two simultaneous video inputs: Channel 1 (HDMI, Component, or
Composite) and Channel 2 (HDMI, Component, or Composite). The current encode demo pre-installed on the
Z3-DM8168-RPS only supports a single source at one time.
The video source (we use a Brite-View box) must be a NON-HDCP source for HDMI input.
The Z3-DM8168-RPS can be controlled via the serial port.
1. Plug in the supplied serial cable and NULL modem adaptor from Z3-DM8168-MOD to PC’s COM
port.
2. Setup teraterm on PC for 115k, 8, N, 1, 0ms/char, 100ms/line.
3. Connect the other end of the serial cable to the console port on Z3-DM8168-MOD board.
The console port is the 2.5mm jack next to the power switch.
4. Connect power supply to Brite-View Box.
5. Connect USB stick with content to Brite-View Box.
6. Set Brite-View Box to play videos at 1080p60.
7. Connect HDMI out of Brite-View Box to the HDMI1 (top input) of Z3-DM8168-APPApplication
Board. Connect audio to Stereo1 (top input) jack on Z3-DM8168-APP.
8. Connect Ethernet from Z3-DM8168-MOD to a PC.
9. Set the PC IP address to 192.168.1.110 –This is the default address the 8168-RPS streams to.
10. Connect 12V Power supply to the Z3-DM8168-MOD.
*Before powering up the Z3-DM8168-RPS system, make sure the Brite-View Box is running.
Stereo 2
HDMI 2
Stereo1
Stereo2
(Bottom)
HDMI 1
Component 2
Component 1, Composite 1 (Yellow), or Composite 2 (Red)

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
17
11. Open up a console window.
12. Power on the Z3-DM8168-RPS system.
13. After booting up and running through the beginning of the sequence, a menu will appear. You will have
the option to manually change the mode of the system to encode or decode mode. Below is a
screenshot of a terminal console of the system running as an Encoder. To change the mode to decode
mode, press “0”and then select option “2”.
14. On the encoder menu, press “L”to change the URL from 225.1.2.3 to your computer's static IP, and
then press “S” to start streaming.
*Please note that you must type in “rtp://” before you enter your computer’s static IP address.
15. Open VLC.
16. Under Media, press “Open File” and open the SDP file (provided by Z3 Technology on your Z3 Server
Account).
17. You should now see video playing on VLC.
*It is possible that you may need to reboot if you do not see video in VLC.

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
18
The Z3-DM8168-RPS encoder can also be controlled via the web-interface. Type the IP address into a web-
browser and the following should appear:

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
19
8. Decode Demo
The decode demo supports a network stream input from the Ethernet connection and outputs to HDMI, SDI, or
Component. Below is a screenshot of a terminal console of the system running as a decoder. To change the
mode to encode mode, press “0” and then select option “1”.
The Z3-DM8168-RPS decoder can also be controlled via the web-interface. Type the IP address into a web-
browser and the following should appear:

CONFIDENTIAL Z3-DM8168-RPS V2.0.7
___________________________________________________________________________________________
Z3 Technology, LLC ♦ 100 N 8th ST, STE 250 ♦ Lincoln, NE 68508-1369 USA ♦ +1.402.323.0702
20
9. Installing the Released Materials
The software provided will allow you to re-create the pre-installed software of the DM8168-MOD starting
from the source code included.
On a PC running Linux, create a directory where the released materials are going to be located,
such as /home/z3/z3-netra:
# mkdir /home/z3/z3-netra
Copy the released tar archive to that directory.
# cp z3-dm8168-1.0.0-20110209.tar.bz2 /home/z3/z3-netra
Untar the archive
# tar -xjf z3-dm8168-1.0.0-20110209.tar.bz2
A directory with the release name and a set of sub-directories should have been created as follows:
z3-dm8168-1.0.0-20110209/
build-tools
Contains some scripts that simplify the setup
filesys
This contains the root file system for the DM368 target
kernels
The kernel source tree, with added support for the Z3-DM368-MOD HW
images
Binary images needed by the target are here
toolchain
ARM compilers, binutils and other build tools
u-boot
The u-boot source tree, with support for the Z3-DM368-MOD hardware
z3apps
Optional software licensed by Z3 Technology
9.1 Building the Code
Follow the directions in the section 11 "Building the Code" below in this file. When the build completes
successfully, an “images” directory will be created at the project level. All images and executables will be
located in the "images" directory, ready to be transferred to the target.
Other manuals for Z3-DM8168-RPS
2
Table of contents