DSP/BIOS LINK. DM6446/DM6467/DM6467T Media Processor LNK 110 USR 1.64

Similar documents
DSP/BIOS LINK OMAP2530 EVM LNK 172 USR. Version 1.64 NOV 13, 2009

DSP/BIOS Link. Installation Guide Published on 23 rd JUNE Copyright 2009 Texas Instruments Incorporated.

DSP/BIOS Link. Installation Guide Published on 20 th OCT Copyright 2009 Texas Instruments Incorporated.

DSP/BIOS Link. Platform Guide Published on 20 th JUNE Copyright 2009 Texas Instruments Incorporated.

Configuring Code Composer Studio for OMAP Debugging

DSP/BIOS LINK. Pool LNK 082 DES. Version 1.30

DSP/BIOS LINK. Configurable TSK and SWI approach LNK 207 DES. Version <1.00>

Debugging Shared Memory Systems

DSP/BIOS LINK. OMAP5912 Starter Kit (OSK) Montavista Linux Professional Edition 3.1 LNK 058 USR. Version AUG 13, 2004

CUSTOM GOOGLE SEARCH. User Guide. User Guide Page 1

COMMUNICATIONS WITH THE MULTI- CHANNEL HOST P RT INTERFACE

Using the TMS320C5509 USB Bootloader

FlashBurn: A DSK Flash Memory Programmer

A DSP/BIOS AIC23 Codec Device Driver for the TMS320C5510 DSK

DaVinci System Optimization

Techniques for Profiling on ROM-Based Applications

Memory Allocation Techniques in System with Dynamic Swapping of Application Codes

DSP/BIOS LINK RING IO LNK 129 DES. Version 0.91

A DSP/BIOS AIC23 Codec Device Driver for the TMS320C6416 DSK

TFP101, TFP201, TFP401, TFP401A 2Pix/Clk Output Mode

OMAP SW. Release Notes. OMAP Software Tools OST version 2.5 Release. 16xx/1710/242x platforms. Document Revision: 2.5 Release

ADD RELATED PRODUCTS TO CART. User Guide. User Guide Page 1

Building Linux for the Innovator Development Kit for OMAP Platform

C Fast RTS Library User Guide (Rev 1.0)

INVENTORY HISTORY REPORT EXTENSION. User Guide. User Guide Page 1

This document describes the features of the GUI program used to control Power Line Modem with E-Meter Platform.

INVENTORY REPORT EXTENSION. User Guide. User Guide Page 1

PROGRAMMING THE MSC1210

IMPORT/EXPORT Newsletter Subscribers. User Guide. User Guide Page 1

Getting Started Guide: TMS-FET470A256 IAR Kickstart Development Kit

Increase Current Drive Using LVDS

Using the TMS320 DSP Algorithm Standard in a Dynamic DSP System

EV Software Rev Evaluation System User Guide. Introduction. Contents. Hardware and Software Setup. Software Installation

NO P.O. BOXES ALLOWED AT CHECKOUT. User Guide. User Guide Page 1

Power Line Modem with E-Meter Platform Quick Start Guide

TMS320C6000 DSP Interrupt Selector Reference Guide

TMS320C6000 DSP Software-Programmable Phase-Locked Loop (PLL) Controller Reference Guide

Application Report. 1 Introduction. MSP430 Applications. Keith Quiring... ABSTRACT

TMS320C64x DSP Peripheral Component Interconnect (PCI) Performance

Programming the TMS320VC5509 RTC Peripheral

TMS470R1x External Clock Prescale (ECP) Reference Guide

TMS320C6000 DSP 32-Bit Timer Reference Guide

SavvyCube Ecommerce Analytics Connector by MageWorx. User Guide

AntMiner S9 Installation Guide

AntMiner T9 Installation Guide

IndoTraq Development Kit 1: Command Reference

PMC to PCI Express Adapter with JN4 Connector Breakout

AntMiner L3+ Installation Guide

TMS320C620x/C670x DSP Boot Modes and Configuration Reference Guide

1. Installation Instructions

GUEST CHECKOUT TO REGISTERED CUSTOMERS

The examples in this application report require the Flash API Modules (SPRC236) within the "Tools & Software" folder.

The TMS320 DSP Algorithm Standard

GUEST CHECKOUT TO REGISTERED CUSTOMERS. User Guide. User Guide Page 1

IMPORT/EXPORT CUSTOMERS FOR MAGENTO 2. User Guide. User Guide Page 1

TMS320UC5409/TMS320VC5409 Digital Signal Processors Silicon Errata

SITE 2 SITE SYNC DOCUMENTATION. User Guide. User Guide Page 1

A Technical Overview of expressdsp-compliant Algorithms for DSP Software Producers

MV 4412 Android 4.0 Compilation

I2C and the TAS3001C. Introduction. The I2C Protocol. Digital Audio Group ABSTRACT

DatasheetDirect.com. Visit to get your free datasheets. This datasheet has been downloaded by

TLK10081 EVM Quick Start Guide Texas Instruments Communications Interface Products

Store & Currency Auto Switcher

Quad-Channel TEC Controller Getting Started Guide. Contents. Introduction. Contents of Evaluation Kit

Table 1. Proper Termination of Unused (Port) Pins in a Single-Port PSE System

AntMiner D3 Installation Guide

2. With the Evaluation Kit DVD, click the Tools button and then click the Code Composer Studio logo to start the setup program.

Lab 1. OMAP5912 Starter Kit (OSK5912)

TMS320C6000 DSP General-Purpose Input/Output (GPIO) Reference Guide

Pengwyn Documentation

1. Installation Instructions

1. Installation Instructions

Interfacing the ADS8320/ADS8325 to The TMS320C6711 DSP

Important Notice. All company and brand products and service names are trademarks or registered trademarks of their respective holders.

TMS320DM642 Evalaution. Technical Modul e Reference DSPDevelopment Systems OSK5912. User's Guide. MontaVista Linux Preview CD-ROM

TMS320VC5409A Digital Signal Processor Silicon Errata

TCI6616/C6670/TCI6608/C6678 Device Simulator EMAC Model I/O user-guide

Code Composer Studio Getting Started Guide

PCIxx12 Single Socket CardBus Controller with Integrated 1394a-2000 OHCI Two-Port PHY/Link-Layer Controller

WL1271 ini File Description and Parameters User's Guide

External Programming of the TMS320C64x EDMA for Low Overhead Data Transfers

OMAP INSTRUCTION SET SIMULATOR TECHNICAL OVERVIEW

Hardware UART for the TMS320C3x

IMPORT/EXPORT WISH LIST ITEMS FOR MAGENTO 2. User Guide. User Guide Page 1

1. Installation Instructions

File Downloads User Guide

Maximizing Endurance of MSC1210 Flash Memory

Stereo Dac Motherboard application information

Application Report. 1 System Requirements. 2 Using the DM643x Pin Multiplexing Utility. Bernard Thompson...

Bootstrap Loader (BSL) Scripter User s Guide

ARM Compiler Tips and Code Size Optimization Using DSP/BIOS Link

Texas Instruments Voltage-Level-Translation Devices

SN5446A, 47A, 48, SN54LS47, LS48, LS49 SN7446A, 47A, 48, SN74LS47, LS48, LS49 BCD-TO-SEVEN-SEGMENT DECODERS/DRIVERS

IMPORT/EXPORT CMS PAGES FOR MAGENTO 2. User Guide. User Guide Page 1

MV V310 Android 4.0 Compilation

Application Report. 1 Hardware Description. John Fahrenbruch... MSP430 Applications

Donations Ultimate User Guide

AC Induction Motor (ACIM) Control Board

SN65DSI86 SW Examples

Calibration Routines and Register Value Generation for the ADS1216, ADS1217 and ADS1218

Transcription:

DM6446/DM6467/DM6467T Media Processor NOV 13, 2009

This page has been intentionally left blank.

IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI s terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI s standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed. TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Mailing Address: Texas Instruments Post Office Box 655303 Dallas, Texas 75265 Copyright. 2003, Texas Instruments Incorporated

This page has been intentionally left blank.

TABLE OF CONTENTS A. INTRODUCTION... 7 1 Purpose... 7 2 Text Conventions... 7 3 Terms & Abbreviations... 7 4 References... 7 B. INSTALLATION... 8 5 Basic Installation... 8 5.1 Installing Standalone DSP/BIOS and CGTools... 8 5.2 Installing GNU make 3.81... 8 6 Creating development workspace... 9 7 Setting up Linux Workstation... 11 7.1 Setting up workstation for Montavista pro 5.0 uclibc...11 7.2 Setting up workstation for Montavista pro 5.0 glibc...14 7.3 Setting up Linux for DM6467 and DM6467T parts...18 8 Configuring CCS... 19 8.1 DM6446 EVM and DM6467 EVM...19 C. WORKING ON TARGET PLATFORM... 20 9 DM6446 EVM and DM6467 EVM... 20 9.1 Setting up Linux environment...20 9.2 Configuring Kernel Parameters...20 9.3 Configure the DSP/BIOS LINK for DM6446 or DM6467...20 9.4 Building DSPLink...21 10 Running the sample applications... 22 10.1 Copying files to target file system...22 10.2 Loading the kernel module: dsplinkk.ko...23 10.3 Invoking the application...23 10.4 Unloading the kernel module: dsplinkk.ko...25 D. ADDITIONAL INFORMATION... 26

TABLE OF FIGURES Figure 1. Figure 2. Figure 3. Expected directory structure on development host...10 Expected directory structure on the Linux workstation for MVL pro 5.0 uclibc...11 Expected directory structure on the Linux workstation for MVL pro 5.0 glibc...15

A. INTRODUCTION 1 Purpose DSP/BIOS LINK is foundation software for the inter-processor communication across the GPP-DSP boundary. It provides a generic API that abstracts the characteristics of the physical link connecting GPP and DSP from the applications. It eliminates the need for customers to develop such link from scratch and allows them to focus more on application development. This document provides the users necessary information to install DSP/BIOS LINK on the development host. This document corresponds to the product release dated NOV 13, 2009. 2 Text Conventions This bullet indicates important information. Please read such text carefully. This bullet indicates additional information. [ arg1 arg2 ] In context of the commands, contents enclosed in square brackets are the optional arguments to the command. 3 Terms & Abbreviations Different values of these arguments are separated by. CCS IPC GPP DSP CGTools Code Composer Studio Inter Processor Communication General Purpose Processor e.g. ARM Digital Signal Processor e.g. TMS320C5510 Code Gen Tools, e.g. Compiler, Linker, Archiver 4 References 1. Montavista Linux Professional Edition 5.0 - Installation Guide 2. REL_LSP_02_00_00_1 40.tgz InstallGuide-Pro50_highres.pdf Release notes and User Guide. Page 7 of 27

B. INSTALLATION 5 Basic Installation The DSP/BIOS LINK is made available as a tar.gz file. To install the product follow the steps below: 1. Unzip and untar the file dsplink_.tar.gz. This document assumes the install path to be in the user home directory if working on a Linux PC. This path will be used in remainder of this document. This document assumes the install path to be L:\dsplink if working on a Windows PC. This path will be used in remainder of this document. If the installation was done at different location, make appropriate changes to the commands listed in the document. It is advisable to archive the released sources in a configuration management system. This will help in merging: The updates delivered in the newer releases of DSP/BIOS LINK. The changes to the product, if any, done by the users. 5.1 Installing Standalone DSP/BIOS and CGTools This release will not work with BIOS version earlier than 5.32.01. The standalone DSP/BIOS and standalone CGTools are available for Linux platform as well. Refer to the URL mentioned below for getting the distribution of DSP/BIOS and the associated installation instructions. https://www-a.ti.com/downloads/sds_support/targetcontent/bios/index.html The directory structure specified in Figure 1 is expected by the build system of DSP/BIOS LINK. If you install the tools to a different directory, you will also need to modify the make system and the scripts contained in the release package. You may need to copy the directories to create the structure expected for compiling sources. Refer to section on Understanding the MAKE System in the User Guide for details. 5.2 Installing GNU make 3.81 For compilation of DSPLINK sources the GNU make 3.81 can be used. Download the make 3.81 from the URL http://ftp.gnu.org/pub/gnu/make/make-3.81.tar.gz The following are the installation steps required to install make on the development host machine. 1. Copy and untar make-3.81.tar.gz to your home directory. 2. cd to make-3.81 directory Page 8 of 27

3. Type './configure' and press enter to configure the package for your system. Running `configure' takes awhile. By default, make package's files will be installed in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `-- prefix=prefix'. For example, To install make at /usr/local/bin run the configure command like below.. /configure --prefix=/usr/local. To install make at /usr/bin run the configure command like below../configure --prefix=/usr 4. Type `make' and press enter to compile the package. 5. Optionally, type `./make check' and press enter to run any self-tests that come with the package. 6. Type `make install' and press enter to install the programs and any data files and documentation. 7. For additional details refer to INSTALL file located under make-3.81 directory 6 Creating development workspace This document and the scripts included in the release assume the following directory structure on your development host: Page 9 of 27

/opt/ti-tools c:\ti-tools bios c6000 soft link or copy bios_5_32_04 cgtools bin include lib Figure 1. Expected directory structure on development host For Linux, the build system shipped with DSP/BIOS LINK assumes that the standalone DSP/BIOS is installed in the /opt/ ti-tools/ directory on the <ROOT-DRIVE> and CGTools is installed in the ti-tools/c6000 directory on the <ROOT-DRIVE>. For the Windows development host, the build system shipped with DSP/BIOS LINK assumes that the standalone DSP/BIOS is installed in the ti-tools\ directory on the <ROOT-DRIVE> and CGTools is installed in the titools\c6000\ directory on the <ROOT-DRIVE>. To support multiple installations of DSP/BIOS with a single DSP/BIOS LINK DSP-side distribution file, a standard /opt/ti-tools/bios on Linux and c:\titools\bios directory is used for the BIOS installation. This can be a soft link or copy to the actual DSP/BIOS installation directory. Page 10 of 27

7 Setting up Linux Workstation 7.1 Setting up workstation for Montavista pro 5.0 uclibc The description in this section is based on the following assumptions: 1. Host PC with RedHat Enterprise Linux version 9.0 to install the MVL uclibc package. 2. Services telnetd, nfsd, ftpd are configured on this workstation. 3. The workstation is assigned a fixed IP address. 4. 3GB Space is required for the installation of tool chain for a single LSP of a single architecture type. The release package has been tested on RedHat Linux version 9.0. You may be able to build on a different version depending on the compatibility of the build tools in your version with version 9.0. A fixed IP address is preferred, as the IP address needs to be specified while booting the target board. This allows the boot loader configuration to be saved in flash. This document and the scripts included in the release assume the following directory structure in your home directory on the Linux workstation: /home/<user> dsplink <distribution> kernel target Figure 2. Expected directory structure on the Linux workstation for MVL pro 5.0 uclibc In this diagram: <user> represents the actual user name <distribution> represents the actual distribution of Linux being used. This section assumes that Montavista Linux Professional Edition 5.0 is installed on the development workstation at /opt/montavista/pro. 7.1.1 Building the kernel These steps are for the Linux PSP package for DM6446. Please refer to the release notes for Linux LSP package for detailed build steps. 1. Download the required Montavista packages from Montavista website: pro-host-arm_v5t_le-0702774.iso Page 11 of 27

lsps-arm_v5t_le_uclibc-0702774.iso devrocket-0702794.iso src-pro-0702774.iso docs-pro-0702774.iso 2. Step a: Transfer these images/isos to the Host machine. Step b: Create few mount points to mount the isos. For minimum installation, i.e. without docs, only two mount points are required. Step c: Mount the following isos. pro-host-arm_v5t_le-0702774.iso lsps-arm_v5t_le_uclibc-0702774.iso If in your system /dev/loop0 or /dev/loop1 is already used up then you can try using /dev/loop2...n onwards. Step d: On a new console (as root) run the command to start the web server to install the tool chain. Step e: On another console run (as root) the command to install the tool chain. Please follow the on screen steps and complete the installation. Please note that installation selection is on LSP basis. Step b : Directory creation example $mkdir /mnt/iso1 $mkdir /mnt/iso2 Step c: Mount command example: $mount -t iso9660 pro-host-arm_v5t_le-0702774.iso /mnt/iso1 -o loop=/dev/loop0 $mount -t iso9660 lsps-arm_v5t_le_uclibc-0702774.iso /mnt/iso2 -o loop=/dev/loop1 Step d: $/mnt/iso1/install --host Redhat Step e: $/tmp/mvl-install/bin/links http://127.0.0.1:9999/mvlinstaller.cgi or From a windows machine open a web browser and run http://<ip-address of linux pc>:9999 The sources can be copied to a different location. In such a case ~/montavista/kernel/linux can be a soft link to the actual location. 3. Get the required DM6446 LSP package from https://wwwa.ti.com/downloads/sds_support/targetcontent/psp/index.html. Copy the kernel sources to your workspace: ~/montavista/kernel/linux 4. Modify your search path to include kernel build tools. $ set path = (/opt/montavista/pro/devkit/arm/v5t_le/bin $path) Page 12 of 27

$ set path = (/opt/montavista/pro/bin $path) You can modify the shell startup file to include the paths in the standard search path. 5. Configure the kernel for the DM6446. Ensure that the kernel is configured for DM6446 or DM6467. Further, DHCP should be enabled. Also ensure that you disable the CONFIG_PREEMPT option if it is already selected and ensure that EABI option is selected. DSP/BIOS Link supports the following pre-emption mode No Forced Preemption (Server) Voluntary Kernel Preemption (Desktop) Preemptible kernel (Low Latency Desktop) DSP/BIOS Link does not support Complete Preemption (Real-Time) DM6446:- $make ARCH=arm CROSS_COMPILE=arm_v5t_le_uclibcdavinci_dm644x_defconfig or DM6467:- $make ARCH=arm CROSS_COMPILE=arm_v5t_le_uclibcdavinci_dm6467_defconfig $make ARCH=arm CROSS_COMPILE=arm_v5t_le_uclibc- menuconfig 6. Build the kernel. $make ARCH=arm CROSS_COMPILE=arm_v5t_le_uclibc- uimage The image for compressed kernel uimage is generated after successful completion of the build process in the arch/arm/boot directory. 7.1.2 Enable TFTP for downloading the kernel image to target U-boot can be configured to download the kernel onto the target by various mechanisms: a. TFTP b. Serial Port This section configures the Linux development host as a TFTP server. Modify the xinet.d/tftp file to enable TFTP: 1. Make the following changes: disable = no server_args = -s /tftpboot 2. Restart the network service Page 13 of 27

$ /etc/init.d/xinetd restart The above configuration assumes that a directory tftpboot has been created at the root / directory. The files in this directory are exposed through the TFTP protocol. 7.1.3 Create target file system The target device needs a file system to boot from. The file system can either be exported to the target through NFS, or a RAMDISK can be used. 7.1.4 Exporting target file system through NFS A directory on the development host can be setup and exported for this purpose. 1. Copy the target file system to your workspace. $ cp -a /opt/montavista/pro/devkit/arm/v5t_le/target ~/montavista/target Enter the command shown above in a single line. You need to be root to successfully execute this command. The file system can be copied to a different location. In such a case ~/montavista/target can be a soft link to the actual location. 3. The directory ~/montavista/target will be mounted as root directory on the target through NFS. To do so, add the following line to the file /etc/exports. /home/<user>/montavista/target *(rw,no_root_squash) Replace "/home/<user>" in the path above with the actual path of your home directory on the development workstation. 7.2 Setting up workstation for Montavista pro 5.0 glibc The description in this section is based on the following assumptions: 1. Host PC with RedHat Linux 9 to install the MVL glibc package. Installation using the iso s released by Montavista fail on host pc with RedHat Enterprise Linux workstation 3 or 4. 2. Services telnetd, nfsd, ftpd are configured on this workstation. 3. The workstation is assigned a fixed IP address. 4. 4GB Space is required for the installation of tool chain for a single LSP of a single architecture type. A fixed IP address is preferred, as the IP address needs to be specified while booting the target board. This allows the boot loader configuration to be saved in flash. This document and the scripts included in the release assume the following directory structure in your home directory on the Linux workstation: Page 14 of 27

/home/<user> dsplink <distribution> kernel target Figure 3. Expected directory structure on the Linux workstation for MVL pro 5.0 glibc In this diagram: <user> represents the actual user name <distribution> represents the actual distribution of Linux being used. This section assumes that Montavista Linux Professional Edition 5.0 is installed on the development workstation at /opt/montavista/pro. 7.2.1 Building the kernel for DM6446 These steps are for the Linux PSP package for DM6446. Please refer to the release notes for Linux LSP package for detailed build steps. 1. Download the required Montavista packages from Montavista website: pro-host-arm_v5t_le-0702774.iso lsps-arm_v5t_le-0702774.iso devrocket-0702794.iso src-pro-0702774.iso docs-pro-0702774.iso 2. Step a: Transfer these images/isos to the Host machine. Step b: Create few mount points to mount the isos. For minimum installation, i.e. without docs, only two mount points are required. Step c: Mount the following isos. pro-host-arm_v5t_le-0702774.iso lsps-arm_v5t_le_0702774.iso If in your system /dev/loop0 or /dev/loop1 is already used up then you can try using /dev/loop2...n onwards. Step d: On a new console (as root) run the command to start the web server to install the tool chain. Step e: On another console run (as root) the command to install the tool chain. Please follow the on screen steps and complete the installation. Please note that installation selection is on LSP basis. Page 15 of 27

Step b : Directory creation example $mkdir /mnt/iso1 $mkdir /mnt/iso2 Step c: Mount command example: $mount -t iso9660 pro-host-arm_v5t_le-0702774.iso /mnt/iso1 -o loop=/dev/loop0 $mount -t iso9660 lsps-arm_v5t_le-0702774.iso /mnt/iso2 -o loop=/dev/loop1 Step d: $/mnt/iso1/install --host Redhat Step e: $/tmp/mvl-install/bin/links http://127.0.0.1:9999/mvlinstaller.cgi The sources can be copied to a different location. In such a case ~/montavista/kernel/linux can be a soft link to the actual location. 3. Get the required DM6446 LSP package from https://wwwa.ti.com/downloads/sds_support/targetcontent/psp/index.html. Copy the kernel sources to your workspace: ~/montavista/kernel/linux 4. Modify your search path to include kernel build tools. $ set path = (/opt/montavista/pro/devkit/arm/v5t_le/bin $path) $ set path = (/opt/montavista/pro/bin $path) You can modify the shell startup file to include the paths in the standard search path. 5. Configure the kernel for the DM6446 or DM6467. Ensure that the kernel is configured for DM6446 or DM6467. Further, DHCP should be enabled. Also ensure that you disable the CONFIG_PREEMPT option if it is already selected and ensure that EABI option is selected. DSP/BIOS Link supports the following pre-emption mode No Forced Preemption (Server) Voluntary Kernel Preemption (Desktop) Preemptible kernel (Low Latency Desktop) DSP/BIOS Link does not support Complete Preemption (Real-Time) DM6446:- $make ARCH=arm CROSS_COMPILE=arm_v5t_ledavinci_dm644x_defconfig DM6467:- $make ARCH=arm CROSS_COMPILE=arm_v5t_ledavinci_dm6467_defconfig Page 16 of 27

$make ARCH=arm CROSS_COMPILE=arm_v5t_le- menuconfig 6. Build the kernel. $make ARCH=arm CROSS_COMPILE=arm_v5t_le- uimage The image for compressed kernel uimage is generated after successful completion of the build process in the arch/arm/boot directory. 7.2.2 Enable TFTP for downloading the kernel image to target U-boot can be configured to download the kernel onto the target by various mechanisms: a. TFTP b. Serial Port This section configures the Linux development host as a TFTP server. Modify the xinet.d/tftp file to enable TFTP: 1. Make the following changes: disable = no server_args = -s /tftpboot 2. Restart the network service $ /etc/init.d/xinetd restart The above configuration assumes that a directory tftpboot has been created at the root / directory. The files in this directory are exposed through the TFTP protocol. 7.2.3 Create target file system The target device needs a file system to boot from. The file system can either be exported to the target through NFS, or a RAMDISK can be used. 7.2.4 Exporting target file system through NFS A directory on the development host can be setup and exported for this purpose. 1. Copy the target file system to your workspace. $ cp -a /opt/montavista/pro/devkit/arm/v5t_le/target ~/montavista/target Enter the command shown above in a single line. You need to be root to successfully execute this command. The file system can be copied to a different location. In such a case ~/montavista/target can be a soft link to the actual location. 3. The directory ~/montavista/target will be mounted as root directory on the target through NFS. Page 17 of 27

To do so, add the following line to the file /etc/exports. /home/<user>/montavista/target *(rw,no_root_squash) Replace "/home/<user>" in the path above with the actual path of your home directory on the development workstation. 7.3 Setting up Linux for DM6467 and DM6467T parts 7.3.1 Building the kernel for DM6467 and DM6467T for Glibc tool chain 1. The tool chain arm-2009q1-203 - arm-2009q1-203-arm-none-linuxgnueabi.bin can be downloaded from :- http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite Install the tool chain by running and installing the binary executable. $./arm-2009q1-203-arm-none-linux-gnueabi.bin $ export PATH=$PATH:${HOME}/omap3530/arm-2009q1-203/bin 2. This step is for DM6467 part. Un tar the kernel that comes with the DM6467 LSP GIT release. Build the kernel according to the PSP Linux User Guide document. Refer to the PSP u-boot related documentation on how to build the mkimage utility which is needed for creation of uimage. Along with the tool chain, location of mkimage utility should also be there in the path. $ export CROSS_COMPILE=arm-none-linux-gnueabi- #Note that this will configure the build for DM6467 594MHz part #Also note that the kernel built with this config can be used on #all supported DaVinci SoCs $ make davinci_all_defconfig 2. This step is for DM6467T part. Un tar the kernel that comes with the DM6467T LSP GIT release. Build the kernel according to the PSP Linux User Guide document. Refer to the PSP u-boot related documentation on how to build the mkimage utility which is needed for creation of uimage. Along with the tool chain, location of mkimage utility should also be there in the path. $ export CROSS_COMPILE=arm-none-linux-gnueabi- #Note that this will configure the build for DM6467T (1GHz) part #Kernel built with this configuration should be used only on #DM6467T EVM $ make davinci_dm646x_1ghz_defconfig $ make uimage Page 18 of 27

8 Configuring CCS 8.1 DM6446 EVM and DM6467 EVM To use CCS for debugging the DSP side application, you will need to configure CCS to use both ARM and DSP with the DM6446 EVM. The EVM must be configured to use the DSP self-boot mode. CCS can attach to only ARM in the beginning. It can attach to the DSP only after the ARM-side application releases it from reset through a call to PROC_Start (). Page 19 of 27

C. WORKING ON TARGET PLATFORM 9 DM6446 EVM and DM6467 EVM 9.1 Setting up Linux environment Refer to the PSP Linux release/install guide document for instructions on setting up the Linux execution environment for the DM6446 EVM. 9.2 Configuring Kernel Parameters DSP/BIOS LINK requires a few specific arguments to be passed to the Linux kernel during boot up. 2MB of memory is used by DSP/BIOS LINK for communication between GPP and DSP, and for DSP external memory. This must be reserved by specifying 2MB less as available for the Linux kernel for its usage. 9.3 Configure the DSP/BIOS LINK for DM6446 or DM6467 The build configuration command must be executed to configure DSPLink for the various parameters such as platform, GPP OS, build configuration etc. DM6446 (Pro 5 uclibc) perl dsplinkcfg.pl --platform=davinci --nodsp=1 --dspcfg_0=dm6446gemshmem -- dspos_0=dspbios5xx --gppos=mvl5u --comps=ponslrmc DM6446 (Pro 5 glibc) perl dsplinkcfg.pl --platform=davinci --nodsp=1 --dspcfg_0=dm6446gemshmem -- dspos_0=dspbios5xx --gppos=mvl5g --comps=ponslrmc DM6446 (Pro 5 glibc, Bios 6.xx) perl dsplinkcfg.pl --platform=davinci --nodsp=1 --dspcfg_0=dm6446gemshmem -- dspos_0=dspbios6xx --gppos=mvl5g --comps=ponslrmc DM6446 (Pro 5 uclibc, Bios 6.xx) perl dsplinkcfg.pl --platform=davinci --nodsp=1 --dspcfg_0=dm6446gemshmem -- dspos_0=dspbios6xx --gppos=mvl5u --comps=ponslrmc" DM6467 (GIT LSP with glibc) perl dsplinkcfg.pl --platform=davincihd --nodsp=1 -- dspcfg_0=dm6467gemshmem --dspos_0=dspbios5xx --gppos=dm6467lsp -- comps=ponslrmc DM6467 (GIT LSP with uclibc) perl dsplinkcfg.pl --platform=davincihd --nodsp=1 -- dspcfg_0=dm6467gemshmem --dspos_0=dspbios5xx --gppos=dm6467lspuc -- comps=ponslrmc Page 20 of 27

DM6467T (GIT LSP with glibc) perl dsplinkcfg.pl --platform=davincihd --nodsp=1 -- dspcfg_0=dm6467gemshmem --dspos_0=dspbios5xx --gppos=dm6467lsp -- comps=ponslrmc DM6467T (GIT LSP with uclibc) perl dsplinkcfg.pl --platform=davincihd --nodsp=1 -- dspcfg_0=dm6467gemshmem --dspos_0=dspbios5xx --gppos=dm6467lspuc -- comps=ponslrmc For details please refer user guide. In Case of BIOS6 for DM6446 to build the DSP side samples the XDCPATH needs to be export. export XDCPATH="/toolchains/bios6/bios_6_20_00_37/packages;/toolchains/bios6/i pc_1_00_00_40/packages" 9.4 Building DSPLink Please follow generic instructions in the User Guide to configure and build DSPLink. Page 21 of 27

10 Running the sample applications Seven sample applications are provided with DSPLINK for the DM6446 platform. All the sample applications are described in detail in the user guide. This section describes the way to execute the sample applications. The specific instructions shown below refer to the message sample. However, similar instructions can be used for the other applications also. The steps for execution of the samples are given below for execution with Linux running on the GPP. The steps for execution of the samples are given below with DM6446 variant of the DM6446 platform. Similar instructions can be used for the DM6467 variant. 10.1 Copying files to target file system The generated binaries on the GPP side and DSP side and the data files must be copied to the target directory. The commands below demonstrate this for the message sample application as reference. Appropriate sample directory name must be used for other sample applications. GPP Side For executing the DEBUG build, follow the steps below to copy the relevant binaries: $ cd ~/dsplink $ cp gpp/export/bin/linux/davinci/debug/messagegpp ~/montavista/target/opt/dsplink/samples/message $ cp gpp/export/bin/linux/davinci/debug/dsplinkk.ko ~/montavista/target/opt/dsplink/ For executing the RELEASE build, follow the steps below to copy the relevant binaries: $ cd ~/dsplink $ cp gpp/export/bin/linux/davinci/release/messagegpp ~/montavista/target/opt/dsplink/samples/message $ cp gpp/export/bin/linux/davinci/release/dsplinkk.ko ~/montavista/target/opt/dsplink/ Enter the commands shown above in single line. By default Ring_IO sample runs in multithread mode. To run the sample in multi process mode, define RINGIO_MULTI_PROCESS flag in $DSPLINK\gpp\src\samples\ring_io\Linux\COMPONENT file and build the sample. DSP Side The DSP binaries can be built either on the Linux workstation or the Windows host. After the binaries have been built, they must be copied into the target file system. If the binaries are generated on Windows PC, any FTP client can be used for transferring these to the target file system. For executing the DEBUG build: 1. Copy the following file into the directory Page 22 of 27

~/montavista/target/opt/dsplink/samples/message: dsplink/dsp/export/bin/dspbios/davinci/dm6446gem_x/debug/message.out For executing the RELEASE build: 1. Copy the following file into the directory ~/montavista/target/opt/dsplink/samples/message: dsplink/dsp/export/bin/dspbios/davinci/dm6446gem_x/release/messa ge.out 10.2 Loading the kernel module: dsplinkk.ko To load the device driver, login as 'root' and enter following commands on the command prompt. $ cd /opt/dsplink $ insmod dsplinkk.ko $ mknod /dev/dsplink c 230 0 This action generates a warning indicating that the kernel module does not contain the GPL license. This warning can be safely ignored. 10.3 Invoking the application 10.3.1 Loop sample To invoke the application enter the following commands: $ cd /opt/dsplink/samples/loop $./loopgpp loop.out <buffersize> <iterations> < DSP Processor Id > The sample can be executed for infinite iterations by specifying the number of iterations as 0. The DSP Processor Id is optional. By default it is zero. e.g. $./loopgpp loop.out 1024 10000 10.3.2 Message sample $ cd /opt/dsplink/samples/message $./messagegpp message.out <number of iterations> < DSP Processor Id > The sample can be executed for infinite iterations by specifying the number of iterations as 0. The DSP Processor Id is optional. By default it is zero. e.g. $./messagegpp message.out 10000 10.3.3 Scale sample $ cd /opt/dsplink/samples/scale $./scalegpp scale.out <buffer size> <iterations> < DSP Processor Id > Page 23 of 27

The sample can be executed for infinite iterations by specifying the number of iterations as 0. The DSP Processor Id is optional. By default it is zero. e.g. $./scalegpp scale.out 1024 10000 10.3.4 Ring_IO sample $ cd /opt/dsplink/samples/ring_io $./ringiogpp ringio.out <RingIO data buffer size in bytes> < number of Bytes to transfer> < DSP Processor Id > The sample can be executed for infinite iterations by specifying the number of Bytes to transfer as 0. The DSP Processor Id is optional. By default it is zero. e.g. $./ringiogpp ringio.out 1024 10240 10.3.5 Readwrite sample $ cd /opt/dsplink/samples/readwrite $./readwritegpp readwrite.out <DSP address> <buffer size> <iterations> < DSP Processor Id > The sample can be executed for infinite iterations by specifying the number of iterations as 0. The DSP Processor Id is optional. By default it is zero. e.g. For DM6446 $./readwritegpp readwrite.out 2414804992 1024 10000 $./readwritegpp readwrite.out 293601280 1024 10000 $./readwritegpp readwrite.out 300957696 1024 10000 For DM6467 $./readwritegpp readwrite.out 2414804992 1024 10000 $./readwritegpp readwrite.out 293699584 1024 10000 10.3.6 MPCSXFER sample $ cd /opt/dsplink/samples/mpcsxfer $./mpcsxfergpp mpcsxfer.out <buffer size> <iterations> < DSP Processor Id > The sample can be executed for infinite iterations by specifying the number of iterations as 0 The DSP Processor Id is optional. By default it is zero. e.g. $./mpcsxfergpp mpcsxfer.out 1024 10000 Page 24 of 27

10.3.7 MP_LIST sample $ cd /opt/dsplink/samples/mp_list $./mplistgpp mplist.out <iterations> <number of elements> < DSP Processor Id > The DSP Processor Id is optional. By default it is zero. e.g. $./mplistgpp mplist.out 1000 20 10.3.8 MESSAGE_MULTI sample $ cd /opt/dsplink/samples/message_multi $./messagemultigpp messagemulti.out <number of transfers> <Application instance number 1 -> MAX_APPS> < DSP Processor Id > The DSP Processor Id is optional. By default it is zero. e.g. $ for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16; do./messagemultigpp messagemulti.out 10000 $i & done 10.4 Unloading the kernel module: dsplinkk.ko To unload the device driver, enter following commands on the command prompt. $ cd /opt/dsplink $ rmmod dsplinkk Page 25 of 27

D. ADDITIONAL INFORMATION None. Page 26 of 27

Page 27 of 27