You are on page 1of 26

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.

cn

RUIVA-DM6446-0012 User Guide

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

Preface

About This Guide The DVEVM (Digital Video Evaluation Module) kit is an evaluation platform that showcases the DM6446 architecture and lets users evaluate the power and performance of the DM6446 as a multimedia engine. This guide gives you overview information about the board and the software provided with the board. It is intended to be used as an introductory document for the DVEVM. Other documents provide more in-depth information. See the DVEVM release notes for a complete list of documents that have been included with the product. Additional Documents and Resources You can use the following sources to supplement this users guide: LSP 2.0 DaVinci Linux EVM Installation Users Guide (SPRUG94) Spectrum Digital website: http://c6000.spectrumdigital.com/davincievm TI Linux Community for DaVinci Processors:
Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

http://linux.davincidsp.com TI DaVinci Technology Developers Wiki:

http://wiki.davincidsp.com Codec Engine Application Developer's Guide

(SPRUE67) Other PDF documents included with the DVEVM kit

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

Chapter1

DVEVM Overview
This chapter introduces the DVEVM (Digital Video Evaluation Module) kit.

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

1.1 Welcome! Your new DVEVM (Digital Video Evaluation Module) kit will allow you to evaluate TIs new DaVinciTM Technology and the DM6446 architecture. This technology brings together system-solution components tailored for efficient and compelling digital video and audio.

1.2 Whats in this Kit? A DVEVM (DaVinci Evaluation Module) is a physical kit that includes the DVSDK software bundle, a demonstration version of MontaVista Linux Pro, the EVM board, and other hardware items. The DVSDK (DaVinci
Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

Software Development Kit) software bundle contained in a DVEVM includes such products as DSP/BIOS, Codec Engine, DSP Link, DVTB, and demo applications. Your DVEVM kit contains the following hardware items. Section 2.1, Setting Up the Hardware tells how to connect these components. RUIVA-DM6446-0012 EVM Board. This board

contains a DaVinci TMS320DM6446 dual core device with an ARM9 and C64+ DSP for development of applications that use both a general-purpose processor and an accelerated DSP processor. CCD Camera (Optional). This camera provides video imaging for DaVinci applications. LCD Display (Optional). The LCD display provided with the DVEVM kit has a 7" screen. Cables and a power supply are provided. PC Desktop Microphone (Optional). The microphone provides a way to capture audio for use by DaVinci applications. Cables (Optional). Cables used to connect the EVM board to peripheral devices and to a host.

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

Chapter2

EVM Hardware Setup


This chapter tells you how to set up the EVM hardware.

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

2.1 Setting Up the Hardware To set up the hardware provided with the EVM, use the steps in the sections that follow. 1) The EVM is sensitive to static discharges. Use a grounding strap or other device to prevent damaging the board. 2) Connect the BNC connector to the yellow video cable. Then connect the video cable to the lower-right Video Out jack on the EVM and the LCD display Video Input as shown below.

3) Connect the BNC connector to the yellow video camera cable. Then connect the video camera cable to the video camera and the EVM Video Input as shown below.
Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

4) Connect the power jack for the video camera. To be ESD safe, do not plug in the other end of the camera power cord until the later step that instructs you to do so.

5) Connect the microphone to the pink Audio In jack and headphone to the green Audio Out jack as shown below.

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

6) If you will use the Ethernet connection, connect the Ethernet cable to the Ethernet Port on the EVM and to an Ethernet network port as shown below.

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

7) If you plan to use the UART port for a console window, connect the RS-232 null modem cable to the upper-left EVM UART port and a COM port on your host Linux workstation. See Section 2.2, Connecting to a Console Window for more about using a console window.

8) Plug in the LCD display to a power supply.

9) Plug in the video camera to a power supply.

10) Power on the LCD display.

11) Power on the EVM board as shown below.

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

2.2 Connection to a Console Window You can open a console window that allows you to watch and interrupt EVM boot messages by following these steps: 1) Connect a serial cable between the serial port on the EVM and the serial port (for example, COM1) on a PC.

2) Run a terminal session (such as Minicom on Linux or HyperTerminal on Windows) on the workstation and configure it to connect to that serial port with the following characteristics:

Bits per Second: 115200 Data Bits: 8


Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

Parity: None Stop Bits: 1 Flow Control: None

3) As shown below, when you power on the EVM, you will see boot sequence messages. You can press a key to interrupt the boot sequence and type commands in the U-Boot command shell. In this guide, commands to be typed in the U-Boot shell are indicated by an Ruiva-Dm6446-0012# prompt.

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

Chapter3

DVEVM Software Setup


This chapter explains how to use the software provided with the DVEVM kit.

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

3.1 Command Prompts in This Guide In this guide, commands are preceded by prompts that indicate the environment where the command is to be typed. For example: host $ Indicates command to be typed into the shell window of the host Linux workstation. Ruiva-Dm6446-0012# Indicates commands to be typed into the U-Boot shell in a console window connected to the EVM board's serial port. (Section 2.2) target $ Indicates commands to be typed into the Linux shell in the terminal window connected to the EVM board's serial port. 3.2 Installing the Software Installing the software used by the DVEVM involves performing the following steps: 3.2.1 Installing the Target Linux Software This section explains how to install Linux for use on the target board. To install the Linux software, follow these steps:
Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

1) Log in with a user account on the host Linux workstation. 2) Perform the following commands to prepare a location for the Target Linux Software. For example:
host $ cd /home/<useracct> host $ mkdir workdir host $ cd workdir

3) Switch user to "root" on the host Linux workstation.


host $ su root

4) Insert and mount the DVEVM demonstration DVD, and copy the ruiva-dm6446-dvsdk2-rel.gz file from the mount directory to the /home/<useracct>/workdir directory. For example:
host $ mount /dev/cdrom /media/cdrom0 host $ cp /media/cdrom0/ruiva-dm6446-dvsdk2-rel.gz ./

5) We suggest that you create a directory called


/home/<useracct>/workdir/ruiva-dm6446-dvsdk2-v2 using

the following command. This will be the directory into which you install the software.
host $ mkdir ruiva-dm6446-dvsdk2-v2 host $ cd ruiva-dm6446-dvsdk2-v2

6) Unpack the ruiva-dm6446-dvsdk2-rel.gz (as root) by using the following commands:


host $ tar zxvf ruiva-dm6446-dvsdk2-rel.gz

3.2.2 Exporting a Shared File System for Target Access 1) Perform the following commands to prepare a location for the file system.
Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn host $ cd ruiva-dm6446-dvsdk2-rel host $ mkdir -p workdir/filesys

2) Perform the following commands to create a copy of the target file system with permissions set for writing to the shared area.
host $ cd workdir/filesys host $ cp -a ../../montavista/pro/devkit/arm/v5t_le/target/* ./ host $ chmod a+w opt

3) Use the vi /etc/exports command to edit the /etc/exports file on the host Linux workstation (not the exports file on the target file system). Add the following line for exporting the file system area, substituting your user name for <useracct>. Use the full path from root. /home/<useracct>/workdir/ruiva-dm6446-dvsdk2-v2/ruiva-dm6446-dvsd k2-rel/workdir/filesys *(rw,no_root_squash,no_all_squash,sync) Note: Make sure you do not add a space between the * and the ( in the above command. 4) Still as root, use the following commands to make the NFS server aware of the change to its configuration and to invoke an NFS restart.
host $ /usr/sbin/exportfs -av host $ /sbin/service nfs restart

5) Verify that the server firewall is turned off:


host $ /etc/init.d/iptables status

If the firewall is running, disable it:


host $ /etc/init.d/iptables stop

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

3.2.3 Compiling the Kernel 1) Perform the following commands to set the environment variables:
host$
export EVM_ROOT=/home/<useracct>/workdir/ruiva-dm6446-dvsdk2-v2/ruiva-dm 6446-dvsdk2-rel

host$ export C6X_C_DIR_ROOT=$EVM_ROOT/cg6x_6_0_16 host$ export


C6X_C_DIR="$C6X_C_DIR_ROOT/include;$C6X_C_DIR_ROOT/lib"

host$
export PATH="$EVM_ROOT/montavista/pro/devkit/arm/v5t_le/bin:$EVM_ROOT/mo ntavista/pro/bin:$EVM_ROOT/montavista/common/bin:$PATH"

2) Perform the following commands to compile the kernel and copy the uImage to the /tftpboot directory:
host$ cd /home/<useracct>/workdir host$ cd ruiva-dm6446-dvsdk2-v2/ruiva-dm6446-dvsdk2-rel host$ cd linux-2.6.18_pro500 host$ make ARCH=arm CROSS_COMPILE=arm_v5t_ledavinci_dm644x_ruiva_defconfig

host$ make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage

3) Use the following command to copy the uImage to a place where Uboot can use TFTP to download it to the EVM. These commands assume you are using the default
Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

TFTP boot area, which is /tftpboot. If you use another TFTP root location, please change /tftpboot to your own TFTP root location. (Perform these commands as root or use a chown uImage command to get ownership of the file.)
host$ cp arch/arm/boot/uImage /tftpboot/ host$ chmod a+r /tftpboot/uImage

3.2.4 Building the DVSDK Software for the Target To place demo files in the /opt/dvsdk/dm6446 directory, you need to rebuild the DVSDK software. To do this, follow these steps: 1) Change directory to dvsdk_2_00_00_22.
host $ cd
/home/<useracct>/workdir/ruiva-dm6446-dvsdk2-v2/ruiva-dm644 6-dvsdk2-rel/dvsdk_2_00_00_22

2) Use the vi Rules.make command to edit the Rules.make file in the dvsdk_2_00_00_22 directory as needed. Modify the following line for setting the Home variable.
HOME=/home/<useracct>/workdir/ruiva-dm6446-dvsdk2-v2/ruivadm6446-dvsdk2-rel

3) While in the same directory that contains Rules.make, use the following commands to build the
Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

DVSDK demo applications and put the resulting binaries on the target file system.
host $ make clean host $ make host $ make install

3.3 Testing the Shared File System To test your NFS setup, follow these steps: 1) Get the IP address of your host Linux workstations as follows. Look for the IP address associated with the eth0 Ethernet port.
host $ /sbin/ifconfig

2) Open a terminal emulation window to connect to the EVM board via RS-232 using the instructions in Section 2.2. If you have a Windows workstation, you can use HyperTerminal. If you have a Linux workstation, you might use Minicom. (You may need to turn on linewrap.)

3) Power on the EVM board, and abort the automatic boot sequence by pressing a key in the console window (Section 2.2).

4) Set the following environment variables in the


Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

console window:
Ruiva-Dm6446-0012# setenv bootcmd 'tftpboot 0x80700000 uImage;bootm' Ruiva-Dm6446-0012# setenv serverip <IP address of your host Linux workstation> Ruiva-Dm6446-0012# setenv bootfile uImage Ruiva-Dm6446-0012# setenv nfshost <IP address of your host Linux workstation> Ruiva-Dm6446-0012# setenv videostd pal Ruiva-Dm6446-0012# setenv rootpath <directory to mount> Ruiva-Dm6446-0012# setenv bootargs video=davincifb:vid0=0,2500K:vid1=0,2500K:osd0=720x 576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd) console=ttyS0,115200n8 noinitrd rw ip=dhcp eth=00:0e:99:02:51:54 root=/dev/nfs nfsroot=$(nfshost):$(rootpath),nolock mem=118M

Note that the setenv bootargs command should be typed on a single line. The <directory to mount> must match what you specified in Step 3 of Section 3.2.2. For example,/home/<useracct>/workdir/ruiva-dm6446-dvsdk2 -v2/ruiva-dm6446-dvsdk2-rel/workdir/filesys

5) Save the environment so that you don't have to retype these commands every time you cycle power on the EVM board:
Ruiva-Dm6446-0012# saveenv Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

6) Boot the board using NFS:


Ruiva-Dm6446-0012 # boot

7) You can now log in as "root" with no password required as shown below.

3.4 Running the Demo Type the command into the Linux shell in the terminal window connected to the EVM board's serial port.

target # cd /opt/dvsdk/dm6446 target # ./loadmodules.sh target # ./encodedecode

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

Appendix A

Additional Procedures
This appendix describes optional procedures you may use depending on your setup and specific needs.

Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn

A.1 Alternate Boot Methods The default configuration for the EVM is TFTP boot with NFS file system. The following is another way you may want to boot the board: Flash boot with YAFFS file system(Section A.1.1) A.1.1 Booting from Flash Using the YAFFS File System To boot in this mode, follow these steps: 1) Type the following command into the Linux shell in the terminal window connected to the EVM board's serial port.
target # mkdir /mnt/nand target # flash_eraseall /dev/mtd3 target # mount -t yaffs2 /dev/mtdblock3 /mnt/nand target # cd /mnt/nand target # tar xvzf /home/ecs/yaffs2.tgz target # reboot

2) Reboot the EVM board, and abort the automatic boot sequence by pressing a key in the console window (Section 2.2).

3) Flash the kernel in NAND


Beijing Ruiva Information Technology Company Confidential

Beijing Ruiva Information Technology Co., Ltd. www.ruiva.com.cn Ruiva-Dm6446-0012# tftpboot 0x80700000 uImage Ruiva-Dm6446-0012# nand erase 0x200000 0x200000 Ruiva-Dm6446-0012# nand write 0x80700000 0x200000 0x200000

4) Set the following environment variables in the console window:


Ruiva-Dm6446-0012# setenv bootcmd 'nboot 0x80700000 0 0x200000; bootm' Ruiva-Dm6446-0012# setenv bootargs 'console=ttyS0,115200n8 noinitrd root=/dev/mtdblock3 rw rootfstype=yaffs2 ip=dhcp eth=00:0e:99:02:51:54 nolock mem=118M'

5) Save the environment so that you don't have to retype these commands every time you cycle power on the EVM board:
Ruiva-Dm6446-0012# saveenv

6) Boot the board using YAFFS:


Ruiva-Dm6446-0012 # boot

Contact: Gao Yuechao Tel: 8610-62963679-8001 Mobile; (86) 13466710161 Email: sales@ruiva.cn sales@ruiva-fastproto.com Website: www.ruiva.cn www.ruiva-fastproto.com

Beijing Ruiva Information Technology Company Confidential

You might also like