Texas Instruments TMS320DM357 DVEVM v2.05 manual Rebuilding the Dvevm Software for the Target

Page 44

Rebuilding the DVEVM Software for the Target

7)If the kernel is configured with any loadable modules (that is, selecting <M> for a module in menuconfig), use the following commands to rebuild and install these modules:

host $ make ARCH=arm CROSS_COMPILE=arm_v5t_le- modules

host $ make ARCH=arm CROSS_COMPILE=arm_v5t_le-

INSTALL_MOD_PATH=/home/<useracct>/workdir/filesys modules_install

8)Use the following command to copy uImage to a place where U-Boot can use TFTP to download it to the EVM. These commands assume you are using the default 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 /home/<useracct>/workdir/lsp/ti-davinci/linux_2.6.18_pro500/arch/arm/boot/uImage /tftpboot

host $ chmod a+r /tftpboot/uImage

For more information on setting up a TFTP server, see Section A.3.

See a standard Linux kernel reference book or online source for more about Linux build configuration options.

4.6Rebuilding the DVEVM Software for the Target

To place demo files in the /opt/dvevm directory, you need to rebuild the

DVEVM software. To do this, follow these steps:

1)If you have not already done so, rebuild the Linux kernel as described in Section 4.5.

2)Change directory to dvsdk_#_#.

3)Edit the dvsdk_#_#/Rules.make file.

Set PLATFORM to match your EVM board as follows:

PLATFORM=dm357

Set DVSDK_INSTALL_DIR to the top-level DVEVM installation directory as follows:

DVSDK_INSTALL_DIR=/home/<useracct>/dvsdk_#_#

Make sure EXEC_DIR points to the opt directory on the NFS exported file system as follows:

EXEC_DIR=/home/<useracct>/workdir/filesys/opt/dvsdk/dm357

Make sure MVTOOL_DIR points to the MontaVista Linux tools directory as follows:

MVTOOL_DIR=/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le

4-14

Image 44
Contents TMS320DM357 Dvevm Getting Started Guide Important Notice Evaluation BOARD/KIT Important Notice FCC Warning Preface About This GuideTrademarks Contents Contents Dvevm Overview What’s in this Kit? What’s on the Board? DM357What’s Next? EVM Hardware Setup Setting Up the Hardware Audio In P3 Audio Out P5 Composite Video Out J8 Uart P6 Connecting to a Console Window Running the Demonstration Software Default Boot Configuration Starting the Standalone DemosStarting the Standalone Demos Starting the Standalone Demos Running the Standalone Demos Shutting Down the Demos About the Encode + Decode Demo About the Encode DemoIR Remote Buttons for Encode Demo About the Decode Demo IR Remote Buttons for Decode DemoRunning the Demos from the Command Line Running the Network Demo Page Dvevm Software Setup Software Overview Command Prompts in This Guide Application Software ComponentsPreparing to Install Installing the Software Installing the Target Linux SoftwareInstalling the Dvsdk Software Installing the A/V Demo Files Exporting a Shared File System for Target AccessSwitch user to root on the host Linux workstation Testing the Shared File System EVM # setenv nfshost ip address of nfs hostInstalling the Software Setting Up the Build/Development Environment Writing a Simple Program and Running it on the EVMCompile the kernel using the following command Building a New Linux KernelRebuilding the Dvevm Software for the Target Building with DSPLink Booting the New Linux Kernel EVM # setenv serverip tftp server ip addressUsing the Digital Video Test Bench Dvtb Page Additional Procedures Changing the Video Input/Output Methods NtscPutting Demo Applications in the Third-Party Menu File filename.tar.gz Setting Up a Tftp Server You should see the following outputAlternate Boot Methods Booting from Flash Using Board’s Nand Flash File SystemBooting via Tftp Using Board’s Nand Flash File System Booting from Flash Using NFS File SystemBooting via Tftp Using NFS File System Updating/Restoring the Bootloaders Updating U-Boot Using U-BootTo assign a dynamic address, use the following Updating/Restoring the Bootloaders Restoring the Nand Flash Updating the KernelRestoring the Nand Flash Using NFS Restoring the Nand Flash Using RAM Disk and a 2 GB SD Card EVM # tar xf /mnt/mmc/dm357flashimage####.tar EVM # cd Page Index NFSIndex--2 Index--3 Spectrum Digital, Inc 511458-0001B