Table of Contents

Advertisement

Quick Links

DVEVM Getting Started Guide
Literature Number: SPRUE66A
August 2006

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DVEVM and is the answer not in the manual?

Questions and answers

Summary of Contents for Texas Instruments DVEVM

  • Page 1 DVEVM Getting Started Guide Literature Number: SPRUE66A August 2006...
  • Page 2 TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions:...
  • Page 3 EVALUATION BOARD/KIT IMPORTANT NOTICE Texas Instruments (TI) provides the enclosed product(s) under the following conditions: This evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT, DEMON- STRATION, OR EVALUATION PURPOSES ONLY and is not considered by TI to be a finished end-product fit for general consumer use.
  • Page 4 FCC Warning This evaluation board/kit is intended for use for ENGINEERING DEVELOPMENT, DEMON- STRATION, OR EVALUATION PURPOSES ONLY and is not considered by TI to be a finished end-product fit for general consumer use. It generates, uses, and can radiate radio frequency energy and has not been tested for compliance with the limits of computing devices pursuant to part 15 of FCC rules, which are designed to provide reasonable protection against radio frequency interference.
  • Page 5 Linux-based software on the DM644x ARM core. The DVEVM does not expose the DSP core for software development, but rather treats it as a "black box" for running off-the-shelf codecs. The DVSDK upgrade allows you to add the ability to develop applications for the DSP side.
  • Page 6 Trademarks Texas Instruments logo Texas Instruments are registered trademarks of Texas Instruments. Trademarks of Texas Instruments include: TI, DaVinci, the DaVinci logo, XDS, Code Composer, Code Composer Studio, Probe Point, Code Explorer, DSP/BIOS, RTDX, Online DSP Lab, DaVinci, TMS320,...
  • Page 7: Table Of Contents

    4.3.2 Installing the DVEVM Software ........4-7 4.3.3...
  • Page 8 Restoring and Updating the DVEVM Hard Disk Drive ....... .
  • Page 9: Dvevm Overview

    Chapter 1 DVEVM Overview This chapter introduces the DVEVM (Digital Video Evaluation Module). Topic Page 1.1 Welcome! ..........1–2 1.2 What’s in this Kit? .
  • Page 10: Welcome

    The intended audience is a user developing Linux-based software on the DM644x ARM core. The DVEVM does not expose the DSP core for software development, but rather treats it as a "black box" for running off- the-shelf codecs.
  • Page 11: What's In This Kit

    ❏ Hard Disk Drive (Samsung P/N MP0402H). The hard drive provided with the DVEVM is a 2.5" Spinpoint drive with 40 GB of storage. The drive speed in 5400 RPM and it has an 8MB cache. The drive is an Ultra ATA 66/100/133 IDE.
  • Page 12: What's On The Board

    Diagram provided courtesy of Spectrum Digital Inc. Figure 1–1 DVEVM Hardware Block Diagram For more information about the DVEVM hardware, see the DaVinci EVM website at http://c6000.spectrumdigital.com/davincievm/. The DaVinci EVM incorporates a battery holder to provide backup power to the MSP430’s real-time clock when the power is not applied to the...
  • Page 13: What's Next

    What’s Next? What’s Next? To get started evaluating the DVEVM and developing applications for the DM644x, begin by using this Getting Started guide. It will step you through connecting the hardware, testing the software, and beginning to develop applications. When you are ready for more information about DaVinci Technology and the DM644x architecture, see the following: ❏...
  • Page 15: Dvevm Hardware Setup

    Chapter 2 DVEVM Hardware Setup This chapter tells you how to set up the DVEVM hardware. Topic Page 2.1 Setting Up the Hardware ........2–2...
  • Page 16: Setting Up The Hardware

    Setting Up the Hardware Setting Up the Hardware To set up the hardware provided with the DVEVM, use the steps in the sections that follow. You may skip sections if you do not need to access a particular peripheral. For example, if you do not need to use the serial cable, skip that section.
  • Page 17 Setting Up the Hardware 4) Connect the red and white audio cables to the DVEVM Audio Output and the LCD display R/L Audio Input jacks as shown below: 5) Connect the BNC-to-RCA connector to the coax cable. Then connect the coax cable to the video camera and the DVEVM Video Input.
  • Page 18 Setting Up the Hardware 7) Connect the microphone to the DVEVM. 8) Connect the power cable to the DVEVM Power Jack on the board. To be ESD safe, do not plug in the other end of the cable yet. 9) If you will use the Ethernet connection, connect the Ethernet cable to the Ethernet Port on the DVEVM and to an Ethernet network port.
  • Page 19 Setting Up the Hardware 10) If you plan to use the UART port for a console window, connect the RS232 null modem cable to the DVEVM UART port and the a COM port on your host Linux workstation. See Section 2.2, Connecting to a Console Window for more about using a console window.
  • Page 20: Connecting To A Console Window

    You can open a console window that allows you to watch and interrupt DVEVM boot messages by following these steps: 1) Connect a serial cable between the serial port on the DVEVM and the serial (COM) port on a PC.
  • Page 21: Running The Demonstration Software

    Chapter 3 Running the Demonstration Software This chapter explains how to run the software demos provided with the DVEVM. Topic Page 3.1 Default Boot Configuration....... . . 3–2 3.2 Starting the Standalone Demos .
  • Page 22: Default Boot Configuration

    Default Boot Configuration Default Boot Configuration Out of the box, the DVEVM starts the demos automatically after a few seconds when you power up the board. It does not require an NFS mount or a TFTP server to run the standard demos. A DHCP server is required by default;...
  • Page 23: Running The Standalone Demos

    Running the Standalone Demos Running the Standalone Demos 1) Press "Play" or "OK" on the remote to move from the remote control diagram to the main menu screen, which looks like this: The Encode + Decode demo allows you to record and playback video.
  • Page 24 Running the Standalone Demos 5) Use the left and right arrows to cycle through the options until the setting you want is shown. 6) Press "Play" to begin the EncodeDecode and Decode demos. Press "Rec" (record) twice to begin the Encode demo. Press "Stop" to return to the main menu.
  • Page 25: About The Encode + Decode Demo

    Running the Standalone Demos 3.3.1 About the Encode + Decode Demo The Encode + Decode demo allows you to record and playback video. Video input comes from the camera, it is encoded, then decoded, and sent to the LCD display. The Encode + Decode does only video processing;...
  • Page 26: About The Encode Demo

    In addition, it also encodes audio or speech. The audio/speech source is the microphone. The encoded data is written to files on the DVEVM’s hard disk drive. The possible filenames are demo.264, demo.mpeg4, demompeg4.g711, and demo264.g711. Older versions of these files are overwritten as needed.
  • Page 27 Running the Standalone Demos Table 3–2 IR Remote Buttons for Encode Demo IR Remote Button Mode Action Performed Up/Down Setup Change option selection Left/Right Setup Change setting of selected option Play Setup Switch to decode demo setup Record (twice) Setup Begin encode demo or OK Info/Select...
  • Page 28: About The Decode Demo

    Use the left and right arrow buttons to choose from the demo files and the files created by the Encode demo, which are stored on the DVEVM’s hard disk drive. The decoded signals are sent to the LCD display and speakers.
  • Page 29: About The Third Party Menu

    Running the Standalone Demos Table 3–3 IR Remote Buttons for Decode Demo IR Remote Button Mode Action Performed Left/Right Change information transparency level Pause Pause demo (press Play to resume) Stop Setup / Run Return to previous screen The application runs on the ARM using Linux. The video and audio signals are passed to decoders on the DSP by the Codec Engine.
  • Page 30: Running The Network Demo

    GPP-side as part of the Linux startup sequence. It configured to service requests from web browsers on the standard TCP/IP port 80. After the DVEVM board has booted, connect a PC to the same network to which the DVEVM board is connected. Enter a URL of the form "http://ip-address-of-dvevm"...
  • Page 31: Dvevm Software Setup

    4.4 Setting Up the Build/Development Environment ....4–11 4.5 Rebuilding the DVEVM Software for the Target ....4–12 4.6 Building a New Linux Kernel .
  • Page 32: Software Overview

    To begin developing applications, you need to install the DVEVM development environment. This section outlines the steps required to load the DVEVM software onto the development host. You will need the three DVEVM distribution CDs or the files they contain to get started.
  • Page 33: Command Prompts In This Guide

    Texas Instruments, in agreement with MontaVista Software Inc., is providing a demonstration version of the Linux Professional Edition v4.0 embedded operating system and development tools. The base DVEVM kit includes a preliminary release of this demonstration version. The demo version is a subset of what MontaVista provides with the full Professional Edition.
  • Page 34: Software Components

    Software Overview 4.1.2 Software Components The following figure shows the software components used for application development on the DVEVM: Application Layer (APL) Signal Processing Customer Customer Customer Layer (SPL) Value-Added Differentiation Value-Added Differentiation Value-Added Differentiation Mux/Demux Mux/Demux Network Network AV Sync...
  • Page 35: Preparing To Install

    Preparing to Install Preparing to Install On a host system, mount the three DVEVM demonstration CDs and copy the following .bin files to a temporary location with at least 1.2 GB available space. Since you can delete the installation files after installing the software, a directory like /tmp is recommended.
  • Page 36: Installing The Software

    Installing the Software Installing the Software Installing the software used by the DVEVM involves performing the following steps: ❏ Section 4.3.1, Installing the Target Linux Software ❏ Section 4.3.2, Installing the DVEVM Software ❏ Section 4.3.3, Installing the A/V Demo Files ❏...
  • Page 37: Installing The Dvevm Software

    ❏ DSP/BIOS Link provides a GPP/DSP interface utilized by the Codec Engine to control and communicate with the DSP from Linux. To install the DVEVM software using the Linux installer, follow these steps: 1) Log in using a user account. In the following steps, we refer to the home user directory as "~".
  • Page 38: Installing The A/V Demo Files

    A/V files: 1) Go to the DVEVM directory that you set up previously. For example: host $ cd ~/dvevm_1_xx 2) Mount the A/V data CD and copy the file to your DVEVM directory. For example: host $ cp /mnt/cdrom/data.tar.gz .
  • Page 39: Testing The Shared File System

    IP address associated with the eth0 Ethernet port. host $ /sbin/ifconfig 2) Open a terminal emulation window to connect to the DVEVM board via RS-232. If you have a Windows workstation, you can use HyperTerminal. If you have a Linux workstation, you might use Minicom.
  • Page 40: Configuring The Boot Setup For Pal Video Users

    4.3.6 Configuring the Boot Setup for PAL Video Users You can configure the DVEVM to select either the NTSC or PAL video standard during the default boot sequence. To select PAL, set switch 10 on the S3 (USER) user bank of switches to On. For NTSC, set this switch to Off.
  • Page 41: Setting Up The Build/Development Environment

    PATH="/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin: /opt/mv_pro_4.0/montavista/pro/bin: /opt/mv_pro_4.0/montavista/common/bin:$PATH" 4.4.1 Writing a Simple Program and Running it on the DVEVM Make sure you have performed the steps in Section 4.3.4, Exporting a Shared File System for Target Access and Section 4.4, Setting Up the Build/Development Environment.
  • Page 42: Rebuilding The Dvevm Software For The Target

    If you modify the target’s Linux kernel sources, you will need to rebuild it and then boot it up by either replacing the kernel that comes installed on the DVEVM board’s flash or by having the U-Boot utility use TFTP to boot the kernel over a network connection.
  • Page 43 If you use another TFTP root location, please change /tftpboot to your own TFTP root location: host $ cp ~/workdir/lsp/ti_davinci/arch/arm/boot/uImage /tftpboot host $ chmod a+r /tftpboot/uImage See a standard Linux kernel reference book or online source for more about Linux build configuration options. DVEVM Software Setup 4-13...
  • Page 44: Booting The New Linux Kernel

    /tftpboot (or some other site-specific TFTP accessible location). 1) Power on the DVEVM board, and abort the automatic boot sequence by pressing a key in the console window (Section 2.2). 2) Set the following environment variables. (This assumes you are starting from a default, clean U-Boot environment.
  • Page 45: Additional Procedures

    A.7 Rebuilding DSP/BIOS Link ....... . A–17 A.8 Restoring and Updating the DVEVM Hard Disk Drive ..A–18...
  • Page 46 Running the Demos from the Command Line Running the Demos from the Command Line You can run the demo applications from the Linux shell in a terminal window connected to the EVM board’s serial port. These are the same demos described in Section 3.2, Starting the Standalone Demos. The command line syntax and options for the demo applications are provided in the following subsections.
  • Page 47 If used, causes the main demo interface to launch when this demo exits. By default, this is off. ❏ -x Select S-Video input format. This flag is available only with DVEVM 1.1 greater. (DVEVM 1.0 supports only composite video.) ❏ -h | --help Print this help message.
  • Page 48 If used, causes the main demo interface to launch when this demo exits. By default, this is off. ❏ -x Select S-Video input format. This flag is available only with DVEVM 1.1 or greater. (DVEVM 1.0 supports only composite video.) ❏ -h | --help Print this help message.
  • Page 49 Running the Demos from the Command Line ❏ -s | --speechfile Specify the filename of the speech file to play. The file extension identifies the format to use. The supported speech algorithm is G.711 (.g711 file extension). You cannot play both an audio file and a speech file at the same time.
  • Page 50: Changing The Video Input/Output Methods

    ❏ Component (best quality) There is a significant quality difference between the different inputs and outputs. However, the cables in the DVEVM kit support only composite video. You will need to get S-Video or Component video cables from another source.
  • Page 51 The DVEVM kit does not include an S-Video cable. In addition, you will need a video display with an S-Video input. 2) On the kernel command line, you can configure the DVEVM to select both NTSC vs. PAL and the S-Video output format (see Section 4.3.6, Configuring the Boot Setup for PAL Video Users).
  • Page 52 (YPrPb) video. In addition, you will need a video display with component video inputs. 2) On the kernel command line, you can configure the DVEVM to select both NTSC vs. PAL and the component video output format (see Section 4.3.6, Configuring the Boot Setup for PAL Video Users). For...
  • Page 53: Putting Demo Applications In The Third-Party Menu

    Name the tar file using <company>_<demoname>.tar.gz (with no spaces in the file name) as the convention. For example, a video phone demo created by Texas Instruments would be named ti_videophone.tar.gz. The name must be unique since all demos are installed in the same directory.
  • Page 54 This is where the DVEVM software was installed on the target file system. The default target installation directory is /opt/dvevm, so the default location for demo archives is /opt/dvevm/thirdpartydemos. Do not extract the contents of the archive in this location. Extraction is performed behind-the-scenes each time the demo is run.
  • Page 55: Setting Up A Tftp Server

    Setting Up a TFTP Server Setting Up a TFTP Server You can check to see if a TFTP server is set up with the following command: host $ rpm -q tftp-server If it is not set up, you can follow these steps: 1) If you have not yet installed MontaVista Linux Demo Edition (see Section 4.3.1), you can download a TFTP server for your Linux host from many locations on the Internet.
  • Page 56: Alternate Boot Methods

    Alternate Boot Methods Alternate Boot Methods The default configuration for the DVEVM is to boot from flash with the file system on the board’s hard drive. The following are alternate ways you may want to boot the board: ❏ TFTP boot with hard drive file system (Section A.5.2) ❏...
  • Page 57 Alternate Boot Methods For example, the environment variables set for this mode might be: bootargs=mem=120M console=ttyS0,115200n8 root=/dev/hda1 rw noinitrd ip=dhcp bootdelay=3 baudrate=115200 bootfile=library/davinci/0.4.2/uImage (NOT USED) serverip=192.168.160.71 (NOT USED) bootcmd=bootm 0x2050000 stdin=serial stdout=serial stderr=serial ethaddr=00:0e:99:02:51:46 When you boot, look for the following line that confirms the boot mode: ## Booting image at 02050000 ...
  • Page 58 Alternate Boot Methods When you boot, look for the following lines that confirm the boot mode: TFTP from server 192.168.160.71; our IP address is 192.168.161.186 Filename 'library/davinci/0.4.2/uImage'. ## Booting image at 80700000 ... A.5.3 Booting from Flash Using NFS File System To boot in this mode, set the following parameters after you abort the automatic boot sequence: EVM # setenv bootcmd 0x2050000...
  • Page 59 Alternate Boot Methods A.5.4 Booting via TFTP Using NFS File System To boot in this mode, set the following parameters after you abort the automatic boot sequence: EVM # setenv bootcmd 'dhcp;bootm' EVM # setenv serverip 192.168.160.71 EVM # setenv bootfile library/davinci/0.4.2/uImage EVM # setenv rootpath /exports/useracct EVM # setenv nfshost 192.168.160.57 EVM # setenv bootargs console=ttyS0,115200n8 noinitrd rw...
  • Page 60: Installing Components Under Windows

    ❏ DVEVM: mvl_lsp_setupwin32_#_##_##_##.exe ❏ DVEVM: dvevm_setupwin32_#_##_##_##.exe The DVEVM does not include the Windows version of the MontaVista Linux Tools. If you want to use a Windows host for DaVinci development, you will need to obtain the Windows version of the MontaVista Linux Tools from Texas Instruments.
  • Page 61: Rebuilding Dsp/Bios Link

    Rebuilding DSP/BIOS Link Rebuilding DSP/BIOS Link If you want to rebuild the DSP/BIOS Link package, follow these steps (assuming you are using the bash shell): 1) Edit davinci_mvlpro4.0.mk file, which ~/dvevm_#_##/dsplink_1_##_##_##/packages/dsplink/make/Linux/ directory, to make sure the BASE_BUILDOS and BASE_CGTOOLS variables correctly point to the correct locations. 2) Define the DSPLINK environment variable to be the absolute path to the "dsplink"...
  • Page 62: Restoring And Updating The Dvevm Hard Disk Drive

    Configure the host Ethernet port to obtain IP address dynamically via a DHCP server running inside the router. 3) Connect the Ethernet port of the target DVEVM to another port on the same router. This establishes a network connection with your host workstation.
  • Page 63 A.8.3 Restore the DVEVM Hard Disk Drive The DVEVM hard disk drive (HDD) can be restored from a target DVEVM HDD partition or from the host Linux workstation file system. It is not necessary to follow both methods; they both achieve the same result.
  • Page 64 Restoring and Updating the DVEVM Hard Disk Drive A.8.3.1 Restoring From Target DVEVM HDD Partition Follow these steps to restore the HDD from the restore partition on the HDD itself: 1) Make a directory for mounting the HDD restore partition:...
  • Page 65 9) When the "Power down" message is printed in the terminal window, it is safe to power down the DVEVM. 10) Restart the DVEVM and configure U-Boot to root mount via the local HDD. Follow the steps in Section A.5.1, Booting from Flash Using Board’s Hard Drive File System.
  • Page 66 Restoring and Updating the DVEVM Hard Disk Drive A.8.4 Update DVEVM Hard Disk Drive from Update Website You can download and install updated DVEVM HDD software from the DVEVM Update website. To do this, follow these steps: 1) Download latest...
  • Page 67 NFS A-14 black box 4-2 NFS 4-9 DSP/BIOS Link 4-4 standard 3-2 DVD button 3-2 TFTP with hard drive A-13 DVEVM 1-2 TFTP with NFS A-15 installing software 4-7 boot sequence A-12 DVEVM software build environment 4-11 rebuilding 4-12 dvevm_setupwin32_#.exe installer A-16...
  • Page 68 NFS server 4-8 HyperTerminal 2-6 boot configuration A-14, A-15 testing 4-9 NTSC video 2-2, 4-10 Info/Select button 3-4 installing DVEVM software 4-7 OSD show and hide 3-4 hardware 2-2 OSD toggle 3-4 Linux software 4-6 overlay.tar.gz file 4-2 on Windows host A-16...
  • Page 69 4-14 Third-Party Menu 3-3, A-9 quit demo 3-3 TMS320DM6446 1-3 transparency of OSD 3-4 rebuilding DVEVM software 4-12 U-Boot utility 4-12 Linux kernel 4-12 u-boot.bin file 4-2 Record button 3-4 uImage boot file 4-14 Red Hat Enterprise Linux 4-6...
  • Page 70 Index-4...

Table of Contents