Texas Instruments TMS320DM6446 DVEVM v2.0 manual Setting Up the Build/Development Environment

Page 45

Setting Up the Build/Development Environment

These codecs are provided under a "for demonstration-only" license agreement. If you wish to use these codecs in a production development environment, you can go to the DVEVM Updates web site at http://www.ti.com/dvevmupdates to download the latest production versions, along with the appropriate license agreement.

4.4Setting Up the Build/Development Environment

To set up the GPP-side development and build environment, follow these steps:

1)Log in to your user account (and not as root) on the NFS host system.

2)Set your PATH so that the MontaVista tool chain host tools and cross compiler (arm_v5t_le-gcc) can be found. For example, in a default installation of the MontaVista LSP, you should add a definition like the following to your shell resource file (for example, ~/.bashrc):

PATH="/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin: /opt/mv_pro_5.0/montavista/pro/bin: /opt/mv_pro_5.0/montavista/common/bin:$PATH"

If you installed in a location other than /opt/mv_pro_5.0, use your own location in the PATH.

3)Remember to use the following command after modifying your

.bashrc file:

host $ source ~/.bashrc

4.4.1Writing a Simple Program and Running it on the EVM

Make sure you have performed the steps in Section 4.3.5, Exporting a

Shared File System for Target Access and Section 4.4, Setting Up the

Build/Development Environment.

Perform the following steps on the NFS host system as user (not as root):

1)host $ mkdir /home/<useracct>/workdir/filesys/opt/hello

2)host $ cd /home/<useracct>/workdir/filesys/opt/hello

3)Create a file called hello.c with the following contents:

#include <stdio.h>

int main() { printf("Buongiorno DaVinci!\n"); return 0;

}

DVEVM Software Setup

4-13

Image 45
Contents TMS320DM6446 Dvevm Getting Started Guide Important Notice Evaluation BOARD/KIT Important Notice FCC Warning About This Guide PrefaceNotational Conventions Contents Contents Dvevm Overview Welcome What’s in this Kit? What’s on the Board? EVM Hardware Block DiagramWhat’s Next? Page EVM Hardware Setup Setting Up the Hardware EVM Hardware Setup Setting Up the Hardware Setting Up the Hardware Connecting to a Console Window Running the Demonstration Software Starting the Standalone Demos Default Boot ConfigurationStarting the Standalone Demos Running the Standalone Demos Shutting Down the Demos IR Remote Buttons for Encode + Decode Demo About the Encode + Decode DemoIR Remote Buttons for Encode Demo About the Encode DemoAbout the Decode Demo About the Third Party Menu Running the Demos from the Command LineTarget $ cd /opt/dvsdk/dm6446 Running the Network Demo Page Dvevm Software Setup Software Overview Command Prompts in This Guide Dmai Software ComponentsInstalling the Software Preparing to InstallInstalling the Target Linux Software Installing the Dvsdk Software Installing the A/V Demo Files Exporting a Shared File System for Target Access Installing the SoC AnalyzerVerify that the server firewall is turned off EVM # setenv nfshost ip address of nfs host Testing the Shared File SystemConfiguring the Boot Setup for PAL Video Users Writing a Simple Program and Running it on the EVM Setting Up the Build/Development EnvironmentBuilding a New Linux Kernel Enable Linux Trace Toolkit Support as built-in Rebuilding the Dvevm Software for the Target EVM # setenv serverip tftp server ip address Booting the New Linux KernelUsing the Digital Video Test Bench Dvtb Testing the Build EnvironmentRelease Notes User Guide Running The SoC Analyzer Documentation for Dvsdk Components Documentation for DSP-Side DevelopmentXDAIS-DM Digital Additional Procedures Changing the Video Input/Output Methods Using S-Video InputOUT Using S-Video OutputPr Pb Using Component Video OutputPutting Demo Applications in the Third-Party Menu File filename.tar.gz You should see the following output Setting Up a Tftp ServerBooting from Flash Using the EVM’s Hard Drive File System Alternate Boot MethodsBooting via Tftp Using the EVM’s Hard Drive File System Booting via Tftp Using NFS File System Booting from Flash Using NFS File SystemRebuilding DSP/BIOS Link Restoring and Updating the EVM Hard Disk Drive System SetupConfigure EVM for NFS Root Mount Restoring From Target EVM HDD Partition Restore the EVM Hard Disk DriveRestoring From Host Linux Workstation File System Go to the /restore directory Index Index--2 Index--3 Index--4 Page Spectrum Digital, Inc 508168-0001C