Texas Instruments TMS320DM357 DVEVM v2.05 manual Testing the Shared File System

Page 40

Installing the Software

4.3.5Testing 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 line wrap.)

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 console window:

EVM # setenv nfshost <ip address of nfs host>

EVM # setenv rootpath <directory to mount>

EVM # setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=$(nfshost):$(rootpath),nolock mem=232M video=davincifb:vid0=0,2025K:vid1=0, 1350K:osd0=720x576x16,

2025K davinci_enc_mgr.ch0_output=COMPOSITE davinci_enc_mgr.ch0_mode=ntsc

Note that the setenv bootargs command should be typed on a single line. Also note that you should avoid using the numeric keypad to enter numbers, as it can sometimes insert extra invisible characters.

The <directory to mount> must match what you specified in Step 5 of Section 4.3.4. For example, /home/<useracct>/workdir/filesys.

Hints: You may want to use the printenv command to print a list of your environment variables. You can also save these setenv commands in a .txt file from which you can paste them in the future.

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

EVM # saveenv

6) Boot the board using NFS:

EVM # boot

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

See Section A.4, Alternate Boot Methods for information about booting with TFTP, NFS, or the board’s NAND flash.

4-10

Image 40
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